Remove unused macros from !_LIBC code in glibc-borrowed files.
[gnulib.git] / ChangeLog
1 2011-11-27  Bruno Haible  <bruno@clisp.org>
2
3         Remove unused macros from !_LIBC code in glibc-borrowed files.
4         * lib/fnmatch.c (STRCOLL): Remove macro.
5         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
6         * lib/glob.c (__stat, __readdir64): Remove macros.
7         * lib/tempname.c (__open64, __xstat64): Remove macros.
8         Suggested by Paul Eggert.
9
10 2011-11-27  Bruno Haible  <bruno@clisp.org>
11
12         getcwd: Fix link error on MSVC 9.
13         * modules/getcwd (Depends-on): Add readdir, rewinddir.
14
15 2011-11-27  Bruno Haible  <bruno@clisp.org>
16
17         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
18         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
19         HAVE_OPENDIR is 0.
20         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
21         HAVE_CLOSEDIR is 0.
22         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
23         is 0.
24         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
25
26 2011-11-27  Bruno Haible  <bruno@clisp.org>
27
28         getcwd: Fix bug from 2011-08-17.
29         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
30         platforms that need it.
31         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
32         code of 4 to be a failure, not a success. This ensures that
33         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
34
35 2011-11-27  Bruno Haible  <bruno@clisp.org>
36
37         binary-io tests: Avoid test failure on mingw when libtool is used.
38         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
39         Don't verify the size of t-bin-out1.tmp here.
40         * tests/test-binary-io.sh: Verify it here.
41         Reported by Simon Josefsson.
42
43 2011-11-26  Bruno Haible  <bruno@clisp.org>
44
45         Fix conflict between two instantiations of module 'unistd'.
46         * gnulib-tool (func_emit_autoconf_snippet): Substitute
47         ${include_guard_prefix} also in the autoconf snippet.
48         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
49         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
50         GNULIB_UNISTD_H_GETOPT.
51         * modules/getopt-posix (configure.ac): Set the
52         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
53         * modules/getopt-gnu (configure.ac): Likewise.
54         * modules/unistd (Makefile.am): Change the substitution value of
55         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
56         Reported by Simon Josefsson.
57
58 2011-11-25  Bruno Haible  <bruno@clisp.org>
59
60         pagealign_alloc: Doc and comments.
61         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
62         module.
63         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
64
65 2011-11-25  Jim Meyering  <meyering@redhat.com>
66
67         test-update-copyright.sh: avoid false-positive failure
68         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
69         around false positive failure on Cygwin/Windows.  The latter was
70         matching erroneously-created files with names like
71         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
72
73 2011-11-25  Simon Josefsson  <simon@josefsson.org>
74
75         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
76         * m4/valgrind-tests.m4: Check that the parameters that will be
77         used works, not just a subset of them.  Reported by Bruno Haible
78         <bruno@clisp.org>.
79
80 2011-11-24  Jim Meyering  <meyering@redhat.com>
81
82         test-stdalign.c: comment out long double tests
83         * tests/test-stdalign.c: Don't try to reduce alignment of long double
84         variables.  That provokes errors like this from gcc-4.7.0 20111124:
85         error: '_Alignas' specifiers cannot reduce alignment of \
86         'static_longdouble_alignas'.
87
88 2011-11-22  Jim Meyering  <meyering@redhat.com>
89
90         init.sh: make "compare /dev/null FILE" output more readable
91         * tests/init.sh (compare_): Document the preferred order of arguments.
92         (emit_diff_u_header_): New function.
93         (compare_dev_null_): Emit a simulated diff, rather than just the
94         contents of the unexpected file.  Suggestion from Bruno Haible.
95
96 2011-11-21  Jim Meyering  <meyering@redhat.com>
97             Eric Blake  <eblake@redhat.com>
98
99         init.sh: work around OSF/1 5.1's mishandling of /dev/null
100         * tests/init.sh: Make our compare function slightly more portable.
101         Reported by Bruno Haible in
102         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
103
104 2011-11-21  Simon Josefsson  <simon@josefsson.org>
105
106         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
107         before using it, in code that ends up in config.h.
108
109 2011-11-20  Bruno Haible  <bruno@clisp.org>
110
111         getcwd: Work around getcwd bug on AIX 5..7.
112         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
113         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
114         Use a different value for gl_cv_func_getcwd_path_max. Move the
115         definition of HAVE_PARTLY_WORKING_GETCWD from here...
116         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
117         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
118         Define HAVE_MINIMALLY_WORKING_GETCWD.
119         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
120         where it is not even minimally working, that is, on AIX.
121         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
122         m4/getcwd-path-max.m4.
123         (main): Update exit code computation.
124         * doc/posix-functions/getcwd.texi: Mention list of platforms where
125         getcwd does not handle long file names.
126
127 2011-11-20  Bruno Haible  <bruno@clisp.org>
128
129         getcwd: Fix bug from 2009-09-10.
130         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
131         like "no".
132
133 2011-11-20  Simon Josefsson  <simon@josefsson.org>
134
135         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
136
137 2011-11-20  Bruno Haible  <bruno@clisp.org>
138
139         fma tests: Avoid shadowing local variables.
140         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
141         expected.
142
143 2011-11-20  Bruno Haible  <bruno@clisp.org>
144
145         copysignf tests: Fix.
146         * tests/test-copysignf.c: Fix signature check.
147
148 2011-11-20  Bruno Haible  <bruno@clisp.org>
149
150         fma: Remove unused code.
151         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
152         unused macros.
153
154 2011-11-20  Bruno Haible  <bruno@clisp.org>
155
156         sethostname: Fix doc about AIX.
157         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
158         sethostname; it has it.
159
160         sethostname: Mention more portability problems.
161         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
162         problem.
163         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
164
165 2011-11-19  Bruno Haible  <bruno@clisp.org>
166
167         Depend on module fcntl-h when AT_FDCWD is used.
168         * modules/utimens (Depends-on): Add fcntl-h.
169         * modules/areadlinkat (Depends-on): Likewise.
170         * modules/areadlinkat-with-size (Depends-on): Likewise.
171         * modules/faccessat (Depends-on): Likewise.
172         * modules/fchmodat (Depends-on): Likewise.
173         * modules/fchownat (Depends-on): Likewise.
174         * modules/getcwd (Depends-on): Likewise.
175         * modules/mkdirat (Depends-on): Likewise.
176         * modules/mkfifoat (Depends-on): Likewise.
177         * modules/readlinkat (Depends-on): Likewise.
178         * modules/symlinkat (Depends-on): Likewise.
179         * modules/dup2-tests (Depends-on): Likewise.
180         * modules/fdutimensat-tests (Depends-on): Likewise.
181         * modules/futimens-tests (Depends-on): Likewise.
182
183 2011-11-19  Bruno Haible  <bruno@clisp.org>
184
185         euidaccess: Update a comment.
186         * lib/euidaccess.c: Update comment about platforms with faccessat.
187
188 2011-11-19  Bruno Haible  <bruno@clisp.org>
189
190         openat: Fix file list.
191         * modules/openat (Files): Remove lib/at-func.c.
192
193 2011-11-19  Bruno Haible  <bruno@clisp.org>
194
195         fstatat: Simplify.
196         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
197         gnulib should define rpl_fstatat, there is a
198         "#define fstatat rpl_fstatat" in <sys/stat.h>.
199
200 2011-11-19  Bruno Haible  <bruno@clisp.org>
201
202         Ensure 'inline' can be used in tests/test-utimens-common.h.
203         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
204         * modules/futimens-tests (configure.ac): Likewise.
205         * modules/utimens-tests (configure.ac): Likewise.
206         * modules/utimensat-tests (configure.ac): Likewise.
207
208 2011-11-19  Simon Josefsson  <simon@josefsson.org>
209
210         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
211         not hash_insert0.
212         (hash_insert_if_absent): Doc fix.
213
214 2011-11-19  Simon Josefsson  <simon@josefsson.org>
215
216         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
217
218 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
219
220         test-getcwd: disambiguate exit status
221         * tests/test-getcwd.c (test_long_name): Return 0..7.
222         (main): Exit with an unambiguous exit status.  The old
223         code yielded a mysterious mixture of two failure codes.
224
225         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
226         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
227         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
228         rpl_fstatat or fstatat.  This should fix the other problem
229         reported by Kai Habel in
230         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
231         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
232         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00239.html>
233         and I reproduced it on a Solaris 8 host we still have in production.
234
235 2011-11-18  Jim Meyering  <meyering@redhat.com>
236
237         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
238         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
239         Add a sentence to the comment.
240         (hash_insert0): New function that simply calls hash_insert_if_absent.
241         * lib/hash.h (hash_insert_if_absent): Declare it.
242         (hash_insert0): Add deprecation attribute.
243         (_GL_ATTRIBUTE_DEPRECATED): Define.
244         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
245         not hash_insert0.
246         * NEWS: Mention it, even though it's not really an incompatible change.
247
248 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
249
250         openat: avoid compilation failure due to lack of <errno.h> inclusion
251         * lib/openat.c: Include <errno.h>.
252
253 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
254
255         * modules/getcwd (Depends-on): Add fdopendir.
256         This fixes one of the two problems reported by Kai Habel in
257         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
258
259         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
260         stdalign problem reported by Ian Beckwith in
261         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00238.html>.
262         * modules/crypto/gc-arcfour (Depends-on):
263         Depend conditionally on crypto/arcfour.
264         * modules/crypto/gc-arctwo (Depends-on):
265         Depend conditionally on crypto/arctwo.
266         * modules/crypto/gc-des (Depends-on):
267         Depend conditionally on crypto/des.
268         * modules/crypto/gc-hmac-md5 (Depends-on):
269         Depend conditionally on crypto/hmac-md5.
270         * modules/crypto/gc-hmac-sha1 (Depends-on):
271         Depend conditionally on crypto/hmac-sha1.
272         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
273         * modules/crypto/gc-md4 (Depends-on):
274         Depend conditionally on crypto/md4.
275         * modules/crypto/gc-md5 (Depends-on):
276         Depend conditionally on crypto/md5.
277         * modules/crypto/gc-rijndael (Depends-on):
278         Depend conditionally on crypto/rijndael.
279         * modules/crypto/gc-sha1 (Depends-on):
280         Depend conditionally on crypto/sha1.
281         * modules/crypto/gc-arcfour:
282         * modules/crypto/gc-arctwo:
283         * modules/crypto/gc-des:
284         * modules/crypto/gc-hmac-md5:
285         * modules/crypto/gc-hmac-sha1:
286         * modules/crypto/gc-md2:
287         * modules/crypto/gc-md4:
288         * modules/crypto/gc-md5:
289         * modules/crypto/gc-rijndael:
290         * modules/crypto/gc-sha1:
291         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
292         now that the conditional dependencies do the work for us.
293
294 2011-11-17  Jim Meyering  <meyering@redhat.com>
295
296         tests: factor st_ctime-comparison out of two headers
297         * tests/test-utimens-common.h (ctime_compare): Define.
298         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
299         * tests/test-lutimens.h (test_lutimens): Likewise.
300         * tests/test-utimens.h (test_utimens): Likewise.
301
302         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
303         Invoke the test program via an init.sh-using wrapper.
304         * tests/test-getcwd.sh: New file.
305         * modules/getcwd-tests (Files): Add it.
306         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
307
308 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
309
310         gitlog-to-changelog: support multi-author commits.
311         The FSF cares about keeping track of all authors of patches to its
312         projects, but Git doesn't provide obvious support for multi-author
313         changesets. Consensus seems to be forming around the use of extra
314         Signed-off-by inspired lines in the log message formatted as
315         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
316         multi-author commits between version control systems.
317         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
318         log message and output in standard ChangeLog multi-author format.
319         Reported by Peter Rosin <peda@lysator.liu.se>
320
321 2011-11-15  Ben Walton <bwalton@artsci.utoronto.ca>  (tiny change)
322             Bruno Haible  <bruno@clisp.org>
323
324         Fix some modules' file list.
325         * modules/fstatat (Files): Add m4/lstat.m4.
326         * modules/openat (Files): Likewise.
327         * modules/unlinkat (Files): Likewise.
328
329 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
330
331         maint.mk: fix tight-scope.mk generation in VPATH builds.
332         * top/maint.mk (tight-scope.mk): Make sure to prefix file
333         reference with $(srcdir) so that the file is found correctly even
334         when running `make syntax-check' in a VPATH build.
335
336 2011-11-13  Bruno Haible  <bruno@clisp.org>
337             Jim Meyering  <meyering@redhat.com>
338
339         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
340         * tests/init.sh (compare): Remove "No differences encountered" or
341         synonymous output from the 'diff' program.
342
343 2011-11-13  Bruno Haible  <bruno@clisp.org>
344
345         Makefile: Tweak indentation.
346         * Makefile: Use tab as first character in every line that contains rule
347         commands.
348
349 2011-11-13  Bruno Haible  <bruno@clisp.org>
350
351         Syntax check for copyright statements.
352         * check-copyright: New file.
353         * Makefile (sc_check_copyright): New rule.
354
355 2011-11-13  Simon Josefsson  <simon@josefsson.org>
356
357         * build-aux/git-version-gen: Add --prefix to configure the tag
358         match string.
359
360 2011-11-13  Simon Josefsson  <simon@josefsson.org>
361
362         * build-aux/git-version-gen: Add --help and --version.
363
364 2011-11-12  Jim Meyering  <meyering@redhat.com>
365
366         revamp the other test-exclude?.sh scripts to use init.sh, too
367         * tests/test-exclude1.sh: Use init.sh.
368         * tests/test-exclude2.sh: Likewise.
369         * tests/test-exclude3.sh: Likewise.
370         * tests/test-exclude4.sh: Likewise.
371         * tests/test-exclude5.sh: Likewise.
372         * tests/test-exclude6.sh: Likewise.
373         * tests/test-exclude7.sh: Likewise.
374         * tests/test-exclude8.sh: Likewise.
375         * modules/exclude-tests (Files): List init.sh.
376
377         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
378         These shell scripts ignored failure of the binary test-exclude,
379         so making the latter return 77 didn't cause them to be skipped.
380         * tests/test-exclude5.sh: Exit with test-exclude's error status
381         when that program fails.  Revamp to use init.sh.
382         * tests/test-exclude2.sh: Likewise.
383
384         test-exclude: fix a typo
385         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
386
387 2011-11-11  Bruno Haible  <bruno@clisp.org>
388
389         obstack: Fix compilation error on MSVC 9.
390         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
391
392 2011-11-11  Jim Meyering  <meyering@redhat.com>
393
394         test-exclude: skip tests rather than failing on deficient systems
395         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
396         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
397         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
398         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
399
400 2011-11-10  Bruno Haible  <bruno@clisp.org>
401
402         ptsname_r test: Avoid gcc warning on glibc systems.
403         * tests/test-ptsname_r.c (null_ptr): New function.
404         (test_errors): Use it.
405
406 2011-11-10  Bruno Haible  <bruno@clisp.org>
407
408         ptsname_r: Avoid compilation error on OSF/1 5.1.
409         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
410         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
411         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
412         function is not declared or incompatibly declared.
413         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
414         * modules/ptsname_r (Depends-on, configure.ac): Update.
415         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
416
417 2011-11-10  Bruno Haible  <bruno@clisp.org>
418
419         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
420         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
421         When cross-compiling, guess yes on all platforms except AIX.
422         Reported by Ludovic Courtès <ludo@gnu.org>.
423
424 2011-11-09  Bruno Haible  <bruno@clisp.org>
425
426         ptsname_r tests: Fix bugs.
427         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
428         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
429
430 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
431
432         fstatat: work with cross-compilation
433         Problem reported by Ludovic Courtès in
434         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00136.html>.
435         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
436         "cross-compiling" and assume the bug is present.  Replace
437         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
438         an inverted sense, to be more conservative about our assumptions.
439         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
440
441 2011-11-09  Bruno Haible  <bruno@clisp.org>
442
443         Improve MODULES.html output.
444         * modules/mkfifoat (Description): Use the word "function".
445         * modules/readlinkat (Description): Likewise.
446         * modules/symlinkat (Description): Likewise.
447
448 2011-11-09  Eric Blake  <eblake@redhat.com>
449
450         ptsname_r-tests: new test module
451         * modules/ptsname_r-tests: New module.
452         * tests/test-ptsname_r.c: New file.
453
454         ptsname_r: new module
455         * modules/ptsname_r: New module.
456         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
457         * lib/ptsname.c (__ptsname_r): Split...
458         * lib/ptsname_r.c: ...into new file.
459         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
460         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
461         * modules/stdlib (Makefile.am): Substitute witnesses.
462         * lib/stdlib.in.h (ptsname_r): Declare it.
463         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
464         * MODULES.html.sh (Misc): Likewise.
465         * modules/ptsname (Depends-on): Alter dependency.
466         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
467
468 2011-11-09  Jim Meyering  <meyering@redhat.com>
469
470         announce-gen: be more concise when there's only one URL+tarball
471         * build-aux/announce-gen (get_tool_versions): When you distribute
472         only one type of tarball, combine the first two "Here are..."
473         sections and make the key-checking grammar independent of
474         how many tarballs there are.
475
476 2011-11-09  Eric Blake  <eblake@redhat.com>
477
478         openpty: provide a stub on mingw
479         * lib/pty.in.h (includes): Provide forward declarations.
480         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
481
482         raise: fix mingw handling of SIGPIPE
483         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
484
485 2011-11-08  Bruno Haible  <bruno@clisp.org>
486
487         More conditional dependencies.
488         * modules/faccessat (Depends-on): Add conditions.
489         * modules/fchmodat (Depends-on): Likewise.
490         * modules/fchownat (Depends-on): Likewise.
491         * modules/fstatat (Depends-on): Likewise.
492         * modules/mkfifoat (Depends-on): Likewise.
493         * modules/readlinkat (Depends-on): Likewise.
494         * modules/symlinkat (Depends-on): Likewise.
495         * modules/unlinkat (Depends-on): Likewise.
496         * modules/utimensat (Depends-on): Likewise.
497         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
498         * modules/linkat (Depends-on): Refine the conditions.
499         * modules/renameat (Depends-on): Likewise.
500
501 2011-11-08  Bruno Haible  <bruno@clisp.org>
502
503         faccessat: Move AC_LIBOBJ invocation to module description.
504         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
505         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
506         invocation from here...
507         * modules/faccessat (configure.ac): ... to here. Invoke
508         gl_PREREQ_FACCESSAT.
509
510 2011-11-08  Bruno Haible  <bruno@clisp.org>
511
512         faccessat: Simplify autoconf macro.
513         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
514         gl_FUNC_EUIDACCESS.
515
516 2011-11-08  Bruno Haible  <bruno@clisp.org>
517
518         renameat: Fix dependencies.
519         * modules/renameat (Depends-on): Add stdbool.
520
521 2011-11-08  Bruno Haible  <bruno@clisp.org>
522
523         mkfifoat: Fix module description.
524         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
525         not gl_UNISTD_MODULE_INDICATOR.
526
527 2011-11-08  Bruno Haible  <bruno@clisp.org>
528
529         fstatat: Remove unused dependency.
530         * modules/fstatat (Depends-on): Remove fstat.
531
532 2011-11-08  Simon Josefsson  <simon@josefsson.org>
533
534         GNUmakefile: behave when Makefile is missing.
535         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
536
537 2011-11-08  Bruno Haible  <bruno@clisp.org>
538
539         openat: Conditionalize dependencies.
540         * lib/openat.c: Reduce the scope of some #includes.
541         * modules/openat (Depends-on): Add conditions.
542
543 2011-11-07  Jim Meyering  <meyering@redhat.com>
544
545         maint.mk: extract GPG key ID without using a temporary file
546         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
547         without using a temporary file.  Based on a suggestion from Werner Koch
548         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
549
550 2011-11-07  Eric Blake  <eblake@redhat.com>
551
552         grantpt: fix typo
553         * lib/stdlib.in.h (grantpt): Check correct function.
554
555         maint.mk: silence new syntax check
556         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
557
558 2011-11-06  Bruno Haible  <bruno@clisp.org>
559
560         Doc about floating-point and math API.
561         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
562         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
563
564 2011-11-06  Bruno Haible  <bruno@clisp.org>
565
566         stdalign tests: Skip the test when compiled by Sun C.
567         * tests/test-stdalign.c (main): Skip the test on Sun C.
568
569 2011-11-06  Bruno Haible  <bruno@clisp.org>
570
571         ansi-c++-opt: Complete the 2011-06-05 change.
572         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
573         does not support namespaces, set the variable to "no", not to ":".
574
575 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
576
577         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
578
579 2011-11-06  Bruno Haible  <bruno@clisp.org>
580
581         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
582         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
583         (minus_zerol) [HP-UX]: New macro.
584         (unary_minus) [HP-UX]: New function.
585         (copysignl) [HP-UX]: Use unary_minus function.
586
587 2011-11-06  Bruno Haible  <bruno@clisp.org>
588
589         ldexp, ldexpf, ldexpl: Enhance tests.
590         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
591         and tests/test-ldexpl.c.
592         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
593         LDEXP, MIN_EXP, MAX_EXP): New macros.
594         Include test-ldexp.h.
595         (main): Just call test_function.
596         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
597         infinity.h, nan.h.
598         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
599         MAX_EXP): New macros.
600         Include test-ldexp.h.
601         (x, y): Remove variables.
602         (main): Just call test_function.
603         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
604         infinity.h, nan.h.
605         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
606         MAX_EXP): New macros.
607         Include test-ldexp.h.
608         (x, y): Remove variables.
609         (main): Just call test_function.
610         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
611         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
612         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
613         (Depends-on): Add isnand-nolibm, signbit, float.
614         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
615         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
616         (Depends-on): Add isnanf-nolibm, signbit, float.
617
618 2011-11-06  Bruno Haible  <bruno@clisp.org>
619
620         math tests: Cosmetics.
621         * tests/test-math-c++.cc: Reorder declarations.
622
623 2011-11-05  Bruno Haible  <bruno@clisp.org>
624
625         fma*: Simplify test.
626         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
627         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
628
629         Tests for module 'fmal'.
630         * modules/fmal-tests: New file.
631         * tests/test-fmal1.c: New file.
632         * tests/test-fmal2.c: New file.
633
634         New module 'fmal'.
635         * lib/math.in.h (fmal): New declaration.
636         * lib/fmal.c: New file.
637         * m4/fmal.m4: New file.
638         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
639         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
640         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
641         REPLACE_FMAL.
642         * modules/fmal: New file.
643         * doc/posix-functions/fmal.texi: Mention the new module and the various
644         bugs.
645
646         Tests for module 'fmaf'.
647         * modules/fmaf-tests: New file.
648         * tests/test-fmaf1.c: New file.
649         * tests/test-fmaf2.c: New file.
650
651         New module 'fmaf'.
652         * lib/math.in.h (fmaf): New declaration.
653         * lib/fmaf.c: New file.
654         * m4/fmaf.m4: New file.
655         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
656         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
657         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
658         REPLACE_FMAF.
659         * modules/fmaf: New file.
660         * doc/posix-functions/fmaf.texi: Mention the new module and the various
661         bugs.
662
663         Tests for module 'fma'.
664         * modules/fma-tests: New file.
665         * tests/test-fma1.c: New file.
666         * tests/test-fma1.h: New file.
667         * tests/test-fma2.c: New file.
668         * tests/test-fma2.h: New file.
669
670         New module 'fma'.
671         * lib/math.in.h (fma): New declaration.
672         * lib/fma.c: New file.
673         * m4/fma.m4: New file.
674         * m4/fegetround.m4: New file.
675         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
676         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
677         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
678         REPLACE_FMA.
679         * modules/fma: New file.
680         * doc/posix-functions/fma.texi: Mention the new module and the various
681         bugs.
682
683         Extend gl_MATHFUNC.
684         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
685         Support 'void' as argument type.
686         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
687
688 2011-11-05  Jim Meyering  <meyering@redhat.com>
689
690         maint.mk: also prohibit inclusion of dirent.h without use
691         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
692
693 2011-11-05  Bruno Haible  <bruno@clisp.org>
694
695         ldexpl tests: Avoid test failure on MSVC 9.
696         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
697         value. Needed in order to enforce the conversion from a value greater
698         than LDBL_MAX to Infinity.
699
700 2011-11-05  Bruno Haible  <bruno@clisp.org>
701
702         New modules 'at-internal', 'openat-h', split off from module 'openat'.
703         * modules/at-internal: New file, extracted from modules/openat.
704         * modules/openat-h: New file.
705         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
706         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
707         * modules/openat (Description): Add reference to POSIX function.
708         (Files): Remove lib/openat.h, lib/openat-proc.c.
709         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
710         intprops, unistd.
711         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
712         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
713         gl_FCNTL_MODULE_INDICATOR.
714         (Include): Remove unistd.h, openat.h.
715         * modules/areadlinkat (Files): Add lib/at-func.c.
716         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
717         openat-die, openat-h, save-cwd.
718         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
719         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
720         openat-die, openat-h, save-cwd, unistd.
721         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
722         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
723         openat-h, save-cwd. Remove fcntl-h, openat.
724         * modules/fchmodat (Files): Remove lib/openat.h.
725         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
726         openat, stdbool, unistd.
727         * modules/fchownat (Files): Remove lib/openat.h.
728         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
729         openat, stdbool, sys_stat.
730         * modules/fdopendir (Files): Remove lib/openat-priv.h,
731         lib/openat-proc.c.
732         (Depends-on): Add at-internal.
733         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
734         * modules/fstatat (Files): Remove lib/openat.h.
735         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
736         stdbool, unistd.
737         * modules/fts (Depends-on): Add openat-h.
738         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
739         openat.
740         * modules/mkdirat (Files): Remove lib/openat.h.
741         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
742         openat, stdbool, sys_stat.
743         * modules/mkfifoat (Files): Add lib/at-func.c.
744         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
745         openat-h, save-cwd. Remove fcntl-h, openat.
746         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
747         * modules/readlinkat (Files): Add lib/at-func.c.
748         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
749         openat-h, save-cwd. Remove fcntl-h, openat.
750         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
751         openat.
752         * modules/selinux-at (Files): Add lib/at-func.c.
753         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
754         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
755         * modules/symlinkat (Files): Add lib/at-func.c.
756         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
757         openat-h, save-cwd. Remove fcntl-h, openat.
758         * modules/unlinkat (Files): Remove lib/openat.h.
759         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
760         stdbool.
761         * modules/utimensat (Files): Add lib/at-func.c.
762         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
763         openat-die, openat-h, save-cwd.
764         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
765         * modules/fdutimensat-tests (Depends-on): Add openat.
766         * modules/fstatat-tests (Depends-on): Add openat-h.
767         * modules/readlinkat-tests (Depends-on): Add openat.
768         * modules/symlinkat-tests (Depends-on): Add openat.
769
770 2011-11-05  Bruno Haible  <bruno@clisp.org>
771
772         openat: Include <stdbool.h>.
773         * lib/openat.c: Include <stdbool.h>.
774
775 2011-11-04  Bruno Haible  <bruno@clisp.org>
776
777         fchownat, renameat, unlinkat: Fix dependencies.
778         * modules/fchownat (Depends-on): Add fstatat.
779         * modules/renameat (Depends-on): Likewise.
780         * modules/unlinkat (Depends-on): Likewise.
781
782 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
783
784         openat: remove direct dependency on dirent
785         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
786         and hasn't been needed ever since fdopendir was split into its own
787         module on 2009-08-31.
788         * modules/openat (Depends-on): Remove dirent.
789
790 2011-11-04  Bruno Haible  <bruno@clisp.org>
791
792         renameat: Optimize code size.
793         * modules/renameat (configure.ac): Don't compile at-func2.c if
794         REPLACE_RENAMEAT is 1.
795
796 2011-11-04  Bruno Haible  <bruno@clisp.org>
797
798         openat tests: Fix file list.
799         * modules/openat-tests (Files): Add tests/test-open.h.
800
801 2011-11-04  Bruno Haible  <bruno@clisp.org>
802
803         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
804         * modules/fchmodat (Depends-on): Add openat-die.
805         * modules/fchownat (Depends-on): Likewise.
806         * modules/linkat (Depends-on): Likewise.
807         * modules/renameat (Depends-on): Likewise.
808         * modules/openat (Depends-on): Add dirent.
809
810 2011-11-04  Jim Meyering  <meyering@redhat.com>
811
812         at-func*.c: fix comments
813         * lib/at-func2.c: Correct/improve first-line comment.
814         * lib/at-func.c: Correct grammar in first-line comment.
815
816 2011-11-04  Bruno Haible  <bruno@clisp.org>
817
818         New module 'mkdirat', split off from module 'openat'.
819         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
820         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
821         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
822         * modules/mkdirat: New file, extracted from modules/openat.
823         * modules/openat (Files): Remove lib/mkdirat.c.
824         (Depends-on): Remove mkdir.
825         (configure.ac): Remove AC_LIBOBJ of mkdirat.
826         (Include): Remove <sys/stat.h>.
827         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
828         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
829         tests/test-mkdir.h.
830         (Depends-on): Remove ignore-value.
831         (Makefile.am): Remove rules for test-mkdirat.
832         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
833         of module 'openat'.
834         * NEWS: Mention the change.
835
836 2011-11-04  Bruno Haible  <bruno@clisp.org>
837
838         closedir: Avoid warning on mingw.
839         * lib/closedir.c: Include <unistd.h>.
840
841 2011-11-04  Bruno Haible  <bruno@clisp.org>
842
843         New module 'fstatat', split off from module 'openat'.
844         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
845         defined.
846         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
847         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
848         gl_FUNC_FSTATAT.
849         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
850         * modules/fstatat: New file, extracted from modules/openat.
851         * modules/openat (Files): Remove lib/fstatat.c.
852         (Depends-on): Remove lstat.
853         (configure.ac): Remove AC_LIBOBJ of fstatat.
854         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
855         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
856         tests/test-lstat.h, tests/test-stat.h.
857         (Depends-on): Remove getcwd-lgpl.
858         (Makefile.am): Remove rules for test-fstatat.
859         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
860         of module 'openat'.
861         * NEWS: Mention the change.
862         * modules/getcwd (Depends-on): Add fstatat.
863         * modules/linkat (Depends-on): Likewise.
864         * modules/mkfifoat-tests (Depends-on): Likewise.
865         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
866
867 2011-11-03  Bruno Haible  <bruno@clisp.org>
868
869         New module 'unlinkat', split off from module 'openat'.
870         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
871         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
872         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
873         * modules/unlinkat: New file, extracted from modules/openat. Correct
874         the dependency conditions.
875         * modules/openat (Files): Remove lib/unlinkat.c.
876         (Depends-on): Remove rmdir, unlink.
877         (configure.ac): Remove AC_LIBOBJ of unlinkat.
878         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
879         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
880         tests/test-rmdir.h, tests/test-unlink.h.
881         (Depends-on): Remove unlinkdir.
882         (Makefile.am): Remove rules for test-unlinkat.
883         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
884         of module 'openat'.
885         * NEWS: Mention the change.
886         * modules/linkat-tests (Depends-on): Add unlinkat.
887         * modules/mkfifoat-tests (Depends-on): Likewise.
888         * modules/readlinkat-tests (Depends-on): Likewise.
889
890 2011-11-02  Bruno Haible  <bruno@clisp.org>
891
892         New module 'fchmodat', split off from module 'openat'.
893         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
894         defined.
895         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
896         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
897         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
898         * modules/fchmodat: New file, extracted from modules/openat.
899         * modules/openat (Files): Remove lib/fchmodat.c.
900         (configure.ac): Remove AC_LIBOBJ of fchmodat.
901         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
902         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
903         (Makefile.am): Remove rules for test-fchmodat.
904         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
905         of module 'openat'.
906         * NEWS: Mention the change.
907
908 2011-11-02  Jim Meyering  <meyering@redhat.com>
909
910         putenv: indent #definition of "environ" to placate cppi
911         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
912
913         gitlog-to-changelog: provide a ChangeLog-repair mechanism
914         Git logs are often treated as immutable, because editing them
915         changes the SHA1 checksums of all descendants.  Thus, errors in
916         git logs tend to stay there forever.  However, when we generate
917         a ChangeLog file -- typically for distribution -- from that git log,
918         we can actually make corrections in the generated file.  The key
919         lies in recording in machine-readable/applicable form the desired
920         corrections.  See --help for description and an example.
921         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
922         (usage): Describe it; alphabetize option descriptions.
923         (main): Honor the new option, carefully.
924
925 2011-11-01  Jim Meyering  <meyering@redhat.com>
926
927         gitlog-to-changelog: avoid an infloop
928         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
929         that ends up being empty.
930
931 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
932
933         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
934         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
935         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
936         contains (possibly-quoted) backslashes.  This should avoid
937         all-too-common shell bugs if COMPLICATED contains backslashes in
938         the "wrong" places.  Reported by David Evans in
939         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00013.html>.
940         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
941         because we want ASCII ranges.  Is there some reason we don't use
942         the C locale everywhere in this script?
943         (func_module, top level): Avoid unwanted pathname expansion when
944         $repo_url_prefix or $repo_url_suffix_repl contain shell
945         metacharacters like '?' and '*'.
946
947 2011-11-01  Bruno Haible  <bruno@clisp.org>
948
949         fchownat: Improve description.
950         * modules/fchownat (Description): Add link to function.
951
952 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
953
954         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
955         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
956         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00006.html>.
957         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
958
959 2011-11-01  Bruno Haible  <bruno@clisp.org>
960
961         alignof: Avoid collision with stdalign module.
962         * lib/alignof.h (alignof): Remove macro.
963         * NEWS: Mention the change.
964         Reported by Paul Eggert.
965
966 2011-11-01  Bruno Haible  <bruno@clisp.org>
967
968         New module 'fchownat', split off from module 'openat'.
969         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
970         defined.
971         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
972         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
973         invoke gl_FUNC_FCHOWNAT.
974         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
975         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
976         * modules/fchownat: New file, extracted from modules/openat.
977         * modules/openat (Files): Remove lib/fchownat.c.
978         (Depends-on): Remove lchown.
979         (configure.ac): Remove AC_LIBOBJ of fchownat.
980         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
981         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
982         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
983         (Depends-on): Remove mgetgroups, usleep, stat-time.
984         (configure.ac): Remove test for getegid.
985         (Makefile.am): Remove rules for test-fchownat.
986         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
987         of module 'openat'.
988         * NEWS: Mention the change.
989
990 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
991
992         stdalign: port better to MSVC and to Sun C 5.11
993         This fixes some of the problems reported by Bruno Haible in
994         <http://lists.gnu.org/archive/html/bug-gnulib/2011-10/msg00300.html>.
995         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
996         shortcomings of MSVC and of Sun C 5.11.
997         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
998         around __declspec arg.
999         * modules/stdalign-tests (Files): Add tests/macros.h.
1000         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
1001         Include macros.h, for ASSERT.
1002         (DECLARE_ALIGNED): Remove.
1003         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
1004         to catch bug), and to 1 if not (simplifies the rest of the code).
1005         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
1006         (CHECK_AUTO): Remove.
1007         (CHECK_ALIGNED): Check only the alignment of the static vars,
1008         since auto var alignment isn't supported by Sun C 5.11.
1009         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
1010         ASSERT failures are easier to diagnose.
1011
1012 2011-10-31  Bruno Haible  <bruno@clisp.org>
1013
1014         doc about some IRIX 5.3 problems.
1015         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
1016         on IRIX 5.3.
1017         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
1018         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
1019         5.3.
1020         * doc/posix-functions/grantpt.texi: Likewise.
1021         * doc/posix-functions/unlockpt.texi: Likewise.
1022         * doc/posix-functions/lgamma.texi: Likewise.
1023         * doc/posix-functions/nextafter.texi: Likewise.
1024         * doc/posix-functions/remainder.texi: Likewise.
1025         * doc/posix-functions/select.texi: Mention misplaced declaration on
1026         IRIX 5.3.
1027         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1028
1029 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
1030
1031         gitlog-to-changelog: fix git-log invocation.
1032         git-log mishandles date strings before 1970-01-01 UTC, and there is
1033         no use to specify --since=1970-01-01 by default anyway.
1034         * build-aux/gitlog-to-changelog: By default, when no --since option
1035         was given, do not specify explicit --since option to git-log.
1036
1037 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
1038
1039         gitlog-to-changelog: new option --append-dot.
1040         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
1041         first non-blank line of each commit message terminated with a dot.
1042
1043 2011-10-30  Bruno Haible  <bruno@clisp.org>
1044
1045         ffsl, ffsll: Avoid compilation error due to 'restrict'.
1046         * lib/ffsl.h: Include <config.h>.
1047         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
1048
1049 2011-10-30  Jim Meyering  <meyering@redhat.com>
1050
1051         GNUmakefile: reenable "make syntax-check" for most projects
1052         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
1053         build-aux variable", "syntax-check" would do nothing but succeed with
1054         the "No version control files detected..." diagnostic (unless you
1055         happened to override _build-aux via cfg.mk).
1056         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
1057         to precede inclusion of maint.mk.  Otherwise, these variables would
1058         be used undefined in any project that does not override the default.
1059
1060 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
1061
1062         gitlog-to-changelog: treat a message with only blank lines as empty.
1063         * build-aux/gitlog-to-changelog: Move the code that removes leading and
1064         trailing blank lines before the code that issues a warning about an
1065         empty commit message.
1066
1067 2011-10-30  Jim Meyering  <meyering@redhat.com>
1068
1069         test-parse-datetime.c: avoid new DST-related false positive test failure
1070         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
1071         based on the time/date we'll convert, not the current time.
1072         Otherwise, the moment we cross a DST boundary like today's in
1073         Europe, (CEST to CET), that offset ends up being one hour off.
1074
1075 2011-10-27  Bruno Haible  <bruno@clisp.org>
1076
1077         fstat: Tweak documentation.
1078         * modules/fstat (Description): More precise description.
1079
1080 2011-10-27  Bruno Haible  <bruno@clisp.org>
1081
1082         Update documentation regarding 'largefile' module.
1083         * doc/posix-functions/fstat.texi: Tweak wording.
1084         * doc/posix-functions/opendir.texi: Mention that the module fixes the
1085         problems with huge directories and/or small ino_t types.
1086         * doc/posix-functions/readdir.texi: Likewise.
1087         * doc/posix-functions/rewinddir.texi: Likewise.
1088
1089 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
1090
1091         maint.mk: don't maintain a second build-aux variable.
1092         * maint.mk (build_aux): Removed.  The maintainer-makefile module
1093         depends on GNUmakefile, which already maintains a cfg.mk
1094         overridable $(_build-aux) for projects with a non-standard
1095         build-aux directory location, although without the $(srcdir)
1096         prefix.  Use that variable consistently instead of introducing a
1097         second one.  Adjust all call sites.
1098
1099 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
1100
1101         Add stdalign module and use it in other modules.
1102         This is based on a previous proposal by Bruno Haible
1103         <https://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00226.html>.
1104
1105         stdalign: new module
1106         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
1107         * modules/stdalign: New files.
1108         * MODULES.html.sh (c1x_core_properties): Add stdalign.
1109         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
1110
1111         stdalign-tests: new module
1112         * modules/stdalign-tests, tests/test-stdalign.c: New files.
1113
1114         argp: use stdalign
1115         * lib/argp-parse.c: Include <stdalign.h>.
1116         (alignof): Remove.
1117         * modules/argp (Depends-on): Add stdalign.
1118
1119         crypto libraries: use stdalign
1120         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
1121         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
1122         Do not include <stdlib.h> twice, in md4.c.
1123         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
1124         because we are accessing a pointer's bit-pattern, not a size.
1125         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
1126         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
1127         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
1128         * modules/crypto/sha512: Likewise.
1129
1130         sys_socket: use stdalign, not alignof
1131         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
1132         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
1133
1134 2011-10-27  Bruno Haible  <bruno@clisp.org>
1135
1136         raise test: Avoid a test failure on Linux/MIPS.
1137         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
1138         because 99 is a valid signal on Linux/MIPS.
1139
1140 2011-10-27  Bruno Haible  <bruno@clisp.org>
1141
1142         nonblocking tests: Fix test failure on Linux/MIPS.
1143         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
1144         Set to 270000.
1145
1146 2011-10-27  Bruno Haible  <bruno@clisp.org>
1147
1148         utimensat: Work around problem on Linux/hppa.
1149         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
1150         values.
1151         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
1152
1153 2011-10-25  Jim Meyering  <meyering@redhat.com>
1154
1155         maint.mk: fix a bug in sc_prohibit_stddef_without_use
1156         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
1157         after symbols like NULL, size_t, etc.
1158         Reported by Alfred M. Szmidt.
1159
1160         maint.mk: exempt ENODATA from a syntax-check rule
1161         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
1162         from the sc_prohibit_always-defined_macros syntax-check rule.
1163         Add a comment.  See this for more details:
1164         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
1165
1166 2011-10-23  Jim Meyering  <meyering@redhat.com>
1167
1168         fts: close parent dir FD before returning from post-traversal fts_read
1169         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
1170         unlink A, even though an FD open on A remained.  This is suboptimal
1171         (holding a file descriptor open longer than needed), but otherwise not
1172         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
1173         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
1174         that represents a real problem: it causes the removal of A to fail
1175         with e.g., "rm: cannot remove `A': Device or resource busy"
1176
1177         fts visits each directory twice and keeps a cache (fts_fd_ring) of
1178         directory file descriptors.  After completing the final, FTS_DP,
1179         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
1180         cache, but then proceeded to add a new FD to it via the subsequent
1181         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
1182         final file descriptor would be closed only via fts_close's call to
1183         fd_ring_clear.  Now, it is usually closed earlier, via the final
1184         FTS_DP-returning fts_read call.
1185         * lib/fts.c (restore_initial_cwd): New function, converted from
1186         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
1187         Update callers.
1188         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
1189         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
1190
1191 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
1192             Bruno Haible  <bruno@clisp.org>
1193             Jim Meyering  <jim@meyering.net>
1194
1195         readme-release: improve safety of release prep instructions.
1196         * README-release: Don't git pull all branches when only master
1197         is needed for the release process.
1198         Run make maintainer-clean before changing trees and merging.
1199         Don't try to run ./configure right after git pull in case files
1200         that influence the bootstrap process have changed, move the
1201         ./configure step to after running ./bootstrap.
1202         Don't bootstrap "one last time"... it's the first time!
1203
1204 2011-10-22  Bruno Haible  <bruno@clisp.org>
1205
1206         errno, strerror-override: Support for MSVC 10.
1207         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
1208         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
1209         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
1210         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
1211         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
1212         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
1213         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
1214         Assign values compatible with MSVC 10.
1215         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
1216         New macros.
1217         (GNULIB_defined_EWINSOCK): New macro.
1218         * lib/strerror-override.c (strerror_override): Update accordingly.
1219         * lib/strerror-override.h: Likewise.
1220         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
1221         longer equal to the corresponding errno value.
1222         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
1223
1224 2011-10-22  Bruno Haible  <bruno@clisp.org>
1225
1226         perror: Recognize when test program crashes.
1227         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
1228         strerror, set gl_cv_func_perror_works to no.
1229         Reported by Daniel Richard G. <skunk@iskunk.org>.
1230
1231         perror: Fix indentation.
1232         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
1233
1234 2011-10-22  Bruno Haible  <bruno@clisp.org>
1235
1236         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
1237         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
1238         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
1239         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
1240         functions, not as a macro.
1241         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
1242         macros.
1243         (isfinite, isinf, isnan, signbit): Check overloaded functions and
1244         absence of macro.
1245         Suggested by Eric Blake.
1246         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
1247
1248 2011-10-21  Bruno Haible  <bruno@clisp.org>
1249
1250         relocatable-prog-wrapper: Don't leave object files behind.
1251         * build-aux/install-reloc: Re-synchronize list of .o files to be
1252         removed with list of compilation units.
1253
1254 2011-10-20  Bruno Haible  <bruno@clisp.org>
1255
1256         openpty, posix_openpt: Remove code duplication.
1257         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
1258         * lib/openpty.c: Include <stdlib.h>.
1259         (openpty): Use posix_openpt on all platforms except IRIX.
1260         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
1261
1262 2011-10-20  Bruno Haible  <bruno@clisp.org>
1263
1264         unlockpt: Detect invalid argument.
1265         * lib/unlockpt.c: Include <fcntl.h>.
1266         (unlockpt): Check whether fd is valid, using fcntl().
1267         * modules/unlockpt (Depends-on): Add fcntl-h.
1268
1269 2011-10-20  Bruno Haible  <bruno@clisp.org>
1270
1271         openpty: Avoid compilation error on AIX 6.1.
1272         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
1273
1274 2011-10-20  Bruno Haible  <bruno@clisp.org>
1275
1276         posix_openpt: Support for OpenBSD.
1277         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
1278         (posix_openpt) [OpenBSD]: New code.
1279         * lib/grantpt.c: Include <fcntl.h>.
1280         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
1281         * modules/grantpt (Depends-on): Add fcntl-h.
1282
1283 2011-10-20  Bruno Haible  <bruno@clisp.org>
1284
1285         posix_openpt test: Coding style.
1286         * tests/test-posix_openpt.c: Use GNU coding style.
1287
1288 2011-10-20  Bruno Haible  <bruno@clisp.org>
1289
1290         grantpt: Support --avoid=pt_chown.
1291         * modules/grantpt (Files): Add lib/pty-private.h.
1292
1293 2011-10-20  Bruno Haible  <bruno@clisp.org>
1294
1295         posix_openpt: Fix autoconf macro.
1296         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
1297         unneeded check for _getpty.
1298
1299 2011-10-20  Bruno Haible  <bruno@clisp.org>
1300
1301         openpty: Update comments.
1302         * lib/openpty.c: Add comments about Minix.
1303
1304 2011-10-19  Eric Blake  <eblake@redhat.com>
1305
1306         openpty: relax license
1307         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
1308
1309         pt_chown: use configmake to simplify build
1310         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
1311
1312         ptsname and others: relax license
1313         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
1314         * modules/unlockpt (License): Likewise.
1315         * modules/pt_chown (License): Likewise.
1316         * modules/ptsname (License): Likewise.
1317         * modules/ttyname_r (License): Likewise.
1318
1319 2011-10-19  Jim Meyering  <meyering@redhat.com>
1320
1321         posix_openpt: remove spurious #endif
1322         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
1323
1324 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
1325
1326         maint.mk: Respect $(build_aux) in web-manual rule.
1327         * top/maint.mk (web-manual): Find gen-announce script in user's
1328         $(build_aux) directory instead of hard-coding 'build-aux'.
1329
1330 2011-10-19  Bruno Haible  <bruno@clisp.org>
1331
1332         posix_openpt: Fix compilation error.
1333         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
1334         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
1335         Mention the openpty module as an alternative.
1336
1337 2011-10-19  Bruno Haible  <bruno@clisp.org>
1338
1339         Support for old NeXTstep 3.3 frexp().
1340         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
1341         execution time of the test to 5 seconds.
1342         Reported by Daniel Richard G. <skunk@iskunk.org>.
1343
1344 2011-10-19  Bruno Haible  <bruno@clisp.org>
1345
1346         Support for old NeXTstep 3.3 sed.
1347         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
1348         part, use /.../, not \|...|. Escape periods in the header file name.
1349         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
1350         Reported by Daniel Richard G. <skunk@iskunk.org>.
1351
1352 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
1353
1354         Support for old NeXTstep 3.3 gcc.
1355         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
1356         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
1357         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
1358         * lib/spawn.in.h (_Restrict_arr_): Likewise.
1359         * lib/regex.h (_Restrict_arr_): Likewise.
1360         * lib/regex_internal.h (re_token_t): Likewise.
1361         * lib/regexec.c (check_node_accept_bytes): Likewise.
1362         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
1363
1364 2011-10-18  Eric Blake  <eblake@redhat.com>
1365
1366         posix_openpt: new module
1367         * modules/posix_openpt: New module.
1368         * m4/posix_openpt.m4: New file.
1369         * lib/posix_openpt.c: Likewise.
1370         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
1371         (gl_STDLIB_H_DEFAULTS): Set defaults.
1372         * modules/stdlib (Makefile.am): Substitute macros.
1373         * lib/stdlib.in.h (posix_openpt): Declare.
1374         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
1375         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
1376         * modules/posix_openpt-tests: New test module.
1377         * tests/test-posix_openpt.c: New test.
1378
1379 2011-10-15  Bruno Haible  <bruno@clisp.org>
1380
1381         xstrtoll: Fix compilation failure.
1382         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
1383         from lib/strtol.c.
1384         * doc/posix-headers/limits.texi: Mention missing numerical limits on
1385         some platforms.
1386         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1387
1388 2011-10-15  Bruno Haible  <bruno@clisp.org>
1389
1390         vasnprintf: Optimize bit search operation.
1391         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
1392         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
1393         gl_DOUBLE_EXPONENT_LOCATION.
1394         * modules/vasnprintf (Files): Add m4/exponentd.m4.
1395         * modules/unistdio/u8-vasnprintf (Files): Likewise.
1396         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
1397         * modules/unistdio/u16-vasnprintf (Files): Likewise.
1398         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
1399         * modules/unistdio/u32-vasnprintf (Files): Likewise.
1400         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
1401         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
1402         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
1403
1404 2011-10-15  Bruno Haible  <bruno@clisp.org>
1405
1406         vasnprintf: Fix comments.
1407         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
1408
1409 2011-10-14  Bruno Haible  <bruno@clisp.org>
1410
1411         Tests for module 'integer_length_ll'.
1412         * modules/integer_length_ll-tests: New file.
1413         * tests/test-integer_length_ll.c: New file.
1414
1415         New module 'integer_length_ll'.
1416         * lib/integer_length_ll.c: New file.
1417         * modules/integer_length_ll: New file.
1418
1419 2011-10-14  Bruno Haible  <bruno@clisp.org>
1420
1421         Tests for module 'integer_length_l'.
1422         * modules/integer_length_l-tests: New file.
1423         * tests/test-integer_length_l.c: New file.
1424
1425         New module 'integer_length_l'.
1426         * lib/integer_length_l.c: New file.
1427         * modules/integer_length_l: New file.
1428
1429 2011-10-14  Bruno Haible  <bruno@clisp.org>
1430
1431         Tests for module 'integer_length'.
1432         * modules/integer_length-tests: New file.
1433         * tests/test-integer_length.c: New file.
1434
1435         New module 'integer_length'.
1436         * lib/integer_length.h: New file.
1437         * lib/integer_length.c: New file.
1438         * modules/integer_length: New file.
1439
1440 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
1441
1442         popen: Fix dependency conditions.
1443         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
1444
1445 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
1446
1447         perror: Fix autoconf test.
1448         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
1449         <stdlib.h> and <string.h>.
1450
1451 2011-10-14  Bruno Haible  <bruno@clisp.org>
1452
1453         ffsl: Optimize on 64-bit platforms.
1454         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
1455         unrolling.
1456
1457 2011-10-13  Bruno Haible  <bruno@clisp.org>
1458
1459         ffsl: Optimize on 32-bit platforms.
1460         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
1461         use ffs() without a loop.
1462
1463         ffsl, ffsll: Optimize for GCC.
1464         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
1465         * lib/ffsl.c (GCC_BUILTIN): New macro.
1466         * lib/ffsll.c (GCC_BUILTIN): Likewise.
1467
1468 2011-10-13  Bruno Haible  <bruno@clisp.org>
1469
1470         ffs, bcopy, memset: Support symbol renaming via config.h.
1471         * lib/ffs.c: Include <config.h>.
1472         * lib/bcopy.c: Likewise.
1473         * lib/memset.c: Likewise.
1474
1475 2011-10-10  Bruno Haible  <bruno@clisp.org>
1476
1477         atanl: Simplify for platforms where 'long double' == 'double'.
1478         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
1479         alternative implementation.
1480         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1481         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1482         * modules/atanl (Depends-on): Add atan. Update conditions.
1483
1484 2011-10-10  Bruno Haible  <bruno@clisp.org>
1485
1486         acosl: Simplify for platforms where 'long double' == 'double'.
1487         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
1488         alternative implementation.
1489         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1490         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1491         * modules/acosl (Depends-on): Add acos. Update conditions.
1492
1493 2011-10-10  Bruno Haible  <bruno@clisp.org>
1494
1495         asinl: Simplify for platforms where 'long double' == 'double'.
1496         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
1497         alternative implementation.
1498         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1499         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1500         * modules/asinl (Depends-on): Add asin. Update conditions.
1501
1502 2011-10-10  Bruno Haible  <bruno@clisp.org>
1503
1504         tanl: Simplify for platforms where 'long double' == 'double'.
1505         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
1506         implementation.
1507         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1508         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1509         * modules/tanl (Depends-on): Add tan. Update conditions.
1510         (configure.ac): Don't compile trigl.c if
1511         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1512
1513 2011-10-10  Bruno Haible  <bruno@clisp.org>
1514
1515         cosl: Simplify for platforms where 'long double' == 'double'.
1516         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
1517         implementation.
1518         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1519         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1520         * modules/cosl (Depends-on): Add cos. Update conditions.
1521         (configure.ac): Don't compile sincosl.c and trigl.c if
1522         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1523
1524 2011-10-10  Bruno Haible  <bruno@clisp.org>
1525
1526         sinl: Simplify for platforms where 'long double' == 'double'.
1527         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
1528         implementation.
1529         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1530         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1531         * modules/sinl (Depends-on): Add sin. Update conditions.
1532         (configure.ac): Don't compile sincosl.c and trigl.c if
1533         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1534
1535 2011-10-10  Bruno Haible  <bruno@clisp.org>
1536
1537         logl: Simplify for platforms where 'long double' == 'double'.
1538         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
1539         implementation.
1540         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1541         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1542         * modules/logl (Depends-on): Add log. Update conditions.
1543
1544 2011-10-10  Bruno Haible  <bruno@clisp.org>
1545
1546         expl: Simplify for platforms where 'long double' == 'double'.
1547         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
1548         implementation.
1549         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1550         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1551         * modules/expl (Depends-on): Add exp. Update conditions.
1552
1553 2011-10-10  Bruno Haible  <bruno@clisp.org>
1554
1555         sqrtl: Simplify for platforms where 'long double' == 'double'.
1556         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
1557         alternative implementation.
1558         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1559         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1560         * modules/sqrtl (Depends-on): Update conditions.
1561
1562 2011-10-10  Bruno Haible  <bruno@clisp.org>
1563
1564         ldexpl: Simplify for platforms where 'long double' == 'double'.
1565         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
1566         alternative implementation.
1567         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1568         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1569         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
1570
1571 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
1572
1573         ffsll: set correct witness
1574         * modules/ffsll (configure.ac): Fix typo.
1575
1576 2011-10-10  Bruno Haible  <bruno@clisp.org>
1577
1578         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
1579         * lib/printf-frexpl.c: Include <config.h>.
1580         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
1581         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
1582         second time.
1583         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
1584         gl_LONG_DOUBLE_VS_DOUBLE.
1585         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
1586         conditions.
1587
1588 2011-10-10  Bruno Haible  <bruno@clisp.org>
1589
1590         frexpl: Simplify for platforms where 'long double' == 'double'.
1591         * lib/frexpl.c: Include <config.h>.
1592         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
1593         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
1594         time.
1595         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1596         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1597         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
1598         * modules/frexpl (Depends-on): Add frexp. Update conditions.
1599         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
1600         conditions.
1601
1602 2011-10-10  Jim Meyering  <meyering@redhat.com>
1603
1604         test-renameat: don't leave behind a temporary file
1605         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
1606           ERROR: files left in build directory after distclean:
1607           ./gltests/test-renameat.too
1608           make[1]: *** [distcleancheck] Error 1
1609         Reported by Tom G. Christensen.
1610
1611 2011-10-09  Bruno Haible  <bruno@clisp.org>
1612
1613         rint: Determine RINT_LIBM correctly on AIX 7.
1614         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
1615         directly, not only through a function pointer. Also accept an optional
1616         4th argument with extra code.
1617         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
1618         rintf() call by gcc when optimizing.
1619
1620         mathfunc.m4: Refactor.
1621         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
1622         m4 variable.
1623
1624 2011-10-09  Bruno Haible  <bruno@clisp.org>
1625
1626         rintl: Simplify for platforms where 'long double' == 'double'.
1627         * lib/rintl.c: Include <config.h>.
1628         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
1629         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
1630         time.
1631         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1632         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1633         * modules/rintl (Depends-on): Add rint. Update conditions.
1634
1635 2011-10-09  Bruno Haible  <bruno@clisp.org>
1636
1637         roundl: Simplify for platforms where 'long double' == 'double'.
1638         * lib/roundl.c: Include <config.h>.
1639         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
1640         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
1641         time.
1642         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1643         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1644         * modules/roundl (Depends-on): Add round. Update conditions.
1645
1646 2011-10-09  Bruno Haible  <bruno@clisp.org>
1647
1648         truncl: Simplify for platforms where 'long double' == 'double'.
1649         * lib/truncl.c: Include <config.h>.
1650         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
1651         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
1652         time.
1653         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1654         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1655         * modules/truncl (Depends-on): Add trunc. Update conditions.
1656
1657 2011-10-09  Bruno Haible  <bruno@clisp.org>
1658
1659         ceill: Simplify for platforms where 'long double' == 'double'.
1660         * lib/ceill.c: Include <config.h>.
1661         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
1662         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
1663         time.
1664         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1665         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1666         * modules/ceill (Depends-on): Add ceil. Update conditions.
1667
1668 2011-10-09  Bruno Haible  <bruno@clisp.org>
1669
1670         floorl: Simplify for platforms where 'long double' == 'double'.
1671         * lib/floorl.c: Include <config.h>.
1672         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
1673         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
1674         time.
1675         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1676         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1677         * modules/floorl (Depends-on): Add floor. Update conditions.
1678
1679 2011-10-09  Bruno Haible  <bruno@clisp.org>
1680
1681         rint: Fix ordering constraints.
1682         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
1683         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
1684         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
1685
1686 2011-10-09  Bruno Haible  <bruno@clisp.org>
1687
1688         copysignl: Simplify for platforms where 'long double' == 'double'.
1689         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
1690         alternative.
1691         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1692         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1693         * modules/copysignl (Depends-on): Add copysign. Update conditions.
1694
1695 2011-10-09  Bruno Haible  <bruno@clisp.org>
1696
1697         Tests for module 'rintl'.
1698         * modules/rintl-tests: New file.
1699         * tests/test-rintl.c: New file.
1700
1701         New module 'rintl'.
1702         * lib/math.in.h (rintl): New declaration.
1703         * lib/rintl.c: New file.
1704         * m4/rintl.m4: New file.
1705         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
1706         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
1707         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
1708         * modules/rintl: New file.
1709         * tests/test-math-c++.cc: Check the declaration of rintl.
1710         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
1711         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
1712         * doc/posix-functions/rintl.texi: Mention the new module.
1713
1714 2011-10-09  Bruno Haible  <bruno@clisp.org>
1715
1716         Tests for module 'rintf'.
1717         * modules/rintf-tests: New file.
1718         * tests/test-rintf.c: New file.
1719
1720         New module 'rintf'.
1721         * lib/math.in.h (rintf): New declaration.
1722         * lib/rintf.c: New file.
1723         * m4/rintf.m4: New file.
1724         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
1725         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
1726         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
1727         * modules/rintf: New file.
1728         * tests/test-math-c++.cc: Check the declaration of rintf.
1729         * doc/posix-functions/rintf.texi: Mention the new module.
1730
1731 2011-10-09  Bruno Haible  <bruno@clisp.org>
1732
1733         rint: Support for MSVC.
1734         * lib/math.in.h (rint): New declaration.
1735         * lib/rint.c: New file.
1736         * m4/rint.m4: New file.
1737         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
1738         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
1739         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
1740         * modules/rint (Description): Fix.
1741         (Files): Add lib/rint.c, m4/rint.m4.
1742         (Depends-on): Add math.
1743         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
1744         gl_MATH_MODULE_INDICATOR.
1745         * tests/test-math-c++.cc: Check the declaration of rint.
1746         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
1747         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
1748         * doc/posix-functions/rint.texi: Mention the replacement provided by
1749         the module.
1750
1751         rint tests: More tests.
1752         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
1753         minus-zero.h, infinity.h, nan.h.
1754         (main): Skip the test if the current rounding mode is not standard. Add
1755         tests for negative numbers, minus zero, infinity, NaN.
1756         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
1757         tests/nan.h.
1758         (Depends-on): Add isnand-nolibm.
1759
1760 2011-10-09  Bruno Haible  <bruno@clisp.org>
1761
1762         Tests for module 'copysignl'.
1763         * modules/copysignl-tests: New file.
1764         * tests/test-copysignl.c: New file.
1765
1766         New module 'copysignl'.
1767         * lib/math.in.h (copysignl): New declaration.
1768         * lib/copysignl.c: New file.
1769         * m4/copysignl.m4: New file.
1770         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
1771         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
1772         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
1773         HAVE_COPYSIGNL.
1774         * modules/copysignl: New file.
1775         * tests/test-math-c++.cc: Check the declaration of copysignl.
1776         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
1777         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
1778         * doc/posix-functions/copysignl.texi: Mention the new module.
1779
1780 2011-10-09  Bruno Haible  <bruno@clisp.org>
1781
1782         Tests for module 'copysignf'.
1783         * modules/copysignf-tests: New file.
1784         * tests/test-copysignf.c: New file.
1785
1786         New module 'copysignf'.
1787         * lib/math.in.h (copysignf): New declaration.
1788         * lib/copysignf.c: New file.
1789         * m4/copysignf.m4: New file.
1790         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
1791         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
1792         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
1793         HAVE_COPYSIGNF.
1794         * modules/copysignf: New file.
1795         * tests/test-math-c++.cc: Check the declaration of copysignf.
1796         * doc/posix-functions/copysignf.texi: Mention the new module.
1797
1798 2011-10-09  Bruno Haible  <bruno@clisp.org>
1799
1800         Ensure that HAVE_* variables are set to 1 before they are set to 0.
1801         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
1802         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
1803         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
1804         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
1805         gl_SIGNAL_H_DEFAULTS.
1806
1807 2011-10-09  Bruno Haible  <bruno@clisp.org>
1808
1809         poll: Make macro safer.
1810         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
1811         ac_cv_header_poll_h is not set.
1812
1813 2011-10-09  Bruno Haible  <bruno@clisp.org>
1814
1815         copysign: Provide replacement.
1816         * lib/math.in.h (copysign): New declaration.
1817         * lib/copysign.c: New file.
1818         * m4/copysign.m4: New file.
1819         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
1820         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
1821         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
1822         HAVE_COPYSIGN.
1823         * modules/copysign (Description): Clarify.
1824         (Files): Add lib/copysign.c, m4/copysign.m4.
1825         (Depends-on): Add math, signbit.
1826         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
1827         gl_MATH_MODULE_INDICATOR.
1828         * tests/test-math-c++.cc: Check the declaration of copysign.
1829         * doc/posix-functions/copysign.texi: Mention the effects of the module
1830         on Minix and MSVC.
1831
1832 2011-10-09  Bruno Haible  <bruno@clisp.org>
1833
1834         isinf: Ensure macro on AIX 5.1.
1835         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
1836         macro.
1837         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
1838
1839 2011-10-09  Bruno Haible  <bruno@clisp.org>
1840
1841         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
1842         * modules/snprintf-posix-tests (configure.ac): Require
1843         gl_LONG_DOUBLE_VS_DOUBLE.
1844         * modules/sprintf-posix-tests (configure.ac): Likewise.
1845         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
1846         * modules/vasprintf-posix-tests (configure.ac): Likewise.
1847         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
1848         * modules/vsprintf-posix-tests (configure.ac): Likewise.
1849         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
1850         tests on platforms where 'long double' is the same as 'double'.
1851         * tests/test-sprintf-posix.h (test_function): Likewise.
1852         * tests/test-vasnprintf-posix.c (test_function): Likewise.
1853         * tests/test-vasprintf-posix.c (test_function): Likewise.
1854
1855         *printf: Fix for platforms where 'long double' == 'double'.
1856         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
1857         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
1858         * modules/dprintf-posix (Files): Add m4/math_h.m4.
1859         * modules/fprintf-posix (Files): Likewise.
1860         * modules/obstack-printf-posix (Files): Likewise.
1861         * modules/snprintf-posix (Files): Likewise.
1862         * modules/sprintf-posix (Files): Likewise.
1863         * modules/vasnprintf (Files): Likewise.
1864         * modules/vasnprintf-posix (Files): Likewise.
1865         * modules/vasprintf-posix (Files): Likewise.
1866         * modules/vdprintf-posix (Files): Likewise.
1867         * modules/vfprintf-posix (Files): Likewise.
1868         * modules/vsnprintf-posix (Files): Likewise.
1869         * modules/vsprintf-posix (Files): Likewise.
1870         * modules/unistdio/u8-vasnprintf (Files): Likewise.
1871         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
1872         * modules/unistdio/u16-vasnprintf (Files): Likewise.
1873         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
1874         * modules/unistdio/u32-vasnprintf (Files): Likewise.
1875         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
1876         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
1877
1878         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
1879         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
1880         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1881         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
1882         'long double'.
1883         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
1884
1885         isinf: Fix for platforms where 'long double' == 'double'.
1886         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
1887         Don't blindly assume 80-bit 'long double'.
1888
1889         isfinite: Fix for platforms where 'long double' == 'double'.
1890         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
1891         Don't blindly assume 80-bit 'long double'.
1892
1893         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
1894         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
1895         * modules/isfinite-tests (configure.ac): Require
1896         gl_LONG_DOUBLE_VS_DOUBLE.
1897         * modules/isinf-tests (configure.ac): Likewise.
1898         * modules/isnan-tests (configure.ac): Likewise.
1899         * modules/isnanl-tests (configure.ac): Likewise.
1900         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
1901         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
1902         tests on platforms where 'long double' is the same as 'double'.
1903         * tests/test-isinf.c (test_isinfl): Likewise.
1904         * tests/test-isnan.c (test_long_double): Likewise.
1905         * tests/test-isnanl.h (main): Likewise.
1906
1907 2011-10-08  Bruno Haible  <bruno@clisp.org>
1908
1909         Tests for module 'tanhf'.
1910         * modules/tanhf-tests: New file.
1911         * tests/test-tanhf.c: New file.
1912
1913         New module 'tanhf'.
1914         * lib/math.in.h (tanhf): New declaration.
1915         * lib/tanhf.c: New file.
1916         * m4/tanhf.m4: New file.
1917         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
1918         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
1919         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
1920         * modules/tanhf: New file.
1921         * tests/test-math-c++.cc: Check the declaration of tanhf.
1922         * doc/posix-functions/tanhf.texi: Mention the new module.
1923
1924         tanh: Use a .m4 file.
1925         * m4/tanh.m4: New file.
1926         * modules/tanh (Files): Add it.
1927         (configure.ac): Just invoke gl_FUNC_TANH.
1928
1929 2011-10-08  Bruno Haible  <bruno@clisp.org>
1930
1931         Tests for module 'coshf'.
1932         * modules/coshf-tests: New file.
1933         * tests/test-coshf.c: New file.
1934
1935         New module 'coshf'.
1936         * lib/math.in.h (coshf): New declaration.
1937         * lib/coshf.c: New file.
1938         * m4/coshf.m4: New file.
1939         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
1940         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
1941         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
1942         * modules/coshf: New file.
1943         * tests/test-math-c++.cc: Check the declaration of coshf.
1944         * doc/posix-functions/coshf.texi: Mention the new module.
1945
1946         cosh: Use a .m4 file.
1947         * m4/cosh.m4: New file.
1948         * modules/cosh (Files): Add it.
1949         (configure.ac): Just invoke gl_FUNC_COSH.
1950
1951 2011-10-08  Bruno Haible  <bruno@clisp.org>
1952
1953         Tests for module 'sinhf'.
1954         * modules/sinhf-tests: New file.
1955         * tests/test-sinhf.c: New file.
1956
1957         New module 'sinhf'.
1958         * lib/math.in.h (sinhf): New declaration.
1959         * lib/sinhf.c: New file.
1960         * m4/sinhf.m4: New file.
1961         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
1962         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
1963         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
1964         * modules/sinhf: New file.
1965         * tests/test-math-c++.cc: Check the declaration of sinhf.
1966         * doc/posix-functions/sinhf.texi: Mention the new module.
1967
1968         sinh: Use a .m4 file.
1969         * m4/sinh.m4: New file.
1970         * modules/sinh (Files): Add it.
1971         (configure.ac): Just invoke gl_FUNC_SINH.
1972
1973 2011-10-08  Bruno Haible  <bruno@clisp.org>
1974
1975         Tests for module 'atan2f'.
1976         * modules/atan2f-tests: New file.
1977         * tests/test-atan2f.c: New file.
1978
1979         New module 'atan2f'.
1980         * lib/math.in.h (atan2f): New declaration.
1981         * lib/atan2f.c: New file.
1982         * m4/atan2f.m4: New file.
1983         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
1984         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
1985         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
1986         * modules/atan2f: New file.
1987         * tests/test-math-c++.cc: Check the declaration of atan2f.
1988         * doc/posix-functions/atan2f.texi: Mention the new module.
1989
1990         atan2: Use a .m4 file.
1991         * m4/atan2.m4: New file.
1992         * modules/atan2 (Files): Add it.
1993         (configure.ac): Just invoke gl_FUNC_ATAN2.
1994
1995 2011-10-08  Bruno Haible  <bruno@clisp.org>
1996
1997         Tests for module 'atanf'.
1998         * modules/atanf-tests: New file.
1999         * tests/test-atanf.c: New file.
2000
2001         New module 'atanf'.
2002         * lib/math.in.h (atanf): New declaration.
2003         * lib/atanf.c: New file.
2004         * m4/atanf.m4: New file.
2005         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
2006         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
2007         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
2008         * modules/atanf: New file.
2009         * tests/test-math-c++.cc: Check the declaration of atanf.
2010         * doc/posix-functions/atanf.texi: Mention the new module.
2011
2012         atan: Use a .m4 file.
2013         * m4/atan.m4: New file.
2014         * modules/atan (Files): Add it.
2015         (configure.ac): Just invoke gl_FUNC_ATAN.
2016
2017 2011-10-08  Bruno Haible  <bruno@clisp.org>
2018
2019         Tests for module 'acosf'.
2020         * modules/acosf-tests: New file.
2021         * tests/test-acosf.c: New file.
2022
2023         New module 'acosf'.
2024         * lib/math.in.h (acosf): New declaration.
2025         * lib/acosf.c: New file.
2026         * m4/acosf.m4: New file.
2027         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
2028         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
2029         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
2030         * modules/acosf: New file.
2031         * tests/test-math-c++.cc: Check the declaration of acosf.
2032         * doc/posix-functions/acosf.texi: Mention the new module.
2033
2034         acos: Use a .m4 file.
2035         * m4/acos.m4: New file.
2036         * modules/acos (Files): Add it.
2037         (configure.ac): Just invoke gl_FUNC_ACOS.
2038
2039 2011-10-08  Bruno Haible  <bruno@clisp.org>
2040
2041         Tests for module 'asinf'.
2042         * modules/asinf-tests: New file.
2043         * tests/test-asinf.c: New file.
2044
2045         New module 'asinf'.
2046         * lib/math.in.h (asinf): New declaration.
2047         * lib/asinf.c: New file.
2048         * m4/asinf.m4: New file.
2049         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
2050         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
2051         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
2052         * modules/asinf: New file.
2053         * tests/test-math-c++.cc: Check the declaration of asinf.
2054         * doc/posix-functions/asinf.texi: Mention the new module.
2055
2056         asin: Use a .m4 file.
2057         * m4/asin.m4: New file.
2058         * modules/asin (Files): Add it.
2059         (configure.ac): Just invoke gl_FUNC_ASIN.
2060
2061 2011-10-08  Bruno Haible  <bruno@clisp.org>
2062
2063         Tests for module 'tanf'.
2064         * modules/tanf-tests: New file.
2065         * tests/test-tanf.c: New file.
2066
2067         New module 'tanf'.
2068         * lib/math.in.h (tanf): New declaration.
2069         * lib/tanf.c: New file.
2070         * m4/tanf.m4: New file.
2071         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
2072         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
2073         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
2074         * modules/tanf: New file.
2075         * tests/test-math-c++.cc: Check the declaration of tanf.
2076         * doc/posix-functions/tanf.texi: Mention the new module.
2077
2078         tan: Use a .m4 file.
2079         * m4/tan.m4: New file.
2080         * modules/tan (Files): Add it.
2081         (configure.ac): Just invoke gl_FUNC_TAN.
2082
2083 2011-10-08  Bruno Haible  <bruno@clisp.org>
2084
2085         Tests for module 'cosf'.
2086         * modules/cosf-tests: New file.
2087         * tests/test-cosf.c: New file.
2088
2089         New module 'cosf'.
2090         * lib/math.in.h (cosf): New declaration.
2091         * lib/cosf.c: New file.
2092         * m4/cosf.m4: New file.
2093         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
2094         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
2095         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
2096         * modules/cosf: New file.
2097         * tests/test-math-c++.cc: Check the declaration of cosf.
2098         * doc/posix-functions/cosf.texi: Mention the new module.
2099
2100         cos: Use a .m4 file.
2101         * m4/cos.m4: New file.
2102         * modules/cos (Files): Add it.
2103         (configure.ac): Just invoke gl_FUNC_COS.
2104
2105 2011-10-08  Bruno Haible  <bruno@clisp.org>
2106
2107         Tests for module 'sinf'.
2108         * modules/sinf-tests: New file.
2109         * tests/test-sinf.c: New file.
2110
2111         New module 'sinf'.
2112         * lib/math.in.h (sinf): New declaration.
2113         * lib/sinf.c: New file.
2114         * m4/sinf.m4: New file.
2115         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
2116         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
2117         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
2118         * modules/sinf: New file.
2119         * tests/test-math-c++.cc: Check the declaration of sinf.
2120         * doc/posix-functions/sinf.texi: Mention the new module.
2121
2122         sin: Use a .m4 file.
2123         * m4/sin.m4: New file.
2124         * modules/sin (Files): Add it.
2125         (configure.ac): Just invoke gl_FUNC_SIN.
2126
2127 2011-10-08  Bruno Haible  <bruno@clisp.org>
2128
2129         Tests for module 'powf'.
2130         * modules/powf-tests: New file.
2131         * tests/test-powf.c: New file.
2132
2133         New module 'powf'.
2134         * lib/math.in.h (powf): New declaration.
2135         * lib/powf.c: New file.
2136         * m4/powf.m4: New file.
2137         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
2138         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
2139         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
2140         * modules/powf: New file.
2141         * tests/test-math-c++.cc: Check the declaration of powf.
2142         * doc/posix-functions/powf.texi: Mention the new module.
2143
2144         pow: Use a .m4 file.
2145         * m4/pow.m4: New file.
2146         * modules/pow (Files): Add it.
2147         (configure.ac): Just invoke gl_FUNC_POW.
2148
2149 2011-10-08  Bruno Haible  <bruno@clisp.org>
2150
2151         Tests for module 'log10f'.
2152         * modules/log10f-tests: New file.
2153         * tests/test-log10f.c: New file.
2154
2155         New module 'log10f'.
2156         * lib/math.in.h (log10f): New declaration.
2157         * lib/log10f.c: New file.
2158         * m4/log10f.m4: New file.
2159         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
2160         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
2161         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
2162         * modules/log10f: New file.
2163         * tests/test-math-c++.cc: Check the declaration of log10f.
2164         * doc/posix-functions/log10f.texi: Mention the new module.
2165
2166         log10: Use a .m4 file.
2167         * m4/log10.m4: New file.
2168         * modules/log10 (Files): Add it.
2169         (configure.ac): Just invoke gl_FUNC_LOG10.
2170
2171 2011-10-08  Bruno Haible  <bruno@clisp.org>
2172
2173         Tests for module 'logf'.
2174         * modules/logf-tests: New file.
2175         * tests/test-logf.c: New file.
2176
2177         New module 'logf'.
2178         * lib/math.in.h (logf): New declaration.
2179         * lib/logf.c: New file.
2180         * m4/logf.m4: New file.
2181         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
2182         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
2183         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
2184         * modules/logf: New file.
2185         * tests/test-math-c++.cc: Check the declaration of logf.
2186         * doc/posix-functions/logf.texi: Mention the new module.
2187
2188         log: Use a .m4 file.
2189         * m4/log.m4: New file.
2190         * modules/log (Files): Add it.
2191         (configure.ac): Just invoke gl_FUNC_LOG.
2192
2193 2011-10-08  Bruno Haible  <bruno@clisp.org>
2194
2195         Tests for module 'expf'.
2196         * modules/expf-tests: New file.
2197         * tests/test-expf.c: New file.
2198
2199         New module 'expf'.
2200         * lib/math.in.h (expf): New declaration.
2201         * lib/expf.c: New file.
2202         * m4/expf.m4: New file.
2203         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
2204         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
2205         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
2206         * modules/expf: New file.
2207         * tests/test-math-c++.cc: Check the declaration of expf.
2208         * doc/posix-functions/expf.texi: Mention the new module.
2209
2210         exp: Use a .m4 file.
2211         * m4/exp.m4: New file.
2212         * modules/exp (Files): Add it.
2213         (configure.ac): Just invoke gl_FUNC_EXP.
2214
2215 2011-10-08  Bruno Haible  <bruno@clisp.org>
2216
2217         Tests for module 'sqrtf'.
2218         * modules/sqrtf-tests: New file.
2219         * tests/test-sqrtf.c: New file.
2220
2221         New module 'sqrtf'.
2222         * lib/math.in.h (sqrtf): New declaration.
2223         * lib/sqrtf.c: New file.
2224         * m4/sqrtf.m4: New file.
2225         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
2226         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
2227         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
2228         * modules/sqrtf: New file.
2229         * tests/test-math-c++.cc: Check the declaration of sqrtf.
2230         * doc/posix-functions/sqrtf.texi: Mention the new module.
2231
2232 2011-10-08  Bruno Haible  <bruno@clisp.org>
2233
2234         Tests: Avoid link failures w.r.t. libintl.
2235         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
2236         $(LIBINTL).
2237         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
2238         $(LIBINTL).
2239         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
2240         against $(LIBINTL).
2241         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
2242         $(LIBINTL).
2243         * modules/openat-tests (Makefile.am): Link test-fchmodat against
2244         $(LIBINTL).
2245         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
2246
2247 2011-10-08  Bruno Haible  <bruno@clisp.org>
2248
2249         pow tests: Defeat compiler optimizations.
2250         * tests/test-pow.c (main): Assign arguments to x and y before use.
2251
2252 2011-10-08  Bruno Haible  <bruno@clisp.org>
2253
2254         gnulib-tool: Improve last commit.
2255         * gnulib-tool (func_modules_transitive_closure): Simplify code.
2256         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
2257         ignore dependencies that are not among the modules list.
2258
2259 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
2260
2261         gnulib-tool: don't follow dependencies to avoided modules
2262         This fixes a bug that is related to the previous one.
2263         * gnulib-tool (func_modules_transitive_closure)
2264         (func_emit_autoconf_snippets):
2265         Check whether a dependency is acceptable before using it.
2266         (--extract-dependencies): Report an error if --avoid is also used,
2267         since this combination of options is not yet supported.
2268
2269         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
2270         Problem reported by Peter Dyballa in
2271         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
2272         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
2273         when echoing "$condition".
2274
2275 2011-10-07  Bruno Haible  <bruno@clisp.org>
2276
2277         Fix documentation about math functions on MacOS X.
2278         * doc/posix-functions/exp2.texi: Don't say the function is missing on
2279         MacOS X 10.5.
2280         * doc/posix-functions/fdim.texi: Likewise.
2281         * doc/posix-functions/feclearexcept.texi: Likewise.
2282         * doc/posix-functions/fegetenv.texi: Likewise.
2283         * doc/posix-functions/fegetround.texi: Likewise.
2284         * doc/posix-functions/feholdexcept.texi: Likewise.
2285         * doc/posix-functions/feraiseexcept.texi: Likewise.
2286         * doc/posix-functions/fesetenv.texi: Likewise.
2287         * doc/posix-functions/fesetround.texi: Likewise.
2288         * doc/posix-functions/fetestexcept.texi: Likewise.
2289         * doc/posix-functions/feupdateenv.texi: Likewise.
2290         * doc/posix-functions/fmax.texi: Likewise.
2291         * doc/posix-functions/fmin.texi: Likewise.
2292         * doc/posix-functions/log2.texi: Likewise.
2293         * doc/posix-functions/modff.texi: Likewise.
2294         * doc/posix-functions/nan.texi: Likewise.
2295         * doc/posix-functions/nanf.texi: Likewise.
2296         * doc/posix-functions/nextafterf.texi: Likewise.
2297         * doc/posix-functions/remquo.texi: Likewise.
2298
2299 2011-10-07  Bruno Haible  <bruno@clisp.org>
2300
2301         modff: Drop assumption about library that defines modff.
2302         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
2303         AC_CHECK_FUNCS.
2304         * modules/modff (Files): Add m4/mathfunc.m4.
2305
2306 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
2307
2308         raise tests: Avoid a GCC warning.
2309         * tests/test-raise.c (handler): Use _Noreturn.
2310
2311 2011-10-07  Bruno Haible  <bruno@clisp.org>
2312
2313         Tests for module 'ldexpf'.
2314         * modules/ldexpf-tests: New file.
2315         * tests/test-ldexpf.c: New file.
2316
2317         New module 'ldexpf'.
2318         * lib/math.in.h (ldexpf): New declaration.
2319         * lib/ldexpf.c: New file.
2320         * m4/ldexpf.m4: New file.
2321         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
2322         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
2323         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
2324         * modules/ldexpf: New file.
2325         * tests/test-math-c++.cc: Check the declaration of ldexpf.
2326         * doc/posix-functions/ldexpf.texi: Mention the new module.
2327
2328 2011-10-06  Bruno Haible  <bruno@clisp.org>
2329
2330         frexpf: Work around problems on IRIX and mingw.
2331         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
2332         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
2333         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
2334         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
2335         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
2336         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
2337         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
2338
2339 2011-10-06  Bruno Haible  <bruno@clisp.org>
2340
2341         fabsf: Drop assumption about library that defines fabsf.
2342         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
2343         AC_CHECK_FUNCS.
2344         * modules/fabsf (Files): Add m4/mathfunc.m4.
2345
2346 2011-10-06  Bruno Haible  <bruno@clisp.org>
2347
2348         frexpf: Drop assumption about library that defines frexpf.
2349         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
2350         'int *', 'float *', 'long double *', 'float', 'long double'.
2351         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
2352         AC_CHECK_FUNCS.
2353         * modules/frexpf (Files): Add m4/mathfunc.m4.
2354
2355         Tests for module 'frexpf'.
2356         * modules/frexpf-tests: New file.
2357         * tests/test-frexpf.c: New file.
2358
2359         New module 'frexpf'.
2360         * lib/math.in.h (frexpf): New declaration.
2361         * lib/frexpf.c: New file.
2362         * m4/frexpf.m4: New file.
2363         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
2364         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
2365         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
2366         * modules/frexpf: New file.
2367         * tests/test-math-c++.cc: Check the declaration of frexpf.
2368         * doc/posix-functions/frexpf.texi: Mention the new module.
2369
2370 2011-10-06  Bruno Haible  <bruno@clisp.org>
2371
2372         math: Sort function declarations of math.in.h.
2373         * lib/math.in.h (frexp, logb): Move declarations.
2374
2375 2011-10-05  Bruno Haible  <bruno@clisp.org>
2376
2377         Tests for module 'modff'.
2378         * modules/modff-tests: New file.
2379         * tests/test-modff.c: New file.
2380
2381         New module 'modff'.
2382         * lib/math.in.h (modff): New declaration.
2383         * lib/modff.c: New file.
2384         * m4/modff.m4: New file.
2385         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
2386         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
2387         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
2388         * modules/modff: New file.
2389         * tests/test-math-c++.cc: Check the declaration of modff.
2390         * doc/posix-functions/modff.texi: Mention the new module.
2391
2392         modf tests: Make test sharper.
2393         * tests/test-modf.c (main): Strengthen upper bound.
2394
2395         modf: Use a .m4 file.
2396         * m4/modf.m4: New file.
2397         * modules/modf (Files): Add it.
2398         (configure.ac): Just invoke gl_FUNC_MODF.
2399
2400 2011-10-05  Bruno Haible  <bruno@clisp.org>
2401
2402         Tests for module 'fmodf'.
2403         * modules/fmodf-tests: New file.
2404         * tests/test-fmodf.c: New file.
2405
2406         New module 'fmodf'.
2407         * lib/math.in.h (fmodf): New declaration.
2408         * lib/fmodf.c: New file.
2409         * m4/fmodf.m4: New file.
2410         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
2411         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
2412         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
2413         * modules/fmodf: New file.
2414         * tests/test-math-c++.cc: Check the declaration of fmodf.
2415         * doc/posix-functions/fmodf.texi: Mention the new module.
2416
2417         fmod: Use a .m4 file.
2418         * m4/fmod.m4: New file.
2419         * modules/fmod (Files): Add it.
2420         (configure.ac): Just invoke gl_FUNC_FMOD.
2421
2422 2011-10-05  Bruno Haible  <bruno@clisp.org>
2423
2424         Tests for module 'fabsf'.
2425         * modules/fabsf-tests: New file.
2426         * tests/test-fabsf.c: New file.
2427
2428         New module 'fabsf'.
2429         * lib/math.in.h (fabsf): New declaration.
2430         * lib/fabsf.c: New file.
2431         * m4/fabsf.m4: New file.
2432         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
2433         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
2434         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
2435         * modules/fabsf: New file.
2436         * tests/test-math-c++.cc: Check the declaration of fabsf.
2437         * doc/posix-functions/fabsf.texi: Mention the new module.
2438
2439         fabs: Use a .m4 file.
2440         * m4/fabs.m4: New file.
2441         * modules/fabs (Files): Add it.
2442         (configure.ac): Just invoke gl_FUNC_FABS.
2443
2444 2011-10-05  Jim Meyering  <meyering@redhat.com>
2445
2446         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
2447         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
2448         ls -lL regression introduced in coreutils-8.12, it does so at the
2449         cost of an additional stat call in the common case.  Besides, now
2450         that the kernel change that prompted commit 95f7c57f has been reverted
2451         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
2452         we have no use for commit 95f7c57f, "file-has-acl: use
2453         acl_extended_file_nofollow if available".
2454
2455 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
2456
2457         file-has-acl: revert unintended change in behavior of ls -L
2458         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
2459         derived from...
2460         (file_has_acl): ...code here.  Call it.
2461         This problem was introduced with 2011-07-22 commit 95f7c57f,
2462         "file-has-acl: use acl_extended_file_nofollow if available".
2463         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
2464
2465 2011-10-03  Bruno Haible  <bruno@clisp.org>
2466
2467         poll: Avoid link errors on MSVC.
2468         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
2469         * modules/poll (Depends-on): Add sockets.
2470         (Link): New section.
2471         * NEWS: Mention the change.
2472         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
2473         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
2474         $(LIB_POLL) instead of $(LIBSOCKET).
2475
2476 2011-10-03  Bruno Haible  <bruno@clisp.org>
2477
2478         sys_select tests: Fix link error on MSVC 9.
2479         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
2480         with $(LIB_SELECT) instead of $(LIBSOCKET).
2481
2482 2011-10-03  Bruno Haible  <bruno@clisp.org>
2483
2484         sys_select: Fix compilation error on mingw.
2485         * lib/sys_select.in.h: On native Windows, include <io.h>.
2486
2487 2011-10-03  Bruno Haible  <bruno@clisp.org>
2488
2489         wmemset: Support for MSVC.
2490         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
2491         whether wmemset() exists.
2492
2493 2011-10-03  Bruno Haible  <bruno@clisp.org>
2494
2495         wmemmove: Support for MSVC.
2496         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
2497         whether wmemmove() exists.
2498
2499 2011-10-03  Bruno Haible  <bruno@clisp.org>
2500
2501         wmemcpy: Support for MSVC.
2502         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
2503         whether wmemcpy() exists.
2504
2505 2011-10-03  Bruno Haible  <bruno@clisp.org>
2506
2507         wmemcmp: Support for MSVC.
2508         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
2509         whether wmemcmp() exists.
2510
2511 2011-10-03  Bruno Haible  <bruno@clisp.org>
2512
2513         wmemchr: Support for MSVC.
2514         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
2515         whether wmemchr() exists.
2516
2517 2011-10-03  Bruno Haible  <bruno@clisp.org>
2518
2519         glthread/*, strsignal: Support for MSVC.
2520         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
2521         including <winsock.h> on MSVC 9.
2522         * lib/glthread/lock.h: Likewise.
2523         * lib/glthread/thread.h: Likewise.
2524         * lib/glthread/tls.h: Likewise.
2525         * lib/glthread/yield.h: Likewise.
2526         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
2527         if HAVE_UNISTD_H is false.
2528         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
2529
2530 2011-10-03  Bruno Haible  <bruno@clisp.org>
2531
2532         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
2533         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
2534         Set to 100000.
2535
2536 2011-10-03  Bruno Haible  <bruno@clisp.org>
2537
2538         acl: Fix specification.
2539         * lib/file-has-acl.c (file_has_acl): Fix specification.
2540
2541 2011-10-03  Bruno Haible  <bruno@clisp.org>
2542
2543         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
2544         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
2545         (compute_curr_prefix, shared_library_fullname,
2546         find_shared_library_fullname, get_shared_library_fullname, relocate):
2547         Use it together with PIC && INSTALLDIR.
2548         Reported by <jojelino@gmail.com>
2549         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
2550
2551 2011-10-01  Jim Meyering  <meyering@redhat.com>
2552
2553         maint.mk: adjust a release-related rule not to require use of gzip
2554         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
2555         Instead, check each file in $(DIST_ARCHIVES).  This is better for
2556         projects that build only .tar.xz files.  Also fix an erroneous test.
2557
2558         test-linkat: don't leave behind a temporary file
2559         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
2560         Otherwise, coreutils' "make distcheck" would fail with this:
2561           Only in /c/cu/tests/torture/coreutils/test/\
2562             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
2563           make[2]: *** [my-distcheck] Error 1
2564
2565         float, math: add omitted file
2566         * lib/itold.c: Add file, required for yesterday's float change.
2567
2568 2011-10-01  Bruno Haible  <bruno@clisp.org>
2569
2570         isinf: Fix for OpenBSD/x86.
2571         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
2572         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
2573         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
2574
2575 2011-10-01  Bruno Haible  <bruno@clisp.org>
2576
2577         isfinite: Fix syntax error in configure test.
2578         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
2579
2580         isfinite: Fix typo.
2581         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
2582         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
2583
2584 2011-10-01  Bruno Haible  <bruno@clisp.org>
2585
2586         nonblocking tests: Fix test failure on Linux/IA-64.
2587         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
2588         Set to 270000.
2589
2590 2011-10-01  Bruno Haible  <bruno@clisp.org>
2591
2592         mkfifoat tests: Fix a test failure on mingw.
2593         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
2594         with error ENOSYS.
2595
2596 2011-09-30  Bruno Haible  <bruno@clisp.org>
2597
2598         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
2599         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
2600         'long double'. Set REPLACE_ITOLD.
2601         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
2602         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
2603         * lib/itold.c: New file.
2604         * modules/float (Files): Add lib/itold.c.
2605         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
2606         (Makefile.am): Substitute REPLACE_ITOLD.
2607         * modules/math (Depends-on): Add float.
2608         (Makefile.am): Substitute REPLACE_ITOLD.
2609         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
2610         * doc/posix-headers/math.texi: Likewise.
2611         * doc/posix-functions/logl.texi: Likewise.
2612
2613 2011-09-30  Bruno Haible  <bruno@clisp.org>
2614
2615         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
2616         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
2617         Set to 140000.
2618
2619 2011-09-30  Bruno Haible  <bruno@clisp.org>
2620
2621         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
2622         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
2623         invocation, say "right after AC_PROG_CC_STDC", not "right after
2624         AC_PROG_CC".
2625         Reported by Gary V. Vaughan <gary@gnu.org>.
2626
2627 2011-09-30  Bruno Haible  <bruno@clisp.org>
2628
2629         Centralize C99 requirement.
2630         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
2631         * modules/stdarg (configure.ac-early): Invoke it instead of
2632         AC_PROG_CC_STDC.
2633         Reported by Gary V. Vaughan and Paul Eggert.
2634
2635 2011-09-29  Bruno Haible  <bruno@clisp.org>
2636
2637         float: Fix LDBL_MAX value on Linux/PowerPC.
2638         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
2639         on Linux/PowerPC.
2640         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
2641         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
2642         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
2643         platform.
2644         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
2645
2646 2011-09-29  Bruno Haible  <bruno@clisp.org>
2647
2648         doc: Improve doc about gl_EARLY.
2649         * doc/gnulib-tool.texi (Initial import): Mention where to place an
2650         AC_PROG_CC_STDC invocation.
2651         Reported by Gary V. Vaughan <gary@gnu.org>.
2652
2653 2011-09-28  Bruno Haible  <bruno@clisp.org>
2654
2655         fgetc, fputc, fread, fwrite tests: Fix link error.
2656         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
2657         on non-MSVC platforms.
2658         * tests/test-fputc.c (main): Likewise.
2659         * tests/test-fread.c (main): Likewise.
2660         * tests/test-fwrite.c (main): Likewise.
2661         Reported by Jim Meyering.
2662
2663 2011-09-27  Bruno Haible  <bruno@clisp.org>
2664
2665         fputc, fwrite tests: Avoid test failure on MSVC.
2666         * tests/test-fgetc.c: Include msvc-inval.h.
2667         (main): Invoke gl_msvc_inval_ensure_handler.
2668         * tests/test-fputc.c: Include msvc-inval.h.
2669         (main): Invoke gl_msvc_inval_ensure_handler.
2670         * tests/test-fread.c: Include msvc-inval.h.
2671         (main): Invoke gl_msvc_inval_ensure_handler.
2672         * tests/test-fwrite.c: Include msvc-inval.h.
2673         (main): Invoke gl_msvc_inval_ensure_handler.
2674         * modules/fgetc-tests (Depends-on): Add msvc-inval.
2675         * modules/fputc-tests (Depends-on): Likewise.
2676         * modules/fread-tests (Depends-on): Likewise.
2677         * modules/fwrite-tests (Depends-on): Likewise.
2678
2679 2011-09-27  Bruno Haible  <bruno@clisp.org>
2680
2681         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
2682         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
2683         (raise): Remove older, duplicated declaration.
2684         (_gl_raise_SIGPIPE): New declaration.
2685         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
2686         (rpl_raise): Remove function.
2687         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
2688         a gnulib-defined SIGPIPE here.
2689         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
2690         'sigprocmask' has detected missing signal-blocking and the module
2691         'sigpipe' is enabled.
2692         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
2693
2694 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
2695
2696         base64-tests: avoid memory leak
2697         * tests/test-base64.c (main): Plug memory leak.
2698
2699         base32: new module
2700         * modules/base32: New module.
2701         * lib/base32.c: New file.
2702         * lib/base32.h: Likewise.
2703         * m4/base32.m4: Likewise.
2704         * modules/base32-tests: New test.
2705         * tests/test-base32.c: Likewise.
2706         * MODULES.html.sh (Misc): Mention it.
2707
2708 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
2709
2710         gnulib: use more-standard license notice wording
2711         * gnulib-tool (func_emit_copyright_notice): When emitting a
2712         license notice into a file, use the standard wording as suggested
2713         by the current information for GNU maintainers, except say "file"
2714         rather than "program".  The new wording gives a license version
2715         number, which addresses an issue raised by Glenn Morris in
2716         <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
2717         * m4/onceonly.m4: Use that same wording here, too.
2718
2719         dup2: minor simplification
2720         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
2721         as lib/dup2.c no longer uses 'inline'.
2722
2723 2011-09-25  Bruno Haible  <bruno@clisp.org>
2724
2725         strings: Fix compilation error on MSVC.
2726         * lib/strings.in.h: Include <stddef.h> for size_t.
2727
2728 2011-09-25  Bruno Haible  <bruno@clisp.org>
2729
2730         fflush et al.: Document limitation on MSVC.
2731         * doc/posix-functions/fflush.texi: Document possible crash in handling
2732         mode other than DEFAULT_HANDLING.
2733         * doc/posix-functions/fgetc.texi: Likewise.
2734         * doc/posix-functions/fputc.texi: Likewise.
2735         * doc/posix-functions/fread.texi: Likewise.
2736         * doc/posix-functions/fwrite.texi: Likewise.
2737
2738 2011-09-25  Bruno Haible  <bruno@clisp.org>
2739
2740         msvc-inval: Allow three invalid parameter handling modes.
2741         * lib/msvc-inval.h: Don't include <stdlib.h> here.
2742         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
2743         macros.
2744         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
2745         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
2746         SANE_LIBRARY_HANDLING as a no-op.
2747         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
2748         <stdlib.h>.
2749         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
2750
2751 2011-09-25  Bruno Haible  <bruno@clisp.org>
2752
2753         msvc-inval: Make handler multithread-safe.
2754         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
2755         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
2756         declarations.
2757         (gl_msvc_inval_current): New declaration.
2758         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
2759         Operate on the structure returned by gl_msvc_inval_current().
2760         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
2761         Remove varaiables.
2762         (tls_index, tls_initialized): New variables.
2763         (not_per_thread): New variable.
2764         (gl_msvc_inval_current): New function.
2765         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
2766         returned by gl_msvc_inval_current().
2767
2768 2011-09-25  Bruno Haible  <bruno@clisp.org>
2769
2770         msvc-inval: Install handler globally.
2771         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
2772         !_MSC_VER.
2773         (gl_msvc_invalid_parameter_handler): Remove declaration.
2774         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
2775         declarations.
2776         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
2777         Install the handler globally, don't uninstall it.
2778         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
2779         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
2780         currently valid, call RaiseException instead.
2781         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
2782         for !_MSC_VER.
2783
2784 2011-09-25  Bruno Haible  <bruno@clisp.org>
2785
2786         strerror_r-posix: Fix for MSVC 9.
2787         * lib/strerror_r.c (local_snprintf): New function.
2788         (snprintf): Define to local_snprintf, not to _snprintf.
2789
2790 2011-09-25  Bruno Haible  <bruno@clisp.org>
2791
2792         ftruncate: Support for MSVC 9.
2793         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
2794         (chsize_nothrow): New function.
2795         (chsize): Redefine as a macro.
2796         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
2797         * modules/ftruncate (Depends-on): Add msvc-inval.
2798
2799 2011-09-25  Bruno Haible  <bruno@clisp.org>
2800
2801         New module 'fstat'.
2802         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
2803         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
2804         * lib/fchdir.c (rpl_fstat): Remove function.
2805         * m4/fstat.m4: New file.
2806         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
2807         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
2808         declared.
2809         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
2810         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
2811         * modules/fstat: New file.
2812         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
2813         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
2814         is set.
2815         * doc/posix-functions/fstat.texi: Mention the new module and the
2816         problem on MSVC.
2817         * NEWS: Mention the change.
2818         * modules/acl (Depends-on): Add fstat.
2819         * modules/chdir-safer (Depends-on): Likewise.
2820         * modules/chown (Depends-on): Likewise.
2821         * modules/copy-file (Depends-on): Likewise.
2822         * modules/fchdir (Depends-on): Likewise.
2823         * modules/fdopendir (Depends-on): Likewise.
2824         * modules/fopen (Depends-on): Likewise.
2825         * modules/fts (Depends-on): Likewise.
2826         * modules/getcwd (Depends-on): Likewise.
2827         * modules/isapipe (Depends-on): Likewise.
2828         * modules/linkat (Depends-on): Likewise.
2829         * modules/lseek (Depends-on): Likewise.
2830         * modules/mkdir-p (Depends-on): Likewise.
2831         * modules/open (Depends-on): Likewise.
2832         * modules/openat (Depends-on): Likewise.
2833         * modules/read-file (Depends-on): Likewise.
2834         * modules/renameat (Depends-on): Likewise.
2835         * modules/utimens (Depends-on): Likewise.
2836
2837 2011-09-25  Bruno Haible  <bruno@clisp.org>
2838
2839         linkat: Fix compilation on MSVC 9.
2840         * lib/linkat.c: Don't include <stdint.h>.
2841
2842 2011-09-25  Bruno Haible  <bruno@clisp.org>
2843
2844         fclose: Support for MSVC 9.
2845         * lib/fclose.c: Include msvc-inval.h.
2846         (fclose_nothrow): New function.
2847         (rpl_fclose): Use it.
2848         * modules/fclose (Depends-on): Add msvc-inval.
2849         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
2850
2851 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
2852
2853         dup2: minor simplifications
2854         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
2855         that it's a performance win.
2856         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
2857         ! defined __CYGWIN__)" to "ifdef F_GETFL".
2858
2859 2011-09-24  Jim Meyering  <meyering@redhat.com>
2860
2861         test-futimens: avoid a warning from gcc -Wshadow
2862         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
2863         to avoid a shadowing warning.
2864
2865 2011-09-24  Bruno Haible  <bruno@clisp.org>
2866
2867         fdopen: Support for MSVC 9.
2868         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
2869         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
2870         * lib/fdopen.c: Include msvc-inval.h.
2871         (fdopen_nothrow): New function.
2872         (rpl_fdopen): Use it.
2873         * modules/fdopen (Depends-on): Add msvc-inval.
2874         * modules/fclose-tests (Depends-on): Add fdopen.
2875         * modules/fflush-tests (Depends-on): Likewise.
2876         * modules/fgetc-tests (Depends-on): Likewise.
2877         * modules/fputc-tests (Depends-on): Likewise.
2878         * modules/fread-tests (Depends-on): Likewise.
2879         * modules/freopen-tests (Depends-on): Likewise.
2880         * modules/fseeko-tests (Depends-on): Likewise.
2881         * modules/ftello-tests (Depends-on): Likewise.
2882         * modules/fwrite-tests  (Depends-on): Likewise.
2883         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
2884
2885 2011-09-24  Bruno Haible  <bruno@clisp.org>
2886
2887         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
2888         * modules/fgetc-tests (Depends-on): Add unistd.
2889         * modules/fputc-tests (Depends-on): Likewise.
2890         * modules/fread-tests (Depends-on): Likewise.
2891         * modules/fwrite-tests (Depends-on): Likewise.
2892
2893 2011-09-24  Bruno Haible  <bruno@clisp.org>
2894
2895         dup: Simplify autoconf test.
2896         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
2897         on gl_MSVC_INVAL's result.
2898
2899 2011-09-24  Bruno Haible  <bruno@clisp.org>
2900
2901         Tests for function fwrite().
2902         * modules/fwrite-tests: New file.
2903         * tests/test-fwrite.c: New file.
2904         * modules/stdio-tests (Depends-on): Add fwrite-tests.
2905
2906         Tests for function fread().
2907         * modules/fread-tests: New file.
2908         * tests/test-fread.c: New file.
2909         * modules/stdio-tests (Depends-on): Add fread-tests.
2910
2911         Activate fputc tests.
2912         * modules/stdio-tests (Depends-on): Add fputc-tests.
2913
2914         Enhance fgetc, fputc tests.
2915         * tests/test-fgetc.c (main): Also test the stream's error indicator.
2916         * tests/test-fputc.c (main): Likewise.
2917
2918 2011-09-24  Bruno Haible  <bruno@clisp.org>
2919
2920         write: Support for MSVC 9.
2921         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
2922         is not 1.
2923         * lib/write.c (write_nothrow): New function.
2924         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
2925         not 1. Use write_nothrow.
2926         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
2927         invalid parameter handler.
2928         (gl_PREREQ_WRITE): New macro.
2929         * modules/write (Depends-on): Add msvc-inval.
2930         (configure.ac): Invoke gl_PREREQ_WRITE.
2931         * doc/posix-functions/write.texi: Mention the problem on MSVC.
2932
2933 2011-09-24  Bruno Haible  <bruno@clisp.org>
2934
2935         read: Fix last commit.
2936         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
2937
2938 2011-09-24  Bruno Haible  <bruno@clisp.org>
2939
2940         dup2: Fix last commit.
2941         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
2942         (rpl_dup2): Disable fcntl workaround on native Windows.
2943
2944         sigprocmask: Make code safer.
2945         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
2946         section that changes macro definitions for this compilation unit.
2947
2948 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
2949
2950         dup2: clarify by coalescing Windows-specific material
2951         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
2952         "msvc-nothrow.h"' to the Windows-specific section, so that the
2953         Emacs source need not contain these include files.
2954         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
2955         Windows-specific fixes into this function rather than just the
2956         nothrow fix, as this shortens and clarifies the code.  Always
2957         define as a function, as that's a bit cleaner than having it be
2958         sometimes a function and sometimes a macro.
2959         (rpl_dup2): Move the Windows-specific stuff out of here and into
2960         ms_windows_dup2.  Don't protect the Haiku-related fix with
2961         "#if !defined __linux__", as the same code also works around
2962         a Linux kernel bug, and it doesn't add any system calls on any
2963         platform.  Add comment about FreeBSD 6.1.
2964
2965         sigprocmask: move #include directive
2966         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
2967         Windows-specific section, so that the Emacs source need not
2968         contain msvc-inval.h.
2969
2970 2011-09-23  Bruno Haible  <bruno@clisp.org>
2971
2972         read: Support for MSVC 9.
2973         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
2974         is not 1.
2975         * lib/read.c (read_nothrow): New function.
2976         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
2977         read_nothrow.
2978         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
2979         invalid parameter handler.
2980         (gl_PREREQ_READ): New macro.
2981         * modules/read (Depends-on): Add msvc-inval.
2982         (configure.ac): Invoke gl_PREREQ_READ.
2983         * doc/posix-functions/read.texi: Mention the problem on MSVC.
2984
2985 2011-09-23  Bruno Haible  <bruno@clisp.org>
2986
2987         close: Support for MSVC 9.
2988         * lib/close.c: Include <errno.h>, msvc-inval.h.
2989         (close_nothrow): New function.
2990         (rpl_close): Use it.
2991         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
2992         invalid parameter handler.
2993         * modules/close (Depends-on): Add msvc-inval.
2994         * modules/dup2-tests (Depends-on): Add close.
2995         * modules/dup3-tests (Depends-on): Likewise.
2996         * modules/fcntl-tests (Depends-on): Likewise.
2997         * modules/spawn-pipe-tests (Depends-on): Likewise.
2998         * modules/unistd-safer-tests (Depends-on): Likewise.
2999         * doc/posix-functions/close.texi: Mention the problem on MSVC.
3000
3001 2011-09-23  Bruno Haible  <bruno@clisp.org>
3002
3003         New module 'dup'.
3004         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
3005         Allow replacement.
3006         * lib/dup.c: New file.
3007         * lib/fchdir.c (rpl_dup): Remove function.
3008         * m4/dup.m4: New file.
3009         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
3010         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
3011         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
3012         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
3013         * modules/dup: New file.
3014         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
3015         'dup' module is in use.
3016         * modules/fdopendir (Depends-on): Add dup.
3017         * modules/fdutimensat-tests (Depends-on): Likewise.
3018         * modules/fts (Depends-on): Likewise.
3019         * modules/futimens-tests (Depends-on): Likewise.
3020         * modules/posix_spawnp-tests (Depends-on): Likewise.
3021         * modules/unistd-safer-tests (Depends-on): Likewise.
3022         * modules/utimens-tests (Depends-on): Likewise.
3023         * doc/posix-functions/dup.texi: Mention the new module and the problem
3024         on MSVC.
3025
3026 2011-09-23  Bruno Haible  <bruno@clisp.org>
3027
3028         getdtablesize: Support for MSVC 9.
3029         * lib/getdtablesize.c: Include msvc-inval.h.
3030         (_setmaxstdio_nothrow): New function.
3031         (_setmaxstdio): Redefine it.
3032         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
3033         * modules/getdtablesize (Depends-on): Add msvc-inval.
3034         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
3035
3036 2011-09-23  Bruno Haible  <bruno@clisp.org>
3037
3038         signal-h: Rename from signal.
3039         * modules/signal-h: Renamed from modules/signal.
3040         * modules/pthread_sigmask (Depends-on): Update.
3041         * modules/raise (Depends-on): Likewise.
3042         * modules/sigaction (Depends-on): Likewise.
3043         * modules/sigpipe (Depends-on): Likewise.
3044         * modules/sigprocmask (Depends-on): Likewise.
3045         * modules/sys_select (Depends-on): Likewise.
3046         * modules/signal-h-tests: Renamed from modules/signal-tests.
3047         (Files, Depends-on, Makefile.am): Update.
3048         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
3049         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
3050         (Files, Makefile.am): Update.
3051         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
3052         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
3053         * modules/signal: New placeholder file.
3054         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
3055         * doc/posix-headers/signal.texi: Update.
3056         * NEWS: Mention the change.
3057
3058 2011-09-23  Bruno Haible  <bruno@clisp.org>
3059
3060         sigprocmask: Avoid crashes through signal() on MSVC 9.
3061         * lib/sigprocmask.c: Include msvc-inval.h.
3062         (signal_nothrow): New function.
3063         (signal): Redefine it.
3064         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
3065         * modules/sigprocmask (Depends-on): Add msvc-inval.
3066         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
3067
3068 2011-09-23  Bruno Haible  <bruno@clisp.org>
3069
3070         Tests for module 'raise'.
3071         * modules/raise-tests: New file.
3072         * tests/test-raise.c: New file.
3073
3074         raise: Support for MSVC.
3075         * lib/signal.in.h (raise): New declaration.
3076         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
3077         for native Windows platforms.
3078         * m4/raise.m4: New file.
3079         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
3080         HAVE_RAISE, REPLACE_RAISE.
3081         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
3082         REPLACE_RAISE.
3083         * modules/raise (Status, Notice): Remove fields.
3084         (Files): Add m4/raise.m4.
3085         (Depends-on): Add signal, msvc-inval.
3086         (configure.ac): Use the common idioms.
3087         (Maintainer): Add me.
3088         * tests/test-signal-c++.cc: Check the signature of raise.
3089         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
3090
3091 2011-09-23  Bruno Haible  <bruno@clisp.org>
3092
3093         pipe2: Fix compilation on pre-C99 compilers.
3094         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
3095
3096 2011-09-23  Bruno Haible  <bruno@clisp.org>
3097
3098         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
3099         * lib/msvc-nothrow.h: New file.
3100         * lib/msvc-nothrow.c: New file.
3101         * m4/msvc-nothrow.m4: New file.
3102         * modules/msvc-nothrow: New file.
3103         * lib/dup2.c: Include msvc-nothrow.h.
3104         (rpl_dup2): No need to protect _get_osfhandle call here.
3105         * lib/accept4.c: Include msvc-nothrow.h.
3106         * lib/error.c: Likewise.
3107         * lib/fcntl.c: Likewise.
3108         * lib/lseek.c: Likewise.
3109         * lib/nonblocking.c: Likewise.
3110         * lib/poll.c: Likewise.
3111         * lib/read.c: Likewise.
3112         * lib/select.c: Likewise.
3113         * lib/sockets.h: Likewise.
3114         * lib/sockets.c: Likewise.
3115         * lib/stdio-read.c: Likewise.
3116         * lib/stdio-write.c: Likewise.
3117         * lib/write.c: Likewise.
3118         * lib/w32sock.h: Likewise.
3119         * lib/w32spawn.h: Likewise.
3120         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
3121         * lib/fsync.c: Likewise.
3122         * lib/isapipe.c: Likewise.
3123         * modules/dup2 (Depends-on): Add msvc-nothrow.
3124         * modules/accept4 (Depends-on): Likewise.
3125         * modules/error (Depends-on): Likewise.
3126         * modules/fcntl (Depends-on): Likewise.
3127         * modules/lseek (Depends-on): Likewise.
3128         * modules/nonblocking (Depends-on): Likewise.
3129         * modules/poll (Depends-on): Likewise.
3130         * modules/read (Depends-on): Likewise.
3131         * modules/select (Depends-on): Likewise.
3132         * modules/sockets (Depends-on): Likewise.
3133         * modules/sigpipe (Depends-on): Likewise.
3134         * modules/write (Depends-on): Likewise.
3135         * modules/accept (Depends-on): Likewise.
3136         * modules/bind (Depends-on): Likewise.
3137         * modules/connect (Depends-on): Likewise.
3138         * modules/gethostname (Depends-on): Likewise.
3139         * modules/getpeername (Depends-on): Likewise.
3140         * modules/getsockname (Depends-on): Likewise.
3141         * modules/getsockopt (Depends-on): Likewise.
3142         * modules/ioctl (Depends-on): Likewise.
3143         * modules/listen (Depends-on): Likewise.
3144         * modules/recv (Depends-on): Likewise.
3145         * modules/recvfrom (Depends-on): Likewise.
3146         * modules/send (Depends-on): Likewise.
3147         * modules/sendto (Depends-on): Likewise.
3148         * modules/setsockopt (Depends-on): Likewise.
3149         * modules/shutdown (Depends-on): Likewise.
3150         * modules/socket (Depends-on): Likewise.
3151         * modules/execute (Depends-on): Likewise.
3152         * modules/spawn-pipe (Depends-on): Likewise.
3153         * modules/flock (Depends-on): Likewise.
3154         * modules/fsync (Depends-on): Likewise.
3155         * modules/isapipe (Depends-on): Likewise.
3156         * tests/test-cloexec.c: Include msvc-nothrow.h.
3157         * tests/test-dup-safer.c: Likewise.
3158         * tests/test-dup2.c: Likewise.
3159         * tests/test-dup3.c: Likewise.
3160         * tests/test-fcntl.c: Likewise.
3161         * tests/test-pipe.c: Likewise.
3162         * tests/test-pipe2.c: Likewise.
3163         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
3164         * modules/unistd-safer-tests (Depends-on): Likewise.
3165         * modules/dup2-tests (Depends-on): Likewise.
3166         * modules/dup3-tests (Depends-on): Likewise.
3167         * modules/fcntl-tests (Depends-on): Likewise.
3168         * modules/pipe-posix-tests (Depends-on): Likewise.
3169         * modules/pipe2-tests (Depends-on): Likewise.
3170
3171 2011-09-23  Bruno Haible  <bruno@clisp.org>
3172
3173         dup2: Make code more maintainable.
3174         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
3175         (rpl_dup2): Use it.
3176         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
3177         * modules/dup2 (configure.ac): Invoke it.
3178         Reported by Paul Eggert.
3179
3180 2011-09-23  Bruno Haible  <bruno@clisp.org>
3181
3182         msvc-inval: Fix compilation error.
3183         * lib/msvc-inval.h: Include <excpt.h>.
3184
3185 2011-09-23  Bruno Haible  <bruno@clisp.org>
3186
3187         mkdir: Tweak for MSVC 9.
3188         * lib/sys_stat.in.h: Update comments.
3189         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
3190
3191         Tests for module 'chdir'.
3192         * modules/chdir-tests: New file.
3193         * tests/test-chdir.c: New file.
3194
3195         New module 'chdir'.
3196         * modules/chdir: New file.
3197         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
3198         (chdir): New declaration.
3199         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
3200         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
3201         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
3202         * tests/test-unistd-c++.cc: Check signature of chdir.
3203         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
3204         * modules/chdir-long (Depends-on): Add chdir.
3205         * modules/fchdir (Depends-on): Likewise.
3206         * modules/rename (Depends-on): Likewise.
3207         * modules/savewd (Depends-on): Likewise.
3208
3209         rmdir: Support for mingw, MSVC 9.
3210         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
3211         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
3212
3213         getcwd: Tweak for MSVC 9.
3214         * lib/unistd.in.h: Update comments.
3215         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
3216
3217 2011-09-22  Bruno Haible  <bruno@clisp.org>
3218
3219         strerror_r-posix: Avoid a link error on MSVC.
3220         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
3221         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
3222
3223 2011-09-22  Bruno Haible  <bruno@clisp.org>
3224
3225         select: Avoid link errors on MSVC.
3226         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
3227         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
3228         * modules/pselect (Link): Likewise.
3229         * NEWS: Mention the change.
3230         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
3231         test-select-stdin against $(LIB_SELECT).
3232         * modules/pselect-tests (Makefile.am): Link test-pselect against
3233         $(LIB_SELECT).
3234
3235 2011-09-22  Bruno Haible  <bruno@clisp.org>
3236
3237         select: Avoid compilation error on MSVC.
3238         * lib/select.c: Don't include <stdbool.h>.
3239
3240 2011-09-21  Bruno Haible  <bruno@clisp.org>
3241
3242         Consolidate all uses of PATH_MAX in *.m4 files.
3243         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
3244         macros.
3245         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
3246         and gl_PATHMAX_SNIPPET.
3247         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
3248         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
3249         * modules/chdir-long (Files): Add m4/pathmax.m4.
3250         * modules/getcwd (Files): Likewise.
3251
3252 2011-09-21  Bruno Haible  <bruno@clisp.org>
3253
3254         ftruncate: Un-deprecate, concentrate on Win32 support.
3255         * modules/ftruncate (Status, Notice): Remove sections.
3256         (Depends-on): Add largefile.
3257         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
3258         non-mingw platforms.
3259         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
3260         include <io.h>.
3261         * modules/perror-tests (Depends-on): Add ftruncate.
3262         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
3263         'ftruncate' module.
3264
3265 2011-09-21  Bruno Haible  <bruno@clisp.org>
3266
3267         Add dependencies to new dirent related modules.
3268         * modules/opendir (Depends-on): Add closedir.
3269         * modules/getcwd (Depends-on): Add opendir, closedir.
3270         * modules/dirent-safer-tests (Depends-on): Likewise.
3271         * modules/fdopendir-tests (Depends-on): Likewise.
3272         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
3273         * modules/renameat-tests (Depends-on): Likewise.
3274
3275 2011-09-21  Bruno Haible  <bruno@clisp.org>
3276
3277         opendir: Avoid compilation error on mingw.
3278         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
3279         * modules/opendir (Depends-on): Add unistd.
3280
3281 2011-09-21  Bruno Haible  <bruno@clisp.org>
3282
3283         ftruncate tests: Avoid a test failure on mingw.
3284         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
3285
3286 2011-09-21  Bruno Haible  <bruno@clisp.org>
3287
3288         select tests: Avoid test failures on OSF/1 5.1 and mingw.
3289         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
3290         native Windows.
3291
3292 2011-09-21  Bruno Haible  <bruno@clisp.org>
3293
3294         New module 'fdopen'.
3295         * lib/stdio.in.h (fdopen): New declaration.
3296         * lib/fdopen.c: New file.
3297         * m4/fdopen.m4: New file.
3298         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
3299         REPLACE_FDOPEN.
3300         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
3301         REPLACE_FDOPEN.
3302         * modules/fdopen: New file.
3303         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
3304         * tests/test-stdio-c++.cc: Check signature of fdopen.
3305         * doc/posix-functions/fdopen.texi: Mention the new module.
3306
3307 2011-09-21  Bruno Haible  <bruno@clisp.org>
3308
3309         unlockpt tests: Avoid test failure on NetBSD 5.1.
3310         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
3311         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
3312
3313 2011-09-21  Bruno Haible  <bruno@clisp.org>
3314
3315         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
3316         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
3317         * tests/test-getlogin_r.c (main): Likewise.
3318
3319 2011-09-20  Bruno Haible  <bruno@clisp.org>
3320
3321         time tests: Don't require pid_t.
3322         * doc/posix-headers/time.texi: Revert last change.
3323         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
3324         * tests/test-time.c: Comment out the check for pid_t.
3325
3326 2011-09-20  Bruno Haible  <bruno@clisp.org>
3327
3328         fsync tests: Avoid a test failure on mingw.
3329         * tests/test-fsync.c (main): Allow a failure with EIO.
3330
3331 2011-09-20  Bruno Haible  <bruno@clisp.org>
3332
3333         euidaccess: Update comments.
3334         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
3335
3336 2011-09-20  Bruno Haible  <bruno@clisp.org>
3337
3338         Ensure EBADF returns for socket functions on mingw.
3339         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
3340         descriptor is invalid.
3341         * lib/bind.c (rpl_bind): Likewise.
3342         * lib/connect.c (rpl_connect): Likewise.
3343         * lib/getpeername.c (rpl_getpeername): Likewise.
3344         * lib/getsockname.c (rpl_getsockname): Likewise.
3345         * lib/getsockopt.c (rpl_getsockopt): Likewise.
3346         * lib/listen.c (rpl_listen): Likewise.
3347         * lib/recv.c (rpl_recv): Likewise.
3348         * lib/recvfrom.c (rpl_recvfrom): Likewise.
3349         * lib/send.c (rpl_send): Likewise.
3350         * lib/sendto.c (rpl_sendto): Likewise.
3351         * lib/setsockopt.c (rpl_setsockopt): Likewise.
3352         * lib/shutdown.c (rpl_shutdown): Likewise.
3353
3354 2011-09-20  Bruno Haible  <bruno@clisp.org>
3355
3356         select tests: EBADF tests.
3357         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
3358         test_bad_fd): New functions.
3359         (test_function): Invoke also test_bad_fd.
3360
3361 2011-09-20  Bruno Haible  <bruno@clisp.org>
3362
3363         Tests for module 'posix_spawn_file_actions_addopen.
3364         * modules/posix_spawn_file_actions_addopen-tests: New file.
3365         * tests/test-posix_spawn_file_actions_addopen.c: New file.
3366
3367         Tests for module 'posix_spawn_file_actions_adddup2'.
3368         * modules/posix_spawn_file_actions_adddup2-tests: New file.
3369         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
3370
3371         Tests for module 'posix_spawn_file_actions_addclose'.
3372         * modules/posix_spawn_file_actions_addclose-tests: New file.
3373         * tests/test-posix_spawn_file_actions_addclose.c: New file.
3374
3375 2011-09-20  Bruno Haible  <bruno@clisp.org>
3376
3377         Tests for module 'unlockpt'.
3378         * modules/unlockpt-tests: New file.
3379         * tests/test-unlockpt.c: New file.
3380         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
3381
3382         Tests for module 'grantpt'.
3383         * modules/grantpt-tests: New file.
3384         * tests/test-grantpt.c: New file.
3385         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
3386
3387 2011-09-20  Bruno Haible  <bruno@clisp.org>
3388
3389         freopen tests: EBADF tests.
3390         * tests/test-freopen.c: Include errno.h, unistd.h.
3391         (main): Add tests for EBADF, commented out for the moment.
3392
3393         fclose tests: EBADF tests.
3394         * tests/test-fclose.c (main): Add tests for EBADF.
3395
3396         fflush tests: EBADF tests.
3397         * tests/test-fflush.c: Include errno.h, macros.h.
3398         (main): Add tests for EBADF.
3399
3400         ftello tests: EBADF tests.
3401         * tests/test-ftello4.sh: New file.
3402         * tests/test-ftello4.c: New file.
3403         * modules/ftello-tests (Files): Add them.
3404         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
3405
3406         fseeko tests: EBADF tests.
3407         * tests/test-fseeko4.sh: New file.
3408         * tests/test-fseeko4.c: New file.
3409         * modules/fseeko-tests (Files): Add them.
3410         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
3411
3412         Tests for function fputc().
3413         * modules/fputc-tests: New file.
3414         * tests/test-fputc.c: New file.
3415         * modules/stdio-tests (Depends-on): Add fputc-tests.
3416
3417         Tests for function fgetc().
3418         * modules/fgetc-tests: New file.
3419         * tests/test-fgetc.c: New file.
3420         * modules/stdio-tests (Depends-on): Add fgetc-tests.
3421
3422         Tests for function fdopen().
3423         * modules/fdopen-tests: New file.
3424         * tests/test-fdopen.c: New file.
3425         * modules/stdio-tests (Depends-on): Add fdopen-tests.
3426
3427         Tests for module 'vdprintf'.
3428         * modules/vdprintf-tests: New file.
3429         * tests/test-vdprintf.c: New file.
3430
3431         Tests for module 'dprintf'.
3432         * modules/dprintf-tests: New file.
3433         * tests/test-dprintf.c: New file.
3434
3435 2011-09-20  Bruno Haible  <bruno@clisp.org>
3436
3437         Tests for module 'ioctl'.
3438         * modules/ioctl-tests: New file.
3439         * tests/test-ioctl.c: New file.
3440
3441 2011-09-20  Bruno Haible  <bruno@clisp.org>
3442
3443         fcntl tests: EBADF tests.
3444         * tests/test-fcntl.c (main): Add more tests for EBADF.
3445
3446 2011-09-20  Bruno Haible  <bruno@clisp.org>
3447
3448         utimensat tests: EBADF tests.
3449         * tests/test-utimensat.c (main): Add tests for EBADF.
3450
3451         renameat tests: EBADF tests.
3452         * tests/test-renameat.c (main): Add tests for EBADF.
3453
3454         mkfifoat tests: EBADF tests.
3455         * tests/test-mkfifoat.c (main): Add tests for EBADF.
3456
3457         readlinkat tests: EBADF tests.
3458         * tests/test-readlinkat.c (main): Add tests for EBADF.
3459
3460         symlinkat tests: EBADF tests.
3461         * tests/test-symlinkat.c (main): Add tests for EBADF.
3462
3463         linkat tests: EBADF tests.
3464         * tests/test-linkat.c (main): Add tests for EBADF.
3465
3466         Tests for module 'faccessat'.
3467         * modules/faccessat-tests: New file.
3468         * tests/test-faccessat.c: New file.
3469
3470         fdopendir tests: EBADF tests.
3471         * tests/test-fdopendir.c (main): Add more tests for EBADF.
3472
3473         openat tests: EBADF tests.
3474         * tests/test-fchownat.c (main): Add tests for EBADF.
3475         * tests/test-fstatat.c (main): Likewise.
3476         * tests/test-mkdirat.c (main): Likewise.
3477         * tests/test-openat.c (main): Likewise.
3478         * tests/test-unlinkat.c (main): Likewise.
3479         * tests/test-fchmodat.c: New file.
3480         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
3481         (Makefile.am): Also run 'test-fchmodat'.
3482
3483 2011-09-20  Bruno Haible  <bruno@clisp.org>
3484
3485         utimens, futimens, fdutimensat tests: EBADF tests.
3486         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
3487
3488         Tests for function fstat().
3489         * modules/fstat-tests: New file.
3490         * tests/test-fstat.c: New file.
3491         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
3492
3493 2011-09-20  Bruno Haible  <bruno@clisp.org>
3494
3495         test-ttyname_r tests: EBADF tests.
3496         * tests/test-ttyname_r.c (main): Add tests for EBADF.
3497
3498         Tests for module 'isatty'.
3499         * modules/isatty-tests: New file.
3500         * tests/test-isatty.c: New file.
3501
3502         Tests for module 'write'.
3503         * modules/write-tests: New file.
3504         * tests/test-write.c: New file.
3505
3506         Tests for module 'read'.
3507         * modules/read-tests: New file.
3508         * tests/test-read.c: New file.
3509
3510         pwrite tests: EBADF tests.
3511         * tests/test-pwrite.c (main): Add tests for EBADF.
3512
3513         pread tests: EBADF tests.
3514         * tests/test-pread.c (main): Add tests for EBADF.
3515
3516         lseek tests: EBADF tests.
3517         * tests/test-lseek.c (main): Add more tests for EBADF.
3518
3519         Tests for module 'ftruncate'.
3520         * modules/ftruncate-tests: New file.
3521         * tests/test-ftruncate.sh: New file.
3522         * tests/test-ftruncate.c: New file.
3523
3524         fsync tests: EBADF tests.
3525         * tests/test-fsync.c (main): Add more tests for EBADF.
3526
3527         fdatasync tests: EBADF tests.
3528         * tests/test-fdatasync.c (main): Add more tests for EBADF.
3529
3530         Tests for module 'fchown'.
3531         * modules/fchown-tests: New file.
3532         * tests/test-fchown.c: New file.
3533
3534         Tests for module 'fchmod'.
3535         * modules/fchmod-tests: New file.
3536         * tests/test-fchmod.c: New file.
3537
3538         fchdir tests: EBADF tests.
3539         * tests/test-fchdir.c (main): Add more tests for EBADF.
3540
3541         dup2 tests: EBADF tests.
3542         * tests/test-dup2.c (main): Add more tests for EBADF.
3543
3544         Tests for module 'dup'.
3545         * modules/dup-tests: New file.
3546         * tests/test-dup.c: New file.
3547
3548         Tests for module 'close'.
3549         * modules/close-tests: New file.
3550         * tests/test-close.c: New file.
3551
3552 2011-09-20  Bruno Haible  <bruno@clisp.org>
3553
3554         Tests for module 'shutdown'.
3555         * modules/shutdown-tests: New file.
3556         * tests/test-shutdown.c: New file.
3557
3558         Tests for module 'setsockopt'.
3559         * modules/setsockopt-tests: New file.
3560         * tests/test-setsockopt.c: New file.
3561
3562         Tests for module 'sendto'.
3563         * modules/sendto-tests: New file.
3564         * tests/test-sendto.c: New file.
3565
3566         Tests for module 'send'.
3567         * modules/send-tests: New file.
3568         * tests/test-send.c: New file.
3569
3570         Tests for module 'recvfrom'.
3571         * modules/recvfrom-tests: New file.
3572         * tests/test-recvfrom.c: New file.
3573
3574         Tests for module 'recv'.
3575         * modules/recv-tests: New file.
3576         * tests/test-recv.c: New file.
3577
3578         Tests for module 'listen'.
3579         * modules/listen-tests: New file.
3580         * tests/test-listen.c: New file.
3581
3582         Tests for module 'getsockopt'.
3583         * modules/getsockopt-tests: New file.
3584         * tests/test-getsockopt.c: New file.
3585
3586         Tests for module 'getsockname'.
3587         * modules/getsockname-tests: New file.
3588         * tests/test-getsockname.c: New file.
3589
3590         Tests for module 'getpeername'.
3591         * modules/getpeername-tests: New file.
3592         * tests/test-getpeername.c: New file.
3593
3594         Tests for module 'connect'.
3595         * modules/connect-tests: New file.
3596         * tests/test-connect.c: New file.
3597
3598         Tests for module 'bind'.
3599         * modules/bind-tests: New file.
3600         * tests/test-bind.c: New file.
3601
3602         accept4 tests: Fix for native Windows.
3603         * tests/test-accept4.c: Include sockets.h.
3604         (main): Invoke gl_sockets_startup.
3605         * modules/accept4-tests (Depends-on): Add sockets.
3606
3607         accept tests: Fix for native Windows.
3608         * tests/test-accept.c: Include sockets.h.
3609         (main): Invoke gl_sockets_startup.
3610         * modules/accept-tests (Depends-on): Add sockets.
3611
3612 2011-09-19  Bruno Haible  <bruno@clisp.org>
3613
3614         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
3615         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
3616         do...while(0).
3617         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
3618         Suggested by Paul Eggert.
3619
3620 2011-09-19  Bruno Haible  <bruno@clisp.org>
3621
3622         sched: Ensure pid_t is defined.
3623         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
3624         not define pid_t.
3625         * lib/sched.in.h: Include <sys/types.h>.
3626         * doc/posix-headers/sched.texi: Mention the pid_t problem.
3627         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3628
3629 2011-09-19  Bruno Haible  <bruno@clisp.org>
3630
3631         msvc-inval: Ensure the entire expansion is a single statement.
3632         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
3633         of braces.
3634
3635 2011-09-19  Jim Meyering  <meyering@redhat.com>
3636
3637         tests: use printf, not echo in init.sh's warn_ function
3638         * tests/init.sh (warn_): Use printf, not echo.  The latter would
3639         misbehave when given strings containing a backslash or starting
3640         with e.g., -n.  James Youngman suggested setting IFS.
3641
3642 2011-09-19  Eric Blake  <eblake@redhat.com>
3643
3644         futimens: enhance test
3645         * tests/test-futimens.h (test_futimens): Also check for EBADF on
3646         closed non-negative fd.
3647
3648         date: accept 'hence' as opposite of 'ago'
3649         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
3650         * tests/test-parse-datetime.c (main): Enhance test.
3651         Suggested by Jesse Wilson.
3652
3653 2011-09-19  Jim Meyering  <meyering@redhat.com>
3654
3655         getcwd: don't fail in a deep directory on a system without openat
3656         Before this change, getcwd would fail when called from a directory
3657         of depth PATH_MAX / 3 or greater.  That was due to the fact that
3658         the non-openat implementation used "..", "../..", "../../..", etc.
3659         to access ancestor directories.  With too many, that string would
3660         be longer than PATH_MAX.
3661         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
3662         using gnulib's openat replacement.
3663         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
3664         we're using the replacement function.
3665
3666 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
3667
3668         maint.mk: avoid warnings from perl about missing files
3669         * top/maint.mk (def_sym_regex): Ignore files listed in
3670         $(gl_other_headers_) that do not exist, say because a project
3671         does not use a corresponding module.
3672
3673 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
3674
3675         stat: use pathmax.h only if needed
3676         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
3677         This is better for Emacs, which does not have a mingw port and
3678         therefore can avoid the pathmax module.
3679
3680         utimens: remove dependency on dup2
3681         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
3682         to work around the Linux kernel bug.
3683         * modules/utimens (Depends-on): Remove dup2.
3684
3685 2011-09-18  Bruno Haible  <bruno@clisp.org>
3686
3687         inet_ntop, inet_pton: Look for it also in libresolv.
3688         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
3689         libnsl, search for it in libresolv.
3690         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
3691         Needed on Solaris 7.
3692
3693 2011-09-18  Bruno Haible  <bruno@clisp.org>
3694
3695         accept, accept4 tests: Avoid link error on Solaris.
3696         * modules/accept-tests (Makefile.am): Link test-accept against
3697         $(LIBSOCKET).
3698         * modules/accept4-tests (Makefile.am): Link test-accept4 against
3699         $(LIBSOCKET).
3700
3701         accept4: Avoid link error on Solaris.
3702         * modules/accept4 (Link): New section.
3703
3704         socket functions: Avoid link errors on Solaris.
3705         * modules/accept (Depends-on): Add socketlib.
3706         (Link): New section.
3707         * modules/bind (Depends-on): Add socketlib.
3708         (Link): New section.
3709         * modules/connect (Depends-on): Add socketlib.
3710         (Link): New section.
3711         * modules/getpeername (Depends-on): Add socketlib.
3712         (Link): New section.
3713         * modules/getsockname (Depends-on): Add socketlib.
3714         (Link): New section.
3715         * modules/getsockopt (Depends-on): Add socketlib.
3716         (Link): New section.
3717         * modules/listen (Depends-on): Add socketlib.
3718         (Link): New section.
3719         * modules/recv (Depends-on): Add socketlib.
3720         (Link): New section.
3721         * modules/recvfrom (Depends-on): Add socketlib.
3722         (Link): New section.
3723         * modules/send (Depends-on): Add socketlib.
3724         (Link): New section.
3725         * modules/sendto (Depends-on): Add socketlib.
3726         (Link): New section.
3727         * modules/setsockopt (Depends-on): Add socketlib.
3728         (Link): New section.
3729         * modules/shutdown (Depends-on): Add socketlib.
3730         (Link): New section.
3731         * modules/socket (Depends-on): Add socketlib.
3732         (Link): New section.
3733
3734 2011-09-18  Bruno Haible  <bruno@clisp.org>
3735
3736         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
3737         * tests/test-ptsname.c (main): Terminate the test if it takes longer
3738         than 5 seconds.
3739         * modules/ptsname-tests (configure.ac): Test for alarm.
3740
3741 2011-09-18  Bruno Haible  <bruno@clisp.org>
3742
3743         posix_spawn_file_actions_add*: Fix module dependencies.
3744         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
3745         posix_spawn_file_actions_init.
3746         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
3747         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
3748
3749 2011-09-18  Bruno Haible  <bruno@clisp.org>
3750
3751         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
3752         * tests/test-rename.h (test_rename): Allow error code EEXIST.
3753         * tests/test-renameat.c (main): Likewise.
3754
3755 2011-09-18  Bruno Haible  <bruno@clisp.org>
3756
3757         Tests for module 'accept4'.
3758         * modules/accept4-tests: New file.
3759         * tests/test-accept4.c: New file.
3760
3761 2011-09-18  Bruno Haible  <bruno@clisp.org>
3762
3763         Tests for module 'accept'.
3764         * modules/accept-tests: New file.
3765         * tests/test-accept.c: New file.
3766
3767 2011-09-18  Bruno Haible  <bruno@clisp.org>
3768
3769         dup2: Support for MSVC.
3770         * lib/dup2.c: Include msvc-inval.h.
3771         (rpl_dup2): Handle invalid parameter notifications during dup2 and
3772         _get_osfhandle calls.
3773         * modules/dup2 (Depends-on): Add msvc-inval.
3774         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
3775
3776         New module 'msvc-inval'.
3777         * lib/msvc-inval.h: New file.
3778         * lib/msvc-inval.c: New file.
3779         * m4/msvc-inval.m4: New file.
3780         * modules/msvc-inval: New file.
3781
3782 2011-09-17  Bruno Haible  <bruno@clisp.org>
3783
3784         Tests for module 'pclose'.
3785         * modules/pclose-tests: New file.
3786
3787         New module 'pclose'.
3788         * lib/stdio.in.h (pclose): New declaration.
3789         * lib/pclose.c: New file.
3790         * m4/pclose.m4: New file.
3791         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
3792         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
3793         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
3794         * modules/pclose: New file.
3795         * modules/popen-tests (Depends-on): Add pclose.
3796         * modules/popen-safer-tests (Depends-on): Likewise.
3797         * doc/posix-functions/pclose.texi: Mention the new module.
3798
3799 2011-09-17  Bruno Haible  <bruno@clisp.org>
3800
3801         popen: Support for MSVC.
3802         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
3803         * lib/popen.c (popen): Provide alternate definition for native Windows.
3804         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
3805         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
3806         * modules/popen (Depends-on, configure.ac): Update condition.
3807         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
3808         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
3809         fixed.
3810
3811 2011-09-17  Bruno Haible  <bruno@clisp.org>
3812
3813         isnanl, isnand, isnanf: Work around MSVC bug.
3814         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
3815
3816 2011-09-17  Bruno Haible  <bruno@clisp.org>
3817
3818         sys_socket tests: Fix recent mistake.
3819         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
3820
3821 2011-09-17  Bruno Haible  <bruno@clisp.org>
3822
3823         putenv: Support for MSVC.
3824         * modules/putenv (Depends-on): Add environ.
3825         * lib/putenv.c (environ): Disable declaration.
3826         * lib/unistd.in.h: Update comment.
3827
3828 2011-09-17  Bruno Haible  <bruno@clisp.org>
3829
3830         math: Avoid macro redefinition warnings on MSVC.
3831         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
3832         Undefine before redefining.
3833
3834 2011-09-17  Bruno Haible  <bruno@clisp.org>
3835
3836         doc: Mention functions which are declared as macros.
3837         * doc/posix-functions/*[fl].texi: Mention that some functions are
3838         defined as macros with arguments only.
3839
3840 2011-09-17  Bruno Haible  <bruno@clisp.org>
3841
3842         Add dependencies to new dirent related modules.
3843         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
3844         * modules/fts (Depends-on): Likewise.
3845         * modules/glob (Depends-on): Likewise.
3846         * modules/savedir (Depends-on): Likewise.
3847         * modules/scandir (Depends-on): Likewise.
3848         * modules/dirent-safer (Depends-on): Add opendir, closedir.
3849         * modules/fdopendir (Depends-on): Add opendir.
3850
3851 2011-09-17  Bruno Haible  <bruno@clisp.org>
3852
3853         inet_pton: Support for MSVC on Windows Vista or newer.
3854         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
3855         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
3856         HAVE_DECL_INET_PTON is defined.
3857         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
3858         On platforms with <winsock2.h>, test whether inet_pton is declared in
3859         <ws2tcpip.h>. If so, arrange to replace it.
3860         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
3861         REPLACE_INET_PTON.
3862         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
3863         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
3864         (Depends-on, configure.ac): Update condition.
3865         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
3866
3867 2011-09-17  Bruno Haible  <bruno@clisp.org>
3868
3869         inet_ntop: Support for MSVC on Windows Vista or newer.
3870         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
3871         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
3872         HAVE_DECL_INET_NTOP is defined.
3873         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
3874         On platforms with <winsock2.h>, test whether inet_ntop is declared in
3875         <ws2tcpip.h>. If so, arrange to replace it.
3876         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
3877         REPLACE_INET_NTOP.
3878         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
3879         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
3880         (Depends-on, configure.ac): Update condition.
3881         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
3882
3883 2011-09-16  Eric Blake  <eblake@redhat.com>
3884
3885         test-fsync: yet another enhancement
3886         * tests/test-fsync.c (main): Also test behavior on read-only text
3887         file.
3888
3889 2011-09-16  Bruno Haible  <bruno@clisp.org>
3890
3891         Enhance fsync, fdatasync tests.
3892         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
3893         * tests/test-fdatasync.c (main): Likewise.
3894
3895 2011-09-16  Bruno Haible  <bruno@clisp.org>
3896
3897         Support for MSVC compiler: Ensure mode_t gets defined.
3898         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
3899         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
3900         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
3901         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
3902         * tests/test-fcntl-h.c: Check that mode_t is defined.
3903         * tests/test-sys_stat.c: Likewise.
3904         * tests/test-sys_types.c: Likewise.
3905         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
3906         * doc/posix-headers/sys_stat.texi: Likewise.
3907         * doc/posix-headers/sys_types.texi: Likewise.
3908
3909 2011-09-16  Bruno Haible  <bruno@clisp.org>
3910
3911         sys_stat: Support for MSVC.
3912         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
3913         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
3914         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
3915         MSVC.
3916
3917 2011-09-16  Bruno Haible  <bruno@clisp.org>
3918
3919         Support for MSVC compiler: Ensure off_t gets defined.
3920         * lib/unistd.in.h: Include <sys/types.h>.
3921         * tests/test-fcntl-h.c: Check that off_t is defined.
3922         * tests/test-sys_stat.c: Likewise.
3923         * tests/test-sys_types.c: Likewise.
3924
3925 2011-09-16  Eric Blake  <eblake@redhat.com>
3926
3927         fdatasync: port to Solaris
3928         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
3929         * modules/fdatasync (Link): Document it.
3930         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
3931
3932         fdatasync: port to MacOS X 10.7
3933         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
3934         declared.
3935         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
3936         * modules/unistd (Makefile.am): Substitute it.
3937         * lib/unistd.in.h (fdatasync): Declare on MacOS.
3938         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
3939
3940         fdatasync: minor improvements
3941         * modules/fdatasync (Depends-on): Add condition for fsync.
3942         * lib/fdatasync.c (fdatasync): Add comment.
3943         * tests/test-unistd-c++.cc: Test fdatasync.
3944
3945         unistd: update refs to newer POSIX
3946         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
3947         Suggested by Bruno Haible.
3948
3949         fdatasync: new module
3950         * modules/fsync (Description): Document difference to fdatasync.
3951         * modules/fdatasync: New module.
3952         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
3953         * lib/fdatasync.c (fdatasync): Likewise.
3954         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
3955         defaults.
3956         * modules/unistd (Makefile.am): Set witnesses.
3957         * lib/unistd.in.h (fdatasync): Declare.
3958         * MODULES.html.sh: Document it.
3959         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
3960         * modules/fdatasync-tests: New test.
3961         * tests/test-fdatasync.c: Likewise.
3962
3963 2011-09-16  Eric Blake  <eblake@redhat.com>
3964
3965         test-fsync: enhance tests
3966         * modules/fsync-tests (Depends-on): Add errno, for mingw.
3967         * tests/test-fsync.c (main): Enhance test.
3968
3969 2011-09-15  Bruno Haible  <bruno@clisp.org>
3970
3971         Support for MSVC compiler: Ensure ssize_t gets defined.
3972         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
3973         * doc/posix-headers/stdio.texi: Likewise.
3974         * modules/stdio (Depends-on): Add ssize_t.
3975         * modules/sys_socket (Depends-on): Likewise.
3976         * modules/sys_types (Depends-on): Likewise.
3977         * modules/sys_uio (Depends-on): Likewise.
3978         * modules/unistd (Depends-on): Likewise.
3979         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
3980         * tests/test-sys_types.c: Check that ssize_t is defined.
3981
3982 2011-09-14  Bruno Haible  <bruno@clisp.org>
3983
3984         Avoid using #, the m4 comment starter character, near brackets.
3985         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
3986         delimiter character in sed expressions.
3987         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
3988         Suggested by Eric Blake.
3989
3990         Properly quote AC_CHECK_DECLS' 4th argument.
3991         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
3992         argument.
3993         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
3994         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
3995         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
3996         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
3997         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
3998         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
3999         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
4000         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
4001         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
4002         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
4003         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
4004         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
4005         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
4006         * m4/isinf.m4 (gl_ISINF): Likewise.
4007         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
4008         * m4/readutmp.m4 (gl_READUTMP): Likewise.
4009         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
4010         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
4011         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
4012         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
4013         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
4014         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
4015         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
4016         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
4017         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
4018         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
4019         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
4020         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
4021         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
4022         Reported by Eric Blake.
4023
4024         Properly quote AC_CHECK_DECL's 4th argument.
4025         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
4026         argument.
4027         * m4/argp.m4 (gl_ARGP): Likewise.
4028         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
4029         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
4030         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
4031         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
4032         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
4033         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
4034         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
4035         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
4036         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
4037         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
4038         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
4039         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
4040         Reported by Eric Blake.
4041
4042 2011-09-14  Eric Blake  <eblake@redhat.com>
4043
4044         opendir: avoid compile warning
4045         * lib/opendir.c (includes): Always include errno.h.
4046         Reported by Tatsuro MATSUOKA.
4047
4048 2011-09-14  Jim Meyering  <meyering@redhat.com>
4049
4050         maint.mk: sc_tight_scope: propagate failure from sub-make
4051         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
4052         Reported by Martin von Gagern.
4053
4054 2011-09-13  Bruno Haible  <bruno@clisp.org>
4055
4056         tempname: Support for MSVC.
4057         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
4058         MSVC.
4059         * modules/tempname (Depends-on): Add fcntl-h.
4060
4061 2011-09-13  Bruno Haible  <bruno@clisp.org>
4062
4063         sys_time: Support for MSVC.
4064         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
4065         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
4066         include <winsock2.h>.
4067         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
4068         function declarations that collide with POSIX.
4069         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
4070         (Makefile.am): Substitute HAVE_WINSOCK2_H.
4071
4072 2011-09-13  Bruno Haible  <bruno@clisp.org>
4073
4074         stat: Support for MSVC.
4075         * lib/stat.c: Include pathmax.h.
4076         * modules/stat (Depends-on): Add pathmax.
4077
4078         pathmax: Support for native Windows.
4079         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
4080
4081 2011-09-12  Bruno Haible  <bruno@clisp.org>
4082
4083         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
4084         * lib/dirent.in.h (struct dirent): New type.
4085         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
4086         DT_WHT): New macros.
4087         (DIR): New type.
4088         (opendir, closedir): Declare only if the module 'opendir' is enabled.
4089         (readdir, rewinddir): New declarations.
4090         * lib/dirent-private.h: New file.
4091         * lib/opendir.c: New file.
4092         * lib/readdir.c: New file.
4093         * lib/rewinddir.c: New file.
4094         * lib/closedir.c: New file.
4095         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
4096         * m4/opendir.m4: New file.
4097         * m4/readdir.m4: New file.
4098         * m4/rewinddir.m4: New file.
4099         * m4/closedir.m4: New file.
4100         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
4101         REPLACE_CLOSEDIR here.
4102         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
4103         readdir, rewinddir are declared.
4104         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
4105         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
4106         HAVE_REWINDDIR, HAVE_CLOSEDIR.
4107         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
4108         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
4109         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
4110         * modules/opendir: New file.
4111         * modules/readdir: New file.
4112         * modules/rewinddir: New file.
4113         * modules/closedir: New file.
4114         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
4115         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
4116         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
4117         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
4118         * NEWS: Mention the 'fchdir' change.
4119
4120 2011-09-11  Bruno Haible  <bruno@clisp.org>
4121
4122         asm-underscore.m4: Support for MSVC.
4123         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
4124         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
4125
4126 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
4127
4128         Doc about crypt functions.
4129         * doc/posix-functions/crypt.texi: Expand range of glibc versions
4130         needing for _GNU_SOURCE to get crypt.
4131         * doc/posix-functions/encrypt.texi: Likewise.
4132         * doc/posix-functions/setkey.texi: Likewise.
4133
4134 2011-09-11  Bruno Haible  <bruno@clisp.org>
4135
4136         doc: Update regarding MSVC 9.
4137         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
4138         tested".
4139         * doc/posix-functions/*.texi: Update with info about MSVC 9.
4140         * doc/posix-headers/*.texi: Likewise.
4141         * doc/pastposix-functions/*.texi: Likewise.
4142         * doc/glibc-functions/*.texi: Likewise.
4143         * doc/glibc-headers/*.texi: Likewise.
4144
4145 2011-09-11  Bruno Haible  <bruno@clisp.org>
4146
4147         unistd et al.: Don't assume <unistd.h> exists.
4148         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
4149         does not exist.
4150         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
4151         exist. But include <stdlib.h>.
4152         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
4153         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
4154         symlink() does not exist.
4155         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
4156         include <io.h> instead.
4157         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
4158         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
4159         include <direct.h> instead.
4160         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
4161         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
4162         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
4163         <io.h> instead.
4164         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
4165         correctly if the system does not have hard links.
4166         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
4167         <direct.h> instead.
4168         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
4169         it when looking for function declarations.
4170         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
4171         <direct.h> and <io.h> instead.
4172         * doc/posix-headers/unistd.texi: More details about MSVC problem.
4173
4174 2011-09-11  Bruno Haible  <bruno@clisp.org>
4175
4176         strcase: Support for MSVC.
4177         * modules/strcase (Status, Notice): Remove obsoletion mark.
4178         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
4179         * doc/posix-functions/strncasecmp.texi: Likewise.
4180
4181         strings: Don't assume <strings.h> exists.
4182         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
4183         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
4184         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
4185         * doc/posix-headers/strings.texi: Mention the MSVC problem.
4186
4187 2011-09-11  Bruno Haible  <bruno@clisp.org>
4188
4189         dirent: Don't assume <dirent.h> exists.
4190         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
4191         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
4192         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
4193         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
4194
4195 2011-09-11  Bruno Haible  <bruno@clisp.org>
4196
4197         Fix wint_t on MSVC.
4198         * lib/wchar.in.h (wint_t): On MSVC, override it.
4199         * lib/wctype.in.h (wint_t): Likewise.
4200         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
4201         MSVC.
4202         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
4203         * doc/posix-headers/wctype.texi: Likewise.
4204
4205 2011-09-11  Bruno Haible  <bruno@clisp.org>
4206
4207         sys_types: Fix typo.
4208         * lib/sys_types.in.h: Fix typo in comment.
4209         Reported by Paul Eggert.
4210
4211         Support for MSVC compiler: Ensure size_t gets defined.
4212         * modules/strings (Depends-on): Add 'sys_types'.
4213         * modules/sys_uio (Depends-on): Likewise.
4214         * lib/sys_uio.in.h: Update comment.
4215
4216         C++ tests for module 'sys_types'.
4217         * modules/sys_types-c++-tests: New file.
4218         * tests/test-sys_types-c++.cc: New file.
4219
4220         Tests for module 'sys_types'.
4221         * modules/sys_types-tests: New file.
4222         * tests/test-sys_types.c: New file.
4223
4224         New module 'sys_types'.
4225         * lib/sys_types.in.h: New file.
4226         * m4/sys_types_h.m4: New file.
4227         * modules/sys_types: New file.
4228         * doc/posix-headers/sys_types.texi: Mention the new module and the
4229         size_t problem on MSVC 9.
4230
4231 2011-09-11  Bruno Haible  <bruno@clisp.org>
4232
4233         Support for MSVC compiler: Avoid division by a literal 0.
4234         * lib/math.in.h (NAN): Define through a function call also on MSVC.
4235         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
4236         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
4237         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
4238         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
4239         * tests/infinity.h: New file.
4240         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
4241         on MSVC.
4242         * tests/test-ceilf1.c: Include infinity.h.
4243         (main): Use Infinityf.
4244         * tests/test-ceil1.c: Include infinity.h.
4245         (main): Use Infinityd.
4246         * tests/test-ceill.c: Include infinity.h.
4247         (main): Use Infinityl.
4248         * tests/test-dprintf-posix.c: Include infinity.h.
4249         (test_function): Use Infinityd.
4250         * tests/test-floorf1.c: Include infinity.h.
4251         (main): Use Infinityf.
4252         * tests/test-floor1.c: Include infinity.h.
4253         (main): Use Infinityd.
4254         * tests/test-floorl.c: Include infinity.h.
4255         (main): Use Infinityl.
4256         * tests/test-fprintf-posix.c: Include infinity.h.
4257         (test_function): Use Infinityd.
4258         * tests/test-frexp.c: Include infinity.h.
4259         (main): Use Infinityd.
4260         * tests/test-frexpl.c: Include infinity.h.
4261         (main): Use Infinityl.
4262         * tests/test-isfinite.c: Include infinity.h.
4263         (test_isfinitef): Use Infinityf.
4264         (test_isfinited): Use Infinityd.
4265         (test_isfinitel): Use Infinityl.
4266         * tests/test-isinf.c: Include infinity.h.
4267         (test_isinff): Use Infinityf.
4268         (test_isinfd): Use Infinityd.
4269         (test_isinfl): Use Infinityl.
4270         * tests/test-isnan.c: Include infinity.h.
4271         (test_float): Use Infinityf.
4272         (test_double): Use Infinityd.
4273         (test_long_double): Use Infinityl.
4274         * tests/test-isnanf.h: Include infinity.h.
4275         (main): Use Infinityf.
4276         * tests/test-isnand.h: Include infinity.h.
4277         (main): Use Infinityd.
4278         * tests/test-isnanl.h: Include infinity.h.
4279         (main): Use Infinityl.
4280         * tests/test-ldexpl.c: Include infinity.h.
4281         (main): Use Infinityl.
4282         * tests/test-printf-posix.h: Include infinity.h.
4283         (test_function): Use Infinityd.
4284         * tests/test-roundf1.c: Include infinity.h.
4285         (main): Use Infinityf.
4286         * tests/test-round1.c: Include infinity.h.
4287         (main): Use Infinityd.
4288         * tests/test-roundl.c: Include infinity.h.
4289         (main): Use Infinityl.
4290         * tests/test-signbit.c: Include infinity.h.
4291         (test_signbitf): Use Infinityf.
4292         (test_signbitd): Use Infinityd.
4293         (test_signbitl): Use Infinityl.
4294         * tests/test-snprintf-posix.h: Include infinity.h.
4295         (test_function): Use Infinityd, Infinityl.
4296         * tests/test-sprintf-posix.h: Include infinity.h.
4297         (test_function): Use Infinityd, Infinityl.
4298         * tests/test-truncf1.c: Include infinity.h.
4299         (main): Use Infinityf.
4300         * tests/test-trunc1.c: Include infinity.h.
4301         (main): Use Infinityd.
4302         * tests/test-truncl.c: Include infinity.h.
4303         (main): Use Infinityl.
4304         * tests/test-vasnprintf-posix.c: Include infinity.h.
4305         (test_function): Use Infinityd, Infinityl.
4306         * tests/test-vasprintf-posix.c: Include infinity.h.
4307         (test_function): Use Infinityd, Infinityl.
4308         * modules/ceilf-tests (Files): Add tests/infinity.h.
4309         * modules/ceil-tests (Files): Likewise.
4310         * modules/ceill-tests (Files): Likewise.
4311         * modules/dprintf-posix-tests (Files): Likewise.
4312         * modules/floorf-tests (Files): Likewise.
4313         * modules/floor-tests (Files): Likewise.
4314         * modules/floorl-tests (Files): Likewise.
4315         * modules/fprintf-posix-tests (Files): Likewise.
4316         * modules/frexp-tests (Files): Likewise.
4317         * modules/frexp-nolibm-tests (Files): Likewise.
4318         * modules/frexpl-tests (Files): Likewise.
4319         * modules/frexpl-nolibm-tests (Files): Likewise.
4320         * modules/isfinite-tests (Files): Likewise.
4321         * modules/isinf-tests (Files): Likewise.
4322         * modules/isnan-tests (Files): Likewise.
4323         * modules/isnanf-tests (Files): Likewise.
4324         * modules/isnanf-nolibm-tests (Files): Likewise.
4325         * modules/isnand-tests (Files): Likewise.
4326         * modules/isnand-nolibm-tests (Files): Likewise.
4327         * modules/isnanl-tests (Files): Likewise.
4328         * modules/isnanl-nolibm-tests (Files): Likewise.
4329         * modules/ldexpl-tests (Files): Likewise.
4330         * modules/printf-posix-tests (Files): Likewise.
4331         * modules/roundf-tests (Files): Likewise.
4332         * modules/round-tests (Files): Likewise.
4333         * modules/roundl-tests (Files): Likewise.
4334         * modules/signbit-tests (Files): Likewise.
4335         * modules/snprintf-posix-tests (Files): Likewise.
4336         * modules/sprintf-posix-tests (Files): Likewise.
4337         * modules/truncf-tests (Files): Likewise.
4338         * modules/trunc-tests (Files): Likewise.
4339         * modules/truncl-tests (Files): Likewise.
4340         * modules/vasnprintf-posix-tests (Files): Likewise.
4341         * modules/vasprintf-posix-tests (Files): Likewise.
4342         * modules/vdprintf-posix-tests (Files): Likewise.
4343         * modules/vfprintf-posix-tests (Files): Likewise.
4344         * modules/vprintf-posix-tests (Files): Likewise.
4345         * modules/vsnprintf-posix-tests (Files): Likewise.
4346         * modules/vsprintf-posix-tests (Files): Likewise.
4347         * modules/xprintf-posix-tests (Files): Likewise.
4348
4349 2011-09-11  Bruno Haible  <bruno@clisp.org>
4350
4351         Ensure pid_t gets defined.
4352         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
4353         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
4354         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
4355         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
4356         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
4357         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
4358         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
4359         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
4360         * tests/test-fcntl-h.c: Check that pid_t is defined.
4361         * tests/test-sched.c: Likewise.
4362         * tests/test-termios.c: Likewise.
4363         * tests/test-time.c: Likewise.
4364         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
4365         * doc/posix-headers/signal.texi: Likewise.
4366         * doc/posix-headers/sys_types.texi: Likewise.
4367         * doc/posix-headers/time.texi: Likewise.
4368
4369 2011-09-11  Bruno Haible  <bruno@clisp.org>
4370
4371         acl: Fix compilation on Solaris 10 (older version).
4372         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
4373         of ACE_EVERYONE.
4374         * lib/set-mode-acl.c (qset_acl): Likewise.
4375         Reported by Christian Jullien <eligis@orange.fr>.
4376
4377 2011-09-10  Bruno Haible  <bruno@clisp.org>
4378
4379         iconv, unsetenv: Add support for MSVC compiler.
4380         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
4381         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
4382
4383 2011-09-10  Bruno Haible  <bruno@clisp.org>
4384
4385         *printf: Add support for MSVC compiler.
4386         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
4387         handles the exception caused by the %n directive. When cross-compiling,
4388         guess no on native Windows.
4389         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
4390         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
4391         emulate it through vsnprintf.
4392         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
4393         * doc/posix-functions/dprintf.texi: Update documentation regarding
4394         MSVC 9.
4395         * doc/posix-functions/fprintf.texi: Likewise.
4396         * doc/posix-functions/printf.texi: Likewise.
4397         * doc/posix-functions/snprintf.texi: Likewise.
4398         * doc/posix-functions/sprintf.texi: Likewise.
4399         * doc/posix-functions/swprintf.texi: Likewise.
4400         * doc/posix-functions/vdprintf.texi: Likewise.
4401         * doc/posix-functions/vfprintf.texi: Likewise.
4402         * doc/posix-functions/vprintf.texi: Likewise.
4403         * doc/posix-functions/vsnprintf.texi: Likewise.
4404         * doc/posix-functions/vsprintf.texi: Likewise.
4405         * doc/glibc-functions/asprintf.texi: Likewise.
4406         * doc/glibc-functions/obstack_printf.texi: Likewise.
4407         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
4408         * doc/glibc-functions/vasprintf.texi: Likewise.
4409
4410 2011-09-10  Bruno Haible  <bruno@clisp.org>
4411
4412         nocrash: Add support for native Windows.
4413         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
4414
4415 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
4416             Bruno Haible  <bruno@clisp.org>
4417
4418         absolute-header, include-next: Add support for MSVC compiler.
4419         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
4420         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
4421         directory separator in #line directives.
4422         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
4423         recognize also backslash as directory separator in #line directives.
4424
4425 2011-09-08  Jim Meyering  <meyering@redhat.com>
4426
4427         maint.mk: mark the post-release commit log with "maint: " prefix
4428         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
4429         one-line commit-log summary.
4430
4431 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
4432             Bruno Haible  <bruno@clisp.org>
4433
4434         Doc about crypt functions.
4435         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
4436         systems.
4437         * doc/posix-functions/encrypt.texi: Likewise.
4438         * doc/posix-functions/setkey.texi: Likewise.
4439
4440 2011-09-08  Simon Josefsson  <simon@josefsson.org>
4441
4442         * lib/gc.h: Fix copyright header.
4443
4444 2011-09-07  Bruno Haible  <bruno@clisp.org>
4445
4446         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
4447         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
4448         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
4449
4450 2011-09-07  Bruno Haible  <bruno@clisp.org>
4451
4452         openat: Work around compilation error with OSF/1 5.1 DTK cc.
4453         * lib/fopen.c: Use different syntax for include of <stdio.h>.
4454         * lib/freopen.c: Likewise.
4455         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
4456         * lib/lstat.c: Likewise.
4457         * lib/stat.c: Likewise.
4458         * lib/open.c: Use different syntax for include of <fcntl.h>.
4459         * lib/openat.c: Include fcntl.h again, explicitly.
4460
4461 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
4462
4463         parse-datetime: document the newly accepted format
4464         * doc/parse-datetime.texi (Combined date and time of day items):
4465         New section.
4466
4467 2011-09-06  Bruno Haible  <bruno@clisp.org>
4468
4469         acl: Fix a test failure on newer Solaris 10 with ZFS.
4470         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
4471         ENOSYS as no ACL.
4472         Reported by Jim Meyering.
4473
4474 2011-09-06  Bruno Haible  <bruno@clisp.org>
4475
4476         acl: Update for AIX >= 5.3 with NFS.
4477         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
4478         ENOSYS as no ACL.
4479
4480         acl: Fix a test failure on AIX >= 5.3 with NFS.
4481         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
4482         as no ACL.
4483
4484 2011-09-06  Bruno Haible  <bruno@clisp.org>
4485
4486         acl: Fix a test failure on IRIX 6.5 with NFS.
4487         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
4488         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
4489         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
4490         * lib/copy-acl.c (qcopy_acl): Likewise.
4491
4492 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
4493
4494         openat: port to AIX 7.1 with large files
4495         AIX 7.1 does a "#define openat open64at" if large files are in use,
4496         so we can't simply #undef openat.  Use the orig_openat trick (similar
4497         to orig_open in lib/open.c) to work around the problem.  Problem
4498         reported by Kevin Brott for GNU tar, in the thread containing
4499         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
4500         * lib/openat.c (__need_system_fcntl_h): Define first.
4501         Include <fcntl.h> and <sys/types.h> before undefining.
4502         (orig_openat) [HAVE_OPENAT]: New inline function.
4503         (openat) [HAVE_OPENAT]: Do not undef.
4504         (rpl_openat): Use orig_openat, not openat.
4505
4506 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
4507             Bruno Haible  <bruno@clisp.org>
4508
4509         acl: Avoid errors on NonStop Kernel.
4510         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
4511         ENOTSUP errors.
4512
4513 2011-09-05  Bruno Haible  <bruno@clisp.org>
4514
4515         acl: Clean up Solaris code.
4516         * lib/acl-internal.h: Remove no-op #if.
4517         * lib/file-has-acl.c: Likewise.
4518         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
4519         * lib/copy-acl.c (qcopy_acl): Likewise.
4520
4521 2011-09-05  Bruno Haible  <bruno@clisp.org>
4522
4523         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
4524         binaries built on the original Solaris 10.
4525         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
4526         trivial.
4527
4528 2011-09-05  Bruno Haible  <bruno@clisp.org>
4529
4530         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
4531         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
4532         10.
4533         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
4534         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
4535         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
4536         instead of acl_get, facl_get, acl_set, facl_set.
4537
4538 2011-09-05  Bruno Haible  <bruno@clisp.org>
4539
4540         copy-file: Try unit tests on more file systems.
4541         * tests/test-copy-file-1.sh: New file.
4542         * tests/test-copy-file-2.sh: New file.
4543         * modules/copy-file-tests (Files): Add them.
4544         (Makefile.am): Add them to TESTS.
4545
4546         acl: Try unit tests on more file systems.
4547         * tests/test-file-has-acl-1.sh: New file.
4548         * tests/test-file-has-acl-2.sh: New file.
4549         * tests/test-set-mode-acl-1.sh: New file.
4550         * tests/test-set-mode-acl-2.sh: New file.
4551         * tests/test-copy-acl-1.sh: New file.
4552         * tests/test-copy-acl-2.sh: New file.
4553         * modules/acl-tests (Files): Add them.
4554         (Makefile.am): Add them to TESTS.
4555
4556 2011-09-04  Bruno Haible  <bruno@clisp.org>
4557
4558         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
4559         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
4560         10.
4561         (OLD_ALLOW, OLD_DENY): New macros.
4562         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
4563         ACE_ACCESS_ALLOWED_ACE_TYPE.
4564         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
4565         ACE_ACCESS_DENIED_ACE_TYPE.
4566         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
4567         (NEW_ACE_EXECUTE): Fix value.
4568         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
4569         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
4570         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
4571         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
4572         NEW_ACE_SYNCHRONIZE): New macros.
4573         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
4574         instead of acl_fromtext, acl_set, facl_set.
4575         Fixes a coreutils/tests/cp/perm failure.
4576
4577 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
4578
4579         openat: test for fstatat (..., 0) bug
4580         Further testing with tar suggests that fstatat (..., 0)
4581         does not work in general, on AIX 7.1; see
4582         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
4583         So, give up entirely on AIX 7.1's fstatat, and fall back on our
4584         replacement fstatat (which is what older AIX releases were using
4585         anyway).
4586         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
4587         use is now changed to orig_fstatat.  This was probably the right
4588         thing to do anyway.
4589         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
4590         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
4591         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
4592         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
4593         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
4594         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
4595         if the bug is found.
4596
4597         openat: test for fstatat (AT_FDCWD, ..., 0) bug
4598         This tests for another fstatat bug on AIX 7.1:
4599         fstatat (AT_FDCWD, ..., 0) does not work.  See
4600         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
4601         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
4602         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
4603         (rpl_fstatat): Adjust so that it works around either (or both)
4604         bugs if present.
4605         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
4606
4607 2011-09-03  Karl Berry  <karl@gnu.org>
4608
4609         * doc/regex.texi (Character Class Operators): Avoid literal ":"
4610         in index entries.
4611
4612 2011-09-02  Bruno Haible  <bruno@clisp.org>
4613
4614         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
4615         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
4616         values of AR, ARFLAGS, RANLIB.
4617         Reported by John W. Eaton <jwe@gnu.org> for Octave.
4618
4619 2011-09-02  Bruno Haible  <bruno@clisp.org>
4620
4621         Find 'ar' program that fits with --host argument.
4622         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
4623
4624 2011-09-02  Bruno Haible  <bruno@clisp.org>
4625
4626         tests: init.sh: Support any non-GNU diff.
4627         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
4628         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
4629         Solaris 8.
4630
4631 2011-09-02  Bruno Haible  <bruno@clisp.org>
4632
4633         tests: init.sh: work also with any non-GNU diff that supports -u
4634         * tests/init.sh: Relax check for diff -u support.
4635         Rather than checking for GNU diff via --version, simply check
4636         for support for -u itself.  Useful at least on OpenBSD 4.9,
4637         AIX 7.1, IRIX 6.5, and Solaris 10.
4638
4639 2011-09-01  Bruno Haible  <bruno@clisp.org>
4640
4641         strtoimax, strtoumax: Document problem on HP-UX 11.
4642         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
4643         * doc/posix-functions/strtoumax.texi: Likewise.
4644
4645 2011-09-01  Bruno Haible  <bruno@clisp.org>
4646
4647         strtoumax: Avoid link error on OSF/1 with DTK cc.
4648         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
4649         defined as a function.
4650         * modules/strtoumax (Depends-on, configure.ac): Test only whether
4651         strtoumax is defined, not whether it is declared.
4652
4653 2011-09-01  Bruno Haible  <bruno@clisp.org>
4654
4655         strtoimax: Avoid link error on OSF/1 with DTK cc.
4656         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
4657         defined as a function.
4658         * modules/strtoimax (Depends-on, configure.ac): Test only whether
4659         strtoimax is defined, not whether it is declared.
4660
4661 2011-09-01  Bruno Haible  <bruno@clisp.org>
4662
4663         imaxdiv: Avoid link error on OSF/1 with DTK cc.
4664         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
4665         as a function.
4666         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
4667         whether it is declared.
4668
4669 2011-09-01  Bruno Haible  <bruno@clisp.org>
4670
4671         imaxabs: Avoid link error on OSF/1 with DTK cc.
4672         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
4673         as a function.
4674         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
4675         whether it is declared.
4676
4677 2011-09-01  Bruno Haible  <bruno@clisp.org>
4678
4679         Tests for module 'strtoumax'.
4680         * modules/strtoumax-tests: New file.
4681         * tests/test-strtoumax.c: New file.
4682
4683         Tests for module 'strtoimax'.
4684         * modules/strtoimax-tests: New file.
4685         * tests/test-strtoimax.c: New file.
4686
4687         Tests for module 'imaxdiv'.
4688         * modules/imaxdiv-tests: New file.
4689         * tests/test-imaxdiv.c: New file.
4690
4691         Tests for module 'imaxabs'.
4692         * modules/imaxabs-tests: New file.
4693         * tests/test-imaxabs.c: New file.
4694
4695 2011-09-01  Bruno Haible  <bruno@clisp.org>
4696
4697         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
4698         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
4699         pthread_create.
4700
4701 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
4702
4703         openat: work around AIX 7.1 fstatat issue
4704         This should fix the problem that was not properly fixed
4705         in the previous change, dated 2011-08-30.
4706         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
4707         __need_system_stat_h defined.
4708         (orig_fstatat) [HAVE_FSTATAT]: New function.
4709         (rpl_fstatat): Go back to the old way of doing things,
4710         except call orig_fstatat instead of fstatat.
4711         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
4712         Remove unnecessary check whether fstatat fills in st_size etc.
4713
4714 2011-09-01  Bruno Haible  <bruno@clisp.org>
4715
4716         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
4717         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
4718         just include the system's header.
4719
4720 2011-08-31  Jim Meyering  <meyering@redhat.com>
4721
4722         tests: avoid spurious assertion failure in test-float.c on ppc64
4723         * tests/test-float.c (test_long_double): Comment out an assertion,
4724         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
4725         with gcc-4.4.4.
4726
4727         maint: indent with spaces, not TABs
4728         I need to get in the habit of running gnulib's "make check".
4729         Both of these would have been caught.
4730         * m4/largefile.m4: Indent with spaces, not TABs.
4731         * lib/parse-datetime.y (iso_8601_time): Likewise.
4732         Spotted by Pádraig Brady.
4733
4734         test-parse-datetime.c: accommodate a relatively strict gcc warning
4735         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
4736         to avoid a warning from gcc's -Werror=missing-declarations.
4737         Insert a few spaces-before-funcall-parenthesis.
4738
4739 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
4740
4741         parse-datetime: accept ISO 8601 date and time rep with "T" separator
4742         The parser now accepts ISO 8601 date-time strings with "T" as the
4743         separator.  It has long parsed dates like "2004-02-29 16:21:42"
4744         with a space between the date and time strings.  Now it also parses
4745         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
4746         variants like "2004-02-29T16:21:42.333-07:00"
4747         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
4748         of day representation using the 'T' separator character.
4749         * doc/parse-datetime.texi (General date syntax): replace use of
4750         deprecated --iso-8601 option with --rfc-3339 in example of date
4751         command output formats that can be parsed.
4752         * tests/test-parse-datetime.c (tm_diff): New function, taken from
4753         lib/parse-datetime.y.
4754         (gmt_offset): New function.
4755         (main): Add additional test cases to validate ISO8601 extended
4756         date and time of day parsing.
4757
4758 2011-08-31  Bruno Haible  <bruno@clisp.org>
4759
4760         freopen: Documentation.
4761         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
4762         name.
4763         Reported by Claudio Bley <claudio.bley@gmail.com>.
4764
4765 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
4766
4767         freopen: Don't crash if the filename argument is NULL.
4768         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
4769         NULL.
4770
4771 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
4772
4773         openat: work around AIX 7.1 fstatat bug
4774         Problem reported by Kevin Brott for GNU tar, in the thread containing
4775         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
4776         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
4777         FSTATAT_ST_SIZE_ETC_BROKEN.
4778         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
4779         rpl_fstatat.
4780         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
4781         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
4782         AC_CHECK_FUNCS_ONCE for fstatat.
4783         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
4784         fchmodat, mkdirat, openat and unlinkat.
4785
4786 2011-08-30  Bruno Haible  <bruno@clisp.org>
4787
4788         Avoid endless recursions if config.h includes some header files.
4789         * lib/fopen.c (__need_FILE): Define already before including config.h.
4790         * lib/freopen.c (__need_FILE): Likewise.
4791         * lib/open.c (__need_system_fcntl_h): Likewise.
4792         * lib/stat.c (__need_system_sys_stat_h): Likewise.
4793         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
4794         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
4795
4796 2011-08-25  Karl Berry  <karl@gnu.org>
4797
4798         * config/srclist.txt (ylwrap): new try.
4799         * build-aux/ylwrap: new file.
4800
4801 2011-08-23  Bruno Haible  <bruno@clisp.org>
4802
4803         tmpdir: Use a good default directory on native Windows.
4804         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
4805         (P_tmpdir): Default to _P_tmpdir on native Windows.
4806         (path_search): On native Windows, try the value returned by GetTempPath
4807         before trying P_tmpdir.
4808         * modules/tmpdir (Depends-on): Add pathmax.
4809         Suggested by John Darrington <john@darrington.wattle.id.au>.
4810
4811 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
4812
4813         doc: fix typo in README-release
4814         * top/README-release: Capitalize first word of a sentence.
4815
4816 2011-08-19  Jim Meyering  <meyering@redhat.com>
4817
4818         fts: do not exhaust memory when processing million-entry directories
4819         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
4820         directory would require about 256*N bytes of memory.  Thus, it was
4821         easy to construct a directory too large to be processed by any of
4822         those tools.  With this change, fts' maximum memory utilization is
4823         now limited to around 30MB.
4824         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
4825         (fts_read): When we've processed the final entry (i.e., when
4826         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
4827         using the parent entry to read any remaining entries.  Dispatch
4828         depending on what fts_build returns:
4829         - NULL+stop, aka failure: stop
4830         - NULL otherwise: move up in the dir hierarchy
4831         - non-NULL: handle this new entry
4832         (fts_build): Declare and use new local, continue_readdir.
4833         Prepare to be called from fts_read, when the entries
4834         from a partially-read directory have just been exhausted.
4835         In that case, we'll skip the opendir and instead use the parent's
4836         fts_dirp and derive dir_fd from that.
4837         Finally, in the readdir loop, if we read max_entries entries,
4838         exit the loop ensuring *not* to call closedir.  This is required
4839         so that fts_dirp can be reused on a subsequent call.
4840         Prompted by Ben England's report of memory exhaustion in find
4841         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
4842
4843         maint: fts: move decl of `dp' down into while loop; split a long line
4844         * lib/fts.c (fts_build): No semantic change.
4845
4846         fts: add/use new struct member, fts_dirp
4847         We are about to use this to manage any directory with
4848         too many entries to read all of them into memory at once.
4849         To do that, we'll need to save the DIR* pointer in each
4850         affected FTSENT struct.
4851         * lib/fts_.h: Include <dirent.h>.
4852         (struct FTSENT) [fts_dirp]: New member.
4853         * lib/fts.c (closedir_and_clear): Define.
4854         Use it in place of closedir so that we are sure to
4855         clear the new fts_dirp member when done with it.
4856         (fts_alloc): Initialize the new member.
4857         (fts_lfree): Free, if needed.
4858
4859         maint: fts: give __opendir2 a new parameter and rename
4860         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
4861         than surreptitiously using sole caller's "dir_fd".
4862         (fts_opendir): Rename from __opendir2.
4863
4864         maint: fts.c: remove __opendir2's now-unused parameter, oflag
4865         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
4866
4867         maint: fts.c: correct off-by-one indentation
4868         * lib/fts.c (fts_build): Correct indentation, change style
4869         of a couple of block comments, and bracing style.
4870
4871         maint: fts.c: move __opendir2 #define "up" out of function body
4872         * lib/fts.c (__opendir2): Move "up".  No semantic change.
4873
4874         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
4875         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
4876         out for a long time and besides was useful only on BSD systems.
4877
4878 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
4879
4880         regex: port to Stratus OpenVOS
4881         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
4882         define to empty, rather than attempting nonportable optimizations.
4883         Problem reported by Paul Green in:
4884         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
4885         and fix suggested by Eric Blake in:
4886         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
4887
4888 2011-08-17  Eric Blake  <eblake@redhat.com>
4889
4890         getcwd: fix test failures on mingw
4891         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
4892         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
4893         test if long directory cannot be created, and allow mingw errno.
4894
4895         getcwd-lgpl: fix m4 to match relaxed test for BSD
4896         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
4897         (gl_FUNC_GETCWD_SIGNATURE): New macro.
4898         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
4899         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
4900         signature problem.
4901
4902         getcwd: fix compilation on mingw64
4903         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
4904         getcwd.
4905         Reported by Marc-André Lureau.
4906
4907         pipe2: silence compiler warning
4908         * lib/pipe2.c (pipe2): Hide label if it is not used.
4909
4910 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
4911
4912         relocatable-prog: fix link error
4913         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
4914         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
4915         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
4916         into modules/relocatable-lib without noticing that
4917         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
4918         also needs to build relocatable.c.
4919
4920 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
4921
4922         getaddrinfo: fix sh typo in gai_strerrorA decl checking
4923         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
4924         shell code: it contained a 'break' that was not in a loop.
4925         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
4926         via a shell-language loop; this may have been true in old Autoconf
4927         versions, but it's not true in Autoconf 2.68.  I found this bug
4928         when testing coreutils git on Solaris 8, whose shell complains
4929         about the syntax error.
4930
4931 2011-08-12  Simon Josefsson  <simon@josefsson.org>
4932
4933         * lib/base64.c: Fix comment to reference RFC 4648.
4934         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
4935         <gvtulder@gmail.com>.
4936
4937 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
4938
4939         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
4940
4941         po/Makefile.in.in: fix make -q problem
4942         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
4943         rule, since there's no file named 'check-macro-version' and its
4944         use as a file breaks make -q.
4945         (all): Don't depend on check-macro-version.
4946         (CHECK_MACRO_VERSION): New macro.
4947         (stamp-po): Use it.
4948
4949         configmake: fix make -q problem
4950         * modules/configmake (configmake.h): Update configmake.h's time stamp
4951         even if the file does not change.  Otherwise, 'make -q' fails.
4952         Problem reported by Simon Josefsson in
4953         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
4954
4955 2011-08-11  Jim Meyering  <meyering@redhat.com>
4956
4957         git-version-gen: correct the advice in a comment
4958         * build-aux/git-version-gen: Correct comment.
4959         Don't recommend to list .tarball-version in .gitignore.
4960
4961 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
4962
4963         base64: fix off-by-one buffer size bug
4964         Problem and (trivial) fix reported by Gijs van Tulder in
4965         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
4966         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
4967         * tests/test-base64.c (main): Catch the bug.
4968
4969 2011-08-10  Eric Blake  <eblake@redhat.com>
4970
4971         closein: correct comments
4972         * lib/closein.c (close_stdin): Improve comments.
4973
4974 2011-08-09  Bruno Haible  <bruno@clisp.org>
4975
4976         More tests for 'fseeko'.
4977         * tests/test-fseeko3.c: New file, from Eric Blake.
4978         * tests/test-fseeko3.sh: New file.
4979         * modules/fseeko-tests (Files): Add them.
4980         (TESTS): Add test-fseeko3.sh.
4981         (check_PROGRAMS): Add test-fseeko3.
4982
4983 2011-08-09  Eric Blake  <eblake@redhat.com>
4984
4985         fseeko: remove unneeded hack
4986         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
4987
4988         fseeko: fix bug on glibc
4989         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
4990         Reported by John W. Eaton.
4991
4992 2011-08-08  Bruno Haible  <bruno@clisp.org>
4993
4994         unictype/base: Fix interoperability with preinstalled libunistring.
4995         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
4996         Reported by Simon Josefsson.
4997
4998 2011-08-08  Bruno Haible  <bruno@clisp.org>
4999
5000         iswblank: Detect declaration correctly.
5001         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
5002         AC_CHECK_DECLS invocation.
5003
5004 2011-08-08  Bruno Haible  <bruno@clisp.org>
5005
5006         tcgetsid: Detect declaration correctly.
5007         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
5008         AC_CHECK_DECLS invocation.
5009         Reported by Simon Josefsson.
5010
5011 2011-08-08  Eric Blake  <eblake@redhat.com>
5012
5013         largefile: fix typo that regressed large file support
5014         * modules/largefile (configure.ac-early): Fix section name.
5015
5016 2011-08-06  Karl Berry  <karl@gnu.org>
5017
5018         * MODULES.html.sh (func_all_files): _Noreturn is no longer
5019         a separate module.
5020
5021 2011-08-05  Simon Josefsson  <simon@josefsson.org>
5022
5023         openat: Fix warnings and commens when building unlinkat.c on Hurd.
5024         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
5025         get prototype for free.
5026
5027 2011-08-04  Bruno Haible  <bruno@clisp.org>
5028
5029         Tests for module 'pathmax'.
5030         * modules/pathmax-tests: New file.
5031         * tests/test-pathmax.c: New file.
5032
5033         canonicalize-lgpl: Support larger filenames on the Hurd.
5034         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
5035         Reported by Paul Eggert.
5036
5037         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
5038         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
5039         * lib/chdir-long.h: Include pathmax.h.
5040         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
5041         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
5042         (PATH_MAX): Remove code that is done by pathmax.h.
5043         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
5044         * lib/tmpfile.c: Add a comment.
5045         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
5046         * modules/chdir-long (Depends-on): Add pathmax.
5047         * modules/getcwd (Depends-on): Add pathmax.
5048         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
5049         is not defined.
5050         * doc/posix-headers/limits.texi: Mention the pathmax module.
5051         * NEWS: Mention the change.
5052
5053 2011-08-02  Bruno Haible  <bruno@clisp.org>
5054
5055         pthread_sigmask: Actually use results of gl_THREADLIB.
5056         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
5057         gl_THREADLIB, not gl_[]THREADLIB.
5058         Reported by Eric Blake.
5059
5060 2011-08-02  Jim Meyering  <meyering@redhat.com>
5061
5062         maint.mk: relax the default _gl_TS_function_match regexp
5063         * top/maint.mk (_gl_TS_function_match): Don't require at least one
5064         space between function name and "(" in an "extern" declaration.
5065         That would fail to match a decl with no space there: extern void foo();
5066
5067 2011-07-31  Iain Nicol  <iain@thenicols.net>
5068
5069         git-version-gen: document that EXTRA_DIST must include .version
5070         * build-aux/git-version-gen: In the how-to-use comment, document
5071         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
5072         will fail when run from an unpacked distribution tarball.
5073
5074 2011-08-01  Bruno Haible  <bruno@clisp.org>
5075
5076         wctype-h: Fix last change.
5077         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
5078         REPLACE_TOWLOWER to 0.
5079         Reported by Sam Steingold <sds@gnu.org>.
5080
5081 2011-07-31  Bruno Haible  <bruno@clisp.org>
5082
5083         frexpl: Update autoconf test.
5084         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
5085         according to changes of 2011-06-20.
5086
5087 2011-07-31  Bruno Haible  <bruno@clisp.org>
5088
5089         sys_utsname: Add support for Minix.
5090         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
5091         <sys/utsname.h>.
5092         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
5093         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
5094
5095 2011-07-31  Bruno Haible  <bruno@clisp.org>
5096
5097         strings: Add support for Minix.
5098         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
5099         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
5100         * doc/posix-headers/strings.texi: Document the Minix problem.
5101
5102 2011-07-31  Bruno Haible  <bruno@clisp.org>
5103
5104         wctype-h: Add support for Minix.
5105         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
5106         REPLACE_TOWLOWER.
5107         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
5108         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
5109         REPLACE_ISWCNTRL.
5110
5111 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
5112
5113         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
5114         This is a performance improvement for 64-bit hosts: it causes the
5115         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
5116
5117 2011-07-31  Bruno Haible  <bruno@clisp.org>
5118
5119         stdioext: Add support for Minix.
5120         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
5121         * lib/fpurge.c (fpurge): Likewise.
5122         * lib/freadahead.c (freadahead): Likewise.
5123         * lib/freadable.c (freadable): Likewise.
5124         * lib/freading.c (freading): Likewise.
5125         * lib/freadptr.c (freadptr): Likewise.
5126         * lib/freadseek.c (freadptrinc): Likewise.
5127         * lib/fseeko.c (rpl_fseeko): Likewise.
5128         * lib/fseterr.c (fseterr): Likewise.
5129         * lib/fwritable.c (fwritable): Likewise.
5130         * lib/fwriting.c (fwriting): Likewise.
5131         * lib/fflush.c (clear_ungetc_buffer): Update comment.
5132         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
5133
5134 2011-07-31  Bruno Haible  <bruno@clisp.org>
5135
5136         errno: Port to Minix.
5137         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
5138         ECONNABORTED are defined.
5139         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
5140         GNULIB_defined_ECONNABORTED): New macros.
5141         * lib/strerror-override.h (strerror_override): Test also
5142         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
5143         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
5144         ECONNABORTED.
5145         * doc/posix-headers/errno.texi: Mention the Minix problem.
5146
5147 2011-07-31  Bruno Haible  <bruno@clisp.org>
5148
5149         Work around declaration collisions on Minix.
5150         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
5151         defined, set REPLACE_MBSINIT.
5152         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
5153         defined, set REPLACE_MBRTOWC.
5154         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
5155         set REPLACE_MBRLEN.
5156         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
5157         defined, set REPLACE_MBSRTOWCS.
5158         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
5159         defined, set REPLACE_WCRTOMB.
5160         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
5161         defined, set REPLACE_WCSRTOMBS.
5162
5163 2011-07-31  Bruno Haible  <bruno@clisp.org>
5164
5165         Add support for Minix with ACK compiler.
5166         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
5167         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
5168         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
5169
5170 2011-07-31  Bruno Haible  <bruno@clisp.org>
5171
5172         Documentation about Minix.
5173         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
5174         * doc/glibc-headers/*.texi: Likewise.
5175         * doc/posix-functions/*.texi: Likewise.
5176         * doc/glibc-functions/*.texi: Likewise.
5177
5178 2011-07-31  Bruno Haible  <bruno@clisp.org>
5179
5180         snippet/warn-on-use: Fix indentation.
5181         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
5182
5183 2011-07-25  Jim Meyering  <meyering@redhat.com>
5184
5185         tests: test-update-copyright.sh: remove unnecessary "rm" commands
5186         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
5187         commands.
5188
5189 2011-07-27  Jim Meyering  <meyering@redhat.com>
5190
5191         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
5192         * top/maint.mk (gl_extract_significant_defines_): Now that
5193         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
5194         gnulib/lib/signal.in.h, and now that we recommend to
5195         define-if-undefined those two symbols in application code,
5196         we must filter them out of the "significant" list.
5197         This avoids a "make syntax-check" failure in coreutils.
5198
5199 2011-07-26  Eric Blake  <eblake@redhat.com>
5200
5201         warnings: add comments about previous patch
5202         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
5203         * m4/include_next.m4: Likewise.
5204         * m4/warn-on-use.m4: Likewise.
5205         * m4/warnings.m4: Likewise, and simplify use.
5206         Suggested by Stefano Lattarini.
5207
5208         include-next, warnings: support older autoconf
5209         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
5210         AS_VAR_PUSHDEF in a way that works with older autoconf.
5211         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
5212         Reported by Daniel P. Berrange.
5213
5214 2011-07-25  Bruno Haible  <bruno@clisp.org>
5215
5216         fseek, ftell: Fix doc.
5217         * doc/posix-functions/fseek.texi: Reword statement about
5218         AC_SYS_LARGEFILE.
5219         * doc/posix-functions/ftell.texi: Likewise.
5220
5221 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
5222             Bruno Haible  <bruno@clisp.org>
5223
5224         Add dependencies to the 'largefile' module.
5225         * modules/fopen (Depends-on): Add 'largefile'.
5226         * modules/freopen (Depends-on): Likewise.
5227         * modules/fseeko (Depends-on): Likewise.
5228         * modules/ftello (Depends-on): Likewise.
5229         * modules/glob (Depends-on): Likewise.
5230         * modules/lseek (Depends-on): Likewise.
5231         * modules/lstat (Depends-on): Likewise.
5232         * modules/mkostemp (Depends-on): Likewise.
5233         * modules/mkostemps (Depends-on): Likewise.
5234         * modules/mkstemp (Depends-on): Likewise.
5235         * modules/mkstemps (Depends-on): Likewise.
5236         * modules/open (Depends-on): Likewise.
5237         * modules/openat (Depends-on): Likewise.
5238         * modules/pread (Depends-on): Likewise.
5239         * modules/pwrite (Depends-on): Likewise.
5240         * modules/scandir (Depends-on): Likewise.
5241         * modules/stat (Depends-on): Likewise.
5242         * modules/tmpfile (Depends-on): Likewise.
5243         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
5244         since the containing module now depends on the largefile module.
5245         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
5246         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
5247         off_t is fixed by gnulib.
5248         * doc/posix-functions/freopen.texi: Likewise.
5249         * doc/posix-functions/fseeko.texi: Likewise.
5250         * doc/posix-functions/fstatat.texi: Likewise.
5251         * doc/posix-functions/ftello.texi: Likewise.
5252         * doc/posix-functions/glob.texi: Likewise.
5253         * doc/posix-functions/lseek.texi: Likewise.
5254         * doc/posix-functions/lstat.texi: Likewise.
5255         * doc/posix-functions/mkstemp.texi: Likewise.
5256         * doc/posix-functions/open.texi: Likewise.
5257         * doc/posix-functions/openat.texi: Likewise.
5258         * doc/posix-functions/pread.texi: Likewise.
5259         * doc/posix-functions/pwrite.texi: Likewise.
5260         * doc/posix-functions/scandir.texi: Likewise.
5261         * doc/posix-functions/stat.texi: Likewise.
5262         * doc/posix-functions/tmpfile.texi: Likewise.
5263         * doc/glibc-functions/mkostemp.texi: Likewise.
5264         * doc/glibc-functions/mkostemps.texi: Likewise.
5265         * doc/glibc-functions/mkstemps.texi: Likewise.
5266
5267 2011-07-25  Bruno Haible  <bruno@clisp.org>
5268
5269         fcntl: Move AC_LIBOBJ invocation to module description.
5270         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
5271         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
5272
5273         fcntl: Remove call-in from fchdir.m4.
5274         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
5275         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
5276
5277         dup3: Remove potential call-in from fchdir.m4.
5278         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
5279         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
5280
5281         dup2: Move AC_LIBOBJ invocation to module description.
5282         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
5283         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
5284         Don't invoke AC_LIBOBJ.
5285         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
5286
5287         dup2: Remove call-in from fchdir.m4.
5288         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
5289         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
5290
5291         fclose: Move AC_LIBOBJ invocation to module description.
5292         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
5293         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
5294         to 1.
5295         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
5296
5297         fclose: Remove call-in from close.m4.
5298         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
5299         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
5300
5301         close: Move AC_LIBOBJ invocation to module description.
5302         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
5303         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
5304         1.
5305         * modules/close (configure.ac): Invoke AC_LIBOBJ.
5306
5307         close: Remove call-in from fchdir.m4.
5308         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
5309         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
5310
5311         open: Move AC_LIBOBJ invocation to module description.
5312         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
5313         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
5314         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
5315
5316         open: Remove call-in from fchdir.m4.
5317         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
5318         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
5319
5320         fchdir: Start to remove gl_REPLACE_* idiom.
5321         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
5322         (gl_FUNC_FCHDIR): Invoke it.
5323
5324 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
5325
5326         * lib/ftell.c (ftell): Comment out cast.
5327
5328         close: use gl_REPLACE_FCLOSE only if defined
5329         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
5330         is defined.  The close module doesn't depend on the fclose module
5331         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
5332         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
5333         I reproduced the problem with "./gnulib-tool --test close sys_socket".
5334
5335 2011-07-24  Jim Meyering  <meyering@redhat.com>
5336
5337         test-select.h: avoid warning when using gcc's -Wmissing-declarations
5338         * tests/test-select.h (test_function): Declare as "static".
5339
5340 2011-07-24  Bruno Haible  <bruno@clisp.org>
5341
5342         doc: Mention the effects of AC_SYS_LARGEFILE.
5343         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
5344         on this function.
5345         * doc/posix-functions/aio_error.texi: Likewise.
5346         * doc/posix-functions/aio_fsync.texi: Likewise.
5347         * doc/posix-functions/aio_read.texi: Likewise.
5348         * doc/posix-functions/aio_return.texi: Likewise.
5349         * doc/posix-functions/aio_suspend.texi: Likewise.
5350         * doc/posix-functions/aio_write.texi: Likewise.
5351         * doc/posix-functions/fgetpos.texi: Likewise.
5352         * doc/posix-functions/fopen.texi: Likewise.
5353         * doc/posix-functions/freopen.texi: Likewise.
5354         * doc/posix-functions/fsetpos.texi: Likewise.
5355         * doc/posix-functions/fstatvfs.texi: Likewise.
5356         * doc/posix-functions/ftruncate.texi: Likewise.
5357         * doc/posix-functions/ftw.texi: Likewise.
5358         * doc/posix-functions/getrlimit.texi: Likewise.
5359         * doc/posix-functions/glob.texi: Likewise.
5360         * doc/posix-functions/lio_listio.texi: Likewise.
5361         * doc/posix-functions/lockf.texi: Likewise.
5362         * doc/posix-functions/mkstemp.texi: Likewise.
5363         * doc/posix-functions/mmap.texi: Likewise.
5364         * doc/posix-functions/nftw.texi: Likewise.
5365         * doc/posix-functions/openat.texi: Likewise.
5366         * doc/posix-functions/opendir.texi: Likewise.
5367         * doc/posix-functions/posix_fadvise.texi: Likewise.
5368         * doc/posix-functions/posix_fallocate.texi: Likewise.
5369         * doc/posix-functions/pread.texi: Likewise.
5370         * doc/posix-functions/pwrite.texi: Likewise.
5371         * doc/posix-functions/readdir.texi: Likewise.
5372         * doc/posix-functions/readdir_r.texi: Likewise.
5373         * doc/posix-functions/rewinddir.texi: Likewise.
5374         * doc/posix-functions/scandir.texi: Likewise.
5375         * doc/posix-functions/seekdir.texi: Likewise.
5376         * doc/posix-functions/setrlimit.texi: Likewise.
5377         * doc/posix-functions/statvfs.texi: Likewise.
5378         * doc/posix-functions/telldir.texi: Likewise.
5379         * doc/posix-functions/tmpfile.texi: Likewise.
5380         * doc/posix-functions/truncate.texi: Likewise.
5381         * doc/glibc-functions/fallocate.texi: Likewise.
5382         * doc/glibc-functions/fstatfs.texi: Likewise.
5383         * doc/glibc-functions/fts_children.texi: Likewise.
5384         * doc/glibc-functions/fts_read.texi: Likewise.
5385         * doc/glibc-functions/getdirentries.texi: Likewise.
5386         * doc/glibc-functions/mkostemp.texi: Likewise.
5387         * doc/glibc-functions/mkostemps.texi: Likewise.
5388         * doc/glibc-functions/mkstemps.texi: Likewise.
5389         * doc/glibc-functions/preadv.texi: Likewise.
5390         * doc/glibc-functions/pwritev.texi: Likewise.
5391         * doc/glibc-functions/sendfile.texi: Likewise.
5392         * doc/glibc-functions/statfs.texi: Likewise.
5393
5394 2011-07-24  Bruno Haible  <bruno@clisp.org>
5395
5396         doc: Fix typo.
5397         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
5398
5399 2011-07-24  Bruno Haible  <bruno@clisp.org>
5400
5401         doc: Mention fsusage.
5402         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
5403
5404 2011-07-24  Bruno Haible  <bruno@clisp.org>
5405
5406         doc: Mention new glibc headers and functions.
5407         * doc/glibc-headers/gshadow.texi: New file.
5408         * doc/glibc-functions/endsgent.texi: New file.
5409         * doc/glibc-functions/fgetsgent.texi: New file.
5410         * doc/glibc-functions/fgetsgent_r.texi: New file.
5411         * doc/glibc-functions/getsgent.texi: New file.
5412         * doc/glibc-functions/getsgent_r.texi: New file.
5413         * doc/glibc-functions/getsgnam.texi: New file.
5414         * doc/glibc-functions/getsgnam_r.texi: New file.
5415         * doc/glibc-functions/putsgent.texi: New file.
5416         * doc/glibc-functions/setsgent.texi: New file.
5417         * doc/glibc-functions/sgetsgent.texi: New file.
5418         * doc/glibc-functions/sgetsgent_r.texi: New file.
5419         * doc/glibc-functions/malloc_info.texi: New file.
5420         * doc/glibc-functions/preadv.texi: New file.
5421         * doc/glibc-functions/pwritev.texi: New file.
5422         * doc/glibc-functions/register_printf_modifier.texi: New file.
5423         * doc/glibc-functions/register_printf_specifier.texi: New file.
5424         * doc/glibc-functions/register_printf_type.texi: New file.
5425         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
5426         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
5427         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
5428         * doc/glibc-functions/pthread_getname_np.texi: New file.
5429         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
5430         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
5431         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
5432         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
5433         * doc/glibc-functions/pthread_setname_np.texi: New file.
5434         * doc/glibc-functions/pthread_sigqueue.texi: New file.
5435         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
5436         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
5437         * doc/glibc-functions/qsort_r.texi: New file.
5438         * doc/glibc-functions/quick_exit.texi: New file.
5439         * doc/glibc-functions/syncfs.texi: New file.
5440         * doc/gnulib.texi: Include them.
5441         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
5442         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
5443         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
5444         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
5445         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
5446         * doc/glibc-functions/execvpe.texi: Likewise.
5447
5448 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
5449
5450         ftell: don't include <unistd.h>
5451         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
5452         guaranteed to define off_t, and the ftell module depends on the
5453         stdio module.
5454
5455         ftell: do not assume wraparound signed arithmetic
5456         * lib/ftell.c: Include <limits.h>.
5457         (ftell): Don't assume wraparound signed arithmetic.
5458
5459 2011-07-24  Bruno Haible  <bruno@clisp.org>
5460
5461         close: No longer depend on module 'fclose'.
5462         * modules/close (Depends-on): Remove fclose.
5463         * NEWS: Mention the change.
5464         Suggested by Sam Steingold <sds@gnu.org>.
5465
5466 2011-07-24  Bruno Haible  <bruno@clisp.org>
5467
5468         fsusage: Enable large volume support on AIX >= 5.2.
5469         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
5470         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
5471         instead of STAT_STATVFS.
5472         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
5473
5474         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
5475         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
5476         f_blocks field only on MacOS X.
5477
5478         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
5479         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
5480         * modules/fsusage (Depends-on): Add largefile.
5481
5482 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
5483
5484         * README: Modernize discussion of signed integers.
5485         Assuming overflow wraparound is no longer safe.
5486         Mention ones' complement and signed magnitude.
5487
5488 2011-07-22  Bruno Haible  <bruno@clisp.org>
5489
5490         select tests, pselect tests: Refactor.
5491         * tests/test-select.h: New file, extracted from tests/test-select.c.
5492         (select_fn): New type.
5493         (test, do_select, do_select_nowait, do_select_wait, test_tty,
5494         test_connect_first, test_accept_first, test_pair, test_socket_pair,
5495         test_pipe): Add my_select argument.
5496         (test_function): Renamed from main. Add my_select argument.
5497         * tests/test-select.c: Move most code to tests/test-select.h. Include
5498         test-select.h.
5499         * modules/select-tests (Files): Add tests/test-select.h.
5500         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
5501         (my_select, main): New functions.
5502         * modules/pselect-tests (Files): Add tests/test-select.h,
5503         tests/macros.h, tests/signature.h.
5504         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
5505         (configure.ac): Check for <sys/wait.h>.
5506
5507 2011-07-22  Bruno Haible  <bruno@clisp.org>
5508
5509         sys_select tests: Check the signature of FD_*.
5510         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
5511         signature tests from here...
5512         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
5513         here.
5514         * modules/sys_select-tests (Files): Add tests/signature.h.
5515
5516 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
5517
5518         largefile: new module, replacing large-inode
5519         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
5520         * MODULES.html.sh: Add largefile, remove large-inode.
5521         * modules/largefile, m4/largefile.m4: New files.
5522         * modules/large-inode, m4/large-inode.m4: Remove.
5523
5524         fsusage: port to MacOS X 10.7 with 4 TiB file systems
5525         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
5526         implementations that use only 32 bits to count blocks.
5527         On typical hosts with 1024-byte blocks, this fails with file
5528         systems as small as 4 TiB.  Problem reported by Herb Wartens
5529         <http://debbugs.gnu.org/9140> and this should also fix a similar
5530         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
5531
5532         large-inode: New module
5533         * MODULES.html.sh: Add it.
5534         * modules/large-inode, m4/large-inode.m4: New files.
5535
5536         extensions: Enable extensions on MacOS X 10.5 and later.
5537         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
5538
5539 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
5540
5541         file-has-acl: use acl_extended_file_nofollow if available
5542         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
5543         (acl_extended_file): New macro.
5544         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
5545         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
5546
5547 2011-07-21  Bruno Haible  <bruno@clisp.org>
5548
5549         Declare system functions in a way that works with C++.
5550         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
5551         declare fdopendir as extern "C".
5552         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
5553         declare frexpl as extern "C".
5554         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
5555         declare gai_strerror as extern "C".
5556         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
5557         programs, declare gai_strerror as extern "C".
5558         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
5559         declare getlogin_r as extern "C".
5560         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
5561         as extern "C".
5562         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
5563         declare ldexpl as extern "C".
5564         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
5565         as extern "C".
5566         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
5567         program, declare getmntinfo as extern "C".
5568         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
5569         stpncpy as extern "C".
5570         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
5571         program, declare __xpg_strerror_r as extern "C".
5572         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
5573         strndup as extern "C".
5574         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
5575         declare memset and bzero as extern "C".
5576         Reported by Sam Steingold <sds@gnu.org>.
5577
5578 2011-07-12  Jim Meyering  <meyering@redhat.com>
5579
5580         maint.mk: prohibit inclusion of "verify.h" without use
5581         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
5582
5583 2011-07-19  Pádraig Brady  <P@draigBrady.com>
5584
5585         timer-time: A new module to check for timer_settime()
5586         * m4/timer_time.m4: Check for the posix function.
5587         * modules/timer-time: Add the new module.
5588         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
5589         Mention it.
5590
5591 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
5592             Bruno Haible  <bruno@clisp.org>
5593
5594         pthread_sigmask: assume POSIX threads if --avoid=threadlib
5595         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
5596         not defined, assume POSIX threads and look for pthread_sigmask in
5597         $LIBS, without changing $CPPFLAGS.
5598
5599 2011-07-19  Bruno Haible  <bruno@clisp.org>
5600
5601         strstr: Update cross-compilation guess.
5602         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
5603         CPUs, guess no, in view of glibc
5604         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
5605         Suggested by Eric Blake. Reported by Reuben Thomas.
5606
5607 2011-07-19  Pádraig Brady  <P@draigBrady.com>
5608
5609         getopt-gnu: suppress core dumps from detection code
5610         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
5611         to suppress core dumps that may well occur on glibc systems.
5612         * modules/getopt-gnu: Depend on nocrash.
5613
5614 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
5615
5616         pthread_sigmask: ensure usleep is declared
5617         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
5618         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
5619
5620 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
5621
5622         doc: Document NonStop portability issues.
5623         * doc/posix-functions/sigaction.texi (sigaction):
5624         * doc/posix-headers/signal.texi (signal.h):
5625         Document NonStop.  See Joachim Schmitz in
5626         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
5627
5628 2011-07-15  Bruno Haible  <bruno@clisp.org>
5629
5630         ffsl, ffsll: Avoid unportable behaviour.
5631         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
5632
5633 2011-07-15  Bruno Haible  <bruno@clisp.org>
5634
5635         ffs: More tests.
5636         * tests/test-ffs.c (NBITS): New macro.
5637         (main): Add more tests.
5638         * tests/test-ffsl.c (NBITS): New macro.
5639         (main): Add more tests.
5640         * tests/test-ffsll.c (NBITS): New macro.
5641         (main): Add more tests.
5642
5643 2011-07-15  Eric Blake  <eblake@redhat.com>
5644
5645         ffsl, ffsll: new modules
5646         * modules/ffsl: New file.
5647         * modules/ffsll: Likewise.
5648         * m4/ffsl.m4: Likewise.
5649         * m4/ffsll.m4: Likewise.
5650         * lib/ffsl.c: Likewise.
5651         * lib/ffsl.h: Likewise.
5652         * lib/ffsll.c: Likewise.
5653         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
5654         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
5655         * modules/string (Makefile.am): Substitute witnesses.
5656         * lib/strings.in.h (ffsl, ffsll): Declare.
5657         * modules/ffsl-tests: New test file.
5658         * modules/ffsll-tests: Likewise.
5659         * tests/test-ffsl.c: Likewise.
5660         * tests/test-ffsll.c: Likewise.
5661         * MODULES.html.sh (Integer arithmetic functions): Mention it.
5662         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
5663         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
5664
5665         ffs: fix m4 prerequisite
5666         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
5667
5668         ffs: avoid undefined behavior
5669         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
5670         * tests/test-ffs.c (naive, main): Avoid signed shifts.
5671         Reported by Bruno Haible.
5672
5673 2011-07-12  Bruno Haible  <bruno@clisp.org>
5674
5675         pthread_sigmask: Rely on module 'threadlib'.
5676         * modules/pthread_sigmask (Depends-on): Add threadlib.
5677         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
5678         is defined.
5679
5680 2011-07-12  Bruno Haible  <bruno@clisp.org>
5681
5682         regex: Depend on module 'strcase'.
5683         * modules/regex (Depends-on): Add strcase, for strcasecmp().
5684
5685 2011-07-12  Jim Meyering  <meyering@redhat.com>
5686
5687         warn-on-use: fix typo in file name
5688         * modules/snippet/warn-on-use (Files): Correct file name:
5689         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
5690
5691 2011-07-12  Bruno Haible  <bruno@clisp.org>
5692
5693         strings: Document module.
5694         * doc/posix-headers/strings.texi: Mention module 'strings'.
5695
5696 2011-07-12  Bruno Haible  <bruno@clisp.org>
5697
5698         Rename module '_Noreturn' to 'snippet/_Noreturn'.
5699         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
5700         (Files, Makefile.am): Update.
5701         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
5702         * modules/stdlib (Depends-on): Update.
5703
5704 2011-07-12  Bruno Haible  <bruno@clisp.org>
5705
5706         * NEWS: Mention the changes.
5707
5708         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
5709         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
5710         (Files, Makefile.am): Update.
5711         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
5712         * modules/arpa_inet (Depends-on): Update.
5713         * modules/ctype (Depends-on): Update.
5714         * modules/dirent (Depends-on): Update.
5715         * modules/fcntl-h (Depends-on): Update.
5716         * modules/glob (Depends-on): Update.
5717         * modules/iconv-h (Depends-on): Update.
5718         * modules/inttypes-incomplete (Depends-on): Update.
5719         * modules/langinfo (Depends-on): Update.
5720         * modules/locale (Depends-on): Update.
5721         * modules/math (Depends-on): Update.
5722         * modules/netdb (Depends-on): Update.
5723         * modules/poll-h (Depends-on): Update.
5724         * modules/pty (Depends-on): Update.
5725         * modules/search (Depends-on): Update.
5726         * modules/signal (Depends-on): Update.
5727         * modules/spawn (Depends-on): Update.
5728         * modules/stdio (Depends-on): Update.
5729         * modules/stdlib (Depends-on): Update.
5730         * modules/string (Depends-on): Update.
5731         * modules/strings (Depends-on): Update.
5732         * modules/sys_file (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_times (Depends-on): Update.
5739         * modules/sys_utsname (Depends-on): Update.
5740         * modules/sys_wait (Depends-on): Update.
5741         * modules/termios (Depends-on): Update.
5742         * modules/time (Depends-on): Update.
5743         * modules/unistd (Depends-on): Update.
5744         * modules/wchar (Depends-on): Update.
5745         * modules/wctype-h (Depends-on): Update.
5746         * MODULES.html.sh (Support for building libraries and executables):
5747         Update.
5748
5749         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
5750         * modules/snippet/unused-parameter: Renamed from
5751         modules/unused-parameter.
5752         (Files, Makefile.am): Update.
5753         * build-aux/snippet/unused-parameter.h: Renamed from
5754         build-aux/unused-parameter.h.
5755         * modules/selinux-h (Depends-on): Update.
5756         * modules/unistr/base (Depends-on): Update.
5757         * MODULES.html.sh (Core language properties): Update.
5758
5759         Rename module 'link-warning' to 'snippet/link-warning'.
5760         * modules/snippet/link-warning: Renamed from modules/link-warning.
5761         (Files, Makefile.am): Update.
5762         * build-aux/snippet/link-warning.h: Renamed from
5763         build-aux/link-warning.h.
5764         * MODULES.html.sh (Support for building libraries and executables):
5765         Update.
5766
5767         Rename module 'c++defs' to 'snippet/c++defs'.
5768         * modules/snippet/c++defs: Renamed from modules/c++defs.
5769         (Files, Makefile.am): Update.
5770         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
5771         * modules/arpa_inet (Depends-on): Update.
5772         * modules/ctype (Depends-on): Update.
5773         * modules/dirent (Depends-on): Update.
5774         * modules/fcntl-h (Depends-on): Update.
5775         * modules/glob (Depends-on): Update.
5776         * modules/iconv-h (Depends-on): Update.
5777         * modules/langinfo (Depends-on): Update.
5778         * modules/locale (Depends-on): Update.
5779         * modules/math (Depends-on): Update.
5780         * modules/netdb (Depends-on): Update.
5781         * modules/poll-h (Depends-on): Update.
5782         * modules/pty (Depends-on): Update.
5783         * modules/search (Depends-on): Update.
5784         * modules/signal (Depends-on): Update.
5785         * modules/spawn (Depends-on): Update.
5786         * modules/stdio (Depends-on): Update.
5787         * modules/stdlib (Depends-on): Update.
5788         * modules/string (Depends-on): Update.
5789         * modules/strings (Depends-on): Update.
5790         * modules/sys_ioctl (Depends-on): Update.
5791         * modules/sys_select (Depends-on): Update.
5792         * modules/sys_socket (Depends-on): Update.
5793         * modules/sys_stat (Depends-on): Update.
5794         * modules/sys_time (Depends-on): Update.
5795         * modules/sys_wait (Depends-on): Update.
5796         * modules/termios (Depends-on): Update.
5797         * modules/time (Depends-on): Update.
5798         * modules/unistd (Depends-on): Update.
5799         * modules/wchar (Depends-on): Update.
5800         * modules/wctype-h (Depends-on): Update.
5801
5802         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
5803         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
5804         (Files, Makefile.am): Update.
5805         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
5806         * modules/argv-iter (Depends-on): Update.
5807         * modules/arpa_inet (Depends-on): Update.
5808         * modules/dirent (Depends-on): Update.
5809         * modules/fcntl-h (Depends-on): Update.
5810         * modules/fnmatch (Depends-on): Update.
5811         * modules/getopt-posix (Depends-on): Update.
5812         * modules/glob (Depends-on): Update.
5813         * modules/iconv-h (Depends-on): Update.
5814         * modules/inttypes-incomplete (Depends-on): Update.
5815         * modules/locale (Depends-on): Update.
5816         * modules/math (Depends-on): Update.
5817         * modules/netdb (Depends-on): Update.
5818         * modules/search (Depends-on): Update.
5819         * modules/signal (Depends-on): Update.
5820         * modules/spawn (Depends-on): Update.
5821         * modules/stdio (Depends-on): Update.
5822         * modules/stdlib (Depends-on): Update.
5823         * modules/string (Depends-on): Update.
5824         * modules/strings (Depends-on): Update.
5825         * modules/sys_socket (Depends-on): Update.
5826         * modules/sys_stat (Depends-on): Update.
5827         * modules/sys_time (Depends-on): Update.
5828         * modules/sys_times (Depends-on): Update.
5829         * modules/sys_utsname (Depends-on): Update.
5830         * modules/time (Depends-on): Update.
5831         * modules/unistd (Depends-on): Update.
5832         * modules/wchar (Depends-on): Update.
5833         * MODULES.html.sh (Support for building libraries and executables):
5834         Update.
5835
5836 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
5837
5838         Improvements on _Noreturn and related modules.
5839
5840         modules/_Exit-tests: test _Noreturn too
5841         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
5842         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
5843         (main): Use them.
5844
5845         stdnoreturn, stdnoreturn-tests: remove modules
5846         They're not needed here and a bit premature for use elsewhere.  See
5847         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
5848         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
5849         * tests/test-stdnoreturn.c: Remove files.
5850         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
5851         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
5852         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
5853         and using noreturn.
5854         * modules/openat, modules/sigpipe-die, modules/xalloc:
5855         * modules/xmemdup0, modules/xstrtol:
5856         Remove dependency on stdnoreturn.
5857
5858         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
5859         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
5860         Reparenthesize to avoid GCC warning.
5861         Support Microsoft's syntax.
5862         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
5863
5864         _Noreturn-tests: remove module
5865         * modules/_Noreturn-tests: Remove.
5866         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
5867         * tests/test-_Noreturn.c: Remove.
5868         * tests/test-stdnoreturn.c: Merge from the old
5869         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
5870
5871 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
5872
5873         _Noreturn, stdnoreturn, and related modules.
5874
5875         * top/maint.mk: Adjust to new noreturn support.
5876         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
5877         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
5878
5879         xalloc: use stdnoreturn.h
5880         * lib/xalloc.h: Include <stdnoreturn.h>.
5881         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
5882         * modules/xalloc (Depends-on): Add stdnoreturn.
5883
5884         xstrtol: use stdnoreturn.h
5885         * lib/xstrtol.h: Include <stdnoreturn.h>.
5886         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
5887         * modules/xstrtol (Depends-on): Add stdnoreturn.
5888
5889         xmemdup0: use stdnoreturn.h
5890         * lib/xmemdup0.h: Include <stdnoreturn.h>.
5891         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
5892         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
5893
5894         sigpipe-die: use stdnoreturn.h
5895         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
5896         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
5897         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
5898
5899         openat: use stdnoreturn.h
5900         * lib/openat.h: Include <stdnoreturn.h>.
5901         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
5902         * modules/openat (Depends-on): Add stdnoreturn.
5903
5904         * lib/openat-die.c (openat_save_fail): Modernize comment.
5905
5906         * lib/xalloc-die.c (xalloc_die): Modernize comment.
5907
5908         * lib/glthread/thread.h: Modernize comment.
5909
5910         obstack: use _Noreturn
5911         * lib/obstack.c (__attribute__): Remove macro.
5912         (print_and_abort): Use _Noreturn.
5913
5914         c-stack: use _Noreturn
5915         * lib/c-stack.c (die, overflow_handler, segv_handler):
5916         Use _Noreturn rather than __attribute__((noreturn)).
5917
5918         argmatch-tests, exclude_tests: use _Noreturn
5919         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
5920         Remove.
5921         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
5922
5923         stdlib: use _Noreturn
5924         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
5925         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
5926         * modules/stdlib (Depends-on): Add _Noreturn.
5927         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
5928
5929         stdnoreturn-tests: new module
5930         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
5931
5932         stdnoreturn: new module
5933         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
5934         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
5935
5936         _Noreturn-tests: new module
5937         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
5938
5939         _Noreturn: new module
5940         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
5941         New section, mentioning it.
5942         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
5943
5944         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
5945
5946 2011-07-11  Eric Blake  <eblake@redhat.com>
5947
5948         ffs: new module
5949         * modules/ffs: New file.
5950         * m4/ffs.m4: Likewise.
5951         * lib/ffs.c: Likewise.
5952         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
5953         * modules/strings (Makefile.am): Substitute witness.
5954         (Depends-on): Add c++defs.
5955         * lib/strings.in.h (ffs): Declare.
5956         * modules/ffs-tests: New test file.
5957         * tests/test-ffs.c: Test new module.
5958         * MODULES.html.sh (Integer arithmetic functions): Mention it.
5959         * doc/posix-functions/ffs.texi (ffs): Likewise.
5960
5961         regex: avoid compiler warning
5962         * lib/regex.c (includes): Include <strings.h>, for use of
5963         strcasecmp in regcomp.c.
5964         Reported by Joachim Schmitz.
5965
5966 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
5967
5968         stdint: respect system's intmax_t if INTMAX_MAX
5969         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
5970         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
5971         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
5972         long but int64_t is long long, and where we will clash with the
5973         system intmax_t if we override it.  See
5974         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
5975         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
5976         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
5977         similarly for UINTMAX_C.
5978
5979 2011-07-08  Bruno Haible  <bruno@clisp.org>
5980
5981         pthread_sigmask tests: Avoid a compiler warning.
5982         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
5983         non-zero.
5984
5985         sigprocmask tests: A better way to avoid a compiler warning.
5986         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
5987         (main): Complain if system() returns non-zero.
5988         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
5989
5990 2011-07-08  Bruno Haible  <bruno@clisp.org>
5991
5992         pthread_sigmask: Work around IRIX bug.
5993         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
5994         bug.
5995         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
5996         there may be unblocked pending signals.
5997         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
5998
5999 2011-07-08  Bruno Haible  <bruno@clisp.org>
6000
6001         pthread_sigmask: Work around Cygwin bug.
6002         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
6003         bug.
6004         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
6005         the system's pthread_sigmask function.
6006         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
6007
6008 2011-07-08  Bruno Haible  <bruno@clisp.org>
6009
6010         pthread_sigmask: Work around bug in single-threaded implementation.
6011         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
6012         FreeBSD, HP-UX, Solaris bug.
6013         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
6014         * lib/pthread_sigmask.c: Include <stddef.h>.
6015         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
6016         the system's pthread_sigmask function.
6017         * modules/pthread_sigmask (configure.ac): Invoke
6018         gl_PREREQ_PTHREAD_SIGMASK.
6019         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
6020         HP-UX, Solaris.
6021
6022 2011-07-08  Eric Blake  <eblake@redhat.com>
6023
6024         test-sigprocmask: avoid compiler warning
6025         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
6026         * tests/test-sigprocmask.c (main): Use it to silence warning.
6027         Reported by Jim Meyering.
6028
6029         test-snprintf: avoid compiler warning
6030         * tests/test-snprintf.c (main): Avoid shadowed declaration.
6031         * tests/test-vsnprintf.c (main): Likewise.
6032         Reported by Jim Meyering.
6033
6034 2011-07-08  Bruno Haible  <bruno@clisp.org>
6035
6036         Tests for module 'pthread_sigmask'.
6037         * modules/pthread_sigmask-tests: New file.
6038         * tests/test-pthread_sigmask1.c: New file, based on
6039         tests/test-sigprocmask.c.
6040         * tests/test-pthread_sigmask2.c: New file.
6041
6042 2011-07-08  Jim Meyering  <meyering@redhat.com>
6043
6044         test-getopt.h: avoid warning about an unused variable
6045         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
6046
6047 2011-07-07  Jim Meyering  <meyering@redhat.com>
6048
6049         maint: reduce list of files exempt from sc_prohibit_leading_TABs
6050         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
6051         now that it no longer contains leading TABs.
6052         Remove unused "url=FIXME" statement.
6053
6054 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
6055
6056         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
6057         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
6058         When gl_THREADLIB is not in use, assume that the POSIX sematics
6059         are desired.  This is better for Emacs, which uses POSIX semantics
6060         on GNUish and/or POSIXish platforms, and does not use threads at
6061         all otherwise.
6062
6063         pthread_sigmask: fix typo when testing for libraries
6064         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
6065         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
6066
6067 2011-07-08  Eric Blake  <eblake@redhat.com>
6068
6069         fts: introduce FTS_NOATIME
6070         * lib/fts_.h (FTS_NOATIME): New bit flag.
6071         (FTS_OPTIONMASK): Adjust.
6072         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
6073         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
6074
6075 2011-07-08  Bruno Haible  <bruno@clisp.org>
6076
6077         Tests for module 'thread'.
6078         * modules/thread-tests: New file.
6079         * tests/test-thread_self.c: New file.
6080         * tests/test-thread_create.cc: New file.
6081
6082 2011-07-08  Bruno Haible  <bruno@clisp.org>
6083
6084         thread: Avoid gcc warnings when using gl_thread_self().
6085         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
6086         'void *'.
6087         (gl_thread_self_pointer): Update.
6088
6089 2011-07-07  Bruno Haible  <bruno@clisp.org>
6090
6091         signal-c++-tests: Check declaration of pthread_sigmask.
6092         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
6093         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
6094         $(LIB_PTHREAD_SIGMASK).
6095
6096 2011-07-07  Bruno Haible  <bruno@clisp.org>
6097
6098         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
6099         * lib/signal.in.h (pthread_sigmask): Override if
6100         REPLACE_PTHREAD_SIGMASK is 1.
6101         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
6102         REPLACE_PTHREAD_SIGMASK.
6103         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
6104         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
6105         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
6106         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
6107         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
6108
6109 2011-07-07  Bruno Haible  <bruno@clisp.org>
6110
6111         pthread_sigmask: Ensure declaration in <signal.h>.
6112         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
6113         include <pthread.h>.
6114         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
6115         problem.
6116
6117 2011-07-07  Bruno Haible  <bruno@clisp.org>
6118
6119         pthread_sigmask: Document the module.
6120         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
6121
6122 2011-07-07  Bruno Haible  <bruno@clisp.org>
6123
6124         pthread_sigmask: Follow gnulib conventions.
6125         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
6126         gl_PTHREAD_SIGMASK.
6127         * modules/pthread_sigmask (configure.ac): Update.
6128
6129 2011-07-07  Bruno Haible  <bruno@clisp.org>
6130
6131         pthread_sigmask: Make declaration C++ safe.
6132         * lib/signal.in.h: In two special conditions, just do an #include_next.
6133         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
6134         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
6135         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
6136         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
6137         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
6138         not REPLACE_PTHREAD_MASK.
6139         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
6140         not REPLACE_PTHREAD_MASK.
6141         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
6142
6143 2011-07-07  Bruno Haible  <bruno@clisp.org>
6144
6145         pthread_sigmask: Fix return value.
6146         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
6147         * lib/pthread_sigmask.c: New file.
6148         * modules/pthread_sigmask (Files): Add it.
6149         (configure.ac): Invoke AC_LIBOBJ.
6150
6151 2011-07-07  Eric Blake  <eblake@redhat.com>
6152
6153         getopt: more portable argv creation
6154         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
6155         const, use char arrays rather than strings.
6156         Suggested by Paul Eggert.
6157
6158 2011-07-07  Bruno Haible  <bruno@clisp.org>
6159
6160         Tests for module 'sigprocmask'.
6161         * modules/sigprocmask-tests: New file.
6162         * tests/test-sigprocmask.c: New file.
6163
6164 2011-07-07  Bruno Haible  <bruno@clisp.org>
6165
6166         float tests: Tweak.
6167         * tests/test-float.c (main): Tweak skip message.
6168
6169 2011-07-07  Eric Blake  <eblake@redhat.com>
6170
6171         getopt: avoid compiler warning during configure
6172         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
6173         assigning string literals to non-const pointer.
6174
6175         getopt-gnu: avoid crash in glibc getopt
6176         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
6177         * tests/test-getopt.h (test_getopt): Enhance test.
6178         * tests/test-getopt_long.h (test_getopt_long): Likewise.
6179         * doc/posix-functions/getopt.texi (getopt): Document it.
6180         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
6181         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
6182         Likewise.
6183
6184 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
6185
6186         getopt: handle W; without long options in getopt [BZ #12922]
6187         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
6188         but no long options are defined, just return 'W'.
6189
6190 2011-07-07  Bruno Haible  <bruno@clisp.org>
6191
6192         Avoid literal tabs.
6193         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
6194         variable containing a tab instead of a literal tab.
6195         Reported by Jim Meyering.
6196
6197 2011-07-07  Bruno Haible  <bruno@clisp.org>
6198
6199         Comments.
6200         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
6201
6202 2011-07-06  Bruno Haible  <bruno@clisp.org>
6203
6204         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
6205         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
6206         <winsock2.h>.
6207         (rpl_fd_isset, FD_ISSET): New definitions, copied from
6208         lib/sys_socket.in.h.
6209         (close, gethostname): Hide declarations from <winsock2.h>.
6210         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
6211         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
6212         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
6213         (select): Don't override if gnulib's <sys/select.h> was already
6214         included.
6215         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
6216         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
6217         setsockopt, shutdown, select): Tweak indentation.
6218
6219 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
6220
6221         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
6222         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
6223         in an application that does not use the sys_select module.
6224
6225 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
6226
6227         poll: do not return 0 on timeout=-1
6228         * lib/poll.c: Loop with yield if no events occured
6229
6230 2011-07-06  Eric Blake  <eblake@redhat.com>
6231
6232         pthread_sigmask: always replace when not using pthread
6233         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
6234         replacement when using some threading other than pthread.  Fix
6235         logic bug.
6236
6237 2011-07-06  Bruno Haible  <bruno@clisp.org>
6238
6239         Comments.
6240         * m4/printf.m4: Update comments about mingw.
6241
6242 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
6243
6244         sys_select: define sigset_t more portably
6245         * lib/sys_select.in.h: Always include <sys/types.h>, since
6246         we now need sigset_t and mingw defines it there.
6247         Include <signal.h> before split inclusion guard, to avoid
6248         mishaps on Solaris, whose <signal.h> eventually includes us.
6249         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
6250         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
6251         which come from ...
6252         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
6253         gl_CHECK_TYPE_SIGSET_T.
6254         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
6255         does the real work.
6256         * modules/sys_select (Depends-on): Add 'signal'.
6257
6258         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
6259         Suggested by Bruno Haible.
6260
6261         pselect: Use pthread_sigmask, not sigprocmask.
6262         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
6263         multithreaded apps better than sigprocmask does.
6264         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
6265         sigprocmask directly.
6266
6267 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
6268
6269         * lib/pselect.c (pselect): Use plain name, without "rpl_".
6270         Don't #undef,  since we don't need any underlying pselect.
6271         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
6272         (Depends-on): Add select.
6273         (Link): Add $(LIBSOCKET).
6274         These changes suggested by Bruno Haible.
6275
6276         pselect: document better
6277         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
6278         * doc/posix-functions/pselect.texi (pselect): Document new module.
6279
6280         pthread_sigmask: new module
6281         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
6282         * doc/posix-functions/pthread_sigmask.texi: Document new module.
6283         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
6284         This is done only as a macro; I don't know how well that'll
6285         work for C++.  Move <sys/types.h> include before the include_next,
6286         to avoid mishap on Solaris.
6287         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
6288         * modules/signal (Makefile.am): Substitute the check's results.
6289         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
6290
6291         test-pselect: new module
6292         * modules/pselect-tests, tests/test-pselect.c: New files.
6293         * tests/test-select.c, tests/test-sys_select-c++.cc:
6294         If TEST_PSELECT is defined, test pselect instead of testing select.
6295
6296         * tests/test-sys_select.c (sigset_t): Test for it, too.
6297         Suggested by Bruno Haible.
6298
6299 2011-07-05  Eric Blake  <eblake@redhat.com>
6300
6301         snprintf: guarantee %1$d, for libintl
6302         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
6303         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
6304         * doc/posix-functions/snprintf.texi (snprintf): Update.
6305         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
6306         * tests/test-snprintf.c (main): Enhance test.
6307         * tests/test-vsnprintf.c (main): Likewise.
6308
6309 2011-07-05  Jim Meyering  <meyering@redhat.com>
6310
6311         maint: exempt stdio-read.c and stdio-write.c from the cppi check
6312         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
6313         per Bruno's request, to accommodate this idiom (no space after "#")
6314         even when the function is inside an #if block:
6315         char *
6316         gets (char *s)
6317         #undef gets
6318         {
6319           ...
6320         }
6321
6322 2011-07-04  Jim Meyering  <meyering@redhat.com>
6323
6324         maint: indent with spaces, not TABs, and add a rule to check this
6325         * tests/test-userspec.c: Indent with spaces, not TABs.
6326         * tests/test-argp.c: Likewise.
6327         * tests/test-c-stack2.sh: Likewise.
6328         * tests/test-parse-duration.sh: Likewise
6329         * m4/strtod.m4: Likewise.
6330         * m4/alloca.m4: Likewise.
6331         * m4/pselect.m4: Likewise.
6332         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
6333
6334 2011-07-03  Jim Meyering  <meyering@redhat.com>
6335
6336         maint.mk: correct omissions in prohibit_argmatch_without_use check
6337         This rule would mistakenly report that argmatch.h is included without
6338         use even when both the argmatch and invalid_arg macro were used.
6339         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
6340         of argmatch and invalid_arg.
6341
6342 2011-07-03  Bruno Haible  <bruno@clisp.org>
6343
6344         Comments about EINTR.
6345         * lib/safe-read.h: Explain the purpose of this module.
6346         * lib/safe-write.h: Likewise.
6347         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
6348         module.
6349         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
6350         module.
6351         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
6352
6353 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
6354
6355         xnanosleep: Rewrite to use new dtotimespec module.
6356         It has the conversion code that used to be in xnanosleep.
6357         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
6358         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
6359         (TIME_T_MAX): Remove.
6360         (xnanosleep): Rewrite in terms of dtotimespec.
6361         * modules/xnanosleep (Depends-on): Add dtotimespec.
6362         Remove intprops, stdbool.
6363
6364         timespec-add, timespec-sub: new modules
6365         * lib/timespec.h (timespec_add, timespec_sub): New decls.
6366         * lib/timespec-add.c, lib/timespec-sub.c:
6367         * modules/timespec-add, modules/timespec-sub: New files.
6368
6369         dtotimespec: new module
6370         * lib/timespec.h (dtotimespec): New decl.
6371         * lib/dtotimespec.c, modules/dtotimespec: New files.
6372
6373         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
6374
6375         pselect: new module
6376         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
6377         (pselect): New decls.
6378         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
6379         since the standard pselect decl uses 'restrict'.
6380         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
6381         HAVE_PSELECT, REPLACE_PSELECT.
6382         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
6383         HAVE_PSELECT, REPLACE_PSELECT.
6384         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
6385
6386         sys_select: don't depend on sys_socket
6387         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
6388         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
6389         This fix works on GNU and GNU-like platforms, but has not been tested
6390         on native Windows.
6391         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
6392         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
6393         gl_HEADER_SYS_SOCKET.
6394         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
6395         gl_PREREQ_SYS_H_WINSOCK2.
6396
6397 2011-06-29  Eric Blake  <eblake@redhat.com>
6398
6399         pipe2: fix C89 compile problem
6400         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
6401         Reported by Bruno Haible.
6402
6403         pipe, pipe2: don't corrupt fd on error
6404         * lib/pipe.c (pipe): Leave fd unchanged on error.
6405         * lib/pipe2.c (pipe2): Likewise.
6406         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
6407         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
6408
6409 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
6410
6411         mmap-anon: do not use regular expressions inadvertently
6412         * m4/mmap-anon.m4: Remove trailing period from strings sought
6413         in the output.
6414
6415 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
6416
6417         nanosleep: fix integer overflow problem
6418         * lib/nanosleep.c (my_usleep): Don't assume signed integer
6419         arithmetic wraps around on overflow.
6420
6421         nanosleep: simplify carrying
6422         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
6423         first call to the underyling nanosleep, not for the last one.
6424         This doesn't fix any bugs, but it simplifies the computation of
6425         the remaining delay.  Found while auditing integer overflow issues.
6426
6427         dup2: remove test for existence of fcntl
6428         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
6429         "#if HAVE_FCNTL", in the configure-time test program.
6430         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
6431         and therefore speeds up "configure" a bit.  Found while
6432         adding the dup2 module to Emacs.
6433
6434 2011-06-24  Eric Blake  <eblake@redhat.com>
6435
6436         maint.mk: enhance useless header checks
6437         * top/maint.mk (_sc_header_without_use): Check both include
6438         styles.
6439         (sc_prohibit_assert_without_use)
6440         (sc_prohibit_close_stream_without_use)
6441         (sc_prohibit_getopt_without_use)
6442         (sc_prohibit_quotearg_without_use)
6443         (sc_prohibit_quote_without_use)
6444         (sc_prohibit_long_options_without_use)
6445         (sc_prohibit_inttostr_without_use)
6446         (sc_prohibit_ignore_value_without_use)
6447         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
6448         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
6449         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
6450         (sc_prohibit_hash_pjw_without_use)
6451         (sc_prohibit_safe_read_without_use)
6452         (sc_prohibit_argmatch_without_use)
6453         (sc_prohibit_canonicalize_without_use)
6454         (sc_prohibit_root_dev_ino_without_use)
6455         (sc_prohibit_openat_without_use)
6456         (sc_prohibit_c_ctype_without_use)
6457         (sc_prohibit_signal_without_use)
6458         (sc_prohibit_stdio--_without_use)
6459         (sc_prohibit_stdio-safer_without_use)
6460         (sc_prohibit_strings_without_use)
6461         (sc_prohibit_intprops_without_use)
6462         (sc_prohibit_stddef_without_use)
6463         (sc_prohibit_xfreopen_without_use): Update clients.
6464
6465 2011-06-24  Jim Meyering  <meyering@redhat.com>
6466
6467         syntax-check: keep one maint.mk rule in sync with its header
6468         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
6469         of the bug Eric has just fixed, with today's commit 25e4c2ec.
6470         I prefer to avoid temporary files here, so use <(...), but that
6471         is not supported by /bin/sh, so...
6472         (SHELL): Define to /bin/bash.
6473
6474 2011-06-24  Eric Blake  <eblake@redhat.com>
6475
6476         maint.mk: update sc_prohibit_intprops_without_use
6477         * top/maint.mk (_intprops_names): Match recent changes.
6478
6479 2011-06-24  Bruno Haible  <bruno@clisp.org>
6480
6481         strerror-override: No-op tweak.
6482         * lib/strerror-override.h (strerror_override): Reorder conditions,
6483         for consistency with lib/strerror-override.c.
6484
6485 2011-06-23  Eric Blake  <eblake@redhat.com>
6486
6487         maint.mk: test further PATH_MAX issues
6488         * top/maint.mk (sc_prohibit_path_max_array): Rename...
6489         (sc_prohibit_path_max_allocation): ...and also test alloca.
6490         Suggested by Jim Meyering.
6491
6492 2011-06-22  Eric Blake  <eblake@redhat.com>
6493
6494         maint.mk: add syntax-check to avoid char[PATH_MAX]
6495         * top/maint.mk (sc_prohibit_path_max_array): New rule.
6496
6497         stat: be robust to PATH_MAX definition
6498         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
6499         * modules/stat (Depends-on): Add verify.
6500
6501         link: work around IRIX bug
6502         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
6503         * lib/link.c (rpl_link): Work around it.
6504         * tests/test-link.h (test_link): Enhance test.
6505         * doc/posix-functions/link.texi (link): Document the bug.
6506
6507         getopt: silence clang warning
6508         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
6509         dereference.
6510         Reported by Gustavo Martin Domato.
6511
6512 2011-06-22  Jim Meyering  <meyering@redhat.com>
6513
6514         bootstrap: do not insert a blank line into each .gitignore file
6515         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
6516
6517 2011-06-21  Eric Blake  <eblake@redhat.com>
6518
6519         perror: test for output mismatch
6520         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
6521         perror on IRIX.
6522
6523         strerror_r: fix OpenBSD behavior on out-of-range
6524         * lib/strerror_r.c (strerror_r): Always use maximal string.
6525         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
6526
6527         strerror_r: fix OpenBSD behavior on 0
6528         * lib/strerror-override.c (strerror_override): Also override 0
6529         when needed.
6530         * lib/strerror-override.h (strerror_override): Likewise.
6531         * lib/strerror.c (strerror): Simplify, now that 0 override is done
6532         earlier.
6533         * lib/strerror_r.c (strerror_r): Likewise.
6534         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
6535         behavior...
6536         (gl_FUNC_STRERROR_0): ...into new macro.
6537         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
6538         is overridden.
6539         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
6540         * modules/strerror-override (Files): Add strerror.m4.
6541         (configure.ac): Also provide override for 0 when needed.
6542         * doc/posix-functions/strerror.texi (strerror): Document this.
6543         * doc/posix-functions/perror.texi (perror): Likewise.
6544
6545         perror: adjust array size
6546         * modules/perror (Depends-on): Add strerror-override.
6547         * lib/perror.c (perror): Use it to avoid magic number.
6548
6549         strerror-override: reduce size
6550         * lib/strerror-override.c (strerror_override): Use fewer lines.
6551
6552 2011-06-20  Bruno Haible  <bruno@clisp.org>
6553
6554         pathmax: Ensure correct value for PATH_MAX on HP-UX.
6555         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
6556
6557 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
6558
6559         alloca: port to compilers that can optimize like GCC 4.6.0
6560         * lib/alloca.c (find_stack_direction): New signature, taken from
6561         Autoconf git.  This works with GCC 4.6.0.  This code should never
6562         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
6563         be used with other compilers that optimize as well as GCC 4.6.0 does.
6564         (alloca): Adjust to new signature.
6565         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
6566         New macro, which patches Autoconf in a similar way.
6567
6568         c-stack: stop worrying about stack direction
6569         * lib/c-stack.c (find_stack_direction): Remove.
6570         (segv_handler): Don't worry about stack direction growth, as it's
6571         too much of a pain to configure this correctly, given how compilers
6572         are optimizing-away our stack-growth detection code.  Instead, assume
6573         that any access to just before or just after the stack is OK.
6574         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
6575         Don't require AC_FUNC_ALLOCA; no longer needed.
6576
6577 2011-06-20  Eric Blake  <eblake@redhat.com>
6578
6579         test-stat: don't allocate PATH_MAX bytes
6580         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
6581         PATH_MAX-sized buffer.
6582         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
6583         * modules/stat-tests (Depends-on): Likewise.
6584         * tests/test-fstatat.c (includes): Drop pathmax.h.
6585         * tests/test-stat.c (includes): Likewise.
6586         Reported by Bruno Haible.
6587
6588 2011-06-20  Bruno Haible  <bruno@clisp.org>
6589
6590         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
6591         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
6592         * lib/float.c: New file.
6593         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
6594         REPLACE_FLOAT_LDBL.
6595         * modules/float (Files): Add lib/float.c.
6596         (configure.ac): Invoke AC_LIBOBJ.
6597         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
6598
6599 2011-06-20  Bruno Haible  <bruno@clisp.org>
6600
6601         Tests for module 'float'.
6602         * modules/float-tests: New file.
6603         * tests/test-float.c: New file.
6604
6605 2011-06-19  Bruno Haible  <bruno@clisp.org>
6606
6607         isinf: Coding style.
6608         * lib/isinf.c: Use GNU coding style.
6609
6610 2011-06-19  Bruno Haible  <bruno@clisp.org>
6611
6612         linkat test: Avoid test failure on AIX 7.1.
6613         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
6614         * tests/test-link.h (test_link): Likewise.
6615
6616 2011-06-19  Bruno Haible  <bruno@clisp.org>
6617
6618         pread test: Avoid test failure on OpenBSD 4.9.
6619         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
6620
6621 2011-06-19  Bruno Haible  <bruno@clisp.org>
6622
6623         sprintf-posix: Fix test failure on AIX 7.1.
6624         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
6625         * doc/posix-functions/dprintf.texi: Mention limited precision problem
6626         on AIX.
6627         * doc/posix-functions/fprintf.texi: Likewise.
6628         * doc/posix-functions/printf.texi: Likewise.
6629         * doc/posix-functions/snprintf.texi: Likewise.
6630         * doc/posix-functions/sprintf.texi: Likewise.
6631         * doc/posix-functions/vdprintf.texi: Likewise.
6632         * doc/posix-functions/vfprintf.texi: Likewise.
6633         * doc/posix-functions/vprintf.texi: Likewise.
6634         * doc/posix-functions/vsnprintf.texi: Likewise.
6635         * doc/posix-functions/vsprintf.texi: Likewise.
6636
6637 2011-06-19  Bruno Haible  <bruno@clisp.org>
6638
6639         roundl-ieee: Fix test failure on AIX 7.1.
6640         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
6641         * doc/posix-functions/roundl.texi: Mention problem with negative
6642         arguments.
6643
6644 2011-06-19  Bruno Haible  <bruno@clisp.org>
6645
6646         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
6647         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
6648         * doc/posix-functions/round.texi: Mention problem with negative
6649         arguments.
6650         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
6651
6652 2011-06-19  Bruno Haible  <bruno@clisp.org>
6653
6654         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
6655         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
6656         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
6657         * doc/posix-functions/roundf.texi: Mention problem with negative
6658         arguments.
6659         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
6660
6661 2011-06-19  Bruno Haible  <bruno@clisp.org>
6662
6663         ceilf-ieee: Work around bug on MacOS X 10.5.
6664         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
6665
6666         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
6667         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
6668         IEEE compliant, avoid compiler optimizations.
6669         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
6670         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
6671         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
6672         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
6673         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
6674         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
6675         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
6676         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
6677         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
6678         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
6679
6680 2011-06-19  Bruno Haible  <bruno@clisp.org>
6681
6682         ceilf-ieee: Work around bug on AIX 7.1.
6683         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
6684         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
6685
6686 2011-06-19  Bruno Haible  <bruno@clisp.org>
6687
6688         ceil-ieee: Work around bug on AIX 7.1.
6689         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
6690         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
6691
6692 2011-06-18  Bruno Haible  <bruno@clisp.org>
6693
6694         fsync test: Avoid test failure on MacOS X and AIX.
6695         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
6696         EINVAL.
6697
6698 2011-06-18  Bruno Haible  <bruno@clisp.org>
6699
6700         openat, fdopendir tests: Fix link errors.
6701         * modules/openat-tests (Depends-on): Add progname.
6702         * modules/fdopendir-tests (Depends-on): Likewise.
6703         * tests/test-fchownat.c: Include progname.h.
6704         (main): Call set_program_name.
6705         * tests/test-fstatat.c: Include progname.h.
6706         (main): Call set_program_name.
6707         * tests/test-mkdirat.c: Include progname.h.
6708         (main): Call set_program_name.
6709         * tests/test-openat.c: Include progname.h.
6710         (main): Call set_program_name.
6711         * tests/test-unlinkat.c: Include progname.h.
6712         (main): Call set_program_name.
6713         * tests/test-fdopendir.c: Include progname.h.
6714         (main): Call set_program_name.
6715
6716 2011-06-18  Bruno Haible  <bruno@clisp.org>
6717
6718         Doc update.
6719         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
6720         HP-UX.
6721         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
6722
6723 2011-06-18  Bruno Haible  <bruno@clisp.org>
6724
6725         getcwd tests: Avoid compilation error on HP-UX 11.31.
6726         * modules/getcwd-tests (Depends-on): Add pathmax.
6727         * tests/test-getcwd.c: Include pathmax.h.
6728
6729 2011-06-18  Bruno Haible  <bruno@clisp.org>
6730
6731         isfinite, isinf: Fix link error on AIX 6 and 7.
6732         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
6733         needed, also test the macro with a 'float' argument.
6734         * m4/isinf.m4 (gl_ISINF): Likewise.
6735
6736 2011-06-18  Bruno Haible  <bruno@clisp.org>
6737
6738         getloadavg: Don't clobber LIBS. Regression from previous commit.
6739         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
6740         AC_CHECK_LIB from here...
6741         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
6742         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
6743         gl_func_getloadavg_done.
6744         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6745
6746 2011-06-18  Bruno Haible  <bruno@clisp.org>
6747
6748         clean-temp: Improve documentation.
6749         * lib/clean-temp.h: Explain better how to use this module.
6750         Reported by John Darrington <john@darrington.wattle.id.au>.
6751
6752 2011-06-17  Bruno Haible  <bruno@clisp.org>
6753
6754         pread, pwrite: Avoid cc warning on AIX.
6755         * lib/unistd.in.h (pread): Undefine before defining as a macro.
6756         (pwrite): Likewise.
6757
6758 2011-06-17  Bruno Haible  <bruno@clisp.org>
6759
6760         spawn-pipe tests: Fix link error.
6761         * tests/test-spawn-pipe-child.c: Undefine fprintf.
6762         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6763
6764 2011-06-17  Bruno Haible  <bruno@clisp.org>
6765
6766         Tests: Remove unnecessary dependency.
6767         * modules/canonicalize-tests (Depends-on): Remove progname.
6768         * modules/chown-tests (Depends-on): Likewise.
6769         * modules/dirname-tests (Depends-on): Likewise.
6770         * modules/fdopendir-tests (Depends-on): Likewise.
6771         * modules/fdutimensat-tests (Depends-on): Likewise.
6772         * modules/hash-tests (Depends-on): Likewise.
6773         * modules/lchown-tests (Depends-on): Likewise.
6774         * modules/linkat-tests (Depends-on): Likewise.
6775         * modules/renameat-tests (Depends-on): Likewise.
6776         * modules/spawn-pipe-tests (Depends-on): Likewise.
6777         * modules/utimensat-tests (Depends-on): Likewise.
6778
6779 2011-06-17  Bruno Haible  <bruno@clisp.org>
6780
6781         spawn-pipe tests: Fix link error.
6782         * tests/test-spawn-pipe-child.c: Undefine fflush.
6783
6784 2011-06-17  Bruno Haible  <bruno@clisp.org>
6785
6786         Fix tests link errors.
6787         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
6788         * modules/chown-tests (Makefile.am): Don't link test-chown with
6789         LIBINTL.
6790         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
6791         LIBINTL.
6792         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
6793         LIBINTL.
6794         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
6795         LIBINTL.
6796
6797 2011-06-16  Bruno Haible  <bruno@clisp.org>
6798
6799         crypto/gc-sha1: Fix recent regression.
6800         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
6801         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
6802
6803         crypto/gc-md5: Fix recent regression.
6804         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
6805
6806         crypto/gc-md4: Fix recent regression.
6807         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
6808         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
6809
6810         crypto/gc-arctwo: Fix recent regression.
6811         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
6812         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
6813
6814         crypto/gc-rijndael: Fix recent regression.
6815         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
6816         (configure.ac): Invoke AC_LIBOBJ here.
6817         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
6818         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6819
6820         crypto/gc-hmac-sha1: Fix recent regression.
6821         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
6822         (configure.ac): Invoke AC_LIBOBJ here.
6823         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
6824         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6825
6826         crypto/gc-hmac-md5: Fix recent regression.
6827         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
6828         (configure.ac): Invoke AC_LIBOBJ here.
6829         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
6830         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6831
6832         crypto/gc-des: Fix recent regression.
6833         * modules/crypto/gc-des (Files): Remove m4/des.m4.
6834         (configure.ac): Invoke AC_LIBOBJ here.
6835         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
6836         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6837
6838         crypto/gc-arcfour: Fix recent regression.
6839         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
6840         (configure.ac): Invoke AC_LIBOBJ here.
6841         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
6842         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6843
6844 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
6845
6846         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
6847         After the 2011-05-21 change, this macro requires
6848         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
6849         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
6850
6851 2011-06-16  Bruno Haible  <bruno@clisp.org>
6852
6853         fprintftime: Move AC_LIBOBJ invocations to module description.
6854         * m4/fprintftime.m4: Remove file.
6855         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
6856         (configure.ac): Remove gl_FPRINTFTIME call.
6857         (Makefile.am): Augment lib_SOURCES.
6858         Reported by Jim Meyering.
6859
6860 2011-06-16  Bruno Haible  <bruno@clisp.org>
6861
6862         tmpfile-safer: Finish 2011-05-23 commit.
6863         * m4/stdio-safer.m4: Really remove file.
6864         Reported by Jim Meyering.
6865
6866 2011-06-16  Bruno Haible  <bruno@clisp.org>
6867
6868         syntax-check: Fix typo.
6869         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
6870         printf-posix.m4.
6871         Reported by Jim Meyering.
6872
6873 2011-06-13  Jim Meyering  <meyering@redhat.com>
6874
6875         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
6876         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
6877
6878 2011-05-23  Bruno Haible  <bruno@clisp.org>
6879
6880         yesno: Move AC_LIBOBJ invocations to module description.
6881         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
6882         * modules/yesno (Makefile.am): Augment lib_SOURCES.
6883
6884 2011-05-23  Bruno Haible  <bruno@clisp.org>
6885
6886         xstrtol: Move AC_LIBOBJ invocations to module description.
6887         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
6888         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
6889
6890 2011-05-23  Bruno Haible  <bruno@clisp.org>
6891
6892         xstrtold: Move AC_LIBOBJ invocations to module description.
6893         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
6894         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
6895
6896 2011-05-23  Bruno Haible  <bruno@clisp.org>
6897
6898         xstrtod: Move AC_LIBOBJ invocations to module description.
6899         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
6900         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
6901
6902 2011-05-23  Bruno Haible  <bruno@clisp.org>
6903
6904         xnanosleep: Move AC_LIBOBJ invocations to module description.
6905         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
6906         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
6907
6908 2011-05-23  Bruno Haible  <bruno@clisp.org>
6909
6910         xgetcwd: Move AC_LIBOBJ invocations to module description.
6911         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
6912         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
6913
6914 2011-05-23  Bruno Haible  <bruno@clisp.org>
6915
6916         xalloc: Move AC_LIBOBJ invocations to module description.
6917         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
6918         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
6919
6920 2011-05-23  Bruno Haible  <bruno@clisp.org>
6921
6922         write-any-file: Move AC_LIBOBJ invocations to module description.
6923         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
6924         invocation.
6925         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
6926
6927 2011-05-23  Bruno Haible  <bruno@clisp.org>
6928
6929         utimens: Move AC_LIBOBJ invocations to module description.
6930         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
6931         * modules/utimens (Makefile.am): Augment lib_SOURCES.
6932
6933 2011-05-23  Bruno Haible  <bruno@clisp.org>
6934
6935         utimecmp: Move AC_LIBOBJ invocations to module description.
6936         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
6937         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
6938
6939 2011-05-23  Bruno Haible  <bruno@clisp.org>
6940
6941         userspec: Move AC_LIBOBJ invocations to module description.
6942         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
6943         * modules/userspec (Makefile.am): Augment lib_SOURCES.
6944
6945 2011-05-23  Bruno Haible  <bruno@clisp.org>
6946
6947         unlinkdir: Move AC_LIBOBJ invocations to module description.
6948         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
6949         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
6950
6951 2011-05-23  Bruno Haible  <bruno@clisp.org>
6952
6953         unistd-safer: Move AC_LIBOBJ invocations to module description.
6954         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
6955         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
6956
6957 2011-05-23  Bruno Haible  <bruno@clisp.org>
6958
6959         tempname: Move AC_LIBOBJ invocations to module description.
6960         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
6961         * modules/tempname (Makefile.am): Augment lib_SOURCES.
6962
6963 2011-05-23  Bruno Haible  <bruno@clisp.org>
6964
6965         strftime: Move AC_LIBOBJ invocations to module description.
6966         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
6967         * modules/strftime (Makefile.am): Augment lib_SOURCES.
6968
6969 2011-05-23  Bruno Haible  <bruno@clisp.org>
6970
6971         stdlib-safer: Move AC_LIBOBJ invocations to module description.
6972         * m4/stdlib-safer.m4: Remove file.
6973         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
6974         (configure.ac): Remove gl_STDLIB_SAFER call.
6975         (Makefile.am): Augment lib_SOURCES.
6976
6977 2011-05-23  Bruno Haible  <bruno@clisp.org>
6978
6979         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
6980         * m4/stdio-safer.m4: Remove file.
6981         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
6982         (configure.ac): Remove gl_TMPFILE_SAFER call.
6983         (Makefile.am): Augment lib_SOURCES.
6984
6985 2011-05-23  Bruno Haible  <bruno@clisp.org>
6986
6987         popen-safer: Move AC_LIBOBJ invocations to module description.
6988         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
6989         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
6990         (configure.ac): Remove gl_POPEN_SAFER call.
6991         (Makefile.am): Augment lib_SOURCES.
6992
6993 2011-05-23  Bruno Haible  <bruno@clisp.org>
6994
6995         freopen-safer: Move AC_LIBOBJ invocations to module description.
6996         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
6997         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
6998         (configure.ac): Remove gl_FREOPEN_SAFER call.
6999         (Makefile.am): Augment lib_SOURCES.
7000
7001 2011-05-23  Bruno Haible  <bruno@clisp.org>
7002
7003         fopen-safer: Move AC_LIBOBJ invocations to module description.
7004         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
7005         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
7006         (configure.ac): Remove gl_FOPEN_SAFER call.
7007         (Makefile.am): Augment lib_SOURCES.
7008
7009 2011-05-23  Bruno Haible  <bruno@clisp.org>
7010
7011         crypto/sha512: Move AC_LIBOBJ invocations to module description.
7012         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
7013         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
7014
7015 2011-05-23  Bruno Haible  <bruno@clisp.org>
7016
7017         crypto/sha256: Move AC_LIBOBJ invocations to module description.
7018         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
7019         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
7020
7021 2011-05-23  Bruno Haible  <bruno@clisp.org>
7022
7023         crypto/sha1: Move AC_LIBOBJ invocations to module description.
7024         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
7025         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
7026
7027 2011-05-23  Bruno Haible  <bruno@clisp.org>
7028
7029         settime: Move AC_LIBOBJ invocations to module description.
7030         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
7031         * modules/settime (Makefile.am): Augment lib_SOURCES.
7032
7033 2011-05-23  Bruno Haible  <bruno@clisp.org>
7034
7035         savedir: Move AC_LIBOBJ invocations to module description.
7036         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
7037         * modules/savedir (Makefile.am): Augment lib_SOURCES.
7038
7039 2011-05-23  Bruno Haible  <bruno@clisp.org>
7040
7041         save-cwd: Move AC_LIBOBJ invocations to module description.
7042         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
7043         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
7044
7045 2011-05-23  Bruno Haible  <bruno@clisp.org>
7046
7047         same: Move AC_LIBOBJ invocations to module description.
7048         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
7049         * modules/same (Makefile.am): Augment lib_SOURCES.
7050
7051 2011-05-23  Bruno Haible  <bruno@clisp.org>
7052
7053         safe-write: Move AC_LIBOBJ invocations to module description.
7054         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
7055         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
7056         instead of gl_SAFE_WRITE.
7057         (Makefile.am): Augment lib_SOURCES.
7058
7059 2011-05-23  Bruno Haible  <bruno@clisp.org>
7060
7061         safe-read: Move AC_LIBOBJ invocations to module description.
7062         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
7063         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
7064         of gl_SAFE_READ.
7065         (Makefile.am): Augment lib_SOURCES.
7066
7067 2011-05-23  Bruno Haible  <bruno@clisp.org>
7068
7069         safe-alloc: Move AC_LIBOBJ invocations to module description.
7070         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
7071         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
7072
7073 2011-05-23  Bruno Haible  <bruno@clisp.org>
7074
7075         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
7076         * m4/rijndael.m4: Remove file.
7077         * modules/crypto/rijndael (Files): Remove it.
7078         (configure.ac): Remove gl_RIJNDAEL call.
7079         (Makefile.am): Augment lib_SOURCES.
7080
7081 2011-05-23  Bruno Haible  <bruno@clisp.org>
7082
7083         readtokens: Move AC_LIBOBJ invocations to module description.
7084         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
7085         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
7086
7087 2011-05-23  Bruno Haible  <bruno@clisp.org>
7088
7089         read-file: Move AC_LIBOBJ invocations to module description.
7090         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
7091         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
7092         of gl_FUNC_READ_FILE.
7093         (Makefile.am): Augment lib_SOURCES.
7094
7095 2011-05-23  Bruno Haible  <bruno@clisp.org>
7096
7097         quotearg: Move AC_LIBOBJ invocations to module description.
7098         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
7099         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
7100
7101 2011-05-23  Bruno Haible  <bruno@clisp.org>
7102
7103         quote: Move AC_LIBOBJ invocations to module description.
7104         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
7105         * modules/quote (Makefile.am): Augment lib_SOURCES.
7106
7107 2011-05-23  Bruno Haible  <bruno@clisp.org>
7108
7109         posixver: Move AC_LIBOBJ invocations to module description.
7110         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
7111         * modules/posixver (Makefile.am): Augment lib_SOURCES.
7112
7113 2011-05-23  Bruno Haible  <bruno@clisp.org>
7114
7115         posixtm: Move AC_LIBOBJ invocations to module description.
7116         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
7117         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
7118
7119 2011-05-23  Bruno Haible  <bruno@clisp.org>
7120
7121         physmem: Move AC_LIBOBJ invocations to module description.
7122         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
7123         * modules/physmem (Makefile.am): Augment lib_SOURCES.
7124
7125 2011-05-23  Bruno Haible  <bruno@clisp.org>
7126
7127         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
7128         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
7129         invocation.
7130         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
7131
7132 2011-05-23  Bruno Haible  <bruno@clisp.org>
7133
7134         mpsort: Move AC_LIBOBJ invocations to module description.
7135         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
7136         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
7137
7138 2011-05-23  Bruno Haible  <bruno@clisp.org>
7139
7140         modechange: Move AC_LIBOBJ invocations to module description.
7141         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
7142         * modules/modechange (Makefile.am): Augment lib_SOURCES.
7143
7144 2011-05-23  Bruno Haible  <bruno@clisp.org>
7145
7146         mkdir-p: Move AC_LIBOBJ invocations to module description.
7147         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
7148         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
7149
7150 2011-05-23  Bruno Haible  <bruno@clisp.org>
7151
7152         mkancesdirs: Move AC_LIBOBJ invocations to module description.
7153         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
7154         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
7155
7156 2011-05-23  Bruno Haible  <bruno@clisp.org>
7157
7158         mgetgroups: Move AC_LIBOBJ invocations to module description.
7159         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
7160         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
7161
7162 2011-05-23  Bruno Haible  <bruno@clisp.org>
7163
7164         memxor: Move AC_LIBOBJ invocations to module description.
7165         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
7166         * modules/memxor (Makefile.am): Augment lib_SOURCES.
7167
7168 2011-05-23  Bruno Haible  <bruno@clisp.org>
7169
7170         memcoll: Move AC_LIBOBJ invocations to module description.
7171         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
7172         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
7173
7174 2011-05-23  Bruno Haible  <bruno@clisp.org>
7175
7176         memcasecmp: Move AC_LIBOBJ invocations to module description.
7177         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
7178         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
7179
7180 2011-05-23  Bruno Haible  <bruno@clisp.org>
7181
7182         crypto/md5: Move AC_LIBOBJ invocations to module description.
7183         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
7184         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
7185
7186 2011-05-23  Bruno Haible  <bruno@clisp.org>
7187
7188         crypto/md4: Move AC_LIBOBJ invocations to module description.
7189         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
7190         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
7191
7192 2011-05-23  Bruno Haible  <bruno@clisp.org>
7193
7194         crypto/md2: Move AC_LIBOBJ invocations to module description.
7195         * m4/md2.m4: Remove file.
7196         * modules/crypto/md2 (Files): Remove it.
7197         (configure.ac): Remove gl_MD2 call.
7198         (Makefile.am): Augment lib_SOURCES.
7199
7200 2011-05-23  Bruno Haible  <bruno@clisp.org>
7201
7202         long-options: Move AC_LIBOBJ invocations to module description.
7203         * m4/long-options.m4: Remove file.
7204         * modules/long-options (Files): Remove it.
7205         (configure.ac): Remove gl_LONG_OPTIONS call.
7206         (Makefile.am): Augment lib_SOURCES.
7207
7208 2011-05-23  Bruno Haible  <bruno@clisp.org>
7209
7210         i-ring: Move AC_LIBOBJ invocations to module description.
7211         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
7212         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
7213
7214 2011-05-23  Bruno Haible  <bruno@clisp.org>
7215
7216         idcache: Move AC_LIBOBJ invocations to module description.
7217         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
7218         * modules/idcache (Makefile.am): Augment lib_SOURCES.
7219
7220 2011-05-23  Bruno Haible  <bruno@clisp.org>
7221
7222         human: Move AC_LIBOBJ invocations to module description.
7223         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
7224         * modules/human (Makefile.am): Augment lib_SOURCES.
7225
7226 2011-05-23  Bruno Haible  <bruno@clisp.org>
7227
7228         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
7229         * m4/hmac-sha1.m4: Remove file.
7230         * modules/crypto/hmac-sha1 (Files): Remove it.
7231         (configure.ac): Remove gl_HMAC_SHA1 call.
7232         (Makefile.am): Augment lib_SOURCES.
7233
7234 2011-05-23  Bruno Haible  <bruno@clisp.org>
7235
7236         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
7237         * m4/hmac-md5.m4: Remove file.
7238         * modules/crypto/hmac-md5 (Files): Remove it.
7239         (configure.ac): Remove gl_HMAC_MD5 call.
7240         (Makefile.am): Augment lib_SOURCES.
7241
7242 2011-05-23  Bruno Haible  <bruno@clisp.org>
7243
7244         hash: Move AC_LIBOBJ invocations to module description.
7245         * m4/hash.m4: Remove file.
7246         * modules/hash (Files): Remove it.
7247         (configure.ac): Remove gl_HASH call.
7248         (Makefile.am): Augment lib_SOURCES.
7249
7250 2011-05-23  Bruno Haible  <bruno@clisp.org>
7251
7252         hard-locale: Move AC_LIBOBJ invocations to module description.
7253         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
7254         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
7255
7256 2011-05-23  Bruno Haible  <bruno@clisp.org>
7257
7258         getugroups: Move AC_LIBOBJ invocations to module description.
7259         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
7260         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
7261
7262 2011-05-23  Bruno Haible  <bruno@clisp.org>
7263
7264         gettime: Move AC_LIBOBJ invocations to module description.
7265         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
7266         * modules/gettime (Makefile.am): Augment lib_SOURCES.
7267
7268 2011-05-23  Bruno Haible  <bruno@clisp.org>
7269
7270         getndelim2: Move AC_LIBOBJ invocations to module description.
7271         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
7272         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
7273
7274 2011-05-23  Bruno Haible  <bruno@clisp.org>
7275
7276         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
7277         * m4/gc-pbkdf2-sha1.m4: Remove file.
7278         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
7279         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
7280         (Makefile.am): Augment lib_SOURCES.
7281
7282 2011-05-23  Bruno Haible  <bruno@clisp.org>
7283
7284         fts: Move AC_LIBOBJ invocations to module description.
7285         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
7286         * modules/fts (configure.ac): ... to here.
7287
7288 2011-05-23  Bruno Haible  <bruno@clisp.org>
7289
7290         file-type: Move AC_LIBOBJ invocations to module description.
7291         * m4/file-type.m4: Remove file.
7292         * modules/file-type (Files): Remove it.
7293         (configure.ac): Remove gl_FILE_TYPE call.
7294         (Makefile.am): Augment lib_SOURCES.
7295
7296 2011-05-23  Bruno Haible  <bruno@clisp.org>
7297
7298         filenamecat*: Respect rules for use of AC_LIBOBJ.
7299         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
7300         Remove AC_LIBOBJ invocation.
7301         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
7302         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
7303
7304 2011-05-23  Bruno Haible  <bruno@clisp.org>
7305
7306         filemode: Move AC_LIBOBJ invocations to module description.
7307         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
7308         * modules/filemode (Makefile.am): Augment lib_SOURCES.
7309
7310 2011-05-23  Bruno Haible  <bruno@clisp.org>
7311
7312         openat-safer: Move AC_LIBOBJ invocations to module description.
7313         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
7314         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
7315
7316 2011-05-23  Bruno Haible  <bruno@clisp.org>
7317
7318         fcntl-safer: Move AC_LIBOBJ invocations to module description.
7319         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
7320         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
7321
7322 2011-05-23  Bruno Haible  <bruno@clisp.org>
7323
7324         exclude: Move AC_LIBOBJ invocations to module description.
7325         * m4/exclude.m4: Remove file.
7326         * modules/exclude (Files): Remove it.
7327         (configure.ac): Remove gl_EXCLUDE call.
7328         (Makefile.am): Augment lib_SOURCES.
7329
7330 2011-05-23  Bruno Haible  <bruno@clisp.org>
7331
7332         dirname*: Respect rules for use of AC_LIBOBJ.
7333         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
7334         invocations.
7335         * modules/dirname (Makefile.am): Augment lib_SOURCES.
7336         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
7337
7338 2011-05-23  Bruno Haible  <bruno@clisp.org>
7339
7340         dirent-safer: Move AC_LIBOBJ invocations to module description.
7341         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
7342         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
7343
7344 2011-05-23  Bruno Haible  <bruno@clisp.org>
7345
7346         crypto/des: Move AC_LIBOBJ invocations to module description.
7347         * m4/des.m4: Remove file.
7348         * modules/crypto/des (Files): Remove it.
7349         (configure.ac): Remove gl_DES call.
7350         (Makefile.am): Augment lib_SOURCES.
7351
7352 2011-05-23  Bruno Haible  <bruno@clisp.org>
7353
7354         cycle-check: Move AC_LIBOBJ invocations to module description.
7355         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
7356         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
7357
7358 2011-05-23  Bruno Haible  <bruno@clisp.org>
7359
7360         c-strtold: Move AC_LIBOBJ invocations to module description.
7361         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
7362         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
7363
7364 2011-05-23  Bruno Haible  <bruno@clisp.org>
7365
7366         c-strtod: Move AC_LIBOBJ invocations to module description.
7367         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
7368         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
7369
7370 2011-05-23  Bruno Haible  <bruno@clisp.org>
7371
7372         crc: Move AC_LIBOBJ invocations to module description.
7373         * m4/crc.m4: Remove file.
7374         * modules/crc (Files): Remove it.
7375         (configure.ac): Remove gl_CRC call.
7376         (Makefile.am): Augment lib_SOURCES.
7377
7378 2011-05-23  Bruno Haible  <bruno@clisp.org>
7379
7380         close-stream: Move AC_LIBOBJ invocations to module description.
7381         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
7382         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
7383
7384 2011-05-23  Bruno Haible  <bruno@clisp.org>
7385
7386         closeout: Move AC_LIBOBJ invocations to module description.
7387         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
7388         * modules/closeout (Makefile.am): Augment lib_SOURCES.
7389
7390 2011-05-23  Bruno Haible  <bruno@clisp.org>
7391
7392         closein: Move AC_LIBOBJ invocations to module description.
7393         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
7394         * modules/closein (Makefile.am): Augment lib_SOURCES.
7395
7396 2011-05-23  Bruno Haible  <bruno@clisp.org>
7397
7398         cloexec: Move AC_LIBOBJ invocations to module description.
7399         * m4/cloexec.m4: Remove file.
7400         * modules/cloexec (Files): Remove it.
7401         (configure.ac): Remove gl_CLOEXEC call.
7402         (Makefile.am): Augment lib_SOURCES.
7403
7404 2011-05-23  Bruno Haible  <bruno@clisp.org>
7405
7406         check-version: Move AC_LIBOBJ invocations to module description.
7407         * m4/check-version.m4: Remove file.
7408         * modules/check-version (Files): Remove it.
7409         (configure.ac): Remove gl_CHECK_VERSION call.
7410         (Makefile.am): Augment lib_SOURCES.
7411
7412 2011-05-23  Bruno Haible  <bruno@clisp.org>
7413
7414         chdir-safer: Move AC_LIBOBJ invocations to module description.
7415         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
7416         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
7417
7418 2011-05-23  Bruno Haible  <bruno@clisp.org>
7419
7420         canonicalize: Move AC_LIBOBJ invocations to module description.
7421         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
7422         AC_LIBOBJ invocation.
7423         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
7424
7425 2011-05-23  Bruno Haible  <bruno@clisp.org>
7426
7427         canon-host: Move AC_LIBOBJ invocations to module description.
7428         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
7429         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
7430         instead of gl_CANON_HOST.
7431         (Makefile.am): Augment lib_SOURCES.
7432
7433 2011-05-23  Bruno Haible  <bruno@clisp.org>
7434
7435         backupfile: Move AC_LIBOBJ invocations to module description.
7436         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
7437         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
7438
7439 2011-05-23  Bruno Haible  <bruno@clisp.org>
7440
7441         argmatch: Move AC_LIBOBJ invocations to module description.
7442         * m4/argmatch.m4: Remove file.
7443         * modules/argmatch (Files): Remove it.
7444         (configure.ac): Remove gl_ARGMATCH call.
7445         (Makefile.am): Augment lib_SOURCES.
7446
7447 2011-05-23  Bruno Haible  <bruno@clisp.org>
7448
7449         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
7450         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
7451         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
7452
7453 2011-05-23  Bruno Haible  <bruno@clisp.org>
7454
7455         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
7456         * m4/arcfour.m4: Remove file.
7457         * modules/crypto/arcfour (Files): Remove it.
7458         (configure.ac): Remove gl_ARCFOUR call.
7459         (Makefile.am): Augment lib_SOURCES.
7460
7461 2011-05-22  Bruno Haible  <bruno@clisp.org>
7462
7463         write: Move AC_LIBOBJ invocations to module description.
7464         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
7465         * modules/write (configure.ac): ... to here.
7466
7467 2011-05-22  Bruno Haible  <bruno@clisp.org>
7468
7469         wmemset: Move AC_LIBOBJ invocations to module description.
7470         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
7471         here...
7472         * modules/wmemset (configure.ac): ... to here.
7473
7474 2011-05-22  Bruno Haible  <bruno@clisp.org>
7475
7476         wmemmove: Move AC_LIBOBJ invocations to module description.
7477         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
7478         here...
7479         * modules/wmemmove (configure.ac): ... to here.
7480
7481 2011-05-22  Bruno Haible  <bruno@clisp.org>
7482
7483         wmemcpy: Move AC_LIBOBJ invocations to module description.
7484         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
7485         here...
7486         * modules/wmemcpy (configure.ac): ... to here.
7487
7488 2011-05-22  Bruno Haible  <bruno@clisp.org>
7489
7490         wmemcmp: Move AC_LIBOBJ invocations to module description.
7491         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
7492         here...
7493         * modules/wmemcmp (configure.ac): ... to here.
7494
7495 2011-05-22  Bruno Haible  <bruno@clisp.org>
7496
7497         wmemchr: Move AC_LIBOBJ invocations to module description.
7498         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
7499         here...
7500         * modules/wmemchr (configure.ac): ... to here.
7501
7502 2011-05-22  Bruno Haible  <bruno@clisp.org>
7503
7504         wcswidth: Move AC_LIBOBJ invocations to module description.
7505         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
7506         here...
7507         * modules/wcswidth (configure.ac): ... to here.
7508
7509 2011-05-22  Bruno Haible  <bruno@clisp.org>
7510
7511         wcwidth: Respect rules for use of AC_LIBOBJ.
7512         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
7513         invocation from here...
7514         * modules/wcwidth (configure.ac): ... to here.
7515         (Depends-on): Update conditions.
7516
7517 2011-05-22  Bruno Haible  <bruno@clisp.org>
7518
7519         wctype: Move AC_LIBOBJ invocations to module description.
7520         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
7521         invocation from here...
7522         * modules/wctype (configure.ac): ... to here.
7523         (Depends-on): Update conditions.
7524
7525 2011-05-22  Bruno Haible  <bruno@clisp.org>
7526
7527         wctrans: Move AC_LIBOBJ invocations to module description.
7528         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
7529         invocation from here...
7530         * modules/wctrans (configure.ac): ... to here.
7531
7532 2011-05-22  Bruno Haible  <bruno@clisp.org>
7533
7534         wctomb: Move AC_LIBOBJ invocations to module description.
7535         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
7536         invocations from here...
7537         * modules/wctomb (configure.ac): ... to here.
7538
7539 2011-05-22  Bruno Haible  <bruno@clisp.org>
7540
7541         wctob: Move AC_LIBOBJ invocations to module description.
7542         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
7543         gl_PREREQ_WCTOB invocations from here...
7544         * modules/wctob (configure.ac): ... to here.
7545         (Depends-on): Update conditions.
7546
7547 2011-05-22  Bruno Haible  <bruno@clisp.org>
7548
7549         wcsxfrm: Move AC_LIBOBJ invocations to module description.
7550         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
7551         here...
7552         * modules/wcsxfrm (configure.ac): ... to here.
7553
7554 2011-05-22  Bruno Haible  <bruno@clisp.org>
7555
7556         wcstok: Move AC_LIBOBJ invocations to module description.
7557         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
7558         * modules/wcstok (configure.ac): ... to here.
7559
7560 2011-05-22  Bruno Haible  <bruno@clisp.org>
7561
7562         wcsstr: Move AC_LIBOBJ invocations to module description.
7563         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
7564         * modules/wcsstr (configure.ac): ... to here.
7565
7566 2011-05-22  Bruno Haible  <bruno@clisp.org>
7567
7568         wcsspn: Move AC_LIBOBJ invocations to module description.
7569         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
7570         * modules/wcsspn (configure.ac): ... to here.
7571
7572 2011-05-22  Bruno Haible  <bruno@clisp.org>
7573
7574         wcsrtombs: Move AC_LIBOBJ invocations to module description.
7575         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
7576         gl_PREREQ_WCSRTOMBS invocations from here...
7577         * modules/wcsrtombs (configure.ac): ... to here.
7578
7579 2011-05-22  Bruno Haible  <bruno@clisp.org>
7580
7581         wcsrchr: Move AC_LIBOBJ invocations to module description.
7582         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
7583         here...
7584         * modules/wcsrchr (configure.ac): ... to here.
7585
7586 2011-05-22  Bruno Haible  <bruno@clisp.org>
7587
7588         wcspbrk: Move AC_LIBOBJ invocations to module description.
7589         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
7590         here...
7591         * modules/wcspbrk (configure.ac): ... to here.
7592
7593 2011-05-22  Bruno Haible  <bruno@clisp.org>
7594
7595         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
7596         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
7597         gl_PREREQ_WCSNRTOMBS invocations from here...
7598         * modules/wcsnrtombs (configure.ac): ... to here.
7599
7600 2011-05-22  Bruno Haible  <bruno@clisp.org>
7601
7602         wcsnlen: Move AC_LIBOBJ invocations to module description.
7603         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
7604         here...
7605         * modules/wcsnlen (configure.ac): ... to here.
7606
7607 2011-05-22  Bruno Haible  <bruno@clisp.org>
7608
7609         wcsncpy: Move AC_LIBOBJ invocations to module description.
7610         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
7611         here...
7612         * modules/wcsncpy (configure.ac): ... to here.
7613
7614 2011-05-22  Bruno Haible  <bruno@clisp.org>
7615
7616         wcsncmp: Move AC_LIBOBJ invocations to module description.
7617         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
7618         here...
7619         * modules/wcsncmp (configure.ac): ... to here.
7620
7621 2011-05-22  Bruno Haible  <bruno@clisp.org>
7622
7623         wcsncat: Move AC_LIBOBJ invocations to module description.
7624         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
7625         here...
7626         * modules/wcsncat (configure.ac): ... to here.
7627
7628 2011-05-22  Bruno Haible  <bruno@clisp.org>
7629
7630         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
7631         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
7632         from here...
7633         * modules/wcsncasecmp (configure.ac): ... to here.
7634
7635 2011-05-22  Bruno Haible  <bruno@clisp.org>
7636
7637         wcslen: Move AC_LIBOBJ invocations to module description.
7638         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
7639         * modules/wcslen (configure.ac): ... to here.
7640
7641 2011-05-22  Bruno Haible  <bruno@clisp.org>
7642
7643         wcsdup: Move AC_LIBOBJ invocations to module description.
7644         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
7645         * modules/wcsdup (configure.ac): ... to here.
7646
7647 2011-05-22  Bruno Haible  <bruno@clisp.org>
7648
7649         wcscspn: Move AC_LIBOBJ invocations to module description.
7650         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
7651         here...
7652         * modules/wcscspn (configure.ac): ... to here.
7653
7654 2011-05-22  Bruno Haible  <bruno@clisp.org>
7655
7656         wcscpy: Move AC_LIBOBJ invocations to module description.
7657         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
7658         * modules/wcscpy (configure.ac): ... to here.
7659
7660 2011-05-22  Bruno Haible  <bruno@clisp.org>
7661
7662         wcscoll: Move AC_LIBOBJ invocations to module description.
7663         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
7664         here...
7665         * modules/wcscoll (configure.ac): ... to here.
7666
7667 2011-05-22  Bruno Haible  <bruno@clisp.org>
7668
7669         wcscmp: Move AC_LIBOBJ invocations to module description.
7670         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
7671         * modules/wcscmp (configure.ac): ... to here.
7672
7673 2011-05-22  Bruno Haible  <bruno@clisp.org>
7674
7675         wcschr: Move AC_LIBOBJ invocations to module description.
7676         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
7677         * modules/wcschr (configure.ac): ... to here.
7678
7679 2011-05-22  Bruno Haible  <bruno@clisp.org>
7680
7681         wcscat: Move AC_LIBOBJ invocations to module description.
7682         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
7683         * modules/wcscat (configure.ac): ... to here.
7684
7685 2011-05-22  Bruno Haible  <bruno@clisp.org>
7686
7687         wcscasecmp: Move AC_LIBOBJ invocations to module description.
7688         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
7689         here...
7690         * modules/wcscasecmp (configure.ac): ... to here.
7691
7692 2011-05-22  Bruno Haible  <bruno@clisp.org>
7693
7694         wcrtomb: Move AC_LIBOBJ invocations to module description.
7695         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
7696         invocations from here...
7697         * modules/wcrtomb (configure.ac): ... to here.
7698
7699 2011-05-22  Bruno Haible  <bruno@clisp.org>
7700
7701         wcpncpy: Move AC_LIBOBJ invocations to module description.
7702         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
7703         here...
7704         * modules/wcpncpy (configure.ac): ... to here.
7705
7706 2011-05-22  Bruno Haible  <bruno@clisp.org>
7707
7708         wcpcpy: Move AC_LIBOBJ invocations to module description.
7709         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
7710         * modules/wcpcpy (configure.ac): ... to here.
7711
7712 2011-05-22  Bruno Haible  <bruno@clisp.org>
7713
7714         waitpid: Move AC_LIBOBJ invocations to module description.
7715         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
7716         invocation from here...
7717         * modules/waitpid (configure.ac): ... to here.
7718
7719 2011-05-22  Bruno Haible  <bruno@clisp.org>
7720
7721         utimensat: Move AC_LIBOBJ invocations to module description.
7722         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
7723         here...
7724         * modules/utimensat (configure.ac): ... to here.
7725
7726 2011-05-22  Bruno Haible  <bruno@clisp.org>
7727
7728         usleep: Move AC_LIBOBJ invocations to module description.
7729         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
7730         here...
7731         * modules/usleep (configure.ac): ... to here.
7732
7733 2011-05-22  Bruno Haible  <bruno@clisp.org>
7734
7735         unlockpt: Move AC_LIBOBJ invocations to module description.
7736         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
7737         gl_PREREQ_UNLOCKPT invocations from here...
7738         * modules/unlockpt (configure.ac): ... to here.
7739
7740 2011-05-22  Bruno Haible  <bruno@clisp.org>
7741
7742         unlink: Respect rules for use of AC_LIBOBJ.
7743         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
7744         * modules/unlink (configure.ac): ... to here.
7745
7746 2011-05-22  Bruno Haible  <bruno@clisp.org>
7747
7748         uname: Move AC_LIBOBJ invocations to module description.
7749         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
7750         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
7751         here...
7752         * modules/uname (configure.ac): ... to here.
7753
7754 2011-05-22  Bruno Haible  <bruno@clisp.org>
7755
7756         ttyname_r: Move AC_LIBOBJ invocations to module description.
7757         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
7758         gl_PREREQ_TTYNAME_R invocations from here...
7759         * modules/ttyname_r (configure.ac): ... to here.
7760
7761 2011-05-22  Bruno Haible  <bruno@clisp.org>
7762
7763         tsearch: Move AC_LIBOBJ invocations to module description.
7764         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
7765         invocations from here...
7766         * modules/tsearch (configure.ac): ... to here.
7767
7768 2011-05-22  Bruno Haible  <bruno@clisp.org>
7769
7770         towctrans: Move AC_LIBOBJ invocations to module description.
7771         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
7772         AC_LIBOBJ invocation from here...
7773         * modules/towctrans (configure.ac): ... to here.
7774
7775 2011-05-22  Bruno Haible  <bruno@clisp.org>
7776
7777         tmpfile: Move AC_LIBOBJ invocations to module description.
7778         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
7779         invocations from here...
7780         * modules/tmpfile (configure.ac): ... to here.
7781
7782 2011-05-22  Bruno Haible  <bruno@clisp.org>
7783
7784         times: Move AC_LIBOBJ invocations to module description.
7785         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
7786         * modules/times (configure.ac): ... to here.
7787
7788 2011-05-22  Bruno Haible  <bruno@clisp.org>
7789
7790         time_r: Move AC_LIBOBJ invocations to module description.
7791         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
7792         invocations from here...
7793         * modules/time_r (configure.ac): ... to here.
7794
7795 2011-05-22  Bruno Haible  <bruno@clisp.org>
7796
7797         timegm: Move AC_LIBOBJ invocations to module description.
7798         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
7799         invocations from here...
7800         * modules/timegm (configure.ac): ... to here.
7801
7802 2011-05-22  Bruno Haible  <bruno@clisp.org>
7803
7804         tcgetsid: Move AC_LIBOBJ invocations to module description.
7805         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
7806         and gl_PREREQ_TCGETSID invocations from here...
7807         * modules/tcgetsid (configure.ac): ... to here.
7808         (Depends-on): Update conditions.
7809
7810 2011-05-22  Bruno Haible  <bruno@clisp.org>
7811
7812         symlinkat: Move AC_LIBOBJ invocations to module description.
7813         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
7814         here...
7815         * modules/symlinkat (configure.ac): ... to here.
7816
7817 2011-05-22  Bruno Haible  <bruno@clisp.org>
7818
7819         symlink: Move AC_LIBOBJ invocations to module description.
7820         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
7821         here...
7822         * modules/symlink (configure.ac): ... to here.
7823
7824 2011-05-22  Bruno Haible  <bruno@clisp.org>
7825
7826         strverscmp: Move AC_LIBOBJ invocations to module description.
7827         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
7828         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
7829         from here...
7830         * modules/strverscmp (configure.ac): ... to here.
7831
7832 2011-05-22  Bruno Haible  <bruno@clisp.org>
7833
7834         strtok_r: Move AC_LIBOBJ invocations to module description.
7835         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
7836         and gl_PREREQ_STRTOK_R invocations from here...
7837         * modules/strtok_r (configure.ac): ... to here.
7838         (Depends-on): Update conditions.
7839
7840 2011-05-22  Bruno Haible  <bruno@clisp.org>
7841
7842         strtoumax: Move AC_LIBOBJ invocations to module description.
7843         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
7844         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
7845         from here...
7846         * modules/strtoumax (configure.ac): ... to here.
7847
7848 2011-05-22  Bruno Haible  <bruno@clisp.org>
7849
7850         strtoimax: Move AC_LIBOBJ invocations to module description.
7851         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
7852         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
7853         from here...
7854         * modules/strtoimax (configure.ac): ... to here.
7855
7856 2011-05-22  Bruno Haible  <bruno@clisp.org>
7857
7858         strtoull: Move AC_LIBOBJ invocations to module description.
7859         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
7860         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
7861         from here...
7862         * modules/strtoull (configure.ac): ... to here.
7863
7864 2011-05-22  Bruno Haible  <bruno@clisp.org>
7865
7866         strtoll: Move AC_LIBOBJ invocations to module description.
7867         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
7868         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
7869         here...
7870         * modules/strtoll (configure.ac): ... to here.
7871
7872 2011-05-22  Bruno Haible  <bruno@clisp.org>
7873
7874         strtoul: Move AC_LIBOBJ invocations to module description.
7875         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
7876         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
7877         * modules/strtoul (configure.ac): ... to here.
7878
7879 2011-05-22  Bruno Haible  <bruno@clisp.org>
7880
7881         strtol: Move AC_LIBOBJ invocations to module description.
7882         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
7883         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
7884         * modules/strtol (configure.ac): ... to here.
7885
7886 2011-05-22  Bruno Haible  <bruno@clisp.org>
7887
7888         strtod: Move AC_LIBOBJ invocations to module description.
7889         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
7890         invocations from here...
7891         * modules/strtod (configure.ac): ... to here.
7892
7893 2011-05-22  Bruno Haible  <bruno@clisp.org>
7894
7895         strstr*: Move AC_LIBOBJ invocations to module description.
7896         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
7897         invocations from here...
7898         * modules/strstr-simple (configure.ac): ... to here.
7899         * modules/strstr (configure.ac): ... and here.
7900
7901 2011-05-22  Bruno Haible  <bruno@clisp.org>
7902
7903         strsignal: Move AC_LIBOBJ invocations to module description.
7904         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
7905         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
7906         * modules/strsignal (configure.ac): ... to here.
7907         (Depends-on): Update conditions.
7908
7909 2011-05-22  Bruno Haible  <bruno@clisp.org>
7910
7911         strsep: Move AC_LIBOBJ invocations to module description.
7912         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
7913         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
7914         here...
7915         * modules/strsep (configure.ac): ... to here.
7916
7917 2011-05-22  Bruno Haible  <bruno@clisp.org>
7918
7919         strptime: Move AC_LIBOBJ invocations to module description.
7920         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
7921         gl_PREREQ_STRPTIME invocations from here...
7922         * modules/strptime (configure.ac): ... to here.
7923
7924 2011-05-22  Bruno Haible  <bruno@clisp.org>
7925
7926         strpbrk: Move AC_LIBOBJ invocations to module description.
7927         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
7928         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
7929         here...
7930         * modules/strpbrk (configure.ac): ... to here.
7931
7932 2011-05-22  Bruno Haible  <bruno@clisp.org>
7933
7934         strnlen: Move AC_LIBOBJ invocations to module description.
7935         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
7936         invocations from here...
7937         * modules/strnlen (configure.ac): ... to here.
7938
7939 2011-05-22  Bruno Haible  <bruno@clisp.org>
7940
7941         strndup: Move AC_LIBOBJ invocations to module description.
7942         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
7943         invocations from here...
7944         * modules/strndup (configure.ac): ... to here.
7945         (Depends-on): Update conditions.
7946
7947 2011-05-22  Bruno Haible  <bruno@clisp.org>
7948
7949         strncat: Move AC_LIBOBJ invocations to module description.
7950         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
7951         invocations from here...
7952         * modules/strncat (configure.ac): ... to here.
7953
7954 2011-05-22  Bruno Haible  <bruno@clisp.org>
7955
7956         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
7957         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
7958         invocations from here...
7959         * modules/strdup (configure.ac): ... to here.
7960         * modules/strdup-posix (configure.ac): ... and here.
7961
7962 2011-05-22  Bruno Haible  <bruno@clisp.org>
7963
7964         strcspn: Move AC_LIBOBJ invocations to module description.
7965         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
7966         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
7967         here...
7968         * modules/strcspn (configure.ac): ... to here.
7969
7970 2011-05-22  Bruno Haible  <bruno@clisp.org>
7971
7972         strchrnul: Move AC_LIBOBJ invocations to module description.
7973         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
7974         gl_PREREQ_STRCHRNUL invocations from here...
7975         * modules/strchrnul (configure.ac): ... to here.
7976
7977 2011-05-22  Bruno Haible  <bruno@clisp.org>
7978
7979         strcasestr*: Move AC_LIBOBJ invocations to module description.
7980         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
7981         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
7982         * modules/strcasestr-simple (configure.ac): ... to here.
7983         * modules/strcasestr (configure.ac): ... and here.
7984
7985 2011-05-22  Bruno Haible  <bruno@clisp.org>
7986
7987         strcase: Move AC_LIBOBJ invocations to module description.
7988         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
7989         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
7990         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
7991         gl_PREREQ_STRNCASECMP invocations from here...
7992         * modules/strcase (configure.ac): ... to here.
7993
7994 2011-05-22  Bruno Haible  <bruno@clisp.org>
7995
7996         stpncpy: Move AC_LIBOBJ invocations to module description.
7997         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
7998         here...
7999         * modules/stpncpy (configure.ac): ... to here.
8000
8001 2011-05-22  Bruno Haible  <bruno@clisp.org>
8002
8003         stpcpy: Move AC_LIBOBJ invocations to module description.
8004         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
8005         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
8006         here...
8007         * modules/stpcpy (configure.ac): ... to here.
8008
8009 2011-05-21  Bruno Haible  <bruno@clisp.org>
8010
8011         stat: Move AC_LIBOBJ invocations to module description.
8012         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
8013         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
8014         here...
8015         * modules/stat (configure.ac): ... to here.
8016
8017 2011-05-21  Bruno Haible  <bruno@clisp.org>
8018
8019         sleep: Move AC_LIBOBJ invocations to module description.
8020         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
8021         * modules/sleep (configure.ac): ... to here.
8022
8023 2011-05-21  Bruno Haible  <bruno@clisp.org>
8024
8025         signbit: Move AC_LIBOBJ invocations to module description.
8026         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
8027         * modules/signbit (configure.ac): ... to here.
8028
8029 2011-05-21  Bruno Haible  <bruno@clisp.org>
8030
8031         sigprocmask: Move AC_LIBOBJ invocations to module description.
8032         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
8033         gl_PREREQ_SIGPROMASK invocations from here...
8034         * modules/sigprocmask (configure.ac): ... to here.
8035
8036 2011-05-21  Bruno Haible  <bruno@clisp.org>
8037
8038         sigaction: Move AC_LIBOBJ invocations to module description.
8039         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
8040         gl_PREREQ_SIGACTION invocations from here...
8041         * modules/sigaction (configure.ac): ... to here.
8042
8043 2011-05-21  Bruno Haible  <bruno@clisp.org>
8044
8045         sig2str: Move AC_LIBOBJ invocations to module description.
8046         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
8047         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
8048         here...
8049         * modules/sig2str (configure.ac): ... to here.
8050
8051 2011-05-21  Bruno Haible  <bruno@clisp.org>
8052
8053         setlocale: Move AC_LIBOBJ invocations to module description.
8054         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
8055         gl_PREREQ_SETLOCALE invocations from here...
8056         * modules/setlocale (configure.ac): ... to here.
8057
8058 2011-05-21  Bruno Haible  <bruno@clisp.org>
8059
8060         unsetenv: Move AC_LIBOBJ invocations to module description.
8061         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
8062         and gl_PREREQ_UNSETENV invocations from here...
8063         * modules/unsetenv (configure.ac): ... to here.
8064         (Depends-on): Update.
8065
8066 2011-05-21  Bruno Haible  <bruno@clisp.org>
8067
8068         setenv: Move AC_LIBOBJ invocations to module description.
8069         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
8070         here...
8071         * modules/setenv (configure.ac): ... to here.
8072
8073 2011-05-21  Bruno Haible  <bruno@clisp.org>
8074
8075         selinux-h: Move AC_LIBOBJ invocations to module description.
8076         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
8077         AC_LIBOBJ invocation from here...
8078         * modules/selinux-h (configure.ac): ... to here.
8079
8080 2011-05-21  Bruno Haible  <bruno@clisp.org>
8081
8082         select: Respect rules for use of AC_LIBOBJ.
8083         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
8084         here...
8085         * modules/select (configure.ac): ... to here.
8086
8087 2011-05-21  Bruno Haible  <bruno@clisp.org>
8088
8089         scandir: Move AC_LIBOBJ invocations to module description.
8090         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
8091         invocations from here...
8092         * modules/scandir (configure.ac): ... to here.
8093
8094 2011-05-21  Bruno Haible  <bruno@clisp.org>
8095
8096         rpmatch: Move AC_LIBOBJ invocations to module description.
8097         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
8098         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
8099         here...
8100         * modules/rpmatch (configure.ac): ... to here.
8101
8102 2011-05-21  Bruno Haible  <bruno@clisp.org>
8103
8104         rmdir: Respect rules for use of AC_LIBOBJ.
8105         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
8106         * modules/rmdir (configure.ac): ... to here.
8107
8108 2011-05-21  Bruno Haible  <bruno@clisp.org>
8109
8110         renameat: Move AC_LIBOBJ invocations to module description.
8111         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
8112         here...
8113         * modules/renameat (configure.ac): ... to here.
8114
8115 2011-05-21  Bruno Haible  <bruno@clisp.org>
8116
8117         rename: Respect rules for use of AC_LIBOBJ.
8118         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
8119         here...
8120         * modules/rename (configure.ac): ... to here.
8121
8122 2011-05-21  Bruno Haible  <bruno@clisp.org>
8123
8124         remove: Move AC_LIBOBJ invocations to module description.
8125         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
8126         here...
8127         * modules/remove (configure.ac): ... to here.
8128
8129 2011-05-21  Bruno Haible  <bruno@clisp.org>
8130
8131         relocatable-lib: Move AC_LIBOBJ invocations to module description.
8132         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
8133         macro.
8134         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
8135         * modules/relocatable-lib (configure.ac): ... to here.
8136         * modules/relocatable-prog-wrapper (configure.ac): Invoke
8137         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
8138
8139 2011-05-21  Bruno Haible  <bruno@clisp.org>
8140
8141         relocatable-prog: Move AC_LIBOBJ invocations to module description.
8142         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
8143         here...
8144         * modules/relocatable-prog (configure.ac): ... to here.
8145
8146 2011-05-21  Bruno Haible  <bruno@clisp.org>
8147
8148         regex: Move AC_LIBOBJ invocations to module description.
8149         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
8150         invocations from here...
8151         * modules/regex (configure.ac): ... to here.
8152
8153 2011-05-21  Bruno Haible  <bruno@clisp.org>
8154
8155         realloc-*: Move AC_LIBOBJ invocations to module description.
8156         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
8157         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
8158         AC_LIBOBJ invocations from here...
8159         * modules/realloc-gnu (configure.ac): ... to here.
8160         * modules/realloc-posix (configure.ac): ... and here.
8161
8162 2011-05-21  Bruno Haible  <bruno@clisp.org>
8163
8164         readutmp: Move AC_LIBOBJ invocations to module description.
8165         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
8166         * modules/readutmp (configure.ac): ... to here.
8167
8168 2011-05-21  Bruno Haible  <bruno@clisp.org>
8169
8170         readlinkat: Move AC_LIBOBJ invocations to module description.
8171         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
8172         here...
8173         * modules/readlinkat (configure.ac): ... to here.
8174
8175 2011-05-21  Bruno Haible  <bruno@clisp.org>
8176
8177         readlink: Move AC_LIBOBJ invocations to module description.
8178         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
8179         gl_PREREQ_READLINK invocations from here...
8180         * modules/readlink (configure.ac): ... to here.
8181
8182 2011-05-21  Bruno Haible  <bruno@clisp.org>
8183
8184         readline: Move AC_LIBOBJ invocations to module description.
8185         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
8186         gl_PREREQ_READLINE invocations from here...
8187         * modules/readline (configure.ac): ... to here.
8188
8189 2011-05-21  Bruno Haible  <bruno@clisp.org>
8190
8191         read: Move AC_LIBOBJ invocations to module description.
8192         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
8193         * modules/read (configure.ac): ... to here.
8194
8195 2011-05-21  Bruno Haible  <bruno@clisp.org>
8196
8197         rawmemchr: Move AC_LIBOBJ invocations to module description.
8198         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
8199         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
8200         from here...
8201         * modules/rawmemchr (configure.ac): ... to here.
8202
8203 2011-05-21  Bruno Haible  <bruno@clisp.org>
8204
8205         random_r: Move AC_LIBOBJ invocations to module description.
8206         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
8207         gl_PREREQ_RANDOM_R invocations from here...
8208         * modules/random_r (configure.ac): ... to here.
8209
8210 2011-05-21  Bruno Haible  <bruno@clisp.org>
8211
8212         pwrite: Move AC_LIBOBJ invocations to module description.
8213         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
8214         * modules/pwrite (configure.ac): ... to here.
8215
8216 2011-05-21  Bruno Haible  <bruno@clisp.org>
8217
8218         putenv: Move AC_LIBOBJ invocations to module description.
8219         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
8220         * modules/putenv (configure.ac): ... to here.
8221
8222 2011-05-21  Bruno Haible  <bruno@clisp.org>
8223
8224         login_tty: Move AC_LIBOBJ invocations to module description.
8225         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
8226         * modules/login_tty (configure.ac): ... to here.
8227
8228 2011-05-21  Bruno Haible  <bruno@clisp.org>
8229
8230         openpty: Move AC_LIBOBJ invocations to module description.
8231         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
8232         * modules/openpty (configure.ac): ... to here.
8233
8234 2011-05-21  Bruno Haible  <bruno@clisp.org>
8235
8236         forkpty: Move AC_LIBOBJ invocations to module description.
8237         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
8238         * modules/forkpty (configure.ac): ... to here.
8239
8240 2011-05-21  Bruno Haible  <bruno@clisp.org>
8241
8242         ptsname: Move AC_LIBOBJ invocations to module description.
8243         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
8244         invocations from here...
8245         * modules/ptsname (configure.ac): ... to here.
8246
8247 2011-05-21  Bruno Haible  <bruno@clisp.org>
8248
8249         pread: Move AC_LIBOBJ invocations to module description.
8250         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
8251         * modules/pread (configure.ac): ... to here.
8252
8253 2011-05-21  Bruno Haible  <bruno@clisp.org>
8254
8255         posix_spawn*: Move AC_LIBOBJ invocations to module description.
8256         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
8257         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
8258         * modules/posix_spawn (configure.ac): ... to here.
8259         * modules/posix_spawnp (configure.ac): ... and here.
8260
8261 2011-05-21  Bruno Haible  <bruno@clisp.org>
8262
8263         popen: Move AC_LIBOBJ invocations to module description.
8264         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
8265         invocations from here...
8266         * modules/popen (configure.ac): ... to here.
8267
8268 2011-05-21  Bruno Haible  <bruno@clisp.org>
8269
8270         poll: Move AC_LIBOBJ invocations to module description.
8271         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
8272         invocations from here...
8273         * modules/poll (configure.ac): ... to here.
8274
8275 2011-05-21  Bruno Haible  <bruno@clisp.org>
8276
8277         pipe-posix: Move AC_LIBOBJ invocations to module description.
8278         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
8279         * modules/pipe-posix (configure.ac): ... to here.
8280
8281 2011-05-21  Bruno Haible  <bruno@clisp.org>
8282
8283         openat: Respect rules for use of AC_LIBOBJ.
8284         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
8285         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
8286         * modules/openat (configure.ac): ... to here.
8287
8288 2011-05-21  Bruno Haible  <bruno@clisp.org>
8289
8290         obstack-printf*: Move AC_LIBOBJ invocations to module description.
8291         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
8292         invocation from here...
8293         * modules/obstack-printf (configure.ac): ... to here.
8294         * modules/obstack-printf-posix (configure.ac): ... and here.
8295
8296 2011-05-21  Bruno Haible  <bruno@clisp.org>
8297
8298         nl_langinfo: Move AC_LIBOBJ invocations to module description.
8299         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
8300         from here...
8301         * modules/nl_langinfo (configure.ac): ... to here.
8302
8303 2011-05-21  Bruno Haible  <bruno@clisp.org>
8304
8305         nanosleep: Move AC_LIBOBJ invocations to module description.
8306         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
8307         gl_PREREQ_NANOSLEEP invocations from here...
8308         * modules/nanosleep (configure.ac): ... to here.
8309
8310 2011-05-21  Bruno Haible  <bruno@clisp.org>
8311
8312         mountlist: Move AC_LIBOBJ invocations to module description.
8313         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
8314         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
8315         * modules/mountlist (configure.ac): ... to here.
8316
8317 2011-05-21  Bruno Haible  <bruno@clisp.org>
8318
8319         mktime: Respect rules for use of AC_LIBOBJ.
8320         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
8321         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
8322         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
8323         (gl_FUNC_MKTIME_INTERNAL): ... and here...
8324         * modules/mktime (configure.ac): ... to here.
8325         * modules/mktime-internal (configure.ac): ... and here.
8326         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
8327
8328 2011-05-21  Bruno Haible  <bruno@clisp.org>
8329
8330         mkstemps: Move AC_LIBOBJ invocations to module description.
8331         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
8332         here...
8333         * modules/mkstemps (configure.ac): ... to here.
8334
8335 2011-05-21  Bruno Haible  <bruno@clisp.org>
8336
8337         mkstemp: Move AC_LIBOBJ invocations to module description.
8338         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
8339         gl_PREREQ_MKSTEMP invocations from here...
8340         * modules/mkstemp (configure.ac): ... to here.
8341
8342 2011-05-21  Bruno Haible  <bruno@clisp.org>
8343
8344         mkostemps: Move AC_LIBOBJ invocations to module description.
8345         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
8346         here...
8347         * modules/mkostemps (configure.ac): ... to here.
8348
8349 2011-05-21  Bruno Haible  <bruno@clisp.org>
8350
8351         mkostemp: Move AC_LIBOBJ invocations to module description.
8352         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
8353         gl_PREREQ_MKOSTEMP invocations from here...
8354         * modules/mkostemp (configure.ac): ... to here.
8355
8356 2011-05-21  Bruno Haible  <bruno@clisp.org>
8357
8358         mknod: Move AC_LIBOBJ invocations to module description.
8359         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
8360         * modules/mknod (configure.ac): ... to here.
8361
8362 2011-05-21  Bruno Haible  <bruno@clisp.org>
8363
8364         mkfifoat: Move AC_LIBOBJ invocations to module description.
8365         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
8366         here...
8367         * modules/mkfifoat (configure.ac): ... to here.
8368
8369 2011-05-21  Bruno Haible  <bruno@clisp.org>
8370
8371         mkfifo: Respect rules for use of AC_LIBOBJ.
8372         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
8373         here...
8374         * modules/mkfifo (configure.ac): ... to here.
8375
8376 2011-05-21  Bruno Haible  <bruno@clisp.org>
8377
8378         mkdtemp: Move AC_LIBOBJ invocations to module description.
8379         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
8380         invocations from here...
8381         * modules/mkdtemp (configure.ac): ... to here.
8382
8383 2011-05-21  Bruno Haible  <bruno@clisp.org>
8384
8385         mkdir: Move AC_LIBOBJ invocations to module description.
8386         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
8387         * modules/mkdir (configure.ac): ... to here.
8388
8389 2011-05-21  Bruno Haible  <bruno@clisp.org>
8390
8391         memset: Move AC_LIBOBJ invocations to module description.
8392         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
8393         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
8394         here...
8395         * modules/memset (configure.ac): ... to here.
8396
8397 2011-05-21  Bruno Haible  <bruno@clisp.org>
8398
8399         memrchr: Move AC_LIBOBJ invocations to module description.
8400         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
8401         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
8402         here...
8403         * modules/memrchr (configure.ac): ... to here.
8404
8405 2011-05-21  Bruno Haible  <bruno@clisp.org>
8406
8407         mempcpy: Move AC_LIBOBJ invocations to module description.
8408         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
8409         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
8410         here...
8411         * modules/mempcpy (configure.ac): ... to here.
8412
8413 2011-05-21  Bruno Haible  <bruno@clisp.org>
8414
8415         memmove: Move AC_LIBOBJ invocations to module description.
8416         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
8417         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
8418         here...
8419         * modules/memmove (configure.ac): ... to here.
8420
8421 2011-05-21  Bruno Haible  <bruno@clisp.org>
8422
8423         memmem*: Move AC_LIBOBJ invocations to module description.
8424         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
8425         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
8426         here...
8427         (gl_FUNC_MEMMEM): ... and here...
8428         * modules/memmem-simple (configure.ac): ... to here.
8429         * modules/memmem (configure.ac): ... and here.
8430
8431 2011-05-21  Bruno Haible  <bruno@clisp.org>
8432
8433         memcpy: Move AC_LIBOBJ invocations to module description.
8434         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
8435         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
8436         here...
8437         * modules/memcpy (configure.ac): ... to here.
8438
8439 2011-05-21  Bruno Haible  <bruno@clisp.org>
8440
8441         memcmp: Simplify autoconf macro.
8442         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
8443         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
8444         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
8445
8446 2011-05-21  Bruno Haible  <bruno@clisp.org>
8447
8448         memcmp: Move AC_LIBOBJ invocations to module description.
8449         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
8450         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
8451         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
8452         * modules/memcmp (configure.ac): ... to here.
8453         (Depends-on): Update conditions.
8454
8455 2011-05-21  Bruno Haible  <bruno@clisp.org>
8456
8457         memchr: Respect rules for use of AC_LIBOBJ.
8458         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
8459         invocations from here...
8460         * modules/memchr (configure.ac): ... to here.
8461
8462 2011-05-21  Bruno Haible  <bruno@clisp.org>
8463
8464         mbtowc: Move AC_LIBOBJ invocations to module description.
8465         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
8466         invocations from here...
8467         * modules/mbtowc (configure.ac): ... to here.
8468
8469 2011-05-21  Bruno Haible  <bruno@clisp.org>
8470
8471         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
8472         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
8473         gl_PREREQ_MBSRTOWCS invocations from here...
8474         * modules/mbsrtowcs (configure.ac): ... to here.
8475
8476 2011-05-21  Bruno Haible  <bruno@clisp.org>
8477
8478         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
8479         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
8480         gl_PREREQ_MBSNRTOWCS invocations from here...
8481         * modules/mbsnrtowcs (configure.ac): ... to here.
8482
8483 2011-05-21  Bruno Haible  <bruno@clisp.org>
8484
8485         mbsinit: Move AC_LIBOBJ invocations to module description.
8486         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
8487         invocations from here...
8488         * modules/mbsinit (configure.ac): ... to here.
8489
8490 2011-05-21  Bruno Haible  <bruno@clisp.org>
8491
8492         mbrlen: Move AC_LIBOBJ invocations to module description.
8493         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
8494         invocations from here...
8495         * modules/mbrlen (configure.ac): ... to here.
8496
8497 2011-05-21  Bruno Haible  <bruno@clisp.org>
8498
8499         mbrtowc: Respect rules for use of AC_LIBOBJ.
8500         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
8501         invocations from here...
8502         * modules/mbrtowc (configure.ac): ... to here.
8503
8504 2011-05-21  Bruno Haible  <bruno@clisp.org>
8505
8506         malloc-*: Move AC_LIBOBJ invocations to module description.
8507         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
8508         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
8509         AC_LIBOBJ invocations from here...
8510         * modules/malloc-gnu (configure.ac): ... to here.
8511         * modules/malloc-posix (configure.ac): ... and here.
8512
8513 2011-05-21  Bruno Haible  <bruno@clisp.org>
8514
8515         lstat, openat: Respect rules for use of AC_LIBOBJ.
8516         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
8517         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
8518         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
8519         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
8520         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
8521         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
8522         here.
8523         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
8524
8525 2011-05-21  Bruno Haible  <bruno@clisp.org>
8526
8527         lseek: Move AC_LIBOBJ invocations to module description.
8528         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
8529         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
8530         * modules/lseek (configure.ac): ... to here.
8531
8532 2011-05-21  Bruno Haible  <bruno@clisp.org>
8533
8534         linkat: Move AC_LIBOBJ invocations to module description.
8535         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
8536         here...
8537         * modules/linkat (configure.ac): ... to here.
8538
8539 2011-05-21  Bruno Haible  <bruno@clisp.org>
8540
8541         link: Respect rules for use of AC_LIBOBJ.
8542         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
8543         * modules/link (configure.ac): ... to here.
8544
8545 2011-05-21  Bruno Haible  <bruno@clisp.org>
8546
8547         lchown: Move AC_LIBOBJ invocations to module description.
8548         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
8549         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
8550         * modules/lchown (configure.ac): ... to here.
8551
8552 2011-05-21  Bruno Haible  <bruno@clisp.org>
8553
8554         iswctype: Move AC_LIBOBJ invocations to module description.
8555         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
8556         here...
8557         * modules/iswctype (configure.ac): ... to here.
8558
8559 2011-05-21  Bruno Haible  <bruno@clisp.org>
8560
8561         iswblank: Move AC_LIBOBJ invocations to module description.
8562         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
8563         here...
8564         * modules/iswblank (configure.ac): ... to here.
8565
8566 2011-05-21  Bruno Haible  <bruno@clisp.org>
8567
8568         atanl: Move AC_LIBOBJ invocations to module description.
8569         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
8570         * modules/atanl (configure.ac): ... to here.
8571
8572 2011-05-21  Bruno Haible  <bruno@clisp.org>
8573
8574         acosl: Move AC_LIBOBJ invocations to module description.
8575         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
8576         * modules/acosl (configure.ac): ... to here.
8577
8578 2011-05-21  Bruno Haible  <bruno@clisp.org>
8579
8580         asinl: Respect rules for use of AC_LIBOBJ.
8581         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
8582         * modules/asinl (configure.ac): ... to here.
8583
8584 2011-05-21  Bruno Haible  <bruno@clisp.org>
8585
8586         tanl: Move AC_LIBOBJ invocations to module description.
8587         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
8588         * modules/tanl (configure.ac): ... to here.
8589
8590 2011-05-21  Bruno Haible  <bruno@clisp.org>
8591
8592         cosl: Move AC_LIBOBJ invocations to module description.
8593         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
8594         * modules/cosl (configure.ac): ... to here.
8595
8596 2011-05-21  Bruno Haible  <bruno@clisp.org>
8597
8598         sinl: Move AC_LIBOBJ invocations to module description.
8599         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
8600         * modules/sinl (configure.ac): ... to here.
8601
8602 2011-05-21  Bruno Haible  <bruno@clisp.org>
8603
8604         logl: Move AC_LIBOBJ invocations to module description.
8605         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
8606         * modules/logl (configure.ac): ... to here.
8607
8608 2011-05-21  Bruno Haible  <bruno@clisp.org>
8609
8610         expl: Move AC_LIBOBJ invocations to module description.
8611         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
8612         * modules/expl (configure.ac): ... to here.
8613
8614 2011-05-21  Bruno Haible  <bruno@clisp.org>
8615
8616         roundl: Move AC_LIBOBJ invocations to module description.
8617         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
8618         * modules/roundl (configure.ac): ... to here.
8619
8620 2011-05-21  Bruno Haible  <bruno@clisp.org>
8621
8622         round: Move AC_LIBOBJ invocations to module description.
8623         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
8624         * modules/round (configure.ac): ... to here.
8625
8626 2011-05-21  Bruno Haible  <bruno@clisp.org>
8627
8628         roundf: Move AC_LIBOBJ invocations to module description.
8629         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
8630         * modules/roundf (configure.ac): ... to here.
8631
8632 2011-05-21  Bruno Haible  <bruno@clisp.org>
8633
8634         truncl: Move AC_LIBOBJ invocations to module description.
8635         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
8636         * modules/truncl (configure.ac): ... to here.
8637
8638 2011-05-21  Bruno Haible  <bruno@clisp.org>
8639
8640         trunc: Move AC_LIBOBJ invocations to module description.
8641         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
8642         * modules/trunc (configure.ac): ... to here.
8643
8644 2011-05-21  Bruno Haible  <bruno@clisp.org>
8645
8646         truncf: Move AC_LIBOBJ invocations to module description.
8647         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
8648         * modules/truncf (configure.ac): ... to here.
8649
8650 2011-05-21  Bruno Haible  <bruno@clisp.org>
8651
8652         ceill: Move AC_LIBOBJ invocations to module description.
8653         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
8654         * modules/ceill (configure.ac): ... to here.
8655
8656 2011-05-21  Bruno Haible  <bruno@clisp.org>
8657
8658         ceil: Move AC_LIBOBJ invocations to module description.
8659         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
8660         * modules/ceil (configure.ac): ... to here.
8661
8662 2011-05-21  Bruno Haible  <bruno@clisp.org>
8663
8664         ceilf: Move AC_LIBOBJ invocations to module description.
8665         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
8666         * modules/ceilf (configure.ac): ... to here.
8667
8668 2011-05-21  Bruno Haible  <bruno@clisp.org>
8669
8670         floorl: Respect rules for use of AC_LIBOBJ.
8671         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
8672         * modules/floorl (configure.ac): ... to here.
8673
8674 2011-05-21  Bruno Haible  <bruno@clisp.org>
8675
8676         floor: Respect rules for use of AC_LIBOBJ.
8677         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
8678         * modules/floor (configure.ac): ... to here.
8679
8680 2011-05-21  Bruno Haible  <bruno@clisp.org>
8681
8682         floorf: Move AC_LIBOBJ invocations to module description.
8683         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
8684         * modules/floorf (configure.ac): ... to here.
8685
8686 2011-05-20  Bruno Haible  <bruno@clisp.org>
8687
8688         sqrtl: Respect rules for use of AC_LIBOBJ.
8689         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
8690         * modules/sqrtl (configure.ac): ... to here.
8691
8692 2011-05-20  Bruno Haible  <bruno@clisp.org>
8693
8694         ldexpl: Respect rules for use of AC_LIBOBJ.
8695         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
8696         * modules/ldexpl (configure.ac): ... to here.
8697
8698 2011-05-20  Bruno Haible  <bruno@clisp.org>
8699
8700         frexpl*: Respect rules for use of AC_LIBOBJ.
8701         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
8702         invocation from here...
8703         * modules/frexpl (configure.ac): ... to here.
8704         * modules/frexpl-nolibm (configure.ac): ... and here.
8705
8706 2011-05-20  Bruno Haible  <bruno@clisp.org>
8707
8708         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
8709         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
8710         invocation from here...
8711         * modules/frexp (configure.ac): ... to here.
8712         * modules/frexp-nolibm (configure.ac): ... and here.
8713
8714 2011-05-20  Bruno Haible  <bruno@clisp.org>
8715
8716         isnan: Respect rules for use of AC_LIBOBJ.
8717         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
8718         invocations here.
8719         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
8720         REPLACE_ISNAN.
8721         * modules/isnand (configure.ac): Likewise.
8722         * modules/isnanl (configure.ac): Likewise.
8723
8724 2011-05-20  Bruno Haible  <bruno@clisp.org>
8725
8726         isnanl*: Respect rules for use of AC_LIBOBJ.
8727         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
8728         invocation from here...
8729         * modules/isnanl (configure.ac): ... to here.
8730         * modules/isnanl-nolibm (configure.ac): ... and here.
8731
8732 2011-05-20  Bruno Haible  <bruno@clisp.org>
8733
8734         isnand*: Move AC_LIBOBJ invocations to module description.
8735         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
8736         invocation from here...
8737         * modules/isnand (configure.ac): ... to here.
8738         * modules/isnand-nolibm (configure.ac): ... and here.
8739
8740 2011-05-20  Bruno Haible  <bruno@clisp.org>
8741
8742         isnanf*: Move AC_LIBOBJ invocations to module description.
8743         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
8744         invocation from here...
8745         * modules/isnanf (configure.ac): ... to here.
8746         * modules/isnanf-nolibm (configure.ac): ... and here.
8747
8748 2011-05-20  Bruno Haible  <bruno@clisp.org>
8749
8750         isnan*: Separate the AC_LIBOBJ invocations.
8751         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
8752         AC_LIBOBJ invocation.
8753         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
8754         here.
8755         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
8756         AC_LIBOBJ invocation.
8757         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
8758         here.
8759         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
8760         AC_LIBOBJ invocation.
8761         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
8762         here.
8763         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
8764
8765 2011-05-08  Bruno Haible  <bruno@clisp.org>
8766
8767         isinf: Move AC_LIBOBJ invocations to module description.
8768         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
8769         * modules/isinf (configure.ac): ... to here.
8770
8771 2011-05-08  Bruno Haible  <bruno@clisp.org>
8772
8773         isfinite: Move AC_LIBOBJ invocations to module description.
8774         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
8775         * modules/isfinite (configure.ac): ... to here.
8776
8777 2011-05-08  Bruno Haible  <bruno@clisp.org>
8778
8779         isblank: Move AC_LIBOBJ invocations to module description.
8780         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
8781         here...
8782         * modules/isblank (configure.ac): ... to here.
8783
8784 2011-05-08  Bruno Haible  <bruno@clisp.org>
8785
8786         isapipe: Move AC_LIBOBJ invocations to module description.
8787         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
8788         gl_PREREQ_ISAPIPE invocations from here...
8789         * modules/isapipe (configure.ac): ... to here.
8790         (Depends-on): Update condition.
8791
8792 2011-05-08  Bruno Haible  <bruno@clisp.org>
8793
8794         ioctl: Move AC_LIBOBJ invocations to module description.
8795         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
8796         invocations from here...
8797         * modules/ioctl (configure.ac): ... to here.
8798         (Depends-on): Update condition.
8799
8800 2011-05-08  Bruno Haible  <bruno@clisp.org>
8801
8802         imaxdiv: Move AC_LIBOBJ invocations to module description.
8803         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
8804         invocations from here...
8805         * modules/imaxdiv (configure.ac): ... to here.
8806
8807 2011-05-08  Bruno Haible  <bruno@clisp.org>
8808
8809         imaxabs: Move AC_LIBOBJ invocations to module description.
8810         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
8811         invocations from here...
8812         * modules/imaxabs (configure.ac): ... to here.
8813
8814 2011-05-08  Bruno Haible  <bruno@clisp.org>
8815
8816         getaddrinfo: Move AC_LIBOBJ invocations to module description.
8817         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
8818         AC_LIBOBJ invocations from here...
8819         * modules/getaddrinfo (configure.ac): ... to here.
8820         (Depends-on): Add conditions.
8821
8822 2011-05-08  Bruno Haible  <bruno@clisp.org>
8823
8824         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
8825         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
8826         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
8827         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
8828         (gl_PREREQ_INET_PTON): ... from here.
8829         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
8830         gl_PREREQ_INET_PTON here.
8831         (Depends-on): Update condition.
8832
8833 2011-05-08  Bruno Haible  <bruno@clisp.org>
8834
8835         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
8836         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
8837         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
8838         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
8839         (gl_PREREQ_INET_NTOP): ... from here.
8840         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
8841         gl_PREREQ_INET_NTOP here.
8842         (Depends-on): Update condition.
8843
8844 2011-05-08  Bruno Haible  <bruno@clisp.org>
8845
8846         iconv_open: Move AC_LIBOBJ invocations to module description.
8847         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
8848         AC_LIBOBJ invocations from here...
8849         * modules/iconv_open (configure.ac): ... to here.
8850
8851 2011-05-08  Bruno Haible  <bruno@clisp.org>
8852
8853         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
8854         If module 'iconv_open' is among the main modules and module
8855         'iconv_open-utf' is among the tests dependencies, then
8856         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
8857         return the special iconv_t values. Therefore iconv() and iconv_close()
8858         must support these special iconv_t values, already in lib, not only in
8859         tests.
8860         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
8861         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
8862         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
8863         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
8864         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
8865         (Depends-on): Add the dependencies of iconv_open-utf.
8866         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
8867         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
8868         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
8869
8870 2011-05-08  Bruno Haible  <bruno@clisp.org>
8871
8872         group-member: Move AC_LIBOBJ invocations to module description.
8873         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
8874         gl_PREREQ_GROUP_MEMBER invocations from here...
8875         * modules/group-member (configure.ac): ... to here.
8876
8877 2011-05-08  Bruno Haible  <bruno@clisp.org>
8878
8879         grantpt: Move AC_LIBOBJ invocations to module description.
8880         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
8881         invocations from here...
8882         * modules/grantpt (configure.ac): ... to here.
8883
8884 2011-05-08  Bruno Haible  <bruno@clisp.org>
8885
8886         glob: Move AC_LIBOBJ invocations to module description.
8887         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
8888         from here...
8889         * modules/glob (configure.ac): ... to here.
8890
8891 2011-05-08  Bruno Haible  <bruno@clisp.org>
8892
8893         getusershell: Move AC_LIBOBJ invocations to module description.
8894         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
8895         Move AC_LIBOBJ invocation from here...
8896         * modules/getusershell (configure.ac): ... to here.
8897         (Depends-on): Update condition.
8898
8899 2011-05-08  Bruno Haible  <bruno@clisp.org>
8900
8901         gettimeofday: Move AC_LIBOBJ invocations to module description.
8902         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
8903         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
8904         gl_PREREQ_GETTIMEOFDAY invocations from here...
8905         * modules/gettimeofday (configure.ac): ... to here.
8906
8907 2011-05-08  Bruno Haible  <bruno@clisp.org>
8908
8909         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
8910         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
8911         just gl_FUNC_TZSET.
8912         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
8913         (gl_FUNC_TZSET_CLOBBER): Remove actions.
8914         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
8915         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
8916
8917 2011-05-08  Bruno Haible  <bruno@clisp.org>
8918
8919         getsubopt: Move AC_LIBOBJ invocations to module description.
8920         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
8921         gl_PREREQ_GETSUBOPT invocations from here...
8922         * modules/getsubopt (configure.ac): ... to here.
8923
8924 2011-05-08  Bruno Haible  <bruno@clisp.org>
8925
8926         getpass-gnu: Move AC_LIBOBJ invocations to module description.
8927         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
8928         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
8929         * modules/getpass-gnu (configure.ac): ... to here.
8930
8931 2011-05-08  Bruno Haible  <bruno@clisp.org>
8932
8933         getpass: Move AC_LIBOBJ invocations to module description.
8934         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
8935         gl_PREREQ_GETPASS invocations from here...
8936         * modules/getpass (configure.ac): ... to here.
8937
8938 2011-05-08  Bruno Haible  <bruno@clisp.org>
8939
8940         getpagesize: Move AC_LIBOBJ invocations to module description.
8941         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
8942         from here...
8943         * modules/getpagesize (configure.ac): ... to here.
8944
8945 2011-05-08  Bruno Haible  <bruno@clisp.org>
8946
8947         getopt: Move AC_LIBOBJ invocations to module description.
8948         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
8949         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
8950         invocations from here...
8951         * modules/getopt-gnu (configure.ac): ... to here.
8952         * modules/getopt-posix (configure.ac): ... and here.
8953         (Depends-on): Update condition.
8954
8955 2011-05-08  Bruno Haible  <bruno@clisp.org>
8956
8957         getopt, argp: Respect rules for use of AC_LIBOBJ.
8958         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
8959         (gl_REPLACE_GETOPT_ALWAYS): New macro.
8960         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
8961         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
8962
8963 2011-05-08  Bruno Haible  <bruno@clisp.org>
8964
8965         getlogin_r: Move AC_LIBOBJ invocations to module description.
8966         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
8967         gl_PREREQ_GETLOGIN_R invocations from here...
8968         * modules/getlogin_r (configure.ac): ... to here.
8969
8970 2011-05-08  Bruno Haible  <bruno@clisp.org>
8971
8972         getlogin: Move AC_LIBOBJ invocations to module description.
8973         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
8974         here...
8975         * modules/getlogin (configure.ac): ... to here.
8976
8977 2011-05-08  Bruno Haible  <bruno@clisp.org>
8978
8979         getloadavg: Move AC_LIBOBJ invocations to module description.
8980         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
8981         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
8982         * modules/getloadavg (configure.ac): ... to here.
8983
8984 2011-05-08  Bruno Haible  <bruno@clisp.org>
8985
8986         gethrxtime: Move AC_LIBOBJ invocations to module description.
8987         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
8988         LIB_GETHRXTIME from here...
8989         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
8990         invocations from here...
8991         * modules/gethrxtime (configure.ac): ... to here.
8992
8993 2011-05-08  Bruno Haible  <bruno@clisp.org>
8994
8995         gethostname: Move AC_LIBOBJ invocations to module description.
8996         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
8997         gl_PREREQ_GETHOSTNAME invocations from here...
8998         * modules/gethostname (configure.ac): ... to here.
8999
9000 2011-05-08  Bruno Haible  <bruno@clisp.org>
9001
9002         getgroups: Move AC_LIBOBJ invocations to module description.
9003         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
9004         here...
9005         * modules/getgroups (configure.ac): ... to here.
9006
9007 2011-05-08  Bruno Haible  <bruno@clisp.org>
9008
9009         getdtablesize: Move AC_LIBOBJ invocations to module description.
9010         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
9011         invocation from here...
9012         * modules/getdtablesize (configure.ac): ... to here.
9013
9014 2011-05-08  Bruno Haible  <bruno@clisp.org>
9015
9016         getdomainname: Move AC_LIBOBJ invocations to module description.
9017         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
9018         gl_PREREQ_GETDOMAINNAME invocations from here...
9019         * modules/getdomainname (configure.ac): ... to here.
9020
9021 2011-05-08  Bruno Haible  <bruno@clisp.org>
9022
9023         getline: Move AC_LIBOBJ invocations to module description.
9024         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
9025         invocations from here...
9026         * modules/getline (configure.ac): ... to here.
9027
9028 2011-05-08  Bruno Haible  <bruno@clisp.org>
9029
9030         getline: Simplify.
9031         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
9032         It's already handled through the module dependency.
9033
9034 2011-05-08  Bruno Haible  <bruno@clisp.org>
9035
9036         getdelim: Move AC_LIBOBJ invocations to module description.
9037         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
9038         and gl_PREREQ_GETDELIM invocations from here...
9039         * modules/getdelim (configure.ac): ... to here.
9040         (Depends-on): Fix condition.
9041
9042 2011-05-08  Bruno Haible  <bruno@clisp.org>
9043
9044         getcwd: Move AC_LIBOBJ invocations to module description.
9045         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
9046         invocations from here...
9047         * modules/getcwd (configure.ac): ... to here.
9048
9049 2011-05-08  Bruno Haible  <bruno@clisp.org>
9050
9051         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
9052         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
9053         here...
9054         * modules/getcwd-lgpl (configure.ac): ... to here.
9055
9056 2011-05-07  Bruno Haible  <bruno@clisp.org>
9057
9058         crypto/gc: Move AC_LIBOBJ invocations to module description.
9059         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
9060         * modules/crypto/gc (configure.ac): ... to here.
9061
9062 2011-05-07  Bruno Haible  <bruno@clisp.org>
9063
9064         fwriting: Move AC_LIBOBJ invocations to module description.
9065         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
9066         here...
9067         * modules/fwriting (configure.ac): ... to here.
9068
9069 2011-05-07  Bruno Haible  <bruno@clisp.org>
9070
9071         fwritable: Move AC_LIBOBJ invocations to module description.
9072         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
9073         here...
9074         * modules/fwritable (configure.ac): ... to here.
9075
9076 2011-05-07  Bruno Haible  <bruno@clisp.org>
9077
9078         futimens: Move AC_LIBOBJ invocations to module description.
9079         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
9080         here...
9081         * modules/futimens (configure.ac): ... to here.
9082
9083 2011-05-07  Bruno Haible  <bruno@clisp.org>
9084
9085         ftruncate: Move AC_LIBOBJ invocations to module description.
9086         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
9087         gl_PREREQ_FTRUNCATE invocations from here...
9088         * modules/ftruncate (configure.ac): ... to here.
9089
9090 2011-05-07  Bruno Haible  <bruno@clisp.org>
9091
9092         fsync: Move AC_LIBOBJ invocations to module description.
9093         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
9094         invocations from here...
9095         * modules/fsync (configure.ac): ... to here.
9096
9097 2011-05-07  Bruno Haible  <bruno@clisp.org>
9098
9099         fsusage: Move AC_LIBOBJ invocations to module description.
9100         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
9101         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
9102         * modules/fsusage (configure.ac): ... to here.
9103
9104 2011-05-07  Bruno Haible  <bruno@clisp.org>
9105
9106         freopen: Move AC_LIBOBJ invocations to module description.
9107         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
9108         invocations from here...
9109         * modules/freopen (configure.ac): ... to here.
9110
9111 2011-05-07  Bruno Haible  <bruno@clisp.org>
9112
9113         free: Move AC_LIBOBJ invocations to module description.
9114         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
9115         invocations from here...
9116         * modules/free (configure.ac): ... to here.
9117
9118 2011-05-07  Bruno Haible  <bruno@clisp.org>
9119
9120         freadable: Move AC_LIBOBJ invocations to module description.
9121         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
9122         here...
9123         * modules/freadable (configure.ac): ... to here.
9124
9125 2011-05-07  Bruno Haible  <bruno@clisp.org>
9126
9127         fpurge: Move AC_LIBOBJ invocations to module description.
9128         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
9129         invocations from here...
9130         * modules/fpurge (configure.ac): ... to here.
9131
9132 2011-05-07  Bruno Haible  <bruno@clisp.org>
9133
9134         fpending: Move AC_LIBOBJ invocations to module description.
9135         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
9136         gl_FUNC_FPENDING.
9137         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
9138         invocations from here...
9139         * modules/fpending (configure.ac): ... to here.
9140
9141 2011-05-07  Bruno Haible  <bruno@clisp.org>
9142
9143         fopen: Move AC_LIBOBJ invocations to module description.
9144         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
9145         invocations from here...
9146         * modules/fopen (configure.ac): ... to here.
9147
9148 2011-05-07  Bruno Haible  <bruno@clisp.org>
9149
9150         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
9151         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
9152         gl_FUNC_FNMATCH_POSIX.
9153         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
9154         invocations from here...
9155         * modules/fnmatch (configure.ac): ... to here.
9156         * modules/fnmatch-gnu (configure.ac): ... and here.
9157
9158 2011-05-07  Bruno Haible  <bruno@clisp.org>
9159
9160         flock: Move AC_LIBOBJ invocations to module description.
9161         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
9162         invocations from here...
9163         * modules/flock (configure.ac): ... to here.
9164
9165 2011-05-07  Bruno Haible  <bruno@clisp.org>
9166
9167         fileblocks: Move AC_LIBOBJ invocations to module description.
9168         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
9169         gl_PREREQ_FILEBLOCKS invocations from here...
9170         * modules/fileblocks (configure.ac): ... to here.
9171
9172 2011-05-06  Bruno Haible  <bruno@clisp.org>
9173
9174         fflush: Move AC_LIBOBJ invocations to module description.
9175         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
9176         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
9177         invocations from here...
9178         * modules/fflush (configure.ac): ... to here.
9179
9180 2011-05-06  Bruno Haible  <bruno@clisp.org>
9181
9182         fdopendir: Move AC_LIBOBJ invocations to module description.
9183         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
9184         here...
9185         * modules/fdopendir (configure.ac): ... to here.
9186         (Depends-on): Improve conditions.
9187
9188 2011-05-06  Bruno Haible  <bruno@clisp.org>
9189
9190         _Exit: Move AC_LIBOBJ invocations to module description.
9191         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
9192         invocations from here...
9193         * modules/_Exit (configure.ac): ... to here.
9194
9195 2011-05-21  Bruno Haible  <bruno@clisp.org>
9196
9197         euidaccess: Respect rules for use of AC_LIBOBJ.
9198         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
9199         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
9200         from here...
9201         * modules/euidaccess (configure.ac): ... to here.
9202
9203 2011-05-06  Bruno Haible  <bruno@clisp.org>
9204
9205         error: Move AC_LIBOBJ invocations to module description.
9206         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
9207         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
9208         invocations from here...
9209         * modules/error (configure.ac): ... to here.
9210
9211 2011-05-06  Bruno Haible  <bruno@clisp.org>
9212
9213         duplocale: Move AC_LIBOBJ invocations to module description.
9214         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
9215         gl_PREREQ_DUPLOCALE invocations from here...
9216         * modules/duplocale (configure.ac): ... to here.
9217
9218 2011-05-05  Bruno Haible  <bruno@clisp.org>
9219
9220         dirfd: Move AC_LIBOBJ invocations to module description.
9221         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
9222         gl_FUNC_DIRFD.
9223         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
9224         here...
9225         * modules/dirfd (configure.ac): ... to here.
9226         (Depends-on): Fix condition.
9227
9228 2011-05-05  Bruno Haible  <bruno@clisp.org>
9229
9230         chown: Respect rules for use of AC_LIBOBJ.
9231         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
9232         * modules/chown (configure.ac): ... to here.
9233
9234 2011-05-05  Bruno Haible  <bruno@clisp.org>
9235
9236         chdir-long: Move AC_LIBOBJ invocations to module description.
9237         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
9238         gl_PREREQ_CHDIR_LONG invocations from here...
9239         * modules/chdir-long (configure.ac): ... to here.
9240
9241 2011-05-05  Bruno Haible  <bruno@clisp.org>
9242
9243         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
9244         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
9245         from here...
9246         * modules/canonicalize-lgpl (configure.ac): ... to here.
9247
9248 2011-05-05  Bruno Haible  <bruno@clisp.org>
9249
9250         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
9251         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
9252         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
9253         REPLACE_CALLOC.
9254         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
9255         * modules/calloc-gnu (configure.ac): Likewise.
9256
9257 2011-05-05  Bruno Haible  <bruno@clisp.org>
9258
9259         btowc: Move AC_LIBOBJ invocations to module description.
9260         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
9261         invocations from here...
9262         * modules/btowc (configure.ac): ... to here.
9263
9264 2011-05-21  Bruno Haible  <bruno@clisp.org>
9265
9266         atexit: Move AC_LIBOBJ invocations to module description.
9267         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
9268         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
9269         here...
9270         * modules/atexit (configure.ac): ... to here.
9271
9272 2011-05-05  Bruno Haible  <bruno@clisp.org>
9273
9274         atoll: Move AC_LIBOBJ invocations to module description.
9275         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
9276         invocations from here...
9277         * modules/atoll (configure.ac): ... to here.
9278
9279 2011-05-05  Bruno Haible  <bruno@clisp.org>
9280
9281         argz: Move AC_LIBOBJ invocations to module description.
9282         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
9283         * modules/argz (configure.ac): ... to here.
9284
9285 2011-05-05  Bruno Haible  <bruno@clisp.org>
9286
9287         alphasort: Move AC_LIBOBJ invocations to module description.
9288         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
9289         gl_PREREQ_ALPHASORT invocations from here...
9290         * modules/alphasort (configure.ac): ... to here.
9291
9292 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
9293
9294         verify: new macro verify_expr; verify_true deprecated
9295         * NEWS: Mention this.
9296         * doc/verify.texi (Compile-time Assertions): Document this.
9297         * lib/verify.h (verify_true): Deprecate.
9298         (verify_expr): New macro.
9299         * tests/test-verify.c (function): Test verify_expr.
9300
9301 2011-06-14  Jim Meyering  <meyering@redhat.com>
9302
9303         init.sh: give more portable redirection-related advice in a comment
9304         * tests/init.sh (stderr_fileno_): Update the advice in comments.
9305         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
9306         for lots of discussion.  Stefano Lattarini suggested the solution
9307         of putting "9>&2" after the command.  Reported by Bruno Haible.
9308
9309 2011-06-13  Bruno Haible  <bruno@clisp.org>
9310
9311         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
9312         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
9313         'none'.
9314
9315 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
9316
9317         ftoastr: use strtof only if HAVE_STRTOF
9318         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
9319         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
9320         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
9321         * modules/ftoastr (configure.ac): Check for strtof.
9322
9323 2011-06-13  Bruno Haible  <bruno@clisp.org>
9324
9325         gnulib-tool: Addendum to 2011-06-08 commit.
9326         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
9327         and --witness-c-macro have been given, augment AM_CPPFLAGS.
9328
9329 2011-06-13  Bruno Haible  <bruno@clisp.org>
9330
9331         fseeko: Provide a non-inline replacement of fseek().
9332         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
9333         * modules/fseeko (Depends-on): Add fseek.
9334         * modules/fseek (License): Change to LGPLv2+.
9335
9336 2011-06-13  Bruno Haible  <bruno@clisp.org>
9337
9338         ftello: Provide a non-inline replacement of ftell().
9339         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
9340         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
9341         not have ftello() (such as on mingw).
9342         * modules/ftello (Depends-on): Add ftell.
9343         * modules/ftell (License): Change to LGPLv2+.
9344
9345 2011-05-07  Bruno Haible  <bruno@clisp.org>
9346
9347         ftell: Move AC_LIBOBJ invocations to module description.
9348         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
9349         * modules/ftell (configure.ac): ... to here.
9350
9351 2011-05-07  Bruno Haible  <bruno@clisp.org>
9352
9353         ftello: Respect rules for use of AC_LIBOBJ.
9354         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
9355         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
9356         here...
9357         * modules/ftello (configure.ac): ... to here.
9358
9359 2011-05-07  Bruno Haible  <bruno@clisp.org>
9360
9361         fseeko: Simplify.
9362         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
9363         (gl_FUNC_FSEEKO): Inline it here.
9364
9365 2011-05-07  Bruno Haible  <bruno@clisp.org>
9366
9367         fseek: Move AC_LIBOBJ invocations to module description.
9368         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
9369         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
9370         * modules/fseek (configure.ac): ... to here.
9371
9372 2011-05-07  Bruno Haible  <bruno@clisp.org>
9373
9374         fseek: Respect rules for use of AC_LIBOBJ.
9375         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
9376         here...
9377         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
9378
9379 2011-05-07  Bruno Haible  <bruno@clisp.org>
9380
9381         fseeko: Respect rules for use of AC_LIBOBJ.
9382         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
9383         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
9384         here...
9385         * modules/fseeko (configure.ac): ... to here.
9386
9387 2011-06-13  Bruno Haible  <bruno@clisp.org>
9388
9389         gnulib-tool: Allow comments in the 'Depends-on' section.
9390         * doc/gnulib.texi (Module description): Mention comment syntax in the
9391         Depends-on section.
9392         * gnulib-tool (func_get_dependencies): Filter out comment lines.
9393
9394 2011-06-13  Bruno Haible  <bruno@clisp.org>
9395
9396         file-set.h: guard __attibute__ use, now that it's not always defined
9397         * lib/file-set.h (record_file): Use __attribute__ only with compiler
9398         versions that support it.  This fixes a coreutils build failure with
9399         the vendor cc on HP-UX 11.31.
9400
9401 2011-06-12  Bruno Haible  <bruno@clisp.org>
9402
9403         acl: Add support for HP-UX >= 11.11 JFS ACLs.
9404         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
9405         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
9406         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
9407         (acl, aclsort): New declarations.
9408         (aclv_nontrivial): New declaration.
9409         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
9410         (file_has_acl): Read also the second kind of HP-UX ACLs.
9411         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
9412         kind of HP-UX ACLs if the first kind fails.
9413         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
9414         second kind of HP-UX ACLs.
9415         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
9416         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
9417         agree.
9418         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
9419         hpuxjfs.
9420         Handle hpuxjfs.
9421         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
9422         hpuxjfs.
9423         Handle hpuxjfs.
9424         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
9425         (func_test_same_acls): Use both lsacl and getacl.
9426         Handle hpuxjfs.
9427         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
9428         (func_test_same_acls): Use both lsacl and getacl.
9429         Handle hpuxjfs.
9430
9431 2011-06-12  Bruno Haible  <bruno@clisp.org>
9432
9433         acl: Complete the 2010-08-10 fix.
9434         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
9435         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
9436         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
9437         explicitly.
9438         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
9439         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
9440
9441 2011-06-12  Bruno Haible  <bruno@clisp.org>
9442
9443         spawn-pipe tests: Comments.
9444         * tests/test-spawn-pipe-child.c (main): Update comment.
9445         Reported by James Youngman <jay@gnu.org>.
9446
9447 2011-06-11  James Youngman  <jay@gnu.org>
9448
9449         New module 'stat-size'.
9450         * modules/stat-size: New module.  Provides macros for accessing
9451         file size information in instances of struct stat.  Depends on the
9452         fileblocks module because it calls st_blocks.
9453         * lib/stat-size.h: New file, adapted from coreutils' system.h.
9454         * doc/gnulib.texi: Include stat-size.texi.
9455         * doc/stat-size.texi: Documentation for this module.
9456         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
9457         * m4/fileblocks.m4: Mention that stat-size depends on the call to
9458         AC_STRUCT_ST_BLOCKS.
9459
9460 2011-06-09  Bruno Haible  <bruno@clisp.org>
9461
9462         thread: Support pthreads-win32.
9463         * lib/glthread/thread.h (gl_thread_self): Define differently on
9464         pthreads-win32.
9465         (gl_null_thread): New declaration.
9466         (gl_thread_self_pointer): New macro.
9467         * lib/glthread/thread.c (gl_null_thread): New constant.
9468         * tests/test-lock.c: Use gl_thread_self_pointer instead of
9469         gl_thread_self.
9470         * tests/test-tls.c: Likewise.
9471         Suggested by Paul Eggert. Reported by Eric Blake.
9472
9473 2011-06-09  Bruno Haible  <bruno@clisp.org>
9474
9475         thread: Fix confusion between NULL and 0.
9476         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
9477         Reported by Paul Eggert.
9478
9479 2011-06-09  Bruno Haible  <bruno@clisp.org>
9480
9481         spawn-pipe tests: Avoid test failure on HP-UX 11.
9482         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
9483         is closed.
9484
9485 2011-06-09  Bruno Haible  <bruno@clisp.org>
9486
9487         acl tests: Fix compilation error on HP-UX 11.
9488         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
9489
9490 2011-06-09  Bruno Haible  <bruno@clisp.org>
9491
9492         rmdir: Avoid test failure on HP-UX 10.20.
9493         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
9494         EEXIST.
9495
9496 2011-06-08  Eric Blake  <eblake@redhat.com>
9497
9498         perror: fix test on mingw
9499         * modules/perror-tests (Depends-on): Add dup2.
9500
9501         strerror_r-posix: fix on MacOS
9502         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
9503         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
9504         logic bug.
9505         * lib/strerror_r.c (strerror_r): Fix the bug.
9506         * lib/strerror.c (strerror): Likewise.
9507         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
9508         problem.
9509         * doc/posix-functions/strerror.texi (strerror): Likewise.
9510         * doc/posix-functions/perror.texi (perror): Likewise.
9511         * tests/test-strerror.c (main): Enhance test.
9512         * tests/test-strerror_r.c (main): Likewise.
9513
9514 2011-06-08  Bruno Haible  <bruno@clisp.org>
9515
9516         gnulib-tool: Better isolation between different gnulib-tool invocations.
9517         * gnulib-tool: New option --witness-c-macro.
9518         (witness_c_macro): New variable.
9519         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
9520         AM_CPPFLAGS define it as a C macro.
9521         (func_emit_tests_Makefile_am): Likewise.
9522         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
9523         read it from there.
9524         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
9525         m4_define, not AC_DEFUN.
9526         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
9527         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
9528         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
9529         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
9530         s|...|...|, to substitute the values of the GNULIB_* module indicator
9531         variables.
9532         * modules/dirent (Makefile.am): Likewise.
9533         * modules/fcntl-h (Makefile.am): Likewise.
9534         * modules/iconv-h (Makefile.am): Likewise.
9535         * modules/langinfo (Makefile.am): Likewise.
9536         * modules/locale (Makefile.am): Likewise.
9537         * modules/math (Makefile.am): Likewise.
9538         * modules/netdb (Makefile.am): Likewise.
9539         * modules/poll-h (Makefile.am): Likewise.
9540         * modules/pty (Makefile.am): Likewise.
9541         * modules/search (Makefile.am): Likewise.
9542         * modules/signal (Makefile.am): Likewise.
9543         * modules/spawn (Makefile.am): Likewise.
9544         * modules/stdio (Makefile.am): Likewise.
9545         * modules/stdlib (Makefile.am): Likewise.
9546         * modules/string (Makefile.am): Likewise.
9547         * modules/sys_ioctl (Makefile.am): Likewise.
9548         * modules/sys_select (Makefile.am): Likewise.
9549         * modules/sys_socket (Makefile.am): Likewise.
9550         * modules/sys_stat (Makefile.am): Likewise.
9551         * modules/sys_times (Makefile.am): Likewise.
9552         * modules/sys_utsname (Makefile.am): Likewise.
9553         * modules/sys_wait (Makefile.am): Likewise.
9554         * modules/termios (Makefile.am): Likewise.
9555         * modules/time (Makefile.am): Likewise.
9556         * modules/unistd (Makefile.am): Likewise.
9557         * modules/wchar (Makefile.am): Likewise.
9558
9559 2011-06-08  Eric Blake  <eblake@redhat.com>
9560
9561         strerror: simplify replacement
9562         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
9563         * modules/strerror (configure.ac): No prereqs needed here...
9564         * modules/strerror-override (configure.ac): ...but this needs it.
9565         (Files): Add file for needed prereq macro.
9566
9567 2011-06-08  Bruno Haible  <bruno@clisp.org>
9568
9569         strerror_r-posix: Tweaks.
9570         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
9571         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
9572         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
9573         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
9574         (gl_FUNC_STRERROR_R): ... to here.
9575         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
9576
9577 2011-06-07  Eric Blake  <eblake@redhat.com>
9578
9579         perror: document fixed bugs
9580         * doc/posix-functions/perror.texi (perror): Document recent
9581         patches.
9582
9583 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
9584
9585         stat-time: get_stat_birthtime failure is better-defined
9586         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
9587         return a timestamp whose tv_sec and tv_nsec values are both -1.
9588         Previously, the spec said only that the tv_nsec value was negative.
9589         This upward-compatible change simplifies GNU tar a bit.
9590
9591 2011-06-07  Eric Blake  <eblake@redhat.com>
9592
9593         strerror_r-posix: work around cygwin 1.7.9
9594         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
9595         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
9596         bug without replacing strerror_r.
9597         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
9598         strerror_r is buggy, but without requiring strerror_r compilation.
9599         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
9600
9601         test-perror: relax test to ignore cygwin bug
9602         * tests/test-perror2.c (main): Relax test on requiring detection
9603         of stream errors, and use unbuffered stream.
9604         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
9605         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
9606         * doc/posix-functions/fputc.texi (fputc): Likewise.
9607         * doc/posix-functions/fputs.texi (fputs): Likewise.
9608         * doc/posix-functions/fputws.texi (fputws): Likewise.
9609         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
9610         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
9611         * doc/posix-functions/getopt.texi (getopt): Likewise.
9612         * doc/posix-functions/perror.texi (perror): Likewise.
9613         * doc/posix-functions/printf.texi (printf): Likewise.
9614         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
9615         * doc/posix-functions/psignal.texi (psignal): Likewise.
9616         * doc/posix-functions/putc.texi (putc): Likewise.
9617         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
9618         Likewise.
9619         * doc/posix-functions/putchar.texi (putchar): Likewise.
9620         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
9621         Likewise.
9622         * doc/posix-functions/puts.texi (puts): Likewise.
9623         * doc/posix-functions/putwc.texi (putwc): Likewise.
9624         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
9625         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
9626         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
9627         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
9628         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
9629         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
9630         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
9631         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
9632
9633 2011-05-22  Bruno Haible  <bruno@clisp.org>
9634
9635         strerror: Move AC_LIBOBJ invocations to module description.
9636         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
9637         gl_PREREQ_STRERROR invocations from here...
9638         * modules/strerror (configure.ac): ... to here.
9639
9640 2011-05-21  Bruno Haible  <bruno@clisp.org>
9641
9642         perror: Use common idiom.
9643         * modules/perror (configure.ac): Reorder statements.
9644
9645 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
9646
9647         tests: fix usage message in 'mktempd_'
9648         * tests/init.sh (mktempd_): In the usage message, use literal
9649         'mktempd_', not '$ME' (which is even undefined), as the name of
9650         the subroutine.
9651
9652 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
9653
9654         tests init: new function 'fatal_', for hard errors
9655         Before this patch, the only way offered by tests/init.sh to
9656         properly signal a hard error was the `framework_failure_'
9657         function.  But the error message issued by that function,
9658         as its name would suggest, refers to a set-up failure in the
9659         testsuite, while hard errors can obviously also be due to
9660         other reasons.  The best way to fix this inconsistency is to
9661         introduce a new function with a more general error message.
9662         * tests/init.sh (fatal_): New function.
9663
9664 2011-06-06  Eric Blake  <eblake@redhat.com>
9665
9666         canonicalize-lgpl: use common idiom
9667         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
9668         over newer POSIX -Rf.
9669         Reported by Bruno Haible.
9670
9671         canonicalize-lgpl: work around AIX realpath bug
9672         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
9673         * doc/posix-functions/realpath.texi (realpath): Document it.
9674         Reported by Bruno Haible.
9675
9676         strerror: work around FreeBSD bug
9677         * lib/strerror.c (strerror): Special case 0.
9678         Reported by Bruno Haible.
9679
9680         strerror-override: avoid bloating errno module
9681         * modules/errno (Files, configure.ac): Move replacement strings...
9682         * modules/strerror-override: ...to new module.
9683         * modules/strerror (Depends-on): Add strerror-override.
9684         * modules/strerror_r-posix (Depends-on): Likewise.
9685         * MODULES.html.sh: Document new module.
9686         Reported by Bruno Haible.
9687
9688 2011-06-06  Bruno Haible  <bruno@clisp.org>
9689
9690         spawn-pipe tests: Rename program.
9691         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
9692         * tests/test-spawn-pipe-child.c: Update comment.
9693         * tests/test-spawn-pipe.sh: Update.
9694         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
9695
9696         spawn-pipe tests: Link the child program only against libc.
9697         * tests/test-spawn-pipe-child.c: New file, extracted from
9698         tests/test-spawn-pipe.c.
9699         (main): Expect only one argument.
9700         (is_open): New function, copied from tests/test-pipe.c.
9701         * tests/test-spawn-pipe.c: Don't include <errno.h>.
9702         (child_main): Remove function.
9703         (test_pipe): Pass only one argument to the child program.
9704         (main): Remove child process code. Expect the child program's name as
9705         first argument.
9706         * tests/test-spawn-pipe.sh: Pass the child program's name as first
9707         argument.
9708         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
9709         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
9710         test-spawn-pipe-child against no libraries.
9711
9712 2011-06-06  Bruno Haible  <bruno@clisp.org>
9713
9714         careadlinkat: Avoid mismatch between ssize_t and int.
9715         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
9716         * lib/careadlinkat.c (careadlinkatcwd): Define always.
9717
9718 2011-06-06  Jim Meyering  <meyering@redhat.com>
9719
9720         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
9721         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
9722         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
9723
9724 2011-06-05  Bruno Haible  <bruno@clisp.org>
9725
9726         ansi-c++-opt: Interoperability with libtool.
9727         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
9728         set the variable to "no", not to ":".
9729         * NEWS: Mention the change.
9730
9731 2011-06-05  Bruno Haible  <bruno@clisp.org>
9732
9733         acl: Fix test failure on AIX 7.
9734         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
9735         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
9736
9737 2011-06-05  Bruno Haible  <bruno@clisp.org>
9738
9739         pipe-filter-ii: Fix test failure on AIX and IRIX.
9740         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
9741         with EAGAIN, retry with a smaller buffer size.
9742
9743 2011-06-05  Bruno Haible  <bruno@clisp.org>
9744
9745         localename: Fix link dependencies.
9746         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
9747         * modules/localename-tests (Makefile.am): Link test-localename with
9748         $(LIBTHREAD).
9749
9750 2011-06-05  Bruno Haible  <bruno@clisp.org>
9751
9752         error: Avoid gcc warning.
9753         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
9754
9755 2011-06-05  Bruno Haible  <bruno@clisp.org>
9756
9757         unsetenv: Avoid gcc warning.
9758         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
9759
9760 2011-06-05  Bruno Haible  <bruno@clisp.org>
9761
9762         setenv: Avoid gcc warning.
9763         * lib/setenv.c (setenv): Provide declaration if system lacks it.
9764
9765 2011-06-05  Bruno Haible  <bruno@clisp.org>
9766
9767         sys_select: Ensure memset is declared also on AIX 7.
9768         * lib/sys_select.in.h: Include <string.h> also on AIX.
9769         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
9770         self-contained also on AIX 7.1.
9771
9772 2011-06-04  Jim Meyering  <meyering@redhat.com>
9773
9774         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
9775         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
9776         function name, "error".
9777         (_gl_translatable_diag_func_re): New configurable variable.
9778
9779 2011-06-04  Bruno Haible  <bruno@clisp.org>
9780
9781         getopt: Avoid gcc warning.
9782         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
9783
9784 2011-06-04  Bruno Haible  <bruno@clisp.org>
9785
9786         strerror_r: Fix comments.
9787         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
9788         commit.
9789
9790 2011-06-04  Bruno Haible  <bruno@clisp.org>
9791
9792         perror: Fix compilation error.
9793         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
9794         Undefine fprintf, not sprintf.
9795         * modules/perror (Depends-on): Remove intprops, verify.
9796
9797 2011-06-04  Bruno Haible  <bruno@clisp.org>
9798
9799         setlocale: Enable replacement on Cygwin 1.5.
9800         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
9801         Cygwin 1.5.x.
9802         * doc/posix-functions/setlocale.texi: Mention that the problem with the
9803         LC_CTYPE category also exists on Cygwin 1.5.x.
9804
9805 2011-06-04  Bruno Haible  <bruno@clisp.org>
9806
9807         strerror-override: Don't disable symbol renamings.
9808         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
9809         * lib/strerror-override.c: Include config.h.
9810         (strerror_override): Don't undefine.
9811
9812 2011-06-03  Bruno Haible  <bruno@clisp.org>
9813
9814         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
9815         * lib/localename.h: Update copyright header.
9816         * lib/localename.c: Likewise.
9817         * lib/relocatable.h: Likewise.
9818         * lib/relocatable.c: Likewise.
9819
9820 2011-06-02  Bruno Haible  <bruno@clisp.org>
9821
9822         doc: Fix a module name.
9823         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
9824
9825 2011-06-02  Bruno Haible  <bruno@clisp.org>
9826
9827         pipe2: Remove dependency on 'nonblocking' module.
9828         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
9829         O_NONBLOCK is defined by gnulib.
9830         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
9831         is zero.
9832         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
9833         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
9834         defined by gnulib.
9835         (get_nonblocking_flag): New function.
9836         (main): Test O_NONBLOCK flag only if it is nonzero.
9837         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
9838
9839 2011-06-03  Jim Meyering  <meyering@redhat.com>
9840
9841         maint: three new prohibit-header-without-use rules
9842         Prohibit use of cloexec.h, posixver.h, same.h without use.
9843         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
9844         (sc_prohibit_posixver_without_use): Likewise.
9845         (sc_prohibit_same_without_use): Likewise.
9846
9847 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
9848
9849         allocator: 'die' routine is now given requested size
9850         * lib/allocator.h (struct allocator.die): New size arg.
9851         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
9852         If the actual problem is an ssize_t limitation, not a size_t or
9853         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
9854
9855 2011-06-01  Eric Blake  <eblake@redhat.com>
9856
9857         strerror: drop strerror_r dependency
9858         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
9859         * lib/strerror-override.c (strerror_override): ...to new file.
9860         * lib/strerror-override.h: Add prototype.
9861         * lib/strerror-impl.h: Delete.
9862         * lib/strerror.c (strerror): New implementation.
9863         * modules/errno (Files): Add new files.
9864         (configure.ac): Compile new file as appropriate.
9865         * modules/strerror (Files): Drop unused file.
9866         (Depends-on): Drop strerror_r-posix.
9867         * MODULES.html.sh: Document strerror_r-posix.
9868         Requested by Sam Steingold.
9869
9870         perror: call strerror_r directly
9871         * modules/perror (Files): Drop strerror-impl.h.
9872         * lib/perror.c (perror): Use our own stack buffer, rather than
9873         calling a wrapper that uses static storage.
9874         * doc/posix-functions/perror.texi (perror): Document a limitation
9875         of our replacement.
9876
9877         strerror_r: fix includes for FreeBSD
9878         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
9879         since we use abort on some platforms.
9880         Reported by Matthias Bolte.
9881
9882 2011-05-31  Bruno Haible  <bruno@clisp.org>
9883
9884         Fix link errors in tests: openat-die uses gettext-h.
9885         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
9886         against $(LIBINTL).
9887         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
9888         against $(LIBINTL).
9889         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
9890         $(LIBINTL).
9891         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
9892         against $(LIBINTL).
9893         * modules/linkat-tests (Makefile.am): Link test-linkat against
9894         $(LIBINTL).
9895         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
9896         $(LIBINTL).
9897         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
9898         against $(LIBINTL).
9899         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
9900         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
9901         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
9902         $(LIBINTL).
9903         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
9904         $(LIBINTL).
9905         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
9906         $(LIBINTL).
9907         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9908
9909 2011-05-31  Bruno Haible  <bruno@clisp.org>
9910
9911         Fix link errors in tests: wait-process uses gettext-h.
9912         * modules/nonblocking-pipe-tests (Makefile.am): Set
9913         test_nonblocking_pipe_main_LDADD.
9914         * modules/nonblocking-socket-tests (Makefile.am): Link
9915         test-nonblocking-socket-main against $(LIBINTL).
9916         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9917
9918 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
9919
9920         assert-h: work around 'verify' incompatibility
9921         * lib/verify.h: Use @...@ directives, not ifdef.
9922         * modules/assert-h (assert.h): Implement the directives.
9923         (assert.h): Substitute the symbol-prefix more consistently.
9924
9925 2011-05-29  Jim Meyering  <meyering@redhat.com>
9926
9927         trim: remove three superfluous assignments
9928         * lib/trim.c (trim2): Remove three superfluous assignments
9929         and correct brace positioning.
9930
9931 2011-05-29  Bruno Haible  <bruno@clisp.org>
9932
9933         wctype-h: Avoid namespace pollution on Solaris 2.6.
9934         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
9935         identifiers.
9936         * doc/posix-headers/wctype.texi: Mention the problem.
9937         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9938
9939 2011-05-28  Jim Meyering  <meyering@redhat.com>
9940
9941         parse-datetime.y: accommodate -Wstrict-overflow
9942         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
9943         placate -Wstrict-overflow.
9944
9945         trim: avoid a warning from -O2 -Wstrict-overflow
9946         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
9947
9948 2011-05-29  Bruno Haible  <bruno@clisp.org>
9949
9950         gnulib-tool: Fix bug in yesterday's commit.
9951         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
9952         twice.
9953
9954 2011-05-29  Bruno Haible  <bruno@clisp.org>
9955
9956         Allow multiple gnulib generated include files to be combined.
9957         * gnulib-tool (func_compute_include_guard_prefix): New function.
9958         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
9959         ${gl_include_guard_prefix} references.
9960         (func_import, func_create_testdir): Invoke
9961         func_compute_include_guard_prefix.
9962         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
9963         * lib/ctype.in.h: Likewise.
9964         * lib/dirent.in.h: Likewise.
9965         * lib/errno.in.h: Likewise.
9966         * lib/fcntl.in.h: Likewise.
9967         * lib/float.in.h: Likewise.
9968         * lib/getopt.in.h: Likewise.
9969         * lib/iconv.in.h: Likewise.
9970         * lib/langinfo.in.h: Likewise.
9971         * lib/locale.in.h: Likewise.
9972         * lib/math.in.h: Likewise.
9973         * lib/netdb.in.h: Likewise.
9974         * lib/netinet_in.in.h: Likewise.
9975         * lib/poll.in.h: Likewise.
9976         * lib/pthread.in.h: Likewise.
9977         * lib/pty.in.h: Likewise.
9978         * lib/sched.in.h: Likewise.
9979         * lib/se-selinux.in.h: Likewise.
9980         * lib/search.in.h: Likewise.
9981         * lib/signal.in.h: Likewise.
9982         * lib/spawn.in.h: Likewise.
9983         * lib/stdarg.in.h: Likewise.
9984         * lib/stddef.in.h: Likewise.
9985         * lib/stdint.in.h: Likewise.
9986         * lib/stdio.in.h: Likewise.
9987         * lib/stdlib.in.h: Likewise.
9988         * lib/string.in.h: Likewise.
9989         * lib/strings.in.h: Likewise.
9990         * lib/sys_file.in.h: Likewise.
9991         * lib/sys_ioctl.in.h: Likewise.
9992         * lib/sys_select.in.h: Likewise.
9993         * lib/sys_socket.in.h: Likewise.
9994         * lib/sys_stat.in.h: Likewise.
9995         * lib/sys_time.in.h: Likewise.
9996         * lib/sys_times.in.h: Likewise.
9997         * lib/sys_uio.in.h: Likewise.
9998         * lib/sys_utsname.in.h: Likewise.
9999         * lib/sys_wait.in.h: Likewise.
10000         * lib/sysexits.in.h: Likewise.
10001         * lib/termios.in.h: Likewise.
10002         * lib/time.in.h: Likewise.
10003         * lib/unistd.in.h: Likewise.
10004         * lib/wchar.in.h: Likewise.
10005         * lib/wctype.in.h: Likewise.
10006         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
10007         * modules/ctype (Makefile.am): Likewise.
10008         * modules/dirent (Makefile.am): Likewise.
10009         * modules/errno (Makefile.am): Likewise.
10010         * modules/fcntl-h (Makefile.am): Likewise.
10011         * modules/float (Makefile.am): Likewise.
10012         * modules/getopt-posix (Makefile.am): Likewise.
10013         * modules/iconv-h (Makefile.am): Likewise.
10014         * modules/langinfo (Makefile.am): Likewise.
10015         * modules/locale (Makefile.am): Likewise.
10016         * modules/math (Makefile.am): Likewise.
10017         * modules/netdb (Makefile.am): Likewise.
10018         * modules/netinet_in (Makefile.am): Likewise.
10019         * modules/poll-h (Makefile.am): Likewise.
10020         * modules/pthread (Makefile.am): Likewise.
10021         * modules/pty (Makefile.am): Likewise.
10022         * modules/sched (Makefile.am): Likewise.
10023         * modules/search (Makefile.am): Likewise.
10024         * modules/selinux-h (Makefile.am): Likewise.
10025         * modules/signal (Makefile.am): Likewise.
10026         * modules/spawn (Makefile.am): Likewise.
10027         * modules/stdarg (Makefile.am): Likewise.
10028         * modules/stddef (Makefile.am): Likewise.
10029         * modules/stdint (Makefile.am): Likewise.
10030         * modules/stdio (Makefile.am): Likewise.
10031         * modules/stdlib (Makefile.am): Likewise.
10032         * modules/string (Makefile.am): Likewise.
10033         * modules/strings (Makefile.am): Likewise.
10034         * modules/sys_file (Makefile.am): Likewise.
10035         * modules/sys_ioctl (Makefile.am): Likewise.
10036         * modules/sys_select (Makefile.am): Likewise.
10037         * modules/sys_socket (Makefile.am): Likewise.
10038         * modules/sys_stat (Makefile.am): Likewise.
10039         * modules/sys_time (Makefile.am): Likewise.
10040         * modules/sys_times (Makefile.am): Likewise.
10041         * modules/sys_uio (Makefile.am): Likewise.
10042         * modules/sys_utsname (Makefile.am): Likewise.
10043         * modules/sys_wait (Makefile.am): Likewise.
10044         * modules/sysexits (Makefile.am): Likewise.
10045         * modules/termios (Makefile.am): Likewise.
10046         * modules/time (Makefile.am): Likewise.
10047         * modules/unistd (Makefile.am): Likewise.
10048         * modules/wchar (Makefile.am): Likewise.
10049         * modules/wctype-h (Makefile.am): Likewise.
10050         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
10051
10052 2011-05-29  Bruno Haible  <bruno@clisp.org>
10053
10054         assert-h: Allow multiple gnulib generated replacements to coexist.
10055         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
10056
10057 2011-05-29  Bruno Haible  <bruno@clisp.org>
10058
10059         argp: Allow coexistence with strerror_r-posix module.
10060         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
10061         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
10062         by gnulib's <string.h> replacement), assume it has the POSIX signature,
10063         not the glibc signature.
10064
10065 2011-05-28  Bruno Haible  <bruno@clisp.org>
10066
10067         gnulib-tool: Alternative structure of testdirs, similar to --import.
10068         * gnulib-tool: New option --single-configure.
10069         (func_usage): Document it.
10070         (single_configure): New variable.
10071         (func_modules_transitive_closure_separately,
10072         func_modules_transitive_closure_separately,
10073         func_determine_use_libtests, func_modules_add_dummy_separately,
10074         func_modules_to_filelist_separately): New functions, extracted from
10075         func_import.
10076         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
10077         (func_import): Use the new functions.
10078         (func_create_testdir): Set final_modules. Handle $single_configure =
10079         true case.
10080
10081 2011-05-28  Bruno Haible  <bruno@clisp.org>
10082
10083         getloadavg: Remove an unreliable safety check.
10084         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
10085         getloadavg.c is in place.
10086         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
10087         Reported by Sam Steingold <sds@gnu.org>.
10088
10089 2011-05-28  Bruno Haible  <bruno@clisp.org>
10090
10091         doc: Cleanup yet another file produced by texinfo.tex.
10092         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
10093
10094 2011-05-28  Bruno Haible  <bruno@clisp.org>
10095
10096         Finish the conditional dependencies mechanism.
10097         * gnulib-tool: New option --no-conditional-dependencies.
10098         (func_usage): Document it. Don't mark --conditional-dependencies as
10099         experimental.
10100         (cond_dependencies): The possible values can now be true, false, empty.
10101         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
10102         (func_import): Store setting in gnulib-cache.m4 and read it from there.
10103         * doc/gnulib-tool.texi (Conditional dependencies): New section.
10104
10105 2011-05-28  Bruno Haible  <bruno@clisp.org>
10106
10107         doc: Use a recent texinfo.tex.
10108         * doc/Makefile (tex_opts): New variable.
10109         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
10110
10111 2011-05-28  Jim Meyering  <meyering@redhat.com>
10112
10113         intprops.h: adjust comment to match code change
10114         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
10115         only once, it *may* have side effects.  Also fix an unrelated typo.
10116         (_GL_INT_SIGNED): Likewise.
10117
10118 2011-05-26  Simon Josefsson  <simon@josefsson.org>
10119
10120         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
10121
10122 2011-05-26  Bruno Haible  <bruno@clisp.org>
10123
10124         mbsrchr: Avoid collision with system function on Interix.
10125         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
10126         Reported by Markus Duft <mduft@gentoo.org>.
10127
10128 2011-05-15  James Youngman  <jay@gnu.org>
10129
10130         getopt: for ambiguous options, enumerate the possibilities.
10131         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
10132         the ambiguous options when an ambiguous prefix is given. This was
10133         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
10134         glibc change was
10135         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
10136
10137 2011-05-25  Eric Blake  <eblake@redhat.com>
10138
10139         getcwd: work around mingw bug
10140         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
10141         * doc/posix-functions/getcwd.texi (getcwd): Document it.
10142         Reported by Matthias Bolte.
10143
10144 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
10145
10146         test-intprops: disable -Wtype-limits diagnostics
10147         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
10148         diagnostics.  Otherwise, the integer overflow macros generate many
10149         diagnostics.  Reported by Jim Meyering in
10150         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
10151
10152         intprops: shorten, to pacify gcc -Woverlength-strings
10153         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
10154         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
10155         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
10156         likely to run afoul of C compiler limits for string constant lengths.
10157         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
10158
10159 2011-05-24  Eric Blake  <eblake@redhat.com>
10160
10161         docs: document recently fixed glibc printf bug
10162         * doc/posix-functions/fprintf.texi (fprintf): Document it.
10163         * doc/posix-functions/printf.texi (printf): Likewise.
10164         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
10165         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
10166
10167         closein-tests: convert to init.sh
10168         * modules/closein-tests (Files): Add init.sh
10169         * tests/test-closein.sh Use it.
10170
10171         yesno-tests: convert to init.sh
10172         * modules/yesno-tests (Files): Add init.sh.
10173         * tests/test-yesno.sh: Use it.
10174
10175         atexit-tests: ensure reliable exit status
10176         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
10177         Reported by Bruno Haible.
10178
10179 2011-05-24  Bruno Haible  <bruno@clisp.org>
10180
10181         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
10182         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
10183         gl_PREREQ_STRERROR_R invocations from here...
10184         * modules/strerror_r-posix (configure.ac): ... to here.
10185
10186 2011-05-24  Eric Blake  <eblake@redhat.com>
10187
10188         strerror_r: fix missing header
10189         * lib/strerror_r.c: Avoid compiler warning about snprintf.
10190
10191         strerror_r: fix AIX test failures
10192         * lib/strerror_r.c (strerror_r): Convert silent truncation to
10193         ERANGE failure.
10194
10195         strerror_r: fix Solaris test failures
10196         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
10197         failures.
10198         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
10199
10200         strerror_r: enforce POSIX recommendations
10201         * lib/strerror_r.c (safe_copy): New helper method.
10202         (strerror_r): Guarantee a non-empty string.
10203         * tests/test-strerror_r.c (main): Enhance tests to incorporate
10204         recent POSIX rulings and to match our strerror guarantees.
10205         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
10206
10207 2011-05-24  Jim Meyering  <meyering@redhat.com>
10208
10209         test-perror2.c: avoid warning about unused variable
10210         * tests/test-perror2.c (main): Remove declaration of unused "fp".
10211
10212 2011-05-24  Eric Blake  <eblake@redhat.com>
10213
10214         perror: avoid spurious test failure on HP-UX
10215         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
10216
10217         tests: fix logic bug in init.sh
10218         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
10219         shell.
10220
10221 2011-05-24  Jim Meyering  <meyering@redhat.com>
10222
10223         utimensat: do not reference an out-of-scope buffer
10224         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
10225         declared in an inner scope, yet "times" would be dereferenced outside
10226         the scope in which "ts" was valid.
10227         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
10228         of ts[2] "out/up", so that the use of aliased "times" (via
10229         "times = ts;") does not end up referencing an out-of-scope "ts"
10230
10231         opendir-safer.c: don't clobber errno; don't close negative FD
10232         * lib/opendir-safer.c (opendir_safer):
10233         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
10234         file descriptor, and more importantly, don't clobber the
10235         offending errno value with EINVAL.  Before, upon failure
10236         of dup_safer, we would pass the negative file descriptor to
10237         fdopendir, which would clobber errno.
10238
10239 2011-05-23  Bruno Haible  <bruno@clisp.org>
10240
10241         idcache: Fix module description.
10242         * modules/idcache (Include): Set to "idcache.h".
10243
10244 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
10245
10246         gnulib-tool: fix portability problem with MacOS sed
10247         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
10248         before the "}".  Problem reported by Leo in
10249         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
10250         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
10251         sed_extract_condition1, sed_extract_condition2.
10252
10253 2011-05-23  Bruno Haible  <bruno@clisp.org>
10254
10255         hash: Simplify autoconf macro.
10256         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
10257
10258 2011-05-23  Bruno Haible  <bruno@clisp.org>
10259
10260         getugroups: Fix module description.
10261         * modules/getugroups (Include): Set to "getugroups.h".
10262
10263 2011-05-23  Bruno Haible  <bruno@clisp.org>
10264
10265         linkat: Simplify autoconf macro.
10266         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
10267
10268 2011-05-23  Bruno Haible  <bruno@clisp.org>
10269             Eric Blake  <eblake@redhat.com>
10270
10271         linkat, renameat: Update dependencies.
10272         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
10273         * modules/linkat (Depends-on): Likewise. Remove also readlink,
10274         symlinkat.
10275
10276 2011-05-23  Jim Meyering  <meyering@redhat.com>
10277
10278         maint.mk: more tight_scope improvements
10279         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
10280         (_gl_TS_headers): Define only in if-0'd block.
10281         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
10282         sometimes we must *not* use it.  Adjust uses accordingly.
10283         (sc_tight_scope): Use much simpler grep-based test to determine
10284         whether we skip this rule.
10285
10286         maint.mk: generalize/improve the tight-scope rule
10287         * top/maint.mk: Emit a warning when the test is skipped.
10288         (_gl_TS_dir): Add $(srcdir)/ prefix.
10289         (_gl_TS_function_match): Simplify, rather than trying
10290         to enumerate common types.  Otherwise, it would fail to match an
10291         "extern unsigned char const *" declaration in idutils.
10292         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
10293         a way to support use of that type of macro.
10294         (_gl_TS_var_match): Simplify regexp.
10295         (_gl_TS_obj_files): New configurable variable.
10296         (_gl_TS_headers): Likewise.
10297
10298 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
10299
10300         verify: fix bug when gnulib <assert.h> is also included
10301         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
10302         is defined, not if _GL_STATIC_ASSERT_H is not defined.
10303         Perhaps there's a better way, but this fixes the immediate problem.
10304         Problem reported by Bruno Haible in
10305         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
10306
10307 2011-05-22  Bruno Haible  <bruno@clisp.org>
10308
10309         xgetcwd: Simplify autoconf macro.
10310         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
10311
10312 2011-05-22  Bruno Haible  <bruno@clisp.org>
10313
10314         New module 'mktime-internal'.
10315         * modules/mktime-internal: New file.
10316         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
10317         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
10318         mktime_internal as a C macro if libc has __mktime_internal.
10319         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
10320         conditions.
10321         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
10322
10323 2011-05-22  Bruno Haible  <bruno@clisp.org>
10324
10325         timegm: Correct mktime replacement statements.
10326         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
10327         defining mktime as a C macro. This completes a 2009-07-28 commit.
10328
10329 2011-05-22  Bruno Haible  <bruno@clisp.org>
10330
10331         timegm: Simplify autoconf macro.
10332         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
10333
10334 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
10335
10336         clock-time: change to LGPLv2+.
10337         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
10338         BSD-like but we have no mark for that; this is good enough for now.
10339
10340 2011-05-21  Bruno Haible  <bruno@clisp.org>
10341
10342         strerror_r: Fix comments.
10343         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
10344
10345 2011-05-21  Bruno Haible  <bruno@clisp.org>
10346
10347         relocatable-prog-wrapper: Fix possible link error.
10348         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
10349         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
10350         (gl_FUNC_SETENV): ... to here.
10351         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
10352         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
10353
10354 2011-05-21  Bruno Haible  <bruno@clisp.org>
10355
10356         relocatable-prog-wrapper: Assume strerror() exists.
10357         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
10358         m4/strerror.m4.
10359         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
10360         * lib/relocwrapper.c: Remove mention of strerror module.
10361         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
10362         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
10363         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
10364         C macro.
10365
10366 2011-05-21  Bruno Haible  <bruno@clisp.org>
10367
10368         select: Simplify replacement idiom.
10369         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
10370         Win32 platforms.
10371         * lib/sys_select.in.h (select): Simplify accordingly.
10372         * modules/select (Depends-on): Likewise.
10373
10374 2011-05-21  Bruno Haible  <bruno@clisp.org>
10375
10376         mkdir-p: Simplify autoconf macro.
10377         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
10378         gl_FUNC_LCHOWN.
10379
10380 2011-05-21  Eric Blake  <eblake@redhat.com>
10381
10382         strerror_r: avoid clobbering strerror on cygwin
10383         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
10384         fall back instead to sys_errlist.
10385         * modules/strerror (configure.ac): Add witness.
10386         * tests/test-strerror_r.c (main): Enhance test.
10387         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
10388         * tests/test-perror2.c (main): Free memory before exit.
10389
10390 2011-05-21  Bruno Haible  <bruno@clisp.org>
10391
10392         mkdtemp: Use gnulib naming conventions.
10393         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
10394         * modules/mkdtemp (configure.ac): Update.
10395
10396 2011-05-20  Eric Blake  <eblake@redhat.com>
10397
10398         strerror_r: avoid corrupting errno on Solaris
10399         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
10400         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
10401
10402         strerror_r: avoid compiler warning
10403         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
10404
10405         strerror_r: simplify AIX code
10406         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
10407
10408         test-perror: avoid spurious failure on FreeBSD
10409         * modules/perror-tests (Depends-on): Add strerror, now that
10410         strerror_r no longer pulls it in.
10411
10412 2011-05-20  Bruno Haible  <bruno@clisp.org>
10413
10414         strerror_r-posix: Remove unused dependencies.
10415         * modules/strerror_r-posix (Depends-on): Remove strerror.
10416         Reported by Eric Blake.
10417
10418 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
10419
10420         intprops: remove assumption about A|B representation
10421         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
10422         is a valid integer if both A and B are.  Although this is true for
10423         all known practical hosts, the C standard doesn't guarantee it,
10424         and the code need not assume it.  Also, this change may work around
10425         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
10426         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
10427
10428 2011-05-20  Eric Blake  <eblake@redhat.com>
10429
10430         perror: work around FreeBSD bug
10431         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
10432         is broken.  Move AC_LIBOBJ...
10433         * modules/perror (configure.ac): Here.
10434         * doc/posix-functions/perror.texi (perror): Document this.
10435         * tests/test-perror2.c (main): Enhance test.
10436
10437         test-perror: check for strerror interactions
10438         * tests/macros.h (STREQ): Add macro.
10439         * modules/perror-tests (Files): Add second test.
10440         * tests/test-perror2.c (main): New file.
10441         * doc/posix-functions/perror.texi (perror): Document glibc bug.
10442
10443         test-perror: rewrite to use init script
10444         * modules/perror-tests (Files): Add init.sh.
10445         * tests/test-perror.sh: Use temporary directory.
10446
10447 2011-05-20  Jim Meyering  <meyering@redhat.com>
10448
10449         maint: replace misused "a" with "an"
10450         * doc/intprops.texi: "a integer"
10451         * doc/regex.texi: "a explanation"
10452         * lib/alignof.h: "a object"
10453         * lib/argmatch.h: "a explanation"
10454         * lib/argp-help.c: "a option" and "a OPTION_DOC"
10455         * lib/stdint.in.h: "a integer"
10456         * lib/userspec.c: "a owner"
10457         * doc/gnulib.texi: Fix "a idea", and reword.
10458
10459 2011-05-19  Jim Meyering  <meyering@redhat.com>
10460
10461         maint: correct misuse of "a" and "an"
10462         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
10463         * lib/argp-help.c: "an docum...": s/an/a/
10464         * lib/argp-parse.c: "An vector": s/An/A/
10465         * lib/execute.c: "an native": s/an/a/
10466         * lib/spawn-pipe.c: Likewise.
10467         * lib/gc.h: "an Gc_rc": s/an/a/
10468         * lib/unigbrk.in.h: "an grapheme": s/an/a/
10469         * lib/fts.c: "an stat.st_dev": s/an/a/
10470
10471 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
10472
10473         intprops-tests: work around HP-UX 11.23 cc bug with constants
10474         * tests/test-intprops.c (VERIFY): New macro.
10475         (main): Use it, instead of verify, to work around the compiler bug; see
10476         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
10477
10478         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
10479         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
10480         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
10481         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
10482         (_GL_REMAINDER_OVERFLOW): Use it.
10483
10484         intprops-tests: revert unsigned part of previous change
10485         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
10486         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
10487         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
10488         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
10489
10490 2011-05-19  Bruno Haible  <bruno@clisp.org>
10491
10492         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
10493         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
10494         strerror_r() returned without filling the buffer.
10495         Reported by Eric Blake.
10496
10497 2011-05-19  Eric Blake  <eblake@redhat.com>
10498
10499         strerror_r: guarantee unchanged errno
10500         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
10501         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
10502         failure.
10503         * tests/test-strerror_r.c (main): Enhance test.
10504
10505 2011-05-19  Bruno Haible  <bruno@clisp.org>
10506
10507         strerror_r: Reorder #if blocks.
10508         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
10509         for consistency with the previous commit.
10510
10511 2011-05-19  Bruno Haible  <bruno@clisp.org>
10512
10513         perror: Avoid clobbering the strerror buffer when possible.
10514         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
10515         * lib/strerror.c: Include it.
10516         * modules/strerror (Files): Add lib/strerror-impl.h.
10517         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
10518         (my_strerror): New function, defined through lib/strerror-impl.h.
10519         (perror): Use it instead of strerror.
10520         * modules/perror (Files): Add lib/strerror-impl.h.
10521         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
10522
10523 2011-05-19  Eric Blake  <eblake@redhat.com>
10524
10525         strerror_r: fix on newer cygwin
10526         * lib/strerror_r.c (strerror_r): Cygwin now has
10527         __xpg_strerror_r, use it.
10528
10529 2011-05-19  Bruno Haible  <bruno@clisp.org>
10530
10531         strerror_r: Avoid clobbering the strerror buffer when possible.
10532         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
10533         (sys_nerr, sys_errlist): New declarations.
10534         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
10535         HP-UX, native Win32, IRIX, and 32-bit Solaris.
10536         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
10537
10538 2011-05-19  Bruno Haible  <bruno@clisp.org>
10539
10540         strerror_r: Fix test failure on mingw.
10541         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
10542         EXTEND_STRERROR_R.
10543         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
10544         macros from errno.in.h instead.
10545
10546 2011-05-19  Eric Blake  <eblake@redhat.com>
10547
10548         strerror: relax test for Solaris
10549         * tests/test-strerror.c (main): Permit Solaris behavior.
10550         * tests/test-strerror_r.c (main): Likewise.
10551
10552         strerror: enforce POSIX ruling on strerror(0)
10553         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
10554         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
10555         * lib/strerror_r.c (rpl_strerror_r): Work around it.
10556         * doc/posix-functions/strerror.texi (strerror): Document it.
10557         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
10558         * tests/test-strerror.c (main): Strengthen test.
10559         * tests/test-strerror_r.c (main): Likewise.
10560
10561 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
10562
10563         intprop-tests: port to older and more-pedantic compilers
10564         * modules/intprops-tests (Files): Add tests/macros.h.
10565         * tests/test-intprops.c: Include macros.h.
10566         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
10567         it's no longer documented to expand to an integer constant expression.
10568         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
10569         argument is floating point, as it's no longer documented to expand
10570         to an integer constant expression in that case.
10571         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
10572         compiler bugs reported by Bruno Haible.  See
10573         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
10574         (U0, U1): New constants, to work around the same bugs.  Also,
10575         in tests, use e.g., "(unsigned int) 39" rather than "39u".
10576
10577         intprops: work around C compiler bugs
10578         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
10579         bug in Sun C 5.11 2010/08/13 and other compilers; see
10580         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
10581
10582         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
10583         * doc/intprops.texi (Integer Type Determination): Fix
10584         documentation for TYPE_IS_INTEGER: it returns an constant
10585         expression, not an integer constant expression.  Fix doc for
10586         TYPE_SIGNED: it returns an integer constant expression only if its
10587         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
10588         hardly worth documented that way....)
10589
10590 2011-05-18  Bruno Haible  <bruno@clisp.org>
10591
10592         strerror_r: Avoid clobbering the strerror buffer when possible.
10593         * lib/strerror_r.c (strerror_r): Merge the three implementations.
10594         Handle gnulib defined errno values here. When strerror() returns NULL
10595         or an empty string, return EINVAL.
10596         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
10597         gnulib defined errno values here.
10598         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
10599
10600 2011-05-18  Eric Blake  <eblake@redhat.com>
10601
10602         fnmatch: avoid compiler warning
10603         * lib/fnmatch_loop.c (FCT): Use correct type.
10604         Reported by Matthias Bolte.
10605
10606 2011-05-13  Jim Meyering  <meyering@redhat.com>
10607
10608         maint.mk: three new prohibit_<HDR>_without_use rules
10609         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
10610         (sc_prohibit_stdio-safer_without_use): Likewise.
10611         (sc_prohibit_xfreopen_without_use): Likewise.
10612
10613 2011-05-17  Jim Meyering  <meyering@redhat.com>
10614
10615         announce-gen: fail if the NEWS delta is empty
10616         If there's nothing noteworthy in NEWS, then either you forgot
10617         or you shouldn't be releasing.
10618         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
10619
10620 2011-05-17  Pádraig Brady <P@draigBrady.com>
10621
10622         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
10623         reserved symbols starting with double underscore from the check.
10624
10625 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
10626
10627         intprops: add doc
10628         * doc/intprops.texi: New file, documenting intprops.
10629         * doc/gnulib.texi (Particular Modules): Include it.
10630
10631         verify: add doc to gnulib manual and fix example
10632         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
10633         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
10634         (Compile-time Assertions): Fix example so it can't overflow.
10635
10636 2011-05-17  Jim Meyering  <meyering@redhat.com>
10637
10638         warnings.m4: don't usurp save_CPPFLAGS variable name
10639         * m4/warnings.m4: Prefix local temporary variable name with gl_.
10640
10641         doc: fix typo
10642         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
10643
10644 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
10645             Bruno Haible  <bruno@clisp.org>
10646
10647         doc: Tweak recent change.
10648         * README (Portability guidelines): Tweak new text.
10649         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
10650         Interix 6.1.
10651
10652 2011-05-16  Eric Blake  <eblake@redhat.com>
10653
10654         inttypes: avoid autoconf warning
10655         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
10656         * m4/stdint.m4 (gl_STDINT_H): Likewise.
10657
10658 2011-05-16  Sam Steingold <sds@gnu.org>
10659         and Eric Blake  <eblake@redhat.com>
10660
10661         vc-list-files: accept multiple directory operands
10662         * build-aux/vc-list-files: Iterate over all remaining operands.
10663
10664 2011-05-16  Bruno Haible  <bruno@clisp.org>
10665
10666         Fix confusion regarding deprecated modules.
10667         * modules/calloc (Status, Notice): Mark module as deprecated, not
10668         obsolete.
10669         * modules/fnmatch-posix (Status, Notice): Likewise.
10670         * modules/getdate (Status, Notice): Likewise.
10671         * modules/getopt (Status, Notice): Likewise.
10672         * modules/malloc (Status, Notice): Likewise.
10673         * modules/pipe (Status, Notice): Likewise.
10674         * modules/realloc (Status, Notice): Likewise.
10675         * modules/rename-dest-slash (Status, Notice): Likewise.
10676         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
10677         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
10678         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
10679         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
10680         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
10681
10682 2011-05-16  Bruno Haible  <bruno@clisp.org>
10683
10684         doc: List the target platforms.
10685         * doc/gnulib-intro.texi (Target Platforms): New section.
10686         * doc/gnulib.texi (Introduction): Update menu.
10687         * README (Portability guidelines): Refer to the new section. Update
10688         statement about oldest supported environment. Remove rationale why
10689         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
10690         unportable C89 function.
10691         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
10692         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
10693
10694 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
10695
10696         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
10697
10698 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
10699
10700         intprops-tests: new module
10701         * modules/intprops-tests, tests/test-intprops.c: New files.
10702
10703         intprops: add safe, portable integer overflow checking
10704         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
10705         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
10706         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
10707         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
10708         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
10709         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
10710         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
10711         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
10712         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
10713         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
10714         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
10715
10716 2011-05-12  James Youngman  <jay@gnu.org>
10717
10718         Add a test for glibc's Bugzilla bug #12378.
10719         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
10720         doesn't allow the literal matching of a lone "[" (which is
10721         required by POSIX).
10722         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
10723
10724 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
10725
10726         Sync glibc change fixing Bugzilla bug #12378.
10727         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
10728         beginning and fall back to matching as normal character if the
10729         string ends before the matching ']' is found.  This is what POSIX
10730         requires.
10731
10732 2011-05-13  Eric Blake  <eblake@redhat.com>
10733
10734         getcwd-lgpl: relax test for FreeBSD
10735         * doc/posix-functions/getcwd.texi (getcwd): Document portability
10736         issue.
10737         * tests/test-getcwd-lgpl.c (main): Relax test.
10738         Reported by Matthias Bolte.
10739
10740 2011-05-11  Eric Blake  <eblake@redhat.com>
10741
10742         test-fflush: silence compiler warning
10743         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
10744
10745 2011-05-11  Bruno Haible  <bruno@clisp.org>
10746
10747         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
10748         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
10749         * modules/canonicalize (Depends-on): Add 'nocrash'.
10750         * modules/canonicalize-lgpl (Depends-on): Likewise.
10751         * doc/posix-functions/realpath.texi: Update platforms list.
10752         Reported by Ryan Schmidt <ryandesign@macports.org>.
10753
10754 2011-05-11  Bruno Haible  <bruno@clisp.org>
10755
10756         group-member: Declare function in <unistd.h>.
10757         * lib/unistd.in.h (group_member): New declaration.
10758         * lib/group-member.h: Remove file.
10759         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
10760         * tests/test-unistd-c++.cc: Check signature of group_member.
10761         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
10762         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
10763         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
10764         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
10765         HAVE_GROUP_MEMBER.
10766         * modules/group-member (Files): Remove lib/group-member.h.
10767         (Depends-on): Add unistd. Specify conditions.
10768         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
10769         (Include): Change to <unistd.h>.
10770         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
10771         HAVE_GROUP_MEMBER.
10772         * NEWS: Mention the change.
10773         * lib/euidaccess.c: Don't include group-member.h.
10774
10775 2011-05-11  Bruno Haible  <bruno@clisp.org>
10776
10777         group-member: Document module.
10778         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
10779         module.
10780
10781 2011-05-11  Bruno Haible  <bruno@clisp.org>
10782
10783         fclose: Fix mistake earlier today.
10784         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
10785
10786 2011-05-11  Eric Blake  <eblake@redhat.com>
10787
10788         fclose: preserve fflush errors
10789         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
10790         Reported by Jim Meyering.
10791
10792         bootstrap: support a prereq of 'rpcgen -' on RHEL5
10793         * build-aux/bootstrap (check_versions): When no specific version
10794         is required, merely check that the app produces an exit status
10795         that indicates its existence.
10796
10797         maint.mk: drop redundant check
10798         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
10799         the same but better.
10800
10801 2011-05-11  Bruno Haible  <bruno@clisp.org>
10802
10803         fclose: Fix possible link error.
10804         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
10805         unregister_shadow_fd. Improve comments.
10806         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
10807         Eric Blake.
10808
10809 2011-05-11  Jim Meyering  <meyering@redhat.com>
10810
10811         maint.mk: improve "can not" detection and generalize rule name
10812         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
10813         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
10814         Use the same technique as in sc_prohibit_doubled_word, so that
10815         we recognize "can not" also when the words are separated by a newline.
10816         Suggested by Eric Blake.
10817         (perl_filename_lineno_text_): Define.  Factored out of...
10818         (prohibit_doubled_word_): ...here.  Use the new definition.
10819         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
10820         (prohibit_undesirable_word_seq_RE_): New overridable variable.
10821         (ignore_undesirable_word_sequence_RE_): New overridable variable.
10822
10823 2011-05-10  Eric Blake  <eblake@redhat.com>
10824
10825         fclose: avoid double close race when possible
10826         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
10827         all but WINDOWS_SOCKETS.
10828
10829 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
10830
10831         openat: correct new comment
10832         * lib/openat-proc.c (openat_proc_name): Correct the comment.
10833
10834 2011-05-10  Jim Meyering  <meyering@redhat.com>
10835
10836         openat: add comments
10837         * lib/openat-proc.c (openat_proc_name): Add comments,
10838         mostly from Eric Blake.
10839
10840 2011-05-09  Eric Blake  <eblake@redhat.com>
10841
10842         openat: reduce syscalls in first probe of /proc
10843         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
10844         be a directory.  Simplify the probe for .. bugs.
10845         * modules/openat (Depends-on): Drop same-inode.
10846         Reported by Bastien ROUCARIES.
10847
10848 2011-05-09  Jim Meyering  <meyering@redhat.com>
10849
10850         maint.mk: change semantics/name of tight_scope variables
10851         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
10852         Rename variables to align with semantics that make them more useful.
10853
10854         maint.mk: tweak new rule's name not to impinge
10855         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
10856         (sc_tight_scope): Use new rule name rather than $@-0.
10857
10858         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
10859         * top/maint.mk (sc_tight_scope): New rule.
10860         (sc_tight_scope-0): New rule, ifdef'd out.
10861         (_gl_TS_dir): Default.
10862         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
10863         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
10864
10865 2011-05-09  Simon Josefsson  <simon@josefsson.org>
10866
10867         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
10868         Haible <bruno@clisp.org>.
10869
10870 2011-05-08  Bruno Haible  <bruno@clisp.org>
10871
10872         Comments.
10873         * m4/isnanf.m4: Add comment.
10874         * m4/isnanl.m4: Likewise.
10875
10876 2011-05-08  Bruno Haible  <bruno@clisp.org>
10877
10878         glob: Remove obsolete macro.
10879         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
10880
10881 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
10882
10883         intprops: Sun C 5.11 supports __typeof__
10884         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
10885         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
10886         which is new.
10887         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
10888
10889         intprops: switch to usual gnulib indenting and naming
10890         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
10891         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
10892
10893         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
10894
10895 2011-05-08  Jim Meyering  <meyering@redhat.com>
10896
10897         maint.mk: suppress "Entering/Leaving directory" diag in announcement
10898         * top/maint.mk (release-prep): Use make's --no-print-directory
10899         option when generating the announcement.  This eliminates the
10900         pesky "make[2]: Entering/Leaving directory" diagnostics in the
10901         generated announcement template.
10902
10903 2011-05-08  Bruno Haible  <bruno@clisp.org>
10904
10905         tzset: Fix gettimeofday wrapper on Solaris 2.6.
10906         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
10907         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
10908
10909 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
10910
10911         ignore-value, verify: Omit include files from lib_SOURCES.
10912         * modules/ignore-value, modules/verify (Makefile.am):
10913         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
10914         that leads Automake to duplicate use of am__objects_... variables
10915         in Makefile.in.  See
10916         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
10917
10918 2011-05-07  Bruno Haible  <bruno@clisp.org>
10919
10920         fclose: Simplify autoconf macro.
10921         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
10922         defined.
10923
10924 2011-05-07  Bruno Haible  <bruno@clisp.org>
10925
10926         canonicalize-lgpl: Fix autoconf macro ordering bug.
10927         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
10928         gl_STDLIB_H_DEFAULTS.
10929
10930 2011-05-06  Eric Blake  <eblake@redhat.com>
10931
10932         maintainer-makefile: make sc_po_check easier to tune
10933         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
10934         to probe for strings, such as an alternate location for gnulib.
10935
10936         fclose: guarantee behavior on seekable stdin
10937         * modules/fclose (Depends-on): Add fflush.
10938         * doc/posix-functions/fclose.texi (fclose): Document this.
10939         * tests/test-fclose.c (main): Make test for this unconditional.
10940
10941 2011-05-06  Bruno Haible  <bruno@clisp.org>
10942
10943         fflush, fpurge: Relicense under LGPLv2+.
10944         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
10945         * modules/fpurge (License): Likewise.
10946         With permission from Eric Blake and Jim Meyering.
10947         Suggested by Eric Blake.
10948
10949 2011-05-06  Karl Berry  <karl@gnu.org>
10950
10951         * MODULES.html.sh (func_all_modules): remove exit.
10952
10953 2011-05-06  Jim Meyering  <meyering@redhat.com>
10954
10955         maint.mk: use info-gnu@ as the default only for a stable release
10956         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
10957         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
10958         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
10959         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
10960
10961 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
10962
10963         assert-h: new module, which supports C1X-style static_assert
10964         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
10965         * lib/verify.h: Revamp so that this can be copied into assert.h,
10966         while retaining the ability to use it standalone as before.
10967         Rename private identifiers so as not to encroach on the
10968         standard C namespace, since this is now used by assert.h.
10969         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
10970         the old verify_true.
10971         (_GL_VERIFY_TRUE): New macro, with much of the contents of
10972         the old verify_true.  Use _GL_VERIFY_TYPE.
10973         (_GL_VERIFY): New macro, with much of the contents of the old verify.
10974         (static_assert): New macro, if _GL_STATIC_ASSERT_H
10975         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
10976         defined when this file is copied into the replacement assert.h.
10977         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
10978         and _Static_assert is not built in.
10979         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
10980         defined, and use the new macros mentioned above.
10981         * doc/posix-headers/assert.texi: Document this.
10982
10983 2011-05-05  Bruno Haible  <bruno@clisp.org>
10984
10985         fclose, fflush: Respect rules for use of AC_LIBOBJ.
10986         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
10987         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
10988         gl_REPLACE_FCLOSE here.
10989         * modules/fflush (Depends-on): Remove fclose.
10990         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
10991         combination with module 'fclose'.
10992
10993 2011-05-05  Bruno Haible  <bruno@clisp.org>
10994
10995         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
10996         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
10997         gl_FUNC_FFLUSH.
10998         (gl_FUNC_FFLUSH): Use it.
10999         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
11000         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
11001         gl_REPLACE_FSEEKO here.
11002
11003 2011-05-05  Bruno Haible  <bruno@clisp.org>
11004
11005         tzset: Relicense under LGPL.
11006         * modules/tzset (License): Change to LGPL.
11007         No agreement needed; it's a no-op.
11008
11009         strtoimax, strtoumax: Relicense under LGPL.
11010         * modules/strtoimax (License): Change to LGPL.
11011         * modules/strtoumax (License): Likewise.
11012         With permission from Jim Meyering, Paul Eggert:
11013         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
11014         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
11015
11016         getgroups: Relicense under LGPL.
11017         * modules/getgroups (License): Change to LGPL.
11018         With permission from Jim Meyering, Paul Eggert, Eric Blake:
11019         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
11020         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
11021         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
11022
11023         nanosleep: Relicense under LGPL.
11024         * modules/nanosleep (License): Change to LGPL.
11025         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
11026         Haible:
11027         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
11028         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
11029         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
11030         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
11031
11032         futimens: Relicense under LGPL.
11033         * modules/futimens (License): Change to LGPL.
11034         With permission from Eric Blake:
11035         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
11036
11037         fflush: Relicense under LGPL.
11038         * modules/fflush (License): Change to LGPL.
11039         With permission from Eric Blake, Bruno Haible, Jim Meyering:
11040         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
11041         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
11042         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
11043
11044         tmpfile: Relicense under LGPL.
11045         * modules/tmpfile (License): Change to LGPL.
11046         With permission from Ben Pfaff:
11047         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
11048
11049         isfinite: Relicense under LGPL.
11050         * modules/isfinite (License): Change to LGPL.
11051         With permission from Ben Pfaff, Bruno Haible:
11052         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
11053         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
11054
11055         acosl..tanl: Relicense under LGPL.
11056         * modules/acosl (License): Change to LGPL.
11057         * modules/asinl (License): Likewise.
11058         * modules/atanl (License): Likewise.
11059         * modules/cosl (License): Likewise.
11060         * modules/expl (License): Likewise.
11061         * modules/logl (License): Likewise.
11062         * modules/sinl (License): Likewise.
11063         * modules/sqrtl (License): Likewise.
11064         * modules/tanl (License): Likewise.
11065         Source code originally from glibc and Paolo Bonzini. Agreements:
11066         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
11067         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
11068
11069 2011-05-05  Bruno Haible  <bruno@clisp.org>
11070
11071         signal: Define sighandler_t.
11072         * lib/signal.in.h (sighandler_t): New type.
11073         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
11074         whether sighandler_t is defined.
11075         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
11076         * modules/signal (Depends-on): Add extensions.
11077         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
11078         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
11079         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
11080
11081 2011-05-05  Eric Blake  <eblake@redhat.com>
11082
11083         maint: remove useless REPLACE_*_H macros
11084         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
11085         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
11086         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
11087         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
11088         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
11089         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
11090         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
11091         * m4/btowc.m4: Update callers.
11092         * m4/dirfd.m4: Likewise.
11093         * m4/duplocale.m4: Likewise.
11094         * m4/fchdir.m4: Likewise.
11095         * m4/fdopendir.m4: Likewise.
11096         * m4/inet_ntop.m4: Likewise.
11097         * m4/inet_pton.m4: Likewise.
11098         * m4/ioctl.m4: Likewise.
11099         * m4/mbrlen.m4: Likewise.
11100         * m4/mbrtowc.m4: Likewise.
11101         * m4/mbsinit.m4: Likewise.
11102         * m4/mbsnrtowcs.m4: Likewise.
11103         * m4/mbsrtowcs.m4: Likewise.
11104         * m4/poll.m4: Likewise.
11105         * m4/setlocale.m4: Likewise.
11106         * m4/wcrtomb.m4: Likewise.
11107         * m4/wcsnrtombs.m4: Likewise.
11108         * m4/wcsrtombs.m4: Likewise.
11109         * m4/wctob.m4: Likewise.
11110         * m4/wcwidth.m4: Likewise.
11111         * modules/posix_spawn: Likewise.
11112         * modules/posix_spawn_file_actions_addclose: Likewise.
11113         * modules/posix_spawn_file_actions_adddup2: Likewise.
11114         * modules/posix_spawn_file_actions_addopen: Likewise.
11115         * modules/posix_spawn_file_actions_destroy: Likewise.
11116         * modules/posix_spawn_file_actions_init: Likewise.
11117         * modules/posix_spawnattr_destroy: Likewise.
11118         * modules/posix_spawnattr_getflags: Likewise.
11119         * modules/posix_spawnattr_getpgroup: Likewise.
11120         * modules/posix_spawnattr_getschedparam: Likewise.
11121         * modules/posix_spawnattr_getschedpolicy: Likewise.
11122         * modules/posix_spawnattr_getsigdefault: Likewise.
11123         * modules/posix_spawnattr_getsigmask: Likewise.
11124         * modules/posix_spawnattr_init: Likewise.
11125         * modules/posix_spawnattr_setflags: Likewise.
11126         * modules/posix_spawnattr_setpgroup: Likewise.
11127         * modules/posix_spawnattr_setschedparam: Likewise.
11128         * modules/posix_spawnattr_setschedpolicy: Likewise.
11129         * modules/posix_spawnattr_setsigdefault: Likewise.
11130         * modules/posix_spawnattr_setsigmask: Likewise.
11131         * modules/posix_spawnp: Likewise.
11132
11133 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
11134
11135         Add option to do-release-commit-and-tag to specify branch.
11136         * build-aux/do-release-commit-and-tag: Add --branch.
11137
11138 2011-05-03  Bruno Haible  <bruno@clisp.org>
11139
11140         Avoid unnecessary compilation units, through conditional dependencies.
11141         * modules/accept (Depends-on): Add conditions to the dependencies.
11142         * modules/acosl (Depends-on): Likewise.
11143         * modules/argz (Depends-on): Likewise.
11144         * modules/asinl (Depends-on): Likewise.
11145         * modules/atanl (Depends-on): Likewise.
11146         * modules/atoll (Depends-on): Likewise.
11147         * modules/bind (Depends-on): Likewise.
11148         * modules/btowc (Depends-on): Likewise.
11149         * modules/canonicalize-lgpl (Depends-on): Likewise.
11150         * modules/ceil (Depends-on): Likewise.
11151         * modules/ceilf (Depends-on): Likewise.
11152         * modules/ceill (Depends-on): Likewise.
11153         * modules/chdir-long (Depends-on): Likewise.
11154         * modules/chown (Depends-on): Likewise.
11155         * modules/close (Depends-on): Likewise.
11156         * modules/connect (Depends-on): Likewise.
11157         * modules/cosl (Depends-on): Likewise.
11158         * modules/dirfd (Depends-on): Likewise.
11159         * modules/dprintf (Depends-on): Likewise.
11160         * modules/dprintf-posix (Depends-on): Likewise.
11161         * modules/error (Depends-on): Likewise.
11162         * modules/euidaccess (Depends-on): Likewise.
11163         * modules/expl (Depends-on): Likewise.
11164         * modules/faccessat (Depends-on): Likewise.
11165         * modules/fchdir (Depends-on): Likewise.
11166         * modules/fclose (Depends-on): Likewise.
11167         * modules/fcntl (Depends-on): Likewise.
11168         * modules/fdopendir (Depends-on): Likewise.
11169         * modules/fflush (Depends-on): Likewise.
11170         * modules/floor (Depends-on): Likewise.
11171         * modules/floorf (Depends-on): Likewise.
11172         * modules/floorl (Depends-on): Likewise.
11173         * modules/fnmatch (Depends-on): Likewise.
11174         * modules/fopen (Depends-on): Likewise.
11175         * modules/fprintf-posix (Depends-on): Likewise.
11176         * modules/frexp (Depends-on): Likewise.
11177         * modules/frexp-nolibm (Depends-on): Likewise.
11178         * modules/frexpl (Depends-on): Likewise.
11179         * modules/frexpl-nolibm (Depends-on): Likewise.
11180         * modules/fseek (Depends-on): Likewise.
11181         * modules/fsusage (Depends-on): Likewise.
11182         * modules/ftell (Depends-on): Likewise.
11183         * modules/ftello (Depends-on): Likewise.
11184         * modules/futimens (Depends-on): Likewise.
11185         * modules/getcwd (Depends-on): Likewise.
11186         * modules/getcwd-lgpl (Depends-on): Likewise.
11187         * modules/getdelim (Depends-on): Likewise.
11188         * modules/getdomainname (Depends-on): Likewise.
11189         * modules/getgroups (Depends-on): Likewise.
11190         * modules/gethostname (Depends-on): Likewise.
11191         * modules/getline (Depends-on): Likewise.
11192         * modules/getlogin_r (Depends-on): Likewise.
11193         * modules/getopt-posix (Depends-on): Likewise.
11194         * modules/getpeername (Depends-on): Likewise.
11195         * modules/getsockname (Depends-on): Likewise.
11196         * modules/getsockopt (Depends-on): Likewise.
11197         * modules/getsubopt (Depends-on): Likewise.
11198         * modules/getusershell (Depends-on): Likewise.
11199         * modules/glob (Depends-on): Likewise.
11200         * modules/grantpt (Depends-on): Likewise.
11201         * modules/iconv_open (Depends-on): Likewise.
11202         * modules/iconv_open-utf (Depends-on): Likewise.
11203         * modules/inet_ntop (Depends-on): Likewise.
11204         * modules/inet_pton (Depends-on): Likewise.
11205         * modules/ioctl (Depends-on): Likewise.
11206         * modules/isapipe (Depends-on): Likewise.
11207         * modules/isfinite (Depends-on): Likewise.
11208         * modules/isinf (Depends-on): Likewise.
11209         * modules/lchown (Depends-on): Likewise.
11210         * modules/ldexpl (Depends-on): Likewise.
11211         * modules/link (Depends-on): Likewise.
11212         * modules/linkat (Depends-on): Likewise.
11213         * modules/listen (Depends-on): Likewise.
11214         * modules/logl (Depends-on): Likewise.
11215         * modules/lstat (Depends-on): Likewise.
11216         * modules/mbrlen (Depends-on): Likewise.
11217         * modules/mbrtowc (Depends-on): Likewise.
11218         * modules/mbsinit (Depends-on): Likewise.
11219         * modules/mbsnrtowcs (Depends-on): Likewise.
11220         * modules/mbsrtowcs (Depends-on): Likewise.
11221         * modules/mbtowc (Depends-on): Likewise.
11222         * modules/memcmp (Depends-on): Likewise.
11223         * modules/mkdir (Depends-on): Likewise.
11224         * modules/mkdtemp (Depends-on): Likewise.
11225         * modules/mkfifo (Depends-on): Likewise.
11226         * modules/mkfifoat (Depends-on): Likewise.
11227         * modules/mknod (Depends-on): Likewise.
11228         * modules/mkostemp (Depends-on): Likewise.
11229         * modules/mkostemps (Depends-on): Likewise.
11230         * modules/mkstemp (Depends-on): Likewise.
11231         * modules/mkstemps (Depends-on): Likewise.
11232         * modules/mktime (Depends-on): Likewise.
11233         * modules/nanosleep (Depends-on): Likewise.
11234         * modules/open (Depends-on): Likewise.
11235         * modules/openat (Depends-on): Likewise.
11236         * modules/perror (Depends-on): Likewise.
11237         * modules/poll (Depends-on): Likewise.
11238         * modules/popen (Depends-on): Likewise.
11239         * modules/posix_spawn (Depends-on): Likewise.
11240         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
11241         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
11242         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
11243         * modules/posix_spawnp (Depends-on): Likewise.
11244         * modules/pread (Depends-on): Likewise.
11245         * modules/printf-posix (Depends-on): Likewise.
11246         * modules/ptsname (Depends-on): Likewise.
11247         * modules/putenv (Depends-on): Likewise.
11248         * modules/pwrite (Depends-on): Likewise.
11249         * modules/readline (Depends-on): Likewise.
11250         * modules/readlink (Depends-on): Likewise.
11251         * modules/readlinkat (Depends-on): Likewise.
11252         * modules/recv (Depends-on): Likewise.
11253         * modules/recvfrom (Depends-on): Likewise.
11254         * modules/regex (Depends-on): Likewise.
11255         * modules/remove (Depends-on): Likewise.
11256         * modules/rename (Depends-on): Likewise.
11257         * modules/renameat (Depends-on): Likewise.
11258         * modules/rmdir (Depends-on): Likewise.
11259         * modules/round (Depends-on): Likewise.
11260         * modules/roundf (Depends-on): Likewise.
11261         * modules/roundl (Depends-on): Likewise.
11262         * modules/rpmatch (Depends-on): Likewise.
11263         * modules/select (Depends-on): Likewise.
11264         * modules/send (Depends-on): Likewise.
11265         * modules/sendto (Depends-on): Likewise.
11266         * modules/setenv (Depends-on): Likewise.
11267         * modules/setlocale (Depends-on): Likewise.
11268         * modules/setsockopt (Depends-on): Likewise.
11269         * modules/shutdown (Depends-on): Likewise.
11270         * modules/sigaction (Depends-on): Likewise.
11271         * modules/signbit (Depends-on): Likewise.
11272         * modules/sigprocmask (Depends-on): Likewise.
11273         * modules/sinl (Depends-on): Likewise.
11274         * modules/sleep (Depends-on): Likewise.
11275         * modules/snprintf (Depends-on): Likewise.
11276         * modules/snprintf-posix (Depends-on): Likewise.
11277         * modules/socket (Depends-on): Likewise.
11278         * modules/sprintf-posix (Depends-on): Likewise.
11279         * modules/sqrtl (Depends-on): Likewise.
11280         * modules/stat (Depends-on): Likewise.
11281         * modules/strchrnul (Depends-on): Likewise.
11282         * modules/strdup-posix (Depends-on): Likewise.
11283         * modules/strerror (Depends-on): Likewise.
11284         * modules/strerror_r-posix (Depends-on): Likewise.
11285         * modules/strndup (Depends-on): Likewise.
11286         * modules/strnlen (Depends-on): Likewise.
11287         * modules/strptime (Depends-on): Likewise.
11288         * modules/strsep (Depends-on): Likewise.
11289         * modules/strsignal (Depends-on): Likewise.
11290         * modules/strstr-simple (Depends-on): Likewise.
11291         * modules/strtod (Depends-on): Likewise.
11292         * modules/strtoimax (Depends-on): Likewise.
11293         * modules/strtok_r (Depends-on): Likewise.
11294         * modules/strtoumax (Depends-on): Likewise.
11295         * modules/symlink (Depends-on): Likewise.
11296         * modules/symlinkat (Depends-on): Likewise.
11297         * modules/tanl (Depends-on): Likewise.
11298         * modules/tcgetsid (Depends-on): Likewise.
11299         * modules/tmpfile (Depends-on): Likewise.
11300         * modules/trunc (Depends-on): Likewise.
11301         * modules/truncf (Depends-on): Likewise.
11302         * modules/truncl (Depends-on): Likewise.
11303         * modules/uname (Depends-on): Likewise.
11304         * modules/unlink (Depends-on): Likewise.
11305         * modules/unlockpt (Depends-on): Likewise.
11306         * modules/unsetenv (Depends-on): Likewise.
11307         * modules/usleep (Depends-on): Likewise.
11308         * modules/utimensat (Depends-on): Likewise.
11309         * modules/vasprintf (Depends-on): Likewise.
11310         * modules/vdprintf (Depends-on): Likewise.
11311         * modules/vdprintf-posix (Depends-on): Likewise.
11312         * modules/vfprintf-posix (Depends-on): Likewise.
11313         * modules/vprintf-posix (Depends-on): Likewise.
11314         * modules/vsnprintf (Depends-on): Likewise.
11315         * modules/vsnprintf-posix (Depends-on): Likewise.
11316         * modules/vsprintf-posix (Depends-on): Likewise.
11317         * modules/wcrtomb (Depends-on): Likewise.
11318         * modules/wcscasecmp (Depends-on): Likewise.
11319         * modules/wcscspn (Depends-on): Likewise.
11320         * modules/wcsdup (Depends-on): Likewise.
11321         * modules/wcsncasecmp (Depends-on): Likewise.
11322         * modules/wcsnrtombs (Depends-on): Likewise.
11323         * modules/wcspbrk (Depends-on): Likewise.
11324         * modules/wcsrtombs (Depends-on): Likewise.
11325         * modules/wcsspn (Depends-on): Likewise.
11326         * modules/wcsstr (Depends-on): Likewise.
11327         * modules/wcstok (Depends-on): Likewise.
11328         * modules/wcswidth (Depends-on): Likewise.
11329         * modules/wctob (Depends-on): Likewise.
11330         * modules/wctomb (Depends-on): Likewise.
11331         * modules/wctype (Depends-on): Likewise.
11332         * modules/wcwidth (Depends-on): Likewise.
11333         * modules/write (Depends-on): Likewise.
11334
11335 2011-05-03  Bruno Haible  <bruno@clisp.org>
11336
11337         Support for conditional dependencies.
11338         * doc/gnulib.texi (Module description): Document the syntax of
11339         conditional dependencies.
11340         * gnulib-tool: New option --conditional-dependencies.
11341         (func_usage): Document it.
11342         (cond_dependencies): New variable.
11343         (func_get_automake_snippet_conditional,
11344         func_get_automake_snippet_unconditional): New functions, extracted from
11345         func_get_automake_snippet.
11346         (func_get_automake_snippet): Use them.
11347         (sed_first_32_chars): New variable.
11348         (func_module_shellfunc_name): New function.
11349         (func_module_shellvar_name): New function.
11350         (func_module_conditional_name): New function.
11351         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
11352         func_cond_module_condition): New functions.
11353         (func_modules_transitive_closure): Add support for conditional
11354         dependencies.
11355         (func_emit_lib_Makefile_am): For a conditional module, enclose the
11356         conditional automake snippet in an automake conditional.
11357         (func_emit_autoconf_snippets): Emit shell functions that contain the
11358         code for conditional modules.
11359         (func_import, func_create_testdir): Update specification.
11360
11361 2011-05-03  Eric Blake  <eblake@redhat.com>
11362
11363         test-getaddrinfo: report error information
11364         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
11365
11366 2011-05-03  Jim Meyering  <meyering@redhat.com>
11367
11368         bootstrap: avoid build failure when $GZIP is set
11369         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
11370         program name.  If defined at all, it is supposed to list gzip options.
11371         Reported by Alan Curry in http://debbugs.gnu.org/8609
11372
11373 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
11374
11375         readme-release: new module with release instructions
11376         * modules/readme-release: New module.
11377         * top/README-release: New file, from coreutils, grep, diffutils.
11378         * MODULES.html.sh (Support for maintaining and releasing): Add it.
11379
11380 2011-05-02  Eric Blake  <eblake@redhat.com>
11381
11382         fflush: also replace fclose when fixing fflush
11383         * modules/fflush (Depends-on): Add fclose.
11384         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
11385         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
11386         memstreams with no backing fd.
11387         * doc/posix-functions/fclose.texi (fclose): Document the use of
11388         fflush module to fix the bug.
11389         * tests/test-fclose.c (main): Relax test when fclose is used in
11390         isolation.
11391
11392         fclose: add some tests
11393         * modules/fclose-tests: New test module.
11394         * tests/test-fclose.c: New file.
11395         * doc/posix-functions/fclose.texi (fclose): Document the bug.
11396
11397         fclose: reduced dependencies
11398         * modules/fclose (Depends-on): Switch from fflush/fseeko to
11399         simpler lseek.
11400         * lib/fclose.c (rpl_fclose): Likewise.
11401         Reported by Simon Josefsson.
11402
11403         exit: drop remaining clients
11404         * modules/argmatch (Depends-on): Replace exit with stdlib.
11405         * modules/copy-file (Depends-on): Likewise.
11406         * modules/execute (Depends-on): Likewise.
11407         * modules/exitfail (Depends-on): Likewise.
11408         * modules/obstack (Depends-on): Likewise.
11409         * modules/pagealign_alloc (Depends-on): Likewise.
11410         * modules/pipe-filter-gi (Depends-on): Likewise.
11411         * modules/pipe-filter-ii (Depends-on): Likewise.
11412         * modules/savewd (Depends-on): Likewise.
11413         * modules/spawn-pipe (Depends-on): Likewise.
11414         * modules/wait-process (Depends-on): Likewise.
11415         * modules/xsetenv (Depends-on): Likewise.
11416         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
11417         * modules/git-merge-changelog (Depends-on): Likewise.
11418         * modules/long-options (Depends-on): Likewise.
11419         * modules/pt_chown (Depends-on): Likewise.
11420         * modules/sysexits (Depends-on): Likewise.
11421
11422         freading: relax license from LGPLv3+ to LGPLv2+
11423         * modules/freading (License): Relax LGPL version.
11424
11425 2011-05-02  Bruno Haible  <bruno@clisp.org>
11426
11427         fchdir: Remove unused dependencies.
11428         * modules/fchdir (Depends-on): Remove include_next.
11429
11430 2011-05-02  Bruno Haible  <bruno@clisp.org>
11431
11432         gnulib-tool: Refactor.
11433         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
11434         from func_emit_autoconf_snippets.
11435         (func_emit_autoconf_snippets): Use it.
11436
11437 2011-05-02  Simon Josefsson  <simon@josefsson.org>
11438
11439         * NEWS: Document removal of 'exit'.
11440         * modules/exit: Remove file.
11441
11442 2011-05-01  Bruno Haible  <bruno@clisp.org>
11443
11444         Update DEPENDENCIES.
11445         * DEPENDENCIES (gettext): Recommend the newest release.
11446         Reported by Simon Josefsson.
11447
11448 2011-05-01  Bruno Haible  <bruno@clisp.org>
11449
11450         gnulib-tool: Reduce code duplication.
11451         * gnulib-tool (func_emit_autoconf_snippets): New function.
11452         (func_import, func_create_testdir): Use it.
11453
11454 2011-04-30  Eric Blake  <eblake@redhat.com>
11455
11456         fclose: don't fail on non-seekable input stream
11457         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
11458         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
11459         since fflush is allowed to fail in that case.
11460
11461 2011-04-30  Bruno Haible  <bruno@clisp.org>
11462
11463         dup3: cleanup
11464         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
11465
11466 2011-04-30  Bruno Haible  <bruno@clisp.org>
11467
11468         netdb: Make it work in C++ mode.
11469         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
11470         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
11471         module.
11472         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
11473         gl_MODULE_INDICATOR_FOR_TESTS.
11474         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
11475         * modules/netdb-c++-tests: New file.
11476         * tests/test-netdb-c++.cc: New file.
11477
11478 2011-04-30  Bruno Haible  <bruno@clisp.org>
11479
11480         New modules 'vfscanf', 'vscanf'.
11481         * modules/vfscanf: New file.
11482         * modules/vscanf: New file.
11483         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
11484         here.
11485         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
11486         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
11487
11488 2011-04-30  Bruno Haible  <bruno@clisp.org>
11489
11490         passfd: Add comments.
11491         * lib/passfd.c: Add comments about platforms.
11492
11493 2011-04-30  Bruno Haible  <bruno@clisp.org>
11494
11495         sys_uio: Make <sys/uio.h> self-contained.
11496         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
11497         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
11498
11499 2011-04-30  Bruno Haible  <bruno@clisp.org>
11500
11501         sys_socket: Ensure 'struct iovec' definition.
11502         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
11503         <sys/socket.h>.
11504         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
11505
11506 2011-04-30  Bruno Haible  <bruno@clisp.org>
11507
11508         sys_uio: Protect definition of 'struct iovec'.
11509         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
11510         it as a C struct.
11511
11512 2011-04-30  Bruno Haible  <bruno@clisp.org>
11513
11514         manywarnings: fix indentation
11515         * m4/manywarnings.m4: Indent by 2 spaces consistently.
11516
11517 2011-04-30  Pádraig Brady <P@draigBrady.com>
11518
11519         manywarnings: add -Wno-missing-field-initializers if needed.
11520         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
11521         option if it's needed to allow initialization with { 0, }
11522
11523 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
11524
11525         announce-gen: cosmetic improvement
11526         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
11527
11528 2011-04-29  Jim Meyering  <meyering@redhat.com>
11529
11530         vc-list-files: indent with spaces, not TABs
11531         * build-aux/vc-list-files: Convert leading TABs to spaces,
11532         to match the style of most other files in gnulib.
11533
11534         announce-gen: indent with spaces, not TABs
11535         * build-aux/announce-gen: Convert all TABs to spaces, to match
11536         the style of most other files in gnulib.
11537
11538 2011-04-29  Eric Blake  <eblake@redhat.com>
11539
11540         quotearg: avoid uninitialized variable use
11541         * lib/quotearg.c (quoting_options_from_style): Initialize
11542         remaining fields, and ensure that custom styles are only used via
11543         quoting_options rather than quoting_style.
11544
11545 2011-04-29  Jim Meyering  <meyering@redhat.com>
11546
11547         maint.mk: remove unused VC-tag variable
11548         * top/maint.mk (VC-tag): Remove unused variable.
11549
11550 2011-04-29  Bruno Haible  <bruno@clisp.org>
11551
11552         netdb: fix gai_strerror replacements
11553         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
11554         * modules/netdb: Substitute it.
11555
11556 2011-04-29  Jim Meyering  <meyering@redhat.com>
11557
11558         test-getcwd.c: avoid new set-but-not-used warning
11559         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
11560         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
11561         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
11562         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
11563
11564         test-hash.c: avoid a new shadowing warning
11565         * tests/test-hash.c (main): Don't shadow "dup".
11566
11567 2011-04-28  Eric Blake  <eblake@redhat.com>
11568
11569         getaddrinfo: fix gai_strerror signature
11570         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
11571         and work around mingw with UNICODE defined.
11572         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
11573         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
11574         * modules/netdb (Makefile.am): Substitute it.
11575         * lib/netdb.in.h (gai_strerror): Declare replacement.
11576         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
11577         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
11578         the fix.
11579
11580         getsockopt: avoid compiler warning
11581         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
11582         Reported by Matthias Bolte.
11583
11584         tests: drop unused link dependency
11585         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
11586         * modules/dirent-safer-tests (Makefile.am): Likewise.
11587         * modules/fdopendir-tests (Makefile.am): Likewise.
11588         * modules/mkfifoat-tests (Makefile.am): Likewise.
11589         * modules/openat-safer-tests (Makefile.am): Likewise.
11590         * modules/openat-tests (Makefile.am): Likewise.
11591         * modules/readlinkat-tests (Makefile.am): Likewise.
11592         * modules/symlinkat-tests (Makefile.am): Likewise.
11593         * modules/linkat-tests (Makefile.am): Likewise.
11594         (Depends-on): Switch to filenamecat-lgpl.
11595         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
11596         LIBINTL.
11597         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
11598         * tests/test-linkat.c (main): Don't require xalloc.
11599
11600         hash, mgetgroups: drop xalloc dependency
11601         * lib/hash.c (includes): Adjust includes.
11602         * lib/mgetgroups.c (includes): Likewise.
11603         (xgetgroups): Move...
11604         * lib/xgetgroups.c: ...to new file.
11605         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
11606         * modules/xgetgroups: New file, split from...
11607         * modules/mgetgroups: ...here.
11608         (Depends-on): Add xalloc-oversized.
11609         * modules/hash (Depends-on): Likewise.
11610         * modules/hash-tests (Depends-on): Drop xalloc.
11611         (test_hash_LDADD): Drop unused library.
11612         * tests/test-hash.c (main): Break xalloc dependency.
11613         (includes): Drop unused include.
11614
11615         xalloc-oversized: new module
11616         * modules/xalloc-oversized: New module.
11617         * modules/xalloc (Depends-on): Add it.
11618         * lib/xalloc.h (xalloc_oversized): Move...
11619         * lib/xalloc-oversized.h: ...into new file.
11620
11621         utimecmp: drop dependency on xmalloc
11622         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
11623         due to memory pressure.
11624         * modules/utimecmp (Depends-on): Drop xalloc.
11625
11626 2011-04-27  Eric Blake  <eblake@redhat.com>
11627
11628         getcwd: fix mingw bugs
11629         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
11630         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
11631         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
11632
11633 2011-04-27  Bruno Haible  <bruno@clisp.org>
11634
11635         mkstemps: Ensure declaration on MacOS X 10.5.
11636         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
11637         * doc/glibc-functions/mkstemps.texi: Document header file problem on
11638         MacOS X.
11639
11640 2011-04-27  Bruno Haible  <bruno@clisp.org>
11641
11642         mkstemp: More documentation.
11643         * doc/posix-functions/mkstemp.texi: Document header file problem on
11644         MacOS X.
11645
11646 2011-04-27  Bruno Haible  <bruno@clisp.org>
11647
11648         mkstemp: Tweak configure message when cross-compiling.
11649         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
11650         result as a guess.
11651
11652 2011-04-27  Bruno Haible  <bruno@clisp.org>
11653
11654         clean-temp: Clarify what it does.
11655         * lib/clean-temp.h: Add more comments.
11656         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
11657         module.
11658         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
11659         * doc/glibc-functions/mkstemps.texi: Likewise.
11660         * doc/glibc-functions/mkostemps.texi: Likewise.
11661
11662 2011-04-27  Eric Blake  <eblake@redhat.com>
11663
11664         fchdir: avoid extra chdir and fix test
11665         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
11666         getcwd-lgpl.
11667         * lib/fchdir.c (get_name): Any absolute name will do; it does not
11668         have to be canonical.
11669         (canonicalize_file_name): Drop unused macro.
11670         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
11671
11672         filenamecat-lgpl: fix licence
11673         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
11674         when it was first created.
11675
11676         linkat, renameat: add missing dependency
11677         * modules/linkat (Depends-on): Require getcwd-lgpl.
11678         * modules/renameat (Depends-on): Likewise.
11679
11680         tests: reduce dependencies
11681         * tests/test-linkat.c (main): Use lighter-weight getcwd.
11682         * tests/test-renameat.c (main): Likewise.
11683         * modules/linkat-tests (Depends-on): Relax dependency.
11684         * modules/renameat-tests (Depends-on): Likewise.
11685         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
11686         dependency explicit.
11687
11688         save-cwd: reduce default dependency
11689         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
11690         * lib/save-cwd.c: Update comments.
11691         * NEWS: Document the semantic change.
11692
11693         getcwd: enhance tests
11694         * tests/test-getcwd-lgpl.c: New file, taken from...
11695         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
11696         repeat long path stress tests from m4 probe.
11697         * modules/getcwd-lgpl-tests: New module.
11698         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
11699         * m4/getcwd-abort-bug.m4: Update comment.
11700         * m4/getcwd-path-max.m4: Likewise.
11701
11702         getcwd-lgpl: new module
11703         * modules/getcwd-lgpl: New module.
11704         * lib/getcwd-lgpl.c: New file.
11705         * doc/posix-functions/getcwd.texi (getcwd): Document it.
11706         * MODULES.html.sh (lacking POSIX:2008): Likewise.
11707         * modules/getcwd (configure.ac): Set C witness.
11708         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
11709
11710         getcwd: tweak comments
11711         * m4/getcwd-abort-bug.m4: Fix comments.
11712         * m4/getcwd-path-max.m4: Likewise.
11713         * m4/getcwd.m4: Likewise.
11714
11715 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
11716         and Eric Blake  <eblake@redhat.com>
11717
11718         mkstemp: replace if system version uses wrong permissions
11719         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
11720         read/write mode bits set in file created by mkstemp.
11721         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
11722
11723 2011-04-27  Eric Blake  <eblake@redhat.com>
11724
11725         passfd: avoid compiler warning
11726         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
11727         Reported by Laine Stump.
11728
11729 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
11730
11731         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
11732         required by the NetBSD (and perhaps other 4.4BSD derived) join.
11733
11734 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
11735         and Eric Blake  <eblake@redhat.com>
11736
11737         mkstemp: mention clean-temp module
11738         * lib/mkstemp.c: Add comment.
11739         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
11740
11741 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
11742
11743         inttypes: also provide default values for 32-bit tests
11744         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
11745         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
11746
11747 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
11748
11749         strtoumax: remove dependency on strtoimax
11750         This is like the strtoull change of yesterday.
11751         * modules/strtoumax (Files): Add lib/strtoimax.c.
11752         (Depends-on): Remove strtoimax and add verify.
11753
11754         inttypes-incomplete: new module
11755         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
11756         all but the PRI* and SCN* parts of gl_INTTYPES_H.
11757         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
11758         of gl_INTTYPES_H.
11759         (gl_INTTYPES_H): Rewrite in terms of these new macros.
11760         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
11761         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
11762         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
11763         * modules/strtoumax, modules/xstrtol (Depends-on):
11764         Depend on inttypes-incomplete, not inttypes.
11765         * modules/inttypes-incomplete: New module, containing the contents
11766         of the old modules/inttypes module, except that the Files: section
11767         omits m4/inttypes-pri.m4, and the configure.ac section invokes
11768         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
11769         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
11770         (Depends-on): Depend only on inttypes-incomplete.
11771         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
11772
11773         inttypes: omit now-redundant strtoimax and strtoumax work
11774         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
11775         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
11776
11777         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
11778         This supports apps that need pointers to strtoimax and strtoumax,
11779         and ports to HP-UX 11.00 64.bit, which has macros that expand to
11780         nonexistent functions.  See
11781         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
11782         et seq.
11783         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
11784         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
11785         a macro.
11786         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
11787
11788 2011-04-25  Simon Josefsson  <simon@josefsson.org>
11789
11790         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
11791
11792 2011-04-25  Bruno Haible  <bruno@clisp.org>
11793
11794         strtol, strtoul: Mark modules as obsolete.
11795         * modules/strtol (Status, Notice): New sections.
11796         * modules/strtoul (Status, Notice): New sections.
11797
11798 2011-04-25  Bruno Haible  <bruno@clisp.org>
11799
11800         strtod: Remove check for strtod, unless supporting old platforms.
11801         * modules/strtod-obsolete: New file.
11802         * m4/strtod-obsolete.m4: New file.
11803         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
11804         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
11805         * modules/strtod (Depends-on): Add strtod-obsolete.
11806         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
11807
11808 2011-04-25  Bruno Haible  <bruno@clisp.org>
11809
11810         strcase: Make module obsolete.
11811         * modules/strcase (Status, Notice): New sections.
11812
11813 2011-04-25  Bruno Haible  <bruno@clisp.org>
11814
11815         dup2: Remove check for dup2, unless supporting old obsolete platforms.
11816         * modules/dup2-obsolete: New file.
11817         * m4/dup2-obsolete.m4: New file.
11818         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
11819         gl_FUNC_DUP2_OBSOLETE is not also defined.
11820         * modules/dup2 (Depends-on): Add dup2-obsolete.
11821         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
11822
11823 2011-04-25  Bruno Haible  <bruno@clisp.org>
11824
11825         strnlen: Avoid memchr related link error on old obsolete platforms.
11826         * modules/memchr-obsolete: New file.
11827         * m4/memchr-obsolete.m4: New file.
11828         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
11829         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
11830         * modules/memchr (Depends-on): Add memchr-obsolete.
11831         * modules/strnlen (Depends-on): Likewise.
11832         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
11833
11834 2011-04-25  Jim Meyering  <meyering@redhat.com>
11835
11836         maint.mk: makefile_at_at_check extend and clean up
11837         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
11838         in addition to */Makefile.am.
11839         Exempt legitimate uses of @VAR@ notation, e.g.,
11840         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
11841         Remove obsolete coreutils-specific comment.
11842         Prompted by discussion here:
11843         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
11844
11845 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
11846
11847         strtoul: remove dependency on strtol
11848         This is so that 'configure' need not check for strtol merely because
11849         the application needs strtoul.
11850         * modules/strtoul (Files): Add lib/strtol.c.
11851         (Depends-on): Remove strtol.
11852
11853         strtoull: remove dependency on strtoul
11854         This is like the strtoll change.
11855         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
11856         (Depends-on): Remove strtoul.
11857
11858         strtoll: remove dependency on strtol
11859         This is so that 'configure' need not check for strtol merely because
11860         the application needs strtoll.
11861         * modules/strtoll (Files): Add lib/strtol.c.
11862         (Depends-on): Remove strtol.
11863
11864 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
11865
11866         inttypes: Move some configure check to module 'imaxdiv'.
11867         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
11868         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
11869         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
11870
11871 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
11872
11873         inttypes: Move some configure check to module 'imaxabs'.
11874         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
11875         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
11876         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
11877
11878 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
11879
11880         inttypes: Remove configure tests that are not needed since 2009-12-31.
11881         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
11882         gl_cv_header_working_inttypes_h.
11883
11884 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
11885
11886         * modules/strnlen (Depends-on): Remove memchr.
11887         The strnlen implementation doesn't need the memchr module's fixes; see
11888         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
11889
11890         strtol: remove dependency on wchar
11891         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
11892         * modules/strtol (Depends-on): Remove wchar.
11893
11894 2011-04-21  Eric Blake  <eblake@redhat.com>
11895
11896         passfd: fix test regression on Linux
11897         * modules/passfd-tests (configure.ac): Correct socketpair check.
11898
11899         passfd: speed up configure and drop unused code
11900         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
11901         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
11902         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
11903         Instead of probing at configure for unix_scm_rights_bsd44_way,
11904         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
11905         check to a struct member probe.
11906         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
11907         (sendfd, recvfd): Update preprocessor checks.
11908         * modules/passfd (Files): Reflect rename, and drop unused file.
11909         (Depends-on): Drop unused dependency.
11910
11911         passfd: allow compilation on mingw
11912         * modules/sys_socket (Depends-on): Add sys_uio.
11913         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
11914         iovec and a minimal struct msghdr.
11915         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
11916         * tests/test-sys_socket.c (main): Enhance test.
11917         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
11918         guaranteed to provide what we need.
11919         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
11920         * modules/passfd-tests (Depends-on): Add sys_wait.
11921         * tests/test-passfd.c (main): Skip test on mingw, for now.
11922         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
11923         partial 'struct msghdr' implementation.
11924
11925         sys_uio: new module
11926         * modules/sys_uio: New module.
11927         * modules/sys_uio-tests: Likewise.
11928         * lib/sys_uio.in.h: New file.
11929         * m4/sys_uio_h.m4: Likewise.
11930         * tests/test-sys_uio.c: Likewise.
11931         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
11932         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
11933
11934 2011-04-20  Jim Meyering  <meyering@redhat.com>
11935
11936         useless-if-before-free: avoid false-positive
11937         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
11938         disjunct so that it too requires a terminating ";".  Without that,
11939         this script would identify as useless one statement from gcc that
11940         was not:
11941           if (aligned_ptr)
11942             free (((void **) aligned_ptr) [-1]);
11943
11944 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
11945
11946         doc: update users.txt.
11947         * users.txt: Add barcode.
11948
11949 2011-04-19  Bruno Haible  <bruno@clisp.org>
11950
11951         ioctl: Remove link dependency on native Windows.
11952         * lib/fd-hook.h: Renamed from lib/close-hook.h.
11953         (gl_close_fn, gl_ioctl_fn): New types.
11954         (struct fd_hook): Renamed from struct close_hook. Change type of
11955         private_close_fn field. Add private_ioctl_fn field.
11956         (close_hook_fn): Add parameter for primary close method.
11957         (execute_close_hooks, execute_all_close_hooks): Likewise.
11958         (ioctl_hook_fn): New type.
11959         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
11960         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
11961         argument.
11962         (unregister_fd_hook): Renamed from unregister_close_hook.
11963         * lib/fd-hook.c: Renamed from lib/close-hook.c.
11964         Don't include <unistd.h>.
11965         (close): Remove undef.
11966         (anchor): Update.
11967         (execute_close_hooks): Add argument for primary close method.
11968         (execute_all_close_hooks): Likewise.
11969         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
11970         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
11971         argument. Allow each argument to be NULL.
11972         (unregister_fd_hook): Renamed from unregister_close_hook.
11973         * lib/close.c (rpl_close): Pass 'close' function pointer to
11974         execute_all_close_hooks.
11975         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
11976         (primary_ioctl): New function.
11977         (ioctl): Don't call ioctlsocket here. Instead, call
11978         execute_all_ioctl_hooks.
11979         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
11980         close method.
11981         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
11982         (fd_sockets_hook): Renamed from close_sockets_hook.
11983         (gl_sockets_startup, gl_sockets_cleanup): Update.
11984         * modules/fd-hook: Renamed from modules/close-hook. Update.
11985         * modules/close (Depends-on): Add fd-hook, remove close-hook.
11986         * modules/sockets (Depends-on): Likewise.
11987         * modules/ioctl (Depends-on): Add fd-hook.
11988         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
11989         GNULIB_SOCKET.
11990
11991 2011-04-19  Bruno Haible  <bruno@clisp.org>
11992
11993         Move the support of O_NONBLOCK in open() to the 'open' module.
11994         * modules/nonblocking (Depends-on): Remove 'open'.
11995         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
11996         gl_cv_have_open_O_NONBLOCK.
11997         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
11998         O_NONBLOCK support.
11999         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
12000
12001 2011-04-17  Bruno Haible  <bruno@clisp.org>
12002
12003         pipe2: Simplify code.
12004         * lib/pipe2.c (pipe2): Reduce code duplication.
12005
12006 2011-04-17  Bruno Haible  <bruno@clisp.org>
12007
12008         nonblocking: Add comment.
12009         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
12010
12011 2011-04-17  Bruno Haible  <bruno@clisp.org>
12012
12013         nonblocking: Add tests for sockets.
12014         * tests/test-nonblocking-socket.sh: New file.
12015         * tests/test-nonblocking-socket-main.c: New file.
12016         * tests/test-nonblocking-socket-child.c: New file.
12017         * tests/test-nonblocking-socket.h: New file.
12018         * tests/socket-server.h: New file.
12019         * tests/socket-client.h: New file.
12020         * modules/nonblocking-socket-tests: New file.
12021         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
12022
12023 2011-04-17  Bruno Haible  <bruno@clisp.org>
12024
12025         nonblocking: Add tests for pipes.
12026         * tests/test-nonblocking-pipe.sh: New file.
12027         * tests/test-nonblocking-pipe-main.c: New file.
12028         * tests/test-nonblocking-pipe-child.c: New file.
12029         * tests/test-nonblocking-pipe.h: New file.
12030         * tests/test-nonblocking-writer.h: New file.
12031         * tests/test-nonblocking-reader.h: New file.
12032         * tests/test-nonblocking-misc.h: New file.
12033         * modules/nonblocking-pipe-tests: New file.
12034         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
12035
12036 2011-04-16  Bruno Haible  <bruno@clisp.org>
12037
12038         gettext: Clarify the needed programmer actions.
12039         * modules/gettext (Notice): New field.
12040         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
12041
12042 2011-04-16  Bruno Haible  <bruno@clisp.org>
12043
12044         strchrnul: Tweak last commit.
12045         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
12046         bug.
12047         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
12048         as in _GL_FUNCDECL_SYS.
12049         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
12050         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
12051
12052 2011-04-15  Eric Blake  <eblake@redhat.com>
12053
12054         strchrnul: work around cygwin bug
12055         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
12056         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
12057         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
12058         * modules/string (Makefile.am): Substitute it.
12059         * lib/string.in.h (strchrnul): Use it.
12060
12061 2011-04-15  Bruno Haible  <bruno@clisp.org>
12062
12063         Don't require lib/stdio-write.c when only module 'stdio' is used.
12064         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
12065         invocation.
12066         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
12067
12068 2011-04-14  Bruno Haible  <bruno@clisp.org>
12069
12070         Support non-blocking pipe I/O in read() on native Windows.
12071         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
12072         (read): New declaration.
12073         * lib/read.c: New file.
12074         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
12075         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
12076         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
12077         vscanf): New declarations.
12078         * lib/stdio-read.c: New file.
12079         * m4/read.m4: New file.
12080         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
12081         REPLACE_READ.
12082         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
12083         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
12084         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
12085         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
12086         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
12087         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
12088         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
12089         * modules/read: New file.
12090         * modules/nonblocking (Files): Add lib/stdio-read.c.
12091         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
12092         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
12093         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
12094         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
12095         * modules/pread (Depends-on): Add read.
12096         * modules/safe-read (Depends-on): Likewise.
12097         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
12098         gets, scanf, vfscanf, vscanf): Verify signatures.
12099         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
12100         problem with non-blocking pipes.
12101         * doc/posix-functions/fgetc.texi: Likewise.
12102         * doc/posix-functions/fgets.texi: Likewise.
12103         * doc/posix-functions/fread.texi: Likewise.
12104         * doc/posix-functions/fscanf.texi: Likewise.
12105         * doc/posix-functions/getc.texi: Likewise.
12106         * doc/posix-functions/getchar.texi: Likewise.
12107         * doc/posix-functions/gets.texi: Likewise.
12108         * doc/posix-functions/scanf.texi: Likewise.
12109         * doc/posix-functions/vfscanf.texi: Likewise.
12110         * doc/posix-functions/vscanf.texi: Likewise.
12111
12112 2011-04-14  Bruno Haible  <bruno@clisp.org>
12113
12114         Support non-blocking pipe I/O in write() on native Windows.
12115         * lib/write.c (rpl_write): Split a write request that failed merely
12116         because the byte count was larger than the pipe buffer's size.
12117         * doc/posix-functions/write.texi: Mention the problem with large byte
12118         counts.
12119
12120 2011-04-14  Bruno Haible  <bruno@clisp.org>
12121
12122         wchar: Ensure that wchar_t gets defined on uClibc.
12123         * lib/wchar.in.h: On uClibc, include <stddef.h>.
12124         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
12125
12126 2011-04-13  Bruno Haible  <bruno@clisp.org>
12127
12128         safe-write, full-read: Avoid unnecessary compilation units.
12129         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
12130         (Depends-on): Remove safe-read. Add ssize_t.
12131         * modules/full-read (Files): Add lib/full-write.c.
12132         (Depends-on): Add full-write.
12133
12134 2011-04-13  Bruno Haible  <bruno@clisp.org>
12135
12136         Support non-blocking pipe I/O and SIGPIPE in pwrite().
12137         * modules/pwrite (Depends-on): Add 'write'.
12138
12139 2011-04-13  Bruno Haible  <bruno@clisp.org>
12140
12141         Support non-blocking pipe I/O in write() on native Windows.
12142         * lib/unistd.in.h (write): Enable replacement also if
12143         GNULIB_UNISTD_H_NONBLOCKING is 1.
12144         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
12145         (rpl_write): When failing to write on a non-blocking pipe, change
12146         errno from ENOSPC to EAGAIN.
12147         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
12148         putchar, puts, vfprintf, vprintf): Enable replacement also if
12149         GNULIB_STDIO_H_NONBLOCKING is 1.
12150         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
12151         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
12152         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
12153         CALL_WITH_SIGPIPE_EMULATION.
12154         (CALL_WITH_SIGPIPE_EMULATION): Use them.
12155         * m4/nonblocking.m4: New file.
12156         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
12157         for non-blocking I/O support.
12158         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
12159         GNULIB_UNISTD_H_NONBLOCKING.
12160         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
12161         required for non-blocking I/O support.
12162         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
12163         * modules/nonblocking (Files): Add m4/nonblocking.m4,
12164         lib/stdio-write.c, m4/asm-underscore.m4.
12165         (Depends-on): Add stdio, unistd.
12166         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
12167         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
12168         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
12169         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
12170         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
12171         problem with non-blocking pipes.
12172         * doc/posix-functions/fputc.texi: Likewise.
12173         * doc/posix-functions/fputs.texi: Likewise.
12174         * doc/posix-functions/fwrite.texi: Likewise.
12175         * doc/posix-functions/printf.texi: Likewise.
12176         * doc/posix-functions/putc.texi: Likewise.
12177         * doc/posix-functions/putchar.texi: Likewise.
12178         * doc/posix-functions/puts.texi: Likewise.
12179         * doc/posix-functions/vfprintf.texi: Likewise.
12180         * doc/posix-functions/vprintf.texi: Likewise.
12181         * doc/posix-functions/write.texi: Likewise.
12182
12183 2011-04-10  Jim Meyering  <meyering@redhat.com>
12184
12185         maint.mk: prohibit doubled words
12186         Detect them also when they're separated by a newline.
12187         There are 3 ways to customize it:
12188           - disable the test on a per file basis, as usual with rules using
12189             $(VC_LIST_EXCEPT)
12190           - replace the default doubled-word-selecting regexp (affects all files)
12191           - ignore a particular file-vs-doubled-word match
12192         I nearly used that last one to ignore the "is is" match in
12193         coreutils' NEWS file, since the text was "ls -is is ..."
12194         To do that, I would have added this line to cfg.mk:
12195           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
12196         but it would have ignored any "is is" match in NEWS.
12197         Low probability, but still...
12198         Instead, I changed the text, slightly:
12199           -  ls -is is now consistent with ls -lis in ignoring values returned
12200           +  "ls -is" is now consistent with ls -lis in ignoring values returned
12201         * top/maint.mk (prohibit_double_word_RE_): Provide default.
12202         (prohibit_doubled_word_): Define.
12203         (sc_prohibit_doubled_word): New rule.
12204         (sc_prohibit_the_the): Remove.  Subsumed by the above.
12205
12206 2011-04-10  Jim Meyering  <meyering@redhat.com>
12207
12208         maint: fix doubled-word typo in comment
12209         * m4/gethostname.m4: s/is is/it is/
12210         * m4/getdomainname.m4: Likewise.
12211
12212 2011-04-10  Jim Meyering  <meyering@redhat.com>
12213
12214         maint: remove doubled word: s/it it/it/
12215         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
12216
12217 2011-04-10  Jim Meyering  <meyering@redhat.com>
12218
12219         maint.mk: remove useless semicolon and backslash
12220         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
12221         semicolon and backslash.
12222
12223 2011-04-10  Bruno Haible  <bruno@clisp.org>
12224
12225         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
12226         * modules/stdint-tests (Depends-on): Add wchar.
12227
12228 2011-04-10  Jim Meyering  <meyering@redhat.com>
12229
12230         maint: remove doubled words in comments, e.g., s/a a/a/
12231         * lib/strptime.c (day_of_the_week): s/the the/the/
12232         * tests/test-chown.h (test_chown): s/a a/a/
12233
12234         test-chown.h: correct a cast
12235         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
12236         when the destination is a stat.st_gid.
12237
12238 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
12239
12240         getaddrinfo: Fix test for sa_len member.
12241         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
12242         include <sys/types.h> before <sys/socket.h>.
12243
12244 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
12245
12246         maint: change "can not" to "cannot"
12247         * doc/posix-functions/iconv.texi (iconv): This one crossed line
12248         boundaries.
12249
12250 2011-04-09  Jim Meyering  <meyering@redhat.com>
12251
12252         maint: change "a a" to "a"
12253         * tests/test-lchown.h (test_lchown): s/a a/a/
12254
12255         maint.mk: prohibit \<the the\>
12256         * top/maint.mk (sc_prohibit_the_the): New rule.
12257
12258         maint: fix "the the" in comment
12259         * lib/count-one-bits.h: s/the the/the/
12260
12261         maint: change "can not" to "cannot"
12262         But do not change the occurrences in maintain.texi or in
12263         build-aux/po/Makefile.in.in, which I presume comes from gettext.
12264         * doc/gnulib-tool.texi: s/can not/cannot/
12265         * doc/posix-functions/accept.texi (accept): Likewise.
12266         * doc/posix-functions/socket.texi (socket): Likewise.
12267         * lib/mbrtowc.c: Likewise.
12268
12269         maint.mk: prohibit use of "can not"
12270         * top/maint.mk (sc_prohibit_can_not): New rule.
12271         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
12272
12273 2011-04-09  Bruno Haible  <bruno@clisp.org>
12274
12275         careadlinkat: Guard against misuse of careadlinkatcwd.
12276         * lib/careadlinkat.c: Include <stdlib.h>.
12277         (careadlinkatcwd): Check that the fd argument is as expected.
12278
12279 2011-04-09  Bruno Haible  <bruno@clisp.org>
12280
12281         careadlinkat: Use common coding style.
12282         * lib/careadlinkat.c: Move gnulib includes after system includes.
12283
12284 2011-04-09  Bruno Haible  <bruno@clisp.org>
12285
12286         careadlinkat: Clarify specification.
12287         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
12288         (careadlinkatcwd): Add comment.
12289         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
12290
12291 2011-04-09  Bruno Haible  <bruno@clisp.org>
12292
12293         areadlinkat: Avoid link error on many platforms.
12294         * modules/areadlinkat (Depends-on): Add areadlink.
12295
12296 2011-04-09  Bruno Haible  <bruno@clisp.org>
12297
12298         allocator, careadlinkat: Fix double-inclusion guard.
12299         * lib/allocator.h: Fix double-inclusion guard.
12300         * lib/careadlinkat.h: Likewise.
12301
12302 2011-04-09  Bruno Haible  <bruno@clisp.org>
12303
12304         relocatable-prog-wrapper: Update after module 'areadlink' changed.
12305         * lib/relocwrapper.c: Update dependencies hierarchy.
12306         * build-aux/install-reloc: Update list of files to be compiled.
12307         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
12308         lib/allocator.[hc].
12309
12310 2011-04-08  Eric Blake  <eblake@redhat.com>
12311
12312         strftime: silence gnulib-tool warning
12313         * modules/strftime-tests (Depends-on): Drop automatic dependency.
12314
12315 2011-04-08  Bruno Haible  <bruno@clisp.org>
12316
12317         verify: Fix syntax error with GCC 4.6 in C++ mode.
12318         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
12319         (HAVE_STATIC_ASSERT): New macro.
12320         (verify_true, verify): Use 'static_assert' if it is supported and
12321         '_Static_assert' is not supported.
12322
12323 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
12324
12325         allocator: New module.
12326         * modules/allocator, lib/allocator.c: New files.
12327         * lib/allocator.h (stdlib_allocator): New decl.
12328         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
12329         Remove.  Do not include <stdlib.h>.
12330         (careadlinkat): Use stdlib_allocator instead of rolling our own.
12331         * modules/careadlinkat (Files): Remove lib/allocator.h.
12332         (Depends-on): Add allocator.
12333
12334         stdlib: let modules use system malloc, realloc
12335         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
12336         if !_GL_USE_STDLIB_ALLOC.
12337         (malloc, realloc): Limit this change to a smaller scope.
12338
12339         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
12340         (malloc, realloc): Don't #undef; no longer needed.
12341         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
12342         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
12343         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
12344         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
12345         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
12346         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
12347         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
12348         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
12349
12350         careadlinkat: rename members to avoid problem
12351         * lib/allocator.h (struct allocator): Rename members from
12352         malloc/realloc to allocate/reallocate, to avoid problems if malloc
12353         and realloc are #define'd.  Reported by Eric Blake in
12354         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
12355         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
12356
12357 2011-04-08  Eric Blake  <eblake@redhat.com>
12358
12359         nonblocking: reduce dependency
12360         * tests/test-nonblocking.c: Only test sockets when in use.
12361         * modules/nonblocking-tests (Depends-on): Drop socket.
12362         (Makefile.am): Link even if sockets are not present.
12363         * modules/pipe2-tests (Makefile.am): Likewise.
12364         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
12365
12366         pipe2: fix O_NONBLOCK support on mingw
12367         * modules/pipe2 (Depends-on): Add nonblocking.
12368         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
12369         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
12370         * tests/test-nonblocking.c (main): Likewise.
12371         * modules/pipe2-tests (Makefile.am): Avoid link failure.
12372
12373         fcntl-h: fix O_ACCMODE on cygwin
12374         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
12375         * lib/fcntl.in.h (O_ACCMODE): Fix it.
12376
12377         pipe-filter: drop O_NONBLOCK workarounds
12378         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
12379         * modules/pipe-filter-ii (Depends-on): Likewise.
12380         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
12381
12382         nonblocking: provide O_NONBLOCK for mingw
12383         * modules/nonblocking (Depends-on): Add open.
12384         (configure.ac): Set new witness macro.
12385         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
12386         * modules/fcntl-h (Makefile.am): Substitute it.
12387         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
12388         nonblocking module is in use.
12389         * lib/nonblocking.c: Adjust portability test.
12390         * lib/open.c (open): Don't let native open see gnulib flag.
12391         * tests/test-fcntl-h.c (main): Enhance test.
12392         * tests/test-open.h (test_open): Likewise.
12393         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
12394
12395         careadlinkat: fix compilation error on mingw
12396         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
12397         within struct allocator.
12398
12399 2011-04-06  Eric Blake  <eblake@redhat.com>
12400
12401         binary-io: relicense under LGPLv2+
12402         * modules/binary-io (License): Relax to LGPLv2+.
12403         Requested for libvirt, and required by pipe2.
12404
12405 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
12406
12407         verify: use _Static_assert if available
12408         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
12409         (verify_true, verify): Use it if available.  This generates better
12410         diagnostics with GCC 4.6.0 and later.
12411
12412 2011-04-05  Bruno Haible  <bruno@clisp.org>
12413
12414         Remove leftover generated .h files after config.status changed.
12415
12416         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
12417         GL_GENERATE_ALLOCA_H.
12418         * modules/alloca-opt (Makefile.am): Remove alloca.h if
12419         GL_GENERATE_ALLOCA_H evaluates to false.
12420
12421         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
12422         GL_GENERATE_ARGZ_H.
12423         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
12424         evaluates to false.
12425
12426         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
12427         GL_GENERATE_BYTESWAP_H.
12428         * modules/byteswap (Makefile.am): Remove byteswap.h if
12429         GL_GENERATE_BYTESWAP_H evaluates to false.
12430
12431         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
12432         GL_GENERATE_ERRNO_H.
12433         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
12434         evaluates to false.
12435
12436         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
12437         GL_GENERATE_FLOAT_H.
12438         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
12439         evaluates to false.
12440
12441         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
12442         GL_GENERATE_FNMATCH_H.
12443         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
12444         GL_GENERATE_FNMATCH_H evaluates to false.
12445
12446         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
12447         GL_GENERATE_GLOB_H.
12448         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
12449         evaluates to false.
12450
12451         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
12452         automake conditional GL_GENERATE_ICONV_H.
12453         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
12454         evaluates to false.
12455
12456         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
12457         GL_GENERATE_NETINET_IN_H.
12458         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
12459         GL_GENERATE_NETINET_IN_H evaluates to false.
12460
12461         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
12462         conditional GL_GENERATE_PTHREAD_H.
12463         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
12464         * modules/pthread (Makefile.am): Remove pthread.h if
12465         GL_GENERATE_PTHREAD_H evaluates to false.
12466
12467         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
12468         GL_GENERATE_SCHED_H.
12469         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
12470         evaluates to false.
12471
12472         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
12473         conditional GL_GENERATE_SELINUX_CONTEXT_H.
12474         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
12475         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
12476
12477         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
12478         GL_GENERATE_STDARG_H.
12479         * modules/stdarg (Makefile.am): Remove stdarg.h if
12480         GL_GENERATE_STDARG_H evaluates to false.
12481
12482         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
12483         GL_GENERATE_STDBOOL_H.
12484         * modules/stdbool (Makefile.am): Remove stdbool.h if
12485         GL_GENERATE_STDBOOL_H evaluates to false.
12486
12487         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
12488         conditional GL_GENERATE_STDDEF_H.
12489         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
12490         * modules/stddef (Makefile.am): Remove stddef.h if
12491         GL_GENERATE_STDDEF_H evaluates to false.
12492
12493         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
12494         GL_GENERATE_STDINT_H.
12495         * modules/stdint (Makefile.am): Remove stdint.h if
12496         GL_GENERATE_STDINT_H evaluates to false.
12497
12498         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
12499         GL_GENERATE_SYSEXITS_H.
12500         * modules/sysexits (Makefile.am): Remove sysexits.h if
12501         GL_GENERATE_SYSEXITS_H evaluates to false.
12502
12503         Reported by Karl Berry and Ralf Wildenhues.
12504
12505 2011-04-05  Bruno Haible  <bruno@clisp.org>
12506
12507         Ensure to rebuild generated .h files when config.status has changed.
12508         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
12509         config.status.
12510         * modules/ctype (Makefile.am): Likewise.
12511         * modules/dirent (Makefile.am): Likewise.
12512         * modules/errno (Makefile.am): Likewise.
12513         * modules/fcntl-h (Makefile.am): Likewise.
12514         * modules/float (Makefile.am): Likewise.
12515         * modules/getopt-posix (Makefile.am): Likewise.
12516         * modules/glob (Makefile.am): Likewise.
12517         * modules/iconv-h (Makefile.am): Likewise.
12518         * modules/inttypes (Makefile.am): Likewise.
12519         * modules/langinfo (Makefile.am): Likewise.
12520         * modules/locale (Makefile.am): Likewise.
12521         * modules/math (Makefile.am): Likewise.
12522         * modules/netdb (Makefile.am): Likewise.
12523         * modules/netinet_in (Makefile.am): Likewise.
12524         * modules/poll-h (Makefile.am): Likewise.
12525         * modules/pthread (Makefile.am): Likewise.
12526         * modules/pty (Makefile.am): Likewise.
12527         * modules/sched (Makefile.am): Likewise.
12528         * modules/search (Makefile.am): Likewise.
12529         * modules/selinux-h (Makefile.am): Likewise.
12530         * modules/signal (Makefile.am): Likewise.
12531         * modules/spawn (Makefile.am): Likewise.
12532         * modules/stdarg (Makefile.am): Likewise.
12533         * modules/stdbool (Makefile.am): Likewise.
12534         * modules/stddef (Makefile.am): Likewise.
12535         * modules/stdint (Makefile.am): Likewise.
12536         * modules/stdio (Makefile.am): Likewise.
12537         * modules/stdlib (Makefile.am): Likewise.
12538         * modules/string (Makefile.am): Likewise.
12539         * modules/strings (Makefile.am): Likewise.
12540         * modules/sys_file (Makefile.am): Likewise.
12541         * modules/sys_ioctl (Makefile.am): Likewise.
12542         * modules/sys_select (Makefile.am): Likewise.
12543         * modules/sys_socket (Makefile.am): Likewise.
12544         * modules/sys_stat (Makefile.am): Likewise.
12545         * modules/sys_time (Makefile.am): Likewise.
12546         * modules/sys_times (Makefile.am): Likewise.
12547         * modules/sys_utsname (Makefile.am): Likewise.
12548         * modules/sys_wait (Makefile.am): Likewise.
12549         * modules/sysexits (Makefile.am): Likewise.
12550         * modules/termios (Makefile.am): Likewise.
12551         * modules/time (Makefile.am): Likewise.
12552         * modules/unistd (Makefile.am): Likewise.
12553         * modules/wchar (Makefile.am): Likewise.
12554         * modules/wctype-h (Makefile.am): Likewise.
12555         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
12556
12557 2011-04-05  Bruno Haible  <bruno@clisp.org>
12558
12559         pipe2: Relicense under LGPLv2+.
12560         * modules/pipe2 (License): Change to LGPLv2+.
12561         Requested by Eric Blake, for libvirt.
12562
12563 2011-04-05  Bruce Korb  <bkorb@gnu.org>
12564
12565         bootstrap: compute gnulib_extra_files after updating build_aux
12566         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
12567         change build_aux or also supply gnulib_extra_files.  Handle correctly.
12568
12569 2011-04-05  Eric Blake  <eblake@redhat.com>
12570
12571         bootstrap: preserve git whitelist item sorting
12572         * build-aux/bootstrap (sort_patterns): New function.
12573         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
12574
12575 2011-04-05  Simon Josefsson  <simon@josefsson.org>
12576
12577         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
12578         sc_space_tab check.
12579
12580 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
12581
12582         areadlink, areadlinkat: rewrite in terms of careadlinkat
12583         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
12584         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
12585         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
12586         (malloc, realloc): Remove #undefs.
12587         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
12588         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
12589         readlink, ssize_t, stdint, unistd.
12590         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
12591         areadlink, stdint.
12592
12593         careadlinkat: new module
12594         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
12595         * modules/careadlinkat: New files, written by me with
12596         a review and feedback from Ben Pfaff in
12597         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
12598
12599 2011-04-01  Bruno Haible  <bruno@clisp.org>
12600
12601         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
12602         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
12603         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
12604         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
12605         Reported by Bruce Korb <bruce.korb@gmail.com>.
12606
12607 2011-04-01  Bruno Haible  <bruno@clisp.org>
12608
12609         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
12610         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
12611         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
12612         * modules/wcpcpy (Depends-on): Add extensions.
12613         * modules/wcpncpy (Depends-on): Likewise.
12614         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
12615         systems.
12616         * doc/posix-functions/wcpncpy.texi: Likewise.
12617         * doc/posix-functions/wcwidth.texi: Likewise.
12618
12619 2011-03-31  Eric Blake  <eblake@redhat.com>
12620
12621         nonblocking: fix mingw test failures
12622         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
12623         non-blocking flag on regular file.
12624         (get_nonblocking_flag): Set errno on invalid fd.
12625         * tests/test-nonblocking.c (main): Avoid test failure on
12626         directories if fchdir is not active.
12627         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
12628
12629 2011-03-31  Bruno Haible  <bruno@clisp.org>
12630
12631         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
12632         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
12633         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
12634         Reported by Simon Josefsson <simon@josefsson.org>.
12635
12636 2011-03-31  Bruno Haible  <bruno@clisp.org>
12637         and Eric Blake  <eblake@redhat.com>
12638
12639         nonblocking: new module
12640         * modules/nonblocking: New module.
12641         * modules/nonblocking-tests: Likewise.
12642         * lib/nonblocking.h: New file.
12643         * lib/nonblocking.c: Likewise.
12644         * tests/test-nonblocking.c: New test.
12645         * lib/ioctl.c (ioctl) [mingw]: Update comment.
12646
12647 2011-03-30  Bruno Haible  <bruno@clisp.org>
12648
12649         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
12650         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
12651         instead of 'printf' format for GCC >= 4.4.
12652         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
12653         (fprintf, printf, vfprintf, vprintf): Declare with
12654         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
12655         the system's vfprintf() function.
12656         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
12657
12658 2011-03-30  Eric Blake  <eblake@redhat.com>
12659
12660         passfd: fix scoping bug
12661         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
12662         before sendmsg/recvmsg.
12663
12664         passfd: standardize coding conventions
12665         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
12666         can be learned at compile time.
12667         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
12668         ifdefs.
12669         (sendfd, recvfd): Follow gnulib code conventions.
12670
12671         passfd: fix incorrect sendmsg arguments
12672         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
12673         incorrect msg_controllen value.
12674         * modules/passfd-tests (Depends-on): Check for alarm.
12675         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
12676         Reported by Bastien ROUCARIES.
12677
12678 2011-03-30  Bruno Haible  <bruno@clisp.org>
12679
12680         c-strcasestr: Relicense under LGPLv2+.
12681         * modules/c-strcasestr (License): Change to LGPLv2+.
12682         Requested by Eric Blake, for libvirt.
12683
12684 2011-03-30  Simon Josefsson  <simon@josefsson.org>
12685
12686         * users.txt: Add libidn2.  Fix libtasn1 link.
12687
12688 2011-03-30  Jim Meyering  <meyering@redhat.com>
12689
12690         tests: readlink* ("",... fails with EINVAL on newer kernels
12691         readlink and readlinkat have typically failed with ENOENT for
12692         the invalid, empty file name,  "".  However, with the advent
12693         of linux-2.6.39, they fail with EINVAL.
12694         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
12695         when operating on the empty file name.
12696         * tests/test-readlink.h (test_readlink): Likewise.
12697
12698 2011-03-29  Bruno Haible  <bruno@clisp.org>
12699
12700         Relicense some modules under LGPLv2+, for libidn2.
12701         * modules/array-mergesort (License): Change to LGPLv2+.
12702         * modules/c-strcaseeq (License): Likewise.
12703         * modules/striconveh (License): Likewise.
12704         * modules/striconveha (License): Likewise.
12705         * modules/uniconv/base (License): Likewise.
12706         * modules/uniconv/u8-conv-from-enc (License): Likewise.
12707         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
12708         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
12709         * modules/unictype/base (License): Likewise.
12710         * modules/unictype/bidiclass-of (License): Likewise.
12711         * modules/unictype/category-M (License): Likewise.
12712         * modules/unictype/category-none (License): Likewise.
12713         * modules/unictype/category-of (License): Likewise.
12714         * modules/unictype/category-test (License): Likewise.
12715         * modules/unictype/category-test-withtable (License): Likewise.
12716         * modules/unictype/combining-class (License): Likewise.
12717         * modules/unictype/joiningtype-of (License): Likewise.
12718         * modules/unictype/scripts (License): Likewise.
12719         * modules/uninorm/base (License): Likewise.
12720         * modules/uninorm/canonical-decomposition (License): Likewise.
12721         * modules/uninorm/composition (License): Likewise.
12722         * modules/uninorm/decompose-internal (License): Likewise.
12723         * modules/uninorm/decomposition-table (License): Likewise.
12724         * modules/uninorm/nfc (License): Likewise.
12725         * modules/uninorm/nfd (License): Likewise.
12726         * modules/uninorm/u32-normalize (License): Likewise.
12727         * modules/unistr/base (License): Likewise.
12728         * modules/unistr/u32-cpy (License): Likewise.
12729         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
12730         * modules/unistr/u32-to-u8 (License): Likewise.
12731         * modules/unistr/u32-uctomb (License): Likewise.
12732         * modules/unistr/u8-check (License): Likewise.
12733         * modules/unistr/u8-mblen (License): Likewise.
12734         * modules/unistr/u8-mbtouc (License): Likewise.
12735         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
12736         * modules/unistr/u8-mbtoucr (License): Likewise.
12737         * modules/unistr/u8-prev (License): Likewise.
12738         * modules/unistr/u8-strlen (License): Likewise.
12739         * modules/unistr/u8-to-u32 (License): Likewise.
12740         * modules/unistr/u8-uctomb (License): Likewise.
12741         * modules/unitypes (License): Likewise.
12742         Requested by Simon Josefsson.
12743
12744 2011-03-29  Simon Josefsson  <simon@josefsson.org>
12745
12746         lib-symbol-visibility: Add a notice.
12747         * modules/lib-symbol-visibility (Notice): New field.
12748
12749 2011-03-29  Bruno Haible  <bruno@clisp.org>
12750
12751         getaddrinfo: Doc fix.
12752         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
12753         section "fixed in Gnulib".
12754
12755 2011-03-28  Simon Josefsson  <simon@josefsson.org>
12756
12757         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
12758         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
12759
12760 2011-03-26  Bruno Haible  <bruno@clisp.org>
12761
12762         unictype/property-byname: Reduce the number of load-time relocations.
12763         * lib/unictype/pr_byname.c: Include <stdlib.h>.
12764         (UC_PROPERTY_INDEX_*): New enumeration values.
12765         (uc_property_byname): Convert an index from the lookup table to an
12766         uc_property_t.
12767         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
12768         values.
12769
12770 2011-03-26  Bruno Haible  <bruno@clisp.org>
12771
12772         unictype/property-byname: Allow omitted word separators and aliases.
12773         * lib/unictype/pr_byname.gperf: Add property names without word
12774         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
12775         for 'space'.
12776
12777 2011-03-26  Bruno Haible  <bruno@clisp.org>
12778
12779         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
12780         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
12781         also hyphens to space.
12782         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
12783         without spaces.
12784         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
12785
12786 2011-03-26  Bruno Haible  <bruno@clisp.org>
12787
12788         unictype/joiningtype-byname: Recognize long names as well.
12789         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
12790         a long name.
12791         * lib/unictype/joiningtype_byname.c: Include <string.h>,
12792         unictype/joiningtype_byname.h.
12793         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
12794         * lib/unictype/joiningtype_byname.gperf: New file.
12795         * modules/unictype/joiningtype-byname (Files): Add
12796         lib/unictype/joiningtype_byname.gperf.
12797         (Depends-on): Add gperf.
12798         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
12799         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
12800         long names.
12801
12802         Tests for module 'unictype/joiningtype-longname'.
12803         * modules/unictype/joiningtype-longname-tests: New file.
12804         * tests/unictype/test-joiningtype_longname.c: New file.
12805
12806         New module 'unictype/joiningtype-longname'.
12807         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
12808         * lib/unictype/joiningtype_longname.c: New file.
12809         * modules/unictype/joiningtype-longname: New file.
12810         * modules/unictype/joiningtype-all (Depends-on): Add
12811         unictype/joiningtype-longname.
12812
12813 2011-03-26  Bruno Haible  <bruno@clisp.org>
12814
12815         unictype/bidiclass-byname: Recognize long names as well.
12816         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
12817         name.
12818         * lib/unictype/bidi_byname.c: Include <string.h>,
12819         unictype/bidi_byname.h.
12820         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
12821         * lib/unictype/bidi_byname.gperf: New file.
12822         * modules/unictype/bidiclass-byname (Files): Add
12823         lib/unictype/bidi_byname.gperf.
12824         (Depends-on): Add gperf.
12825         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
12826         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
12827         long names.
12828
12829         Tests for module 'unictype/bidiclass-longname'.
12830         * modules/unictype/bidiclass-longname-tests: New file.
12831         * tests/unictype/test-bidi_longname.c: New file.
12832
12833         New module 'unictype/bidiclass-longname'.
12834         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
12835         * lib/unictype/bidi_longname.c: New file.
12836         * modules/unictype/bidiclass-longname: New file.
12837         * modules/unictype/bidiclass-all (Depends-on): Add
12838         unictype/bidiclass-longname.
12839
12840 2011-03-26  Bruno Haible  <bruno@clisp.org>
12841
12842         unictype/bidi*: Rename modules.
12843         * modules/unictype/bidiclass-all: Renamed from
12844         modules/unictype/bidicategory-all.
12845         * modules/unictype/bidiclass-name: Renamed from
12846         modules/unictype/bidiclass-name.
12847         (Description): Update.
12848         * modules/unictype/bidiclass-name-tests: Renamed from
12849         modules/unictype/bidicategory-name-tests.
12850         * modules/unictype/bidiclass-byname: Renamed from
12851         modules/unictype/bidicategory-byname.
12852         (Description): Update.
12853         * modules/unictype/bidiclass-byname-tests: Renamed from
12854         modules/unictype/bidicategory-byname-tests.
12855         * modules/unictype/bidiclass-of: Renamed from
12856         modules/unictype/bidicategory-of.
12857         (Description): Update.
12858         * modules/unictype/bidiclass-of-tests: Renamed from
12859         modules/unictype/bidicategory-of-tests.
12860         * modules/unictype/bidiclass-test: Renamed from
12861         modules/unictype/bidicategory-test.
12862         (Description): Update.
12863         * modules/unictype/bidiclass-test-tests: Renamed from
12864         modules/unictype/bidicategory-test-tests.
12865         * modules/unictype/bidicategory-all: New file, a simple redirection.
12866         * modules/unictype/bidicategory-name: Likewise.
12867         * modules/unictype/bidicategory-byname: Likewise.
12868         * modules/unictype/bidicategory-of: Likewise.
12869         * modules/unictype/bidicategory-test: Likewise.
12870         * modules/unictype/property-bidi-* (Dependencies): Update.
12871         * lib/unictype/bidi_*.c: Update comment.
12872
12873 2011-03-26  Bruno Haible  <bruno@clisp.org>
12874
12875         unictype/bidi*: Rename functions, part 2.
12876         * modules/unictype/bidicategory-name (configure.ac): Update required
12877         libunistring version.
12878         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
12879
12880 2011-03-25  Bruno Haible  <bruno@clisp.org>
12881
12882         New module 'unictype/combining-class-all'.
12883         * modules/unictype/combining-class-all: New file.
12884
12885         Tests for module 'unictype/combining-class-byname'.
12886         * modules/unictype/combining-class-byname-tests: New file.
12887         * tests/unictype/test-combiningclass_byname.c: New file.
12888
12889         New module 'unictype/combining-class-byname'.
12890         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
12891         * lib/unictype/combiningclass_byname.c: New file.
12892         * lib/unictype/combiningclass_byname.gperf: New file.
12893         * modules/unictype/combining-class-byname: New file.
12894
12895         Tests for module 'unictype/combining-class-longname'.
12896         * modules/unictype/combining-class-longname-tests: New file.
12897         * tests/unictype/test-combiningclass_longname.c: New file.
12898
12899         New module 'unictype/combining-class-longname'.
12900         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
12901         * lib/unictype/combiningclass_longname.c: New file.
12902         * modules/unictype/combining-class-longname: New file.
12903
12904         Tests for module 'unictype/combining-class-name'.
12905         * modules/unictype/combining-class-name-tests: New file.
12906         * tests/unictype/test-combiningclass_name.c: New file.
12907
12908         New module 'unictype/combining-class-name'.
12909         * lib/unictype.in.h (uc_combining_class_name): New declaration.
12910         * lib/unictype/combiningclass_name.c: New file.
12911         * modules/unictype/combining-class-name: New file.
12912
12913 2011-03-25  Bruno Haible  <bruno@clisp.org>
12914
12915         unictype/combining-class: Rename source files.
12916         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
12917         of unictype/combining.h.
12918         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
12919         Update.
12920         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
12921         * modules/unictype/combining-class (Description): Fix.
12922         (Files, Makefile.am): Update.
12923         * tests/unictype/test-combiningclass.c: Renamed from
12924         tests/unictype/test-combining.c.
12925         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
12926
12927 2011-03-25  Bruno Haible  <bruno@clisp.org>
12928
12929         unictype: Update list of canonical combining classes.
12930         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
12931
12932 2011-03-25  Bruno Haible  <bruno@clisp.org>
12933
12934         unictype/category-byname: Recognize long names as well.
12935         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
12936         a long name.
12937         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
12938         unictype/categ_byname.h.
12939         (UC_CATEGORY_INDEX_*): New enumeration values.
12940         (uc_general_category_byname): Use uc_general_category_lookup and
12941         convert from index to value.
12942         * lib/unictype/categ_byname.gperf: New file.
12943         * modules/unictype/category-byname (Files): Add
12944         lib/unictype/categ_byname.gperf.
12945         (Depends-on): Add gperf.
12946         (Makefile.am): Add rule for generating unictype/categ_byname.h.
12947         * tests/unictype/test-categ_byname.c (main): Test the recognition of
12948         long names.
12949
12950         Tests for module 'unictype/category-longname'.
12951         * modules/unictype/category-longname-tests: New file.
12952         * tests/unictype/test-categ_longname.c: New file.
12953
12954         New module 'unictype/category-longname'.
12955         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
12956         * lib/unictype/categ_longname.c: New file.
12957         * modules/unictype/category-longname: New file.
12958         * modules/unictype/category-all (Depends-on): Add it.
12959
12960 2011-03-25  Bruno Haible  <bruno@clisp.org>
12961
12962         Tests for module 'unictype/category-LC'.
12963         * modules/unictype/category-LC-tests: New file.
12964         * tests/unictype/test-categ_LC.c: New file, automatically generated.
12965
12966         New module 'unictype/category-LC'.
12967         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
12968         (UC_CATEGORY_LC): New declaration.
12969         (UC_CASED_LETTER): New macro.
12970         * lib/gen-uni-tables.c (is_category_LC): New function.
12971         (output_categories): Also handle category LC.
12972         (UC_CATEGORY_MASK_LC): New enumeration value.
12973         (general_category_byname): Also handle category LC.
12974         * lib/unictype/categ_LC.c: New file.
12975         * lib/unictype/categ_LC.h: New file, automatically generated.
12976         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
12977         category LC.
12978         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
12979         * modules/unictype/category-LC: New file.
12980         * modules/unictype/category-byname (Depends-on): Add
12981         unictype/category-LC.
12982         * modules/unictype/category-all (Depends-on): Likewise.
12983
12984 2011-03-25  Eric Blake  <eblake@redhat.com>
12985
12986         xmalloc: revert yesterday's regression
12987         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
12988         realloc's underlying behavior (allowing allocation of zero-size
12989         objects, especially if malloc-gnu is also in use).
12990
12991 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
12992
12993         maint.mk: add missing version to VC-tag
12994         * top/maint.mk: git tag was missing actual tag name; add it.
12995
12996         valgrind: do leak checking, and exit with code 1 on error (not 0)
12997         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
12998         to VALGRIND.
12999
13000 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
13001
13002         posix-modules: say what it does.
13003         * posix-modules: Add a line to the --help output saying what it does.
13004
13005 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
13006
13007         xmalloc: Do not leak if underlying realloc is C99 compatible.
13008         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
13009         This avoids a leak on C99-based systems.  See
13010         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
13011
13012 2011-03-24  Eric Blake  <eblake@redhat.com>
13013
13014         realloc: document portability problem
13015         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
13016         passing 0 size to realloc.
13017
13018 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
13019
13020         doc: update users.txt
13021         * users.txt: Add cvsps, tmpwatch
13022
13023 2011-03-23  Matt Rice  <ratmice@gmail.com>
13024
13025         doc: update users.txt
13026         * users.txt: Add gdb.
13027
13028 2011-03-23  Jim Meyering  <meyering@redhat.com>
13029
13030         doc: update users.txt
13031         Looking through matches up to the following URL (there are still
13032         several more pages), I found several projects that use gnulib:
13033         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
13034         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
13035         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
13036
13037 2011-03-22  Bruno Haible  <bruno@clisp.org>
13038
13039         unictype/bidi*: Rename functions.
13040         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
13041         uc_bidi_class, uc_is_bidi_class): New declarations.
13042         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
13043         uc_bidi_category_byname.
13044         (uc_bidi_category_byname): New function.
13045         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
13046         u_bidi_category_name.
13047         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
13048         (uc_bidi_category_name): New function.
13049         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
13050         uc_bidi_category.
13051         (uc_bidi_category): New function.
13052         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
13053         uc_is_bidi_category. Invoke uc_bidi_class.
13054         (uc_is_bidi_category): New function.
13055         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
13056         instead of uc_bidi_category_byname.
13057         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
13058         instead of uc_bidi_category_name.
13059         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
13060         uc_bidi_category.
13061         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
13062         instead of uc_is_bidi_category.
13063
13064 2011-03-21  Bruno Haible  <bruno@clisp.org>
13065
13066         New module 'unictype/joininggroup-all'.
13067         * modules/unictype/joininggroup-all: New file.
13068
13069         Tests for module 'unictype/joininggroup-of'.
13070         * modules/unictype/joininggroup-of-tests: New file.
13071         * tests/unictype/test-joininggroup_of.c: New file.
13072         * tests/unictype/test-joininggroup_of.h: New file, automatically
13073         generated by gen-uni-tables.
13074
13075         New module 'unictype/joininggroup-of'.
13076         * modules/unictype/joininggroup-of: New file.
13077         * lib/unictype/joininggroup_of.c: New file.
13078         * lib/unictype/joininggroup_of.h: New file, automatically generated by
13079         gen-uni-tables.
13080
13081         Tests for module 'unictype/joininggroup-byname'.
13082         * modules/unictype/joininggroup-byname-tests: New file.
13083         * tests/unictype/test-joininggroup_byname.c: New file.
13084
13085         New module 'unictype/joininggroup-byname'.
13086         * modules/unictype/joininggroup-byname: New file.
13087         * lib/unictype/joininggroup_byname.c: New file.
13088         * lib/unictype/joininggroup_byname.gperf: New file.
13089
13090         Tests for module 'unictype/joininggroup-name'.
13091         * modules/unictype/joininggroup-name-tests: New file.
13092         * tests/unictype/test-joininggroup_name.c: New file.
13093
13094         New module 'unictype/joininggroup-name'.
13095         * modules/unictype/joininggroup-name: New file.
13096         * lib/unictype/joininggroup_name.c: New file.
13097         * lib/unictype/joininggroup_name.h: New file.
13098
13099         New module 'unictype/joiningtype-all'.
13100         * modules/unictype/joiningtype-all: New file.
13101
13102         Tests for module 'unictype/joiningtype-of'.
13103         * modules/unictype/joiningtype-of-tests: New file.
13104         * tests/unictype/test-joiningtype_of.c: New file.
13105         * tests/unictype/test-joiningtype_of.h: New file, automatically
13106         generated by gen-uni-tables.
13107
13108         New module 'unictype/joiningtype-of'.
13109         * modules/unictype/joiningtype-of: New file.
13110         * lib/unictype/joiningtype_of.c: New file.
13111         * lib/unictype/joiningtype_of.h: New file, automatically generated by
13112         gen-uni-tables.
13113
13114         Tests for module 'unictype/joiningtype-byname'.
13115         * modules/unictype/joiningtype-byname-tests: New file.
13116         * tests/unictype/test-joiningtype_byname.c: New file.
13117
13118         New module 'unictype/joiningtype-byname'.
13119         * modules/unictype/joiningtype-byname: New file.
13120         * lib/unictype/joiningtype_byname.c: New file.
13121
13122         Tests for module 'unictype/joiningtype-name'.
13123         * modules/unictype/joiningtype-name-tests: New file.
13124         * tests/unictype/test-joiningtype_name.c: New file.
13125
13126         New module 'unictype/joiningtype-name'.
13127         * modules/unictype/joiningtype-name: New file.
13128         * lib/unictype/joiningtype_name.c: New file.
13129
13130         unictype: Add support for Arabic shaping properties.
13131         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
13132         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
13133         declarations.
13134         (UC_JOINING_GROUP_*): New enumeration values.
13135         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
13136         declarations.
13137         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
13138         (unicode_joining_type): New variable.
13139         (UC_JOINING_GROUP_*): New enumeration values.
13140         (unicode_joining_group): New variable.
13141         (fill_arabicshaping, joining_type_as_c_identifier,
13142         output_joining_type_test, output_joining_type,
13143         joining_group_as_c_identifier, output_joining_group_test,
13144         output_joining_group): New functions.
13145         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
13146         fill_arabicshaping and output_joining_type_test, output_joining_type,
13147         output_joining_group_test, output_joining_group.
13148         Reported by Simon Josefsson.
13149
13150 2011-03-21  Jim Meyering  <meyering@redhat.com>
13151
13152         strftime: fix a bug in yesterday's change
13153         * lib/strftime.c (add): Accommodate width's initial value of -1.
13154         Otherwise, nstrftime would copy uninitialized data into
13155         the result buffer.
13156
13157 2011-03-21  Jim Meyering  <meyering@redhat.com>
13158
13159         tests: add strftime-tests module
13160         * tests/test-strftime.c: New file.
13161         * modules/strftime-tests: New module.
13162
13163 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
13164
13165         strftime: don't assume a byte count fits in 'int'
13166         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
13167         found this problem by static analysis, using gcc -Wstrict-overflow
13168         (GCC 4.5.2, x86-64).  This reported an optimization that depended
13169         on an integer overflow having undefined behavior, but it turns out
13170         that the argument is a size, which might not fit in 'int' anyway,
13171
13172 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
13173
13174         stdio: don't require ignore_value around fwrite
13175
13176         This patch works around libc bug 11959
13177         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
13178         Without this patch, applications must often write
13179         ignore_value (fwrite (...)) even though the ignore_value is
13180         not helpful here.  It's common to write many objects, using
13181         fwrite/printf/etc., and then use ferror to detect output error.
13182
13183         I considered making this patch optional, but decided against it,
13184         because libc is obviously being inconsistent here: there is no
13185         reason libc should insist that user code must inspect fwrite
13186         return's value without also insisting that it inspect printf's,
13187         putchar's, etc.  If user code wants to have a strict style where
13188         all these functions' values are checked (so that ferror need not
13189         be checked), we could add support for that style in a new gnulib
13190         module, but in the meantime it's better to be consistent and to
13191         support common usage.
13192
13193         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
13194         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
13195         that we are compiling in checking mode, and if not C++, and
13196         if not already wrapping fwrite for some other reason.
13197         (fwrite): #define to rpl_fwrite if the latter is defined.
13198
13199 2011-03-20  Bruno Haible  <bruno@clisp.org>
13200
13201         verror: Fix compilation error introduced on 2011-02-13.
13202         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
13203         instead of __attribute__.
13204         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13205
13206 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
13207             Bruno Haible  <bruno@clisp.org>
13208
13209         socklen: do not depend on sys_socket
13210         While trying to modify Emacs to use gnulib's socklen module,
13211         I discovered a circular dependency: socklen depends on sys_socket
13212         and vice versa.  Emacs can use socklen, but it does not need
13213         sys_socket because it has its own substitute for sys/socket.h.
13214         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
13215         gl_TYPE_SOCKLEN_T.
13216         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
13217         gl_PREREQ_SYS_H_SOCKET.
13218         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
13219         gl_PREREQ_SYS_H_SOCKET.
13220         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
13221         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
13222         * modules/socklen (Depends-on): Do not depend on sys_socket.
13223         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
13224
13225 2011-03-20  Jim Meyering  <meyering@redhat.com>
13226
13227         maint.mk: sort file names *after* new transformation
13228         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
13229         prefix would have led to an unwarranted failure in GNU parted.
13230         Sort after that transformation.
13231
13232 2011-03-19  Jim Meyering  <meyering@redhat.com>
13233
13234         maint.mk: fix po-file syntax-check rule
13235         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
13236         Patch by Bruno Haible.
13237
13238 2011-03-19  Bruno Haible  <bruno@clisp.org>
13239
13240         socklen: Update comment.
13241         * m4/socklen.m4: Update comment about platforms.
13242
13243 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
13244             Bruno Haible  <bruno@clisp.org>
13245
13246         inet_ntop, inet_pton: Simplify.
13247         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
13248         documented to provide socklen_t and we already depend on sys_socket.
13249         * modules/inet_pton (Depends-on): Likewise.
13250         * lib/arpa_inet.in.h: Adjust comment.
13251
13252 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
13253             Bruno Haible  <bruno@clisp.org>
13254
13255         netdb: Simplify.
13256         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
13257         documented to provide socklen_t and we already depend on sys_socket.
13258         * lib/netdb.in.h: Adjust comment.
13259
13260 2011-03-19  Bruno Haible  <bruno@clisp.org>
13261
13262         sys_socket, netdb: Document problem with socklen_t.
13263         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
13264         platforms.
13265         * doc/posix-headers/netdb.texi: Likewise.
13266
13267 2011-03-18  Eric Blake  <eblake@redhat.com>
13268
13269         maint.mk: let po check work in VPATH build
13270         * top/maint.mk (po_file): Allow cfg.mk override.
13271         (sc_po_check): Allow VPATH use.
13272         Reported by Jiri Denemark.
13273
13274 2011-03-16  Jim Meyering  <meyering@redhat.com>
13275
13276         maint.mk: allow fine-grained syntax-check exclusion via Make variables
13277         Before, you would have had to create one .x-sc_ file per rule in order
13278         to exempt offending files.  Now, you may instead use a Make variable --
13279         usually defined in cfg.mk -- whose name identifies the affected rule.
13280         * top/maint.mk (_sc_excl): Define.
13281         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
13282         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
13283
13284 2011-03-13  Bruno Haible  <bruno@clisp.org>
13285
13286         ignore-value tests: Avoid warnings.
13287         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
13288         empty for gcc < 3.4.
13289
13290 2011-03-13  Bruno Haible  <bruno@clisp.org>
13291
13292         passfd: Fix link error on Solaris.
13293         * modules/passfd (Description): Correct.
13294         (Depends-on): Add socketlib.
13295         (Link): New section.
13296         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
13297
13298 2011-03-13  Bruno Haible  <bruno@clisp.org>
13299
13300         passfd: Fix link error on AIX 5.2.
13301         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
13302
13303 2011-03-13  Bruno Haible  <bruno@clisp.org>
13304
13305         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
13306         * lib/sys_socket.in.h: Include <stddef.h>.
13307         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
13308         CMSG_FIRSTHDR. Remove unused variable.
13309
13310 2011-03-13  Bruno Haible  <bruno@clisp.org>
13311
13312         passfd: Fix compilation error on OpenBSD.
13313         * lib/passfd.c: Include <sys/uio.h>.
13314
13315 2011-03-13  Bruno Haible  <bruno@clisp.org>
13316
13317         passfd test: Fix warnings.
13318         * tests/test-passfd.c: Include <sys/wait.h>.
13319         (main): Fix typo.
13320
13321 2011-03-13  Bruno Haible  <bruno@clisp.org>
13322
13323         passfd module, part 4, tweaks.
13324         * tests/test-passfd.c: Reorder includes.
13325         (main): Fix perror and printf calls.
13326
13327 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
13328
13329         passfd module, part 4.
13330         * modules/passfd-tests: New file.
13331         * tests/test-passfd.c: New file.
13332
13333 2011-03-13  Jim Meyering  <meyering@redhat.com>
13334
13335         Makefile: rely on GNU make; derive syntax-check rule names
13336         Rather than requiring that each sc_ rule be listed as a dependent
13337         of "check", use features of GNU make to derive the list.
13338         * Makefile (syntax-check-rules): Define.
13339         (check): Depend on the new variable, not the hard-coded list.
13340
13341 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
13342             Bruno Haible  <bruno@clisp.org>
13343
13344         passfd module, part 3.
13345         * lib/passfd.h (recvfd): Add a flags argument.
13346         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
13347         (recvfd): Add a flags argument.
13348         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
13349         exists.
13350         * modules/passfd (Depends-on): Add cloexec.
13351         Suggested by Eric Blake.
13352
13353 2011-03-13  Bruno Haible  <bruno@clisp.org>
13354
13355         passfd module, part 2, tweaks.
13356         * modules/passfd (Files): Reorder.
13357         (Depends-on): Remove errno.
13358         (Include): Remove <sys/socket.h>, <sys/un.h>.
13359         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
13360         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
13361         specification header. Include <sys/socket.h> always. Don't include
13362         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
13363         (sendfd): Clarify that it sets errno when it fails.
13364         (recvfd): Fix specification.
13365
13366 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
13367
13368         passfd module, part 2.
13369         * modules/passfd: New file.
13370         * lib/passfd.h: New file.
13371         * lib/passfd.c: New file.
13372
13373 2011-03-12  Bruno Haible  <bruno@clisp.org>
13374
13375         wcswidth, mbswidth: Avoid integer overflow.
13376         * lib/wcswidth.c: Include <limits.h>.
13377         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
13378         * lib/mbswidth.c: Include <limits.h>.
13379         (mbsnwidth): Avoid 'int' overflow.
13380         Reported by Jim Meyering.
13381
13382 2011-03-12  Bruno Haible  <bruno@clisp.org>
13383
13384         futimens, utimensat: Avoid endless recursion on Solaris 10.
13385         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
13386         Solaris.
13387         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
13388         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
13389
13390 2011-03-11  Jim Meyering  <meyering@redhat.com>
13391
13392         maint.mk: relax a regexp to accommodate other formatting styles
13393         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
13394         between "ngettext" and the following "(".
13395
13396 2011-03-11  Pádraig Brady <P@draigBrady.com>
13397
13398         maint.mk: suppress a false positive warning
13399         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
13400         diagnostics are marked with ngettext.
13401
13402 2011-03-10  Eric Blake  <eblake@redhat.com>
13403
13404         wchar: add explicit dependencies, for Tru64
13405         * modules/mbmemcasecoll (Depends-on): Add wchar.
13406         * modules/mbtowc (Depends-on): Likewise.
13407         * modules/vasnprintf (Depends-on): Likewise.
13408         * modules/unistdio/u-printf-args (Depends-on): Likewise.
13409         * modules/wctomb (Depends-on): Likewise.
13410         Reported by Peter O'Gorman.
13411
13412 2011-03-08  Bruno Haible  <bruno@clisp.org>
13413
13414         passfd module, part 1, tweaks.
13415         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
13416         Improve indentation. Improve AC_MSG_CHECKING messages.
13417         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
13418         gl_SOCKET_FAMILIES.
13419
13420 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
13421
13422         passfd module, part 1.
13423         * m4/afunix.m4: New file.
13424         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
13425         sockets.
13426
13427 2011-03-08  Bruno Haible  <bruno@clisp.org>
13428
13429         regex-quote: New API.
13430         * lib/regex-quote.h: Include <stdbool.h>.
13431         (struct regex_quote_spec): New type.
13432         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
13433         New declarations.
13434         (regex_quote_length, regex_quote_copy, regex_quote): Take a
13435         'const struct regex_quote_spec *' argument.
13436         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
13437         (pcre_special): New constant.
13438         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
13439         New functions.
13440         (regex_quote_length, regex_quote_copy, regex_quote): Take a
13441         'const struct regex_quote_spec *' argument.
13442         * modules/regex-quote (Depends-on): Add stdbool.
13443         * tests/test-regex-quote.c (check): Update for new API. Add test for
13444         anchored results.
13445         * NEWS: Mention the API change.
13446         Reported by Reuben Thomas and Eric Blake.
13447
13448 2011-03-06  Bruno Haible  <bruno@clisp.org>
13449
13450         regex-quote: Fix creation of POSIX extended regular expressions.
13451         * lib/regex-quote.c (ere_special): Add grouping and alternation
13452         operators.
13453
13454 2011-03-05  Bruno Haible  <bruno@clisp.org>
13455
13456         doc: Improve doc regarding autopoint vs. gnulib.
13457         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
13458         disable autopoint while running autoreconf.
13459         Suggested by Ralf Wildenhues.
13460
13461 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13462
13463         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
13464         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
13465
13466 2011-03-03  Bruce Korb  <bkorb@gnu.org>
13467
13468         parse-duration: remove xalloc.h dependency
13469         * lib/parse-duration.c (parse_period): handle NULL return from
13470         strdup instead of calling xstrdup().
13471         * modules/parse-duration: remove "xalloc" dependency
13472
13473 2011-03-03  Matthew Booth  <mbooth@redhat.com>
13474
13475         bootstrap: honor m4_base when running aclocal
13476         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
13477
13478 2011-03-02  Jim Meyering  <meyering@redhat.com>
13479
13480         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
13481         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
13482         on request from Matt Booth.
13483
13484 2011-03-01  Eric Blake  <eblake@redhat.com>
13485
13486         test-link: work on Hurd
13487         * tests/test-link.h (test_link): Hurd rejects linking directories
13488         with EISDIR instead of the POSIX-mandated EPERM.
13489
13490 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
13491
13492         stdio: simplify by moving files to printf-posix, sigpipe
13493         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
13494         since this symbol is needed only if printf is replaced.
13495         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
13496         Require gl_ASM_SYMBOL_PREFIX.
13497         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
13498         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
13499         (Depends-on): Add 'raise'.
13500         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
13501         * modules/stdio (Files): Remove lib/stdio-write.c,
13502         m4/asm-underscore.m4.
13503         (Depends-on): Remove 'raise'.
13504
13505         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
13506         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
13507         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
13508         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
13509
13510 2011-02-28  Bruno Haible  <bruno@clisp.org>
13511
13512         localcharset: Assume ANSI C behaviour of free().
13513         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
13514         calling free().
13515         Suggested by Simon Josefsson <simon@josefsson.org>.
13516
13517 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
13518             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
13519             Bruno Haible  <bruno@clisp.org>  (tiny change)
13520
13521         On Cygwin, use /proc file system instead of win32 API.
13522         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
13523         Win32 file names.
13524         (DllMain): Simplify by removing Cygwin specific code.
13525         (find_shared_library_fullname): Use Linux specific implementation also
13526         for Cygwin.
13527         (get_shared_library_fullname): Update accordingly.
13528         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
13529         Win32 file names.
13530         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
13531         Cygwin specific code.
13532
13533 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
13534             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
13535
13536         Fix OpenMP flag detection for various Fortran compilers.
13537         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
13538         OpenMP-conditional compilation construct, to force compile
13539         failure with missing OpenMP flag.
13540         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
13541
13542 2011-02-25  Eric Blake  <eblake@redhat.com>
13543
13544         strstr: expand test coverage
13545         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
13546         compilation.
13547         * tests/test-memmem.c (main): Duplicate tests.
13548         * tests/test-strcasestr.c (main): Likewise.
13549         * tests/test-c-strcasestr.c (main): Likewise.
13550
13551 2011-02-25  Jim Meyering  <meyering@redhat.com>
13552
13553         maint.mk: detect missing-NL-at-EOF, too
13554         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
13555         it also detects when a file lacks a newline at EOF.
13556         (require_exactly_one_NL_at_EOF_): Renamed from
13557         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
13558         since people may well have .x-sc_... file names tied to the
13559         existing name.  Suggested by Eric Blake.
13560
13561 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
13562
13563         dirname: move m4/dos.m4 functionality into lib/dosname.h
13564
13565         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
13566         extracts symbols from it, puts them into config.h; but it's much
13567         easier to use the symbols directly.  filename.h already does this,
13568         but it disagrees with dos.m4 in some respects.  This patch
13569         introduces a different include file dosname.h that packages up
13570         dos.m4, and then later we can work on merging filename.h and
13571         dosname.h.  Applications that need only the easy-to-configure
13572         symbols should consider including dosname.h rather than dirname.h.
13573         * NEWS: Mention incompatible changes.
13574         * m4/dos.m4: Remove.
13575         * lib/dosname.h, modules/dosname: New files.
13576         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
13577         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
13578         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
13579         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
13580         Include dosname.h, not dirname.h.
13581         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
13582         Include dosname.h, for definitions of symbols like ISSLASH
13583         that used to be in config.h.
13584         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
13585         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
13586         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
13587         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
13588         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
13589         * modules/rmdir (Files): Likewise.
13590         * modules/stat (Files): Likewise.
13591         * modules/unlink (Files): Likewise.
13592         * modules/dirname-lgpl (Depends-on): Add dosname.
13593         * modules/lstat (Depends-on): Likewise.
13594         * modules/openat (Depends-on): Likewise.
13595         * modules/rmdir (Depends-on): Likewise.
13596         * modules/savewd (Depends-on): Likewise.
13597         * modules/stat (Depends-on): Likewise.
13598         * modules/unlink (Depends-on): Likewise.
13599         * modules/openat (Depends-on): Remove dirname-lgpl.
13600         * modules/savewd (Depends-on): Likewise.
13601         * tests/test-dirname.c: Do not use removed symbols like
13602         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
13603         the remaining symbols, e.g., ISSLASH ('\\').
13604
13605 2011-02-25  Eric Blake  <eblake@redhat.com>
13606
13607         strstr: revert patches that introduced bug and pessimization
13608         * lib/str-two-way.h: Add another reference.
13609         (two_way_short_needle, two_way_long_needle): Revert changes from
13610         2011-02-24; they pessimize search speed.
13611         (critical_factorization): Partially revert changes from
13612         2010-06-22; they violate the requirement that the left half of the
13613         needle be smaller than the period of the needle.
13614
13615 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
13616
13617         filenamecat: remove unnecessary dependency on dirname-lgpl
13618         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
13619         is no direct dependency, just an indirect one via filenamecat-lgpl.
13620
13621         remove: remove unnecessary use of m4/dos.m4
13622         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
13623         * modules/remove (FILES): Remove m4/dos.m4.
13624
13625         * lib/openat-proc.c: Don't include dirname.h; not needed.
13626
13627         backupfile: remove unnecessary use of m4/dos.m4
13628         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
13629         of its symbols are used by the backupfile code.  backupfile.c does
13630         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
13631         for the rare case of programs that want all their backup file
13632         names to live within 8+3 limits, and dos.m4 doesn't address that.
13633         * modules/backupfile (Files): Remove m4/dos.m4.
13634
13635 2011-02-24  Jim Meyering  <meyering@redhat.com>
13636
13637         strstr: fix a bug whereby strstr would mistakenly return NULL
13638         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
13639         in period calculation.
13640         (two_way_long_needle): Likewise.
13641         The original problem was reported by Mike Stump in
13642         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
13643         Ralf Wildenhues provided the short needle and haystack.
13644         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
13645         Add a more involved test to trigger the bug in two_way_long_needle.
13646
13647 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
13648
13649         gnulib-tool: remove use of bold display in help screen
13650         * gnulib-tool (func_usage): Do not use bold display anymore in the
13651         help screen.  That was just meant to be a temporary emphasis for a
13652         backward-incompatible change.
13653
13654 2011-02-23  Bruno Haible  <bruno@clisp.org>
13655
13656         Fix misindentation of preprocessor directives.
13657         * lib/argp-namefrob.h: Reindent preprocessor directives.
13658         * lib/getopt_int.h (struct _getopt_data): Likewise.
13659         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
13660         * lib/vasnprintf.c (decode_long_double): Likewise.
13661         * tests/test-argmatch.c: Insert blank lines, for clarity.
13662         * tests/test-exclude.c: Likewise.
13663
13664 2011-02-22  Bruno Haible  <bruno@clisp.org>
13665
13666         ioctl: Fix for MacOS X in 64-bit mode.
13667         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
13668         value.
13669         Suggested by Eric Blake.
13670         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
13671
13672 2011-02-22  Jim Meyering  <meyering@redhat.com>
13673
13674         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
13675         * Makefile (sc_cpp_indent_check): Don't limit the check to files
13676         in lib/.
13677
13678 2011-02-22  Eric Blake  <eblake@redhat.com>
13679
13680         maint: avoid any CDPATH issue
13681         * Makefile (sc_cpp_indent_check): Anchor cd argument.
13682
13683         maint: adjust cpp indentation for my modules, as well
13684         * Makefile (sc_cpp_indent_check): Add my name.
13685         * lib/fbufmode.c: Filter through cppi.
13686         * lib/fpurge.c: Likewise.
13687         * lib/freadable.c: Likewise.
13688         * lib/freading.c: Likewise.
13689         * lib/fwritable.c: Likewise.
13690         * lib/fwriting.c: Likewise.
13691         * lib/sigaction.c: Likewise.
13692
13693 2011-02-22  Jim Meyering  <meyering@redhat.com>
13694
13695         maint: adjust cpp indentation to reflect nesting depth
13696         I.e., in a block of code that begins with an unnested "#if",
13697         put one space between the "#" in column 1 and following token.
13698         For example,
13699         -#include <sys/vfs.h>
13700         +# include <sys/vfs.h>
13701         Do this only in .c files that are part of a module I maintain.
13702         * lib/linkat.c: Filter through cppi.
13703         * lib/nanosleep.c: Likewise.
13704         * lib/openat.c: Likewise.
13705         * lib/openat-die.c: Likewise.
13706         * lib/dup3.c: Likewise.
13707         * lib/fchownat.c: Likewise.
13708         * lib/flock.c: Likewise.
13709         * lib/fsync.c: Likewise.
13710         * lib/fts.c: Likewise.
13711         * lib/getpass.c: Likewise.
13712         * lib/gettimeofday.c: Likewise.
13713         * lib/userspec.c: Likewise.
13714         * Makefile (sc_cpp_indent_check): New rule, to check this.
13715
13716 2011-02-22  Bruno Haible  <bruno@clisp.org>
13717
13718         New module 'wctomb'.
13719         * lib/stdlib.in.h (wctomb): New declaration.
13720         * lib/wctomb.c: New file.
13721         * lib/wctomb-impl.h: New file.
13722         * m4/wctomb.m4: New file.
13723         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
13724         REPLACE_WCTOMB.
13725         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
13726         REPLACE_WCTOMB.
13727         * modules/wctomb: New file.
13728         * tests/test-stdlib-c++.cc: Test signature of wctomb.
13729         * doc/posix-functions/wctomb.texi: Mention the new module.
13730         * modules/wctob (Depends-on): Add wctomb.
13731
13732 2011-02-22  Bruno Haible  <bruno@clisp.org>
13733
13734         New module 'mbtowc'.
13735         * lib/stdlib.in.h (mbtowc): New declaration.
13736         * lib/mbtowc.c: New file.
13737         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
13738         * m4/mbtowc.m4: New file.
13739         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
13740         REPLACE_MBTOWC.
13741         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
13742         REPLACE_MBTOWC.
13743         * modules/mbtowc: New file.
13744         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
13745         * doc/posix-functions/mbtowc.texi: Mention the new module.
13746         * modules/btowc (Depends-on): Add mbtowc.
13747
13748 2011-02-22  Bruno Haible  <bruno@clisp.org>
13749
13750         wcrtomb: Add more tests for native Windows platforms.
13751         * tests/test-wcrtomb-w32-1.sh: New file.
13752         * tests/test-wcrtomb-w32-2.sh: New file.
13753         * tests/test-wcrtomb-w32-3.sh: New file.
13754         * tests/test-wcrtomb-w32-4.sh: New file.
13755         * tests/test-wcrtomb-w32-5.sh: New file.
13756         * tests/test-wcrtomb-w32.c: New file.
13757         * modules/wcrtomb-tests (Files): Add them.
13758         (Makefile.am): Arrange to run these tests.
13759         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
13760         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
13761
13762 2011-02-20  Bruno Haible  <bruno@clisp.org>
13763
13764         wcrtomb: Enhance test.
13765         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
13766
13767 2011-02-20  Bruno Haible  <bruno@clisp.org>
13768
13769         mbrtowc: Tiny optimization.
13770         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
13771
13772 2011-02-20  Jim Meyering  <meyering@redhat.com>
13773
13774         test-exclude.c: remove unmatched #endif
13775         * tests/test-exclude.c: Remove stray #endif, left over from
13776         the change of a week ago.
13777
13778 2011-02-19  Jim Meyering  <meyering@redhat.com>
13779
13780         git-version-gen: skip "-dirty" check when appropriate
13781         * build-aux/git-version-gen: Don't run any git commands when the
13782         version string comes from .tarball-version.  Prior to this, we
13783         would run git update-index --refresh even from a just-unpacked
13784         tarball directory, and that could affect a .git/ directory in a
13785         parent of the build directory.  Reported by Mike Frysinger.
13786
13787 2011-02-19  Bruno Haible  <bruno@clisp.org>
13788
13789         unictype/property-byname: Reduce the size of the 'data' segment.
13790         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
13791
13792 2011-02-19  Bruno Haible  <bruno@clisp.org>
13793
13794         unictype/scripts: Reduce the size of the 'data' segment.
13795         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
13796         '%pic'.
13797         * lib/unictype/scripts_byname.gperf: Regenerated.
13798
13799 2011-02-19  Bruno Haible  <bruno@clisp.org>
13800
13801         stdint: Update documentation.
13802         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
13803
13804 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
13805
13806         stdint: omit redundant check for wchar.h
13807         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
13808         always tests whether wchar.h exists, so remove the now-redundant test.
13809
13810 2011-02-18  Bruno Haible  <bruno@clisp.org>
13811
13812         stdint: Cut dependency to module 'wchar'.
13813         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
13814         include the necessary prerequisites.
13815         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
13816         * modules/stdint (Depends-on): Remove wchar.
13817         (Makefile.am): Substitute HAVE_WCHAR_H.
13818         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
13819
13820 2011-02-18  Eric Blake  <eblake@redhat.com>
13821
13822         longlong: skip, rather than fail, on cross-compilation
13823         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
13824         when cross-compiling; regression from 2011-02-16.
13825
13826 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
13827
13828         * NEWS: Mention 2011-02-08 change to stdlib.
13829
13830 2011-02-17  Bruno Haible  <bruno@clisp.org>
13831
13832         getloadavg: Add comments about platforms.
13833         * m4/getloadavg.m4: Add comment.
13834         * lib/getloadavg.c: Likewise.
13835
13836 2011-02-17  Bruno Haible  <bruno@clisp.org>
13837
13838         getloadavg: Fix link error on Solaris 2.6.
13839         * modules/getloadavg (Link): New section.
13840         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
13841         linking test-getloadavg.
13842         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
13843         getloadavg.
13844
13845 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
13846
13847         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
13848         It was 'int', but this doesn't match the IRIX 6.5 manual.
13849         Suggested by Bruno Haible in
13850         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
13851
13852 2011-02-17  Bruno Haible  <bruno@clisp.org>
13853
13854         havelib: Fix comments.
13855         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
13856         change.
13857
13858 2011-02-17  Bruno Haible  <bruno@clisp.org>
13859
13860         havelib: Update config.rpath.
13861         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
13862
13863 2011-02-17  Bruno Haible  <bruno@clisp.org>
13864
13865         getloadavg test: Add some plausibility checks.
13866         * tests/test-getloadavg.c (check_avg): Print a warning when the value
13867         is improbable.
13868
13869 2011-02-16  Eric Blake  <eblake@redhat.com>
13870
13871         maintainer-makefile: make syntax-check a no-op from tarballs
13872         * top/maint.mk (no-vc-detected): New rule.
13873         (local-checks-available): Use it to avoid hanging if someone tries
13874         'make syntax-check' from a tarball.  Also append to any non-syntax
13875         checks already defined in cfg.mk.
13876
13877 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
13878
13879         longlong: tune, particularly for common case of c99
13880
13881         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
13882         or running anything if c99, or if unsigned long long int does not
13883         work.  In either case, we know the answer without further tests.
13884         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
13885         it at most once, and use its results for both long long int and
13886         unsigned long long int.  This is more likely to be efficient in
13887         the common case where the program wants to check for both long
13888         long int and unsigned long long int.
13889         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
13890         since the answer is already known.
13891
13892 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
13893
13894         getloadavg: set errno
13895         * lib/getloadavg.c: Set errno when returning -1.  If no other
13896         error number looks appropriate, set it to ENOSYS if the getloadavg
13897         looks like it can't possibly ever work, ENOTSUP otherwise.
13898         Suggested by Bruno Haible in
13899         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
13900
13901         getloadavg: trim unused parts and speed up 'configure'
13902         * NEWS: Document this.
13903         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
13904         always compiled if getloadavg is absent.
13905         Move test code to ...
13906         * tests/test-getloadavg.c: New file, containing previous
13907         contents of test from lib/getloadavg.c.  It also contains
13908         suggestions by Bruno Haible in
13909         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
13910         * modules/getloadavg-tests: New file.
13911         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
13912         Do tests in the same order as they're needed for getloadavg.c.
13913         Omit setgid-related tests that generate symbols KMEM_GROUP,
13914         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
13915         Do only the tests that are needed to see whether the system has
13916         getloadavg, moving the other tests into ...
13917         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
13918         NLIST_NAME_UNION; nobody should be using it.  Do not define
13919         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
13920         relevant, as the user of this module shouldn't care how getloadavg
13921         is implemented.
13922
13923         getloadavg: omit unused var
13924         * lib/getloadavg.c (getloadavg): Omit unused local variable.
13925
13926 2011-02-15  Jim Meyering  <meyering@redhat.com>
13927
13928         doc: update users.txt
13929         * users.txt: Update iwhd's URL.
13930
13931 2011-02-13  Bruno Haible  <bruno@clisp.org>
13932
13933         Consistent macro naming for macros that use GCC __attribute__.
13934         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
13935         _ATTRIBUTE_NONNULL_.
13936         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
13937         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
13938         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
13939         ATTRIBUTE_DEPRECATED.
13940         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
13941         ATTRIBUTE_NORETURN.
13942         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
13943         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
13944         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
13945         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
13946         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
13947         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
13948         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
13949         ATTRIBUTE_SENTINEL.
13950         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
13951         ATTRIBUTE_RETURN_CHECK.
13952         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
13953         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
13954         ATTRIBUTE_NORETURN.
13955         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
13956         Reported by Paul Eggert.
13957
13958 2011-02-13  Bruno Haible  <bruno@clisp.org>
13959
13960         Don't interfere with a program's definition of __attribute__.
13961         * lib/argp.h (__attribute__): Remove definition.
13962         (_GL_ATTRIBUTE_FORMAT): New macro.
13963         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
13964         * lib/argp-fmtstream.h (__attribute__): Remove definition.
13965         (_GL_ATTRIBUTE_FORMAT): New macro.
13966         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
13967         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
13968         GCC 3 or newer.
13969         * lib/error.h (__attribute__): Remove definition.
13970         (_GL_ATTRIBUTE_FORMAT): New macro.
13971         (error, error_at_line): Use it.
13972         * lib/hash.h (__attribute__): Remove definition.
13973         (ATTRIBUTE_WUR): Update definition. Define always.
13974         * lib/openat.h (__attribute__): Remove definition.
13975         (ATTRIBUTE_NORETURN): Update definition. Define always.
13976         * lib/sigpipe-die.h (__attribute__): Remove definition.
13977         (ATTRIBUTE_NORETURN): Update definition. Define always.
13978         * lib/vasnprintf.h (__attribute__): Remove definition.
13979         (_GL_ATTRIBUTE_FORMAT): New macro.
13980         (asnprintf, vasnprintf): Use it.
13981         * lib/xalloc.h (__attribute__): Remove definition.
13982         (ATTRIBUTE_NORETURN): Update definition. Define always.
13983         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
13984         * lib/xmemdup0.h (__attribute__): Remove definition.
13985         (ATTRIBUTE_NORETURN): Update definition. Define always.
13986         * lib/xprintf.h (__attribute__): Remove definition.
13987         (_GL_ATTRIBUTE_FORMAT): New macro.
13988         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
13989         * lib/xstrtol.h (__attribute__): Remove definition.
13990         (ATTRIBUTE_NORETURN): Update definition. Define always.
13991         * lib/xvasprintf.h (__attribute__): Remove definition.
13992         (_GL_ATTRIBUTE_FORMAT): New macro.
13993         (xasprintf, xvasprintf): Use it.
13994         * tests/test-argmatch.c (__attribute__): Remove definition.
13995         (ATTRIBUTE_NORETURN): Update definition. Define always.
13996         * tests/test-exclude.c (__attribute__): Remove definition.
13997         (ATTRIBUTE_NORETURN): Update definition. Define always.
13998         Reported by Paul Eggert.
13999
14000 2011-02-13  Bruno Haible  <bruno@clisp.org>
14001
14002         mbrtowc: Add more tests for native Windows platforms.
14003         * tests/test-mbrtowc-w32-1.sh: New file.
14004         * tests/test-mbrtowc-w32-2.sh: New file.
14005         * tests/test-mbrtowc-w32-3.sh: New file.
14006         * tests/test-mbrtowc-w32-4.sh: New file.
14007         * tests/test-mbrtowc-w32-5.sh: New file.
14008         * tests/test-mbrtowc-w32.c: New file.
14009         * modules/mbrtowc-tests (Files): Add them.
14010         (Makefile.am): Arrange to run these tests.
14011         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
14012         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
14013
14014 2011-02-13  Bruno Haible  <bruno@clisp.org>
14015
14016         mbrtowc: Work around native Windows bug.
14017         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
14018         guess when no suitable locale for testing was found.
14019         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
14020
14021 2011-02-13  Bruno Haible  <bruno@clisp.org>
14022
14023         mbsinit: Work around mingw bug.
14024         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
14025         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
14026         Windows.
14027         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
14028
14029 2011-02-13  Bruno Haible  <bruno@clisp.org>
14030
14031         mbsinit: Don't crash for a NULL argument.
14032         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
14033         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
14034
14035 2011-02-13  Bruno Haible  <bruno@clisp.org>
14036
14037         Don't interfere with a program's definition of __attribute__.
14038         * lib/stdio.in.h (__attribute__): Remove definition.
14039         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
14040         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
14041         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
14042         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
14043         * lib/string.in.h (__attribute__): Remove definition.
14044         Reported by Paul Eggert.
14045
14046 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
14047
14048         stdlib: don't get in the way of non-GCC __attribute__
14049         See thread starting at
14050         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
14051         Revert previous stdlib change, installing the following instead:
14052         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
14053         to get in the way of a non-GCC compiler that supports __attribute__.
14054         (_GL_ATTRIBUTE_RETURN): New macro.
14055         (_Exit): Use it instead of __attribute__.
14056
14057 2011-02-12  Bruno Haible  <bruno@clisp.org>
14058
14059         quotearg test: Avoid test failure on mingw.
14060         * tests/test-quotearg.sh: Convert the locale identifier from native
14061         Windows syntax to Unix syntax.
14062
14063 2011-02-12  Bruno Haible  <bruno@clisp.org>
14064
14065         setlocale: Prefer gnulib's override over libintl's override.
14066         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
14067         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
14068         GNULIB_defined_setlocale is set.
14069
14070 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
14071
14072         stdlib: support non-GCC __attribute__
14073
14074         Fix a serious and tricky problem encountered when attempting to
14075         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
14076         5.5, but it crashed due to memory corruption on Solaris 10 with
14077         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
14078         bits that are otherwise zero.  This tagging is optional inside
14079         Emacs but is preferred and is used when __attribute__ ((__aligned
14080         (8))) works, as it does with both recent-enough GCC and with Sun C
14081         5.11.  However, Sun C 5.11 is not GCC and does not #define
14082         __GNUC__ and __GNUC_MINOR__.
14083
14084         When I added the getloadavg module to Emacs, it brought in
14085         stdlib.in.h, which contained this fragment:
14086
14087            #ifndef __attribute__
14088            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
14089            #  define __attribute__(Spec)   /* empty */
14090            # endif
14091            #endif
14092
14093         When files that include <stdlib.h> were compiled with Sun C 5.11,
14094         the above code disabled __attribute__ ((__aligned (8))), which
14095         caused variables to not be properly aligned, which eventually led
14096         to the pointer corruption mentioned above.  (This was a bit hard
14097         to diagnose, unfortunately.)
14098
14099         Several "#define __attribute__(X) /* empty */" code snippets need
14100         to be eradicated from Gnulib to work with non-GCC compilers that
14101         support __attribute__.  The Autoconf way to do this is to test for
14102         each kind of attribute that we want support for, and selectively
14103         enable that in source code.
14104
14105         Fix this problem just for stdlib.h, by adding a test for the
14106         __noreturn__ attribute, and change stdlib.in.h to use that test
14107         when needed.  This technique can be easily generalized to the
14108         other *.in.h files and attributes, and a similar technique can be
14109         used for *.h and *.c files.  This patch is enough to solve the
14110         problem for Emacs + getloadavg, and I thought I'd publish it for
14111         feedback before undertaking further, similar fixes in other
14112         modules.
14113
14114         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
14115         because it's not needed for stdlib.h.  It merely substitutes the
14116         value directly into stdlib.h.  We may well need to #define it, or
14117         similar symbols, for other modules, but it's nice to also have an
14118         option to not #define it for applications like Emacs that do not
14119         need it.
14120
14121         * lib/stdlib.in.h (__attribute__): Do not #define.
14122         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
14123         be defined only if the _Exit module is also used.
14124         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
14125         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
14126         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
14127         platforms.
14128         * modules/_Exit (Files): Add m4/attribute.m4.
14129         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
14130         * m4/attribute.m4: New file.
14131
14132 2011-02-12  Bruno Haible  <bruno@clisp.org>
14133
14134         wcsrtombs: Work around bug on native Windows.
14135         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
14136         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
14137         instead of len.
14138         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
14139
14140 2011-02-12  Bruno Haible  <bruno@clisp.org>
14141
14142         mbsrtowcs: Work around bug on native Windows.
14143         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
14144         against mingw bug.
14145         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
14146
14147 2011-02-12  Bruno Haible  <bruno@clisp.org>
14148
14149         Avoid setlocale bugs in tests.
14150         * modules/btowc (Dependencies): Add setlocale.
14151         * modules/c-strcase (Dependencies): Likewise.
14152         * modules/mbmemcasecmp (Dependencies): Likewise.
14153         * modules/mbmemcasecoll (Dependencies): Likewise.
14154         * modules/mbrtowc (Dependencies): Likewise.
14155         * modules/mbscasecmp (Dependencies): Likewise.
14156         * modules/mbscasestr (Dependencies): Likewise.
14157         * modules/mbschr (Dependencies): Likewise.
14158         * modules/mbscspn (Dependencies): Likewise.
14159         * modules/mbsinit (Dependencies): Likewise.
14160         * modules/mbsncasecmp (Dependencies): Likewise.
14161         * modules/mbsnrtowcs (Dependencies): Likewise.
14162         * modules/mbspbrk (Dependencies): Likewise.
14163         * modules/mbspcasecmp (Dependencies): Likewise.
14164         * modules/mbsrchr (Dependencies): Likewise.
14165         * modules/mbsrtowcs (Dependencies): Likewise.
14166         * modules/mbsspn (Dependencies): Likewise.
14167         * modules/mbsstr (Dependencies): Likewise.
14168         * modules/nl_langinfo (Dependencies): Likewise.
14169         * modules/quotearg (Dependencies): Likewise.
14170         * modules/unicase/locale-language (Dependencies): Likewise.
14171         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
14172         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
14173         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
14174         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
14175         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
14176         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
14177         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
14178         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
14179         * modules/vasnprintf-posix (Dependencies): Likewise.
14180         * modules/wcrtomb (Dependencies): Likewise.
14181         * modules/wcsnrtombs (Dependencies): Likewise.
14182         * modules/wcsrtombs (Dependencies): Likewise.
14183
14184 2011-02-12  Bruno Haible  <bruno@clisp.org>
14185
14186         setlocale: Workaround native Windows bug.
14187         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
14188         succeeds but sets LC_CTYPE to "C", report a failure.
14189         * tests/test-setlocale2.sh: New file.
14190         * tests/test-setlocale2.c: New file.
14191         * modules/setlocale-tests (Files): Add the new files.
14192         (Makefile.am): Enable test-setlocale2.sh test.
14193         * doc/posix-functions/setlocale.texi: Mention workaround.
14194
14195 2011-02-11  Bruno Haible  <bruno@clisp.org>
14196
14197         Tests for module 'setlocale'.
14198         * modules/setlocale-tests: New file.
14199         * tests/test-setlocale1.sh: New file.
14200         * tests/test-setlocale1.c: New file.
14201
14202         New module 'setlocale'.
14203         * lib/locale.in.h (setlocale): New declaration.
14204         * lib/setlocale.c: New file, based on
14205         gettext/gettext-runtime/intl/setlocale.c.
14206         * m4/setlocale.m4: New file.
14207         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
14208         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
14209         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
14210         REPLACE_SETLOCALE.
14211         * modules/setlocale: New file.
14212         * tests/test-locale-c++.cc: Test the declaration of setlocale.
14213         * doc/posix-functions/setlocale.texi: Mention the new module.
14214
14215 2011-02-11  Bruno Haible  <bruno@clisp.org>
14216
14217         Prepare for locale dependent tests on mingw.
14218         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
14219         because it has the wrong locale encoding.
14220         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
14221         French_France.1252 instead of "fr".
14222         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
14223         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
14224         because it has the wrong locale encoding.
14225         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
14226         native Windows, try Turkish_Turkey.65001.
14227         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
14228         Chinese_China.54936.
14229
14230         Prepare for locale dependent tests on mingw.
14231         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
14232         differently.
14233         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
14234         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
14235         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
14236         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
14237
14238 2011-02-11  Eric Blake  <eblake@redhat.com>
14239
14240         strptime: avoid compiler warnings
14241         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
14242         compiler warnings about dead code.
14243         Reported by Daniel P. Berrange.
14244
14245 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
14246
14247         doc: update users.txt
14248         * users.txt: Add rcs.
14249
14250 2011-02-10  John W. Eaton  <jwe@gnu.org>
14251
14252         doc: update users.txt
14253         * users.txt: Add octave.
14254
14255 2011-02-10  Jim Meyering  <meyering@redhat.com>
14256
14257         doc: update users.txt
14258         * users.txt: Add iwhd.
14259
14260 2011-02-09  Bruno Haible  <bruno@clisp.org>
14261
14262         gnulib-tool: Make copyright notice adjustment more robust.
14263         * gnulib-tool (func_import): In sed_transform_main_lib_file,
14264         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
14265         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
14266         License".
14267         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
14268
14269 2011-02-06  Bruno Haible  <bruno@clisp.org>
14270
14271         New module 'towctrans'.
14272         * modules/towctrans: New file.
14273         * lib/wctype.in.h (towctrans): New declaration.
14274         * lib/towctrans.c: New file.
14275         * lib/towctrans-impl.h: New file.
14276         * m4/towctrans.m4: New file.
14277         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
14278         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
14279         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
14280         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
14281         * doc/posix-functions/towctrans.texi: Mention the new module.
14282
14283 2011-02-06  Bruno Haible  <bruno@clisp.org>
14284
14285         New module 'wctrans'.
14286         * modules/wctrans: New file.
14287         * lib/wctype.in.h (wctrans): New declaration.
14288         * lib/wctrans.c: New file.
14289         * lib/wctrans-impl.h: New file.
14290         * m4/wctrans.m4: New file.
14291         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
14292         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
14293         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
14294         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
14295         * doc/posix-functions/wctrans.texi: Mention the new module.
14296
14297 2011-02-06  Bruno Haible  <bruno@clisp.org>
14298
14299         New module 'iswctype'.
14300         * modules/iswctype: New file.
14301         * lib/wctype.in.h (iswctype): New declaration.
14302         * lib/iswctype.c: New file.
14303         * lib/iswctype-impl.h: New file.
14304         * m4/iswctype.m4: New file.
14305         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
14306         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
14307         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
14308         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
14309         * doc/posix-functions/iswctype.texi: Mention the new module and the
14310         HP-UX 11.00 problem.
14311
14312 2011-02-06  Bruno Haible  <bruno@clisp.org>
14313
14314         New module 'wctype'.
14315         * modules/wctype: Change to represent the wctype() substitute.
14316         * lib/wctype.in.h (wctype): New declaration.
14317         * lib/wctype.c: New file.
14318         * lib/wctype-impl.h: New file.
14319         * m4/wctype.m4: New file.
14320         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
14321         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
14322         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
14323         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
14324         * doc/posix-functions/wctype.texi: Mention the new module and the
14325         HP-UX 11.00 problem.
14326
14327 2011-02-06  Bruno Haible  <bruno@clisp.org>
14328
14329         wctype-h: Ensure wctype_t and wctrans_t are defined.
14330         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
14331         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
14332         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
14333         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
14334         HAVE_WCTRANS_T.
14335         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
14336
14337 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
14338
14339         flock: fix license typo
14340
14341         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
14342         omitted.
14343
14344 2011-02-08  Bruno Haible  <bruno@clisp.org>
14345
14346         Split large sed scripts, for HP-UX sed.
14347         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
14348         to avoid HP-UX limit of 99 commands, in the near future.
14349         * modules/stdlib (Makefile.am): Likewise.
14350         * modules/unistd (Makefile.am): Likewise.
14351         * modules/wchar (Makefile.am): Likewise.
14352         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
14353         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
14354         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
14355
14356 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
14357             Bruno Haible  <bruno@clisp.org>
14358
14359         stdlib: improve random_r modularization
14360         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
14361         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
14362         you also need the random_r module to get this material right.
14363         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
14364         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
14365         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
14366
14367 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
14368
14369         stdlib: don't depend on stdint
14370         * lib/stdlib.in.h: Don't include <stdint.h> merely because
14371         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
14372         be independent of whether stdint.h is needed.
14373         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
14374         here, instead of ...
14375         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
14376         struct random_data should be using the random_r module, not just
14377         the stdlib module (which wouldn't make sense: what package needs
14378         just struct random_data without also needing random_r?).
14379         * modules/stdlib (Depends-on): Remove stdint.
14380
14381         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
14382         See the thread rooted at
14383         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
14384         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
14385         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
14386         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
14387         __VMS)); previously it was always included (via fcntl--.h).
14388         (getloadavg): Do not use c_strtod.  Instead, approximate it by
14389         hand; this is good enough for load averages.  Also, do not use
14390         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
14391         flags directly if available and don't bother otherwise.  (Packages
14392         that need the extra reliability should use the modules that define
14393         these flags on older platforms that lack them.)
14394         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
14395         fcntl-safer.
14396
14397 2011-02-08  Jim Meyering  <meyering@redhat.com>
14398
14399         di-set.h, ino-map.h: add multiple-inclusion guard
14400         Technically, the guard is required only for ino-map.h, due to its
14401         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
14402         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
14403         * lib/ino-map.h: Likewise.
14404
14405 2011-02-06  Bruno Haible  <bruno@clisp.org>
14406
14407         iswblank: Ensure declaration on glibc systems.
14408         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
14409         * modules/iswblank (Dependencies): Add 'extensions'.
14410         * doc/posix-functions/iswblank.texi: Document the glibc problem.
14411
14412 2011-02-06  Bruno Haible  <bruno@clisp.org>
14413
14414         New module 'iswblank'.
14415         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
14416         * modules/iswblank: New file.
14417         * modules/wctype-h (Files): Remove lib/iswblank.c.
14418         (Makefile.am): Substitute GNULIB_ISWBLANK.
14419         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
14420         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
14421         (gl_WCTYPE_H_DEFAULTS): New macro.
14422         (gl_WCTYPE_H): Require it. Remove iswblank related code.
14423         * modules/iswblank-tests: New file.
14424         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
14425         * tests/test-wctype-h.c (main): Remove iswblank tests.
14426         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
14427         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
14428         of 'wctype-h'.
14429         * NEWS: Mention the change.
14430         * modules/mbchar (Depends-on): Add iswblank.
14431
14432 2011-02-08  Bruno Haible  <bruno@clisp.org>
14433
14434         di-set tests: Refactor.
14435         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
14436         unnecessary includes.
14437         (ASSERT): Remove macro.
14438         (main): Make C90 compliant by avoiding variable declaration after
14439         statement.
14440         * modules/di-set-tests (Files): Add tests/macros.h.
14441
14442 2011-02-08  Bruno Haible  <bruno@clisp.org>
14443
14444         ino-map tests: Refactor.
14445         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
14446         unnecessary includes.
14447         (ASSERT): Remove macro.
14448         (main): Make C90 compliant by avoiding variable declaration after
14449         statement.
14450         * modules/ino-map-tests (Files): Add tests/macros.h.
14451
14452 2011-02-08  Jim Meyering  <meyering@redhat.com>
14453
14454         di-set: add "const" to a cast
14455         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
14456         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
14457
14458 2011-02-06  Bruno Haible  <bruno@clisp.org>
14459
14460         Rename module 'wctype' to 'wctype-h'.
14461         * modules/wctype-h: Renamed from modules/wctype.
14462         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
14463         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
14464         (Files, Depends-on, Makefile.am): Update.
14465         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
14466         (Files, Makefile.am): Update.
14467         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
14468         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
14469         * doc/posix-headers/wctype.texi: Update.
14470         * doc/posix-functions/iswalnum.texi: Update.
14471         * doc/posix-functions/iswalpha.texi: Update.
14472         * doc/posix-functions/iswblank.texi: Update.
14473         * doc/posix-functions/iswcntrl.texi: Update.
14474         * doc/posix-functions/iswdigit.texi: Update.
14475         * doc/posix-functions/iswgraph.texi: Update.
14476         * doc/posix-functions/iswlower.texi: Update.
14477         * doc/posix-functions/iswprint.texi: Update.
14478         * doc/posix-functions/iswpunct.texi: Update.
14479         * doc/posix-functions/iswspace.texi: Update.
14480         * doc/posix-functions/iswupper.texi: Update.
14481         * doc/posix-functions/iswxdigit.texi: Update.
14482         * doc/posix-functions/towlower.texi: Update.
14483         * doc/posix-functions/towupper.texi: Update.
14484         * NEWS: Mention the change.
14485         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
14486         * modules/mbchar (Dependencies): Likewise.
14487         * modules/mbswidth (Dependencies): Likewise.
14488         * modules/quotearg (Dependencies): Likewise.
14489         * modules/regex (Dependencies): Likewise.
14490         * modules/wcscasecmp (Dependencies): Likewise.
14491         * modules/wcsncasecmp (Dependencies): Likewise.
14492         * modules/wcwidth (Dependencies): Likewise.
14493
14494 2011-02-06  Bruno Haible  <bruno@clisp.org>
14495
14496         New module 'wcswidth'.
14497         * modules/wcswidth: New file.
14498         * lib/wchar.in.h (wcswidth): New declaration.
14499         * lib/wcswidth.c: New file.
14500         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
14501         * m4/wcswidth.m4: New file.
14502         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
14503         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
14504         REPLACE_WCSWIDTH.
14505         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
14506         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
14507         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
14508         * doc/posix-functions/wcswidth.texi: Mention the new module.
14509
14510 2011-02-06  Bruno Haible  <bruno@clisp.org>
14511
14512         New module 'wcstok'.
14513         * modules/wcstok: New file.
14514         * lib/wchar.in.h (wcstok): New declaration.
14515         * lib/wcstok.c: New file.
14516         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
14517         * m4/wcstok.m4: New file.
14518         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
14519         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
14520         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
14521         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
14522         * doc/posix-functions/wcstok.texi: Mention the new module.
14523
14524 2011-02-06  Bruno Haible  <bruno@clisp.org>
14525
14526         New module 'wcsstr'.
14527         * modules/wcsstr: New file.
14528         * lib/wchar.in.h (wcsstr): New declaration.
14529         * lib/wcsstr.c: New file.
14530         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
14531         * m4/wcsstr.m4: New file.
14532         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
14533         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
14534         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
14535         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
14536         * doc/posix-functions/wcsstr.texi: Mention the new module.
14537
14538 2011-02-06  Bruno Haible  <bruno@clisp.org>
14539
14540         New module 'wcspbrk'.
14541         * modules/wcspbrk: New file.
14542         * lib/wchar.in.h (wcspbrk): New declaration.
14543         * lib/wcspbrk.c: New file.
14544         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
14545         * m4/wcspbrk.m4: New file.
14546         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
14547         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
14548         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
14549         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
14550         * doc/posix-functions/wcspbrk.texi: Mention the new module.
14551
14552 2011-02-06  Bruno Haible  <bruno@clisp.org>
14553
14554         New module 'wcsspn'.
14555         * modules/wcsspn: New file.
14556         * lib/wchar.in.h (wcsspn): New declaration.
14557         * lib/wcsspn.c: New file.
14558         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
14559         * m4/wcsspn.m4: New file.
14560         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
14561         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
14562         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
14563         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
14564         * doc/posix-functions/wcsspn.texi: Mention the new module.
14565
14566 2011-02-06  Bruno Haible  <bruno@clisp.org>
14567
14568         New module 'wcscspn'.
14569         * modules/wcscspn: New file.
14570         * lib/wchar.in.h (wcscspn): New declaration.
14571         * lib/wcscspn.c: New file.
14572         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
14573         * m4/wcscspn.m4: New file.
14574         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
14575         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
14576         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
14577         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
14578         * doc/posix-functions/wcscspn.texi: Mention the new module.
14579
14580 2011-02-06  Bruno Haible  <bruno@clisp.org>
14581
14582         New module 'wcsrchr'.
14583         * modules/wcsrchr: New file.
14584         * lib/wchar.in.h (wcsrchr): New declaration.
14585         * lib/wcsrchr.c: New file.
14586         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
14587         * m4/wcsrchr.m4: New file.
14588         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
14589         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
14590         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
14591         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
14592         * doc/posix-functions/wcsrchr.texi: Mention the new module.
14593
14594 2011-02-06  Bruno Haible  <bruno@clisp.org>
14595
14596         New module 'wcschr'.
14597         * modules/wcschr: New file.
14598         * lib/wchar.in.h (wcschr): New declaration.
14599         * lib/wcschr.c: New file.
14600         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
14601         * m4/wcschr.m4: New file.
14602         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
14603         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
14604         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
14605         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
14606         * doc/posix-functions/wcschr.texi: Mention the new module.
14607
14608 2011-02-06  Bruno Haible  <bruno@clisp.org>
14609
14610         New module 'wcsdup'.
14611         * modules/wcsdup: New file.
14612         * lib/wchar.in.h (wcsdup): New declaration.
14613         * lib/wcsdup.c: New file.
14614         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
14615         * m4/wcsdup.m4: New file.
14616         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
14617         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
14618         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
14619         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
14620         * doc/posix-functions/wcsdup.texi: Mention the new module.
14621
14622 2011-02-06  Bruno Haible  <bruno@clisp.org>
14623
14624         New module 'wcsxfrm'.
14625         * modules/wcsxfrm: New file.
14626         * lib/wchar.in.h (wcsxfrm): New declaration.
14627         * lib/wcsxfrm.c: New file.
14628         * lib/wcsxfrm-impl.h: New file.
14629         * m4/wcsxfrm.m4: New file.
14630         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
14631         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
14632         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
14633         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
14634         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
14635
14636 2011-02-06  Bruno Haible  <bruno@clisp.org>
14637
14638         New module 'wcscoll'.
14639         * modules/wcscoll: New file.
14640         * lib/wchar.in.h (wcscoll): New declaration.
14641         * lib/wcscoll.c: New file.
14642         * lib/wcscoll-impl.h: New file.
14643         * m4/wcscoll.m4: New file.
14644         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
14645         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
14646         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
14647         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
14648         * doc/posix-functions/wcscoll.texi: Mention the new module.
14649
14650 2011-02-06  Bruno Haible  <bruno@clisp.org>
14651
14652         New module 'wcsncasecmp'.
14653         * modules/wcsncasecmp: New file.
14654         * lib/wchar.in.h (wcsncasecmp): New declaration.
14655         * lib/wcsncasecmp.c: New file.
14656         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
14657         * m4/wcsncasecmp.m4: New file.
14658         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
14659         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
14660         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
14661         HAVE_WCSNCASECMP.
14662         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
14663         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
14664
14665 2011-02-06  Bruno Haible  <bruno@clisp.org>
14666
14667         New module 'wcscasecmp'.
14668         * modules/wcscasecmp: New file.
14669         * lib/wchar.in.h (wcscasecmp): New declaration.
14670         * lib/wcscasecmp.c: New file.
14671         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
14672         * m4/wcscasecmp.m4: New file.
14673         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
14674         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
14675         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
14676         HAVE_WCSCASECMP.
14677         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
14678         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
14679
14680 2011-02-05  Bruno Haible  <bruno@clisp.org>
14681
14682         New module 'wcsncmp'.
14683         * modules/wcsncmp: New file.
14684         * lib/wchar.in.h (wcsncmp): New declaration.
14685         * lib/wcsncmp.c: New file.
14686         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
14687         * m4/wcsncmp.m4: New file.
14688         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
14689         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
14690         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
14691         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
14692         * doc/posix-functions/wcsncmp.texi: Mention the new module.
14693
14694 2011-02-05  Bruno Haible  <bruno@clisp.org>
14695
14696         New module 'wcscmp'.
14697         * modules/wcscmp: New file.
14698         * lib/wchar.in.h (wcscmp): New declaration.
14699         * lib/wcscmp.c: New file.
14700         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
14701         * m4/wcscmp.m4: New file.
14702         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
14703         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
14704         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
14705         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
14706         * doc/posix-functions/wcscmp.texi: Mention the new module.
14707
14708 2011-02-05  Bruno Haible  <bruno@clisp.org>
14709
14710         New module 'wcsncat'.
14711         * modules/wcsncat: New file.
14712         * lib/wchar.in.h (wcsncat): New declaration.
14713         * lib/wcsncat.c: New file.
14714         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
14715         * m4/wcsncat.m4: New file.
14716         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
14717         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
14718         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
14719         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
14720         * doc/posix-functions/wcsncat.texi: Mention the new module.
14721
14722 2011-02-05  Bruno Haible  <bruno@clisp.org>
14723
14724         New module 'wcscat'.
14725         * modules/wcscat: New file.
14726         * lib/wchar.in.h (wcscat): New declaration.
14727         * lib/wcscat.c: New file.
14728         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
14729         * m4/wcscat.m4: New file.
14730         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
14731         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
14732         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
14733         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
14734         * doc/posix-functions/wcscat.texi: Mention the new module.
14735
14736 2011-02-05  Bruno Haible  <bruno@clisp.org>
14737
14738         New module 'wcpncpy'.
14739         * modules/wcpncpy: New file.
14740         * lib/wchar.in.h (wcpncpy): New declaration.
14741         * lib/wcpncpy.c: New file.
14742         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
14743         * m4/wcpncpy.m4: New file.
14744         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
14745         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
14746         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
14747         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
14748         * doc/posix-functions/wcpncpy.texi: Mention the new module.
14749
14750 2011-02-05  Bruno Haible  <bruno@clisp.org>
14751
14752         New module 'wcsncpy'.
14753         * modules/wcsncpy: New file.
14754         * lib/wchar.in.h (wcsncpy): New declaration.
14755         * lib/wcsncpy.c: New file.
14756         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
14757         * m4/wcsncpy.m4: New file.
14758         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
14759         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
14760         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
14761         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
14762         * doc/posix-functions/wcsncpy.texi: Mention the new module.
14763
14764 2011-02-05  Bruno Haible  <bruno@clisp.org>
14765
14766         New module 'wcpcpy'.
14767         * modules/wcpcpy: New file.
14768         * lib/wchar.in.h (wcpcpy): New declaration.
14769         * lib/wcpcpy.c: New file.
14770         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
14771         * m4/wcpcpy.m4: New file.
14772         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
14773         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
14774         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
14775         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
14776         * doc/posix-functions/wcpcpy.texi: Mention the new module.
14777
14778 2011-02-05  Bruno Haible  <bruno@clisp.org>
14779
14780         New module 'wcscpy'.
14781         * modules/wcscpy: New file.
14782         * lib/wchar.in.h (wcscpy): New declaration.
14783         * lib/wcscpy.c: New file.
14784         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
14785         * m4/wcscpy.m4: New file.
14786         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
14787         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
14788         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
14789         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
14790         * doc/posix-functions/wcscpy.texi: Mention the new module.
14791
14792 2011-02-05  Bruno Haible  <bruno@clisp.org>
14793
14794         New module 'wcsnlen'.
14795         * modules/wcsnlen: New file.
14796         * lib/wchar.in.h (wcsnlen): New declaration.
14797         * lib/wcsnlen.c: New file.
14798         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
14799         * m4/wcsnlen.m4: New file.
14800         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
14801         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
14802         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
14803         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
14804         * doc/posix-functions/wcsnlen.texi: Mention the new module.
14805
14806 2011-02-05  Bruno Haible  <bruno@clisp.org>
14807
14808         New module 'wcslen'.
14809         * modules/wcslen: New file.
14810         * lib/wchar.in.h (wcslen): New declaration.
14811         * lib/wcslen.c: New file.
14812         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
14813         * m4/wcslen.m4: New file.
14814         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
14815         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
14816         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
14817         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
14818         * doc/posix-functions/wcslen.texi: Mention the new module.
14819
14820 2011-02-05  Bruno Haible  <bruno@clisp.org>
14821
14822         New module 'wmemset'.
14823         * modules/wmemset: New file.
14824         * lib/wchar.in.h (wmemset): New declaration.
14825         * lib/wmemset.c: New file.
14826         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
14827         * m4/wmemset.m4: New file.
14828         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
14829         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
14830         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
14831         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
14832         * doc/posix-functions/wmemset.texi: Mention the new module.
14833
14834 2011-02-05  Bruno Haible  <bruno@clisp.org>
14835
14836         New module 'wmemmove'.
14837         * modules/wmemmove: New file.
14838         * lib/wchar.in.h (wmemmove): New declaration.
14839         * lib/wmemmove.c: New file.
14840         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
14841         * m4/wmemmove.m4: New file.
14842         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
14843         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
14844         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
14845         HAVE_WMEMMOVE.
14846         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
14847         * doc/posix-functions/wmemmove.texi: Mention the new module.
14848
14849 2011-02-05  Bruno Haible  <bruno@clisp.org>
14850
14851         New module 'wmemcpy'.
14852         * modules/wmemcpy: New file.
14853         * lib/wchar.in.h (wmemcpy): New declaration.
14854         * lib/wmemcpy.c: New file.
14855         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
14856         * m4/wmemcpy.m4: New file.
14857         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
14858         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
14859         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
14860         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
14861         * doc/posix-functions/wmemcpy.texi: Mention the new module.
14862
14863 2011-02-05  Bruno Haible  <bruno@clisp.org>
14864
14865         New module 'wmemcmp'.
14866         * modules/wmemcmp: New file.
14867         * lib/wchar.in.h (wmemcmp): New declaration.
14868         * lib/wmemcmp.c: New file.
14869         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
14870         * m4/wmemcmp.m4: New file.
14871         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
14872         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
14873         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
14874         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
14875         * doc/posix-functions/wmemcmp.texi: Mention the new module.
14876
14877 2011-02-07  Jim Meyering  <meyering@redhat.com>
14878
14879         di-set, ino-map: new modules, from coreutils
14880         * lib/di-set.c: New file.
14881         * lib/di-set.h: Likewise.
14882         * lib/ino-map.c: Likewise.
14883         * lib/ino-map.h: Likewise.
14884         * modules/di-set: Likewise.
14885         * modules/di-set-tests: Likewise.
14886         * modules/ino-map: Likewise.
14887         * modules/ino-map-tests: Likewise.
14888         * tests/test-di-set.c: Likewise.
14889         * tests/test-ino-map.c: Likewise.
14890
14891 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
14892
14893         getloadavg: merge minor changes from Emacs
14894
14895         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
14896         (getloadavg): Use memset, not bzero.
14897
14898         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
14899         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
14900         clash (bug#86).
14901
14902 2010-11-14  Bruno Haible  <bruno@clisp.org>
14903
14904         Allow multiple gnulib generated replacements to coexist.
14905         * lib/getopt.in.h (struct option): Avoid identical redefinition.
14906         * lib/inttypes.in.h (imaxdiv_t): Likewise.
14907         * lib/langinfo.in.h (nl_item): Likewise.
14908         * lib/math.in.h (_NaN, NAN): Likewise.
14909         * lib/netdb.in.h (struct addrinfo): Likewise.
14910         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
14911         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
14912         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
14913         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
14914         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
14915         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
14916         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
14917         pthread_mutexattr_init, pthread_mutexattr_settype,
14918         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
14919         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
14920         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
14921         pthread_spin_trylock, pthread_spin_unlock): Likewise.
14922         * lib/sched.in.h (struct sched_param): Likewise.
14923         * lib/se-selinux.in.h (security_class_t, security_context_t,
14924         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
14925         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
14926         lsetfilecon, fsetfilecon, security_check_context,
14927         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
14928         Likewise.
14929         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
14930         Likewise.
14931         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
14932         _gl_function_taking_int_returning_void_t, union sigval,
14933         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
14934         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
14935         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
14936         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
14937         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
14938         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
14939         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
14940         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
14941         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
14942         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
14943         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
14944         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
14945         socklen_t, rpl_fd_isset): Likewise.
14946         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
14947         * lib/sys_time.in.h (struct timeval): Likewise.
14948         * lib/sys_times.in.h (struct tms): Likewise.
14949         * lib/sys_utsname.in.h (struct utsname):
14950         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
14951         * lib/unistd.in.h (getpagesize): Likewise.
14952         * lib/wchar.in.h (mbstate_t): Likewise.
14953         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
14954         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
14955         towlower, towupper): Likewise.
14956         Reported by Sam Steingold <sds@gnu.org>.
14957
14958 2011-02-05  Eric Blake  <eblake@redhat.com>
14959
14960         unsetenv: work around Haiku issues
14961         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
14962         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
14963
14964 2010-12-30  Bruce Korb  <bkorb@gnu.org>
14965
14966         libposix: avoid calling error() within libposix
14967         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
14968         is defined.
14969
14970 2011-02-05  Eric Blake  <eblake@redhat.com>
14971
14972         strerror_r-posix: port to cygwin
14973         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
14974         implementation.
14975         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
14976         * tests/test-strerror_r.c (main): Fix test.
14977         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
14978         issue.
14979
14980 2011-02-05  Bruno Haible  <bruno@clisp.org>
14981
14982         New module 'wmemchr'.
14983         * modules/wmemchr: New file.
14984         * lib/wchar.in.h (wmemchr): New declaration.
14985         * lib/wmemchr.c: New file.
14986         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
14987         * m4/wmemchr.m4: New file.
14988         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
14989         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
14990         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
14991         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
14992         * doc/posix-functions/wmemchr.texi: Mention the new module.
14993
14994 2011-02-04  Eric Blake  <eblake@redhat.com>
14995
14996         fdopendir: detect FreeBSD bug
14997         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
14998         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
14999
15000 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
15001
15002         stdbool: do not define HAVE_STDBOOL_H
15003         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
15004         AC_HEADER_STDBOOL.  All uses changed.  Do not define
15005         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
15006         imported from the latest Autoconf git.  It was motivated by Emacs,
15007         which uses gnulib but does not need HAVE_STDBOOL_H.
15008
15009 2011-02-04  Bruno Haible  <bruno@clisp.org>
15010
15011         wcsnrtombs: Prepare for new module wwcsnrtombs.
15012         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
15013         * lib/wcsnrtombs.c: Include it.
15014         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
15015
15016         wcsrtombs: Prepare for new module wwcsrtombs.
15017         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
15018         * lib/wcsrtombs.c: Include it.
15019         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
15020
15021         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
15022         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
15023         * lib/mbsnrtowcs.c: Include it.
15024         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
15025
15026         mbsrtowcs: Prepare for new module mbsrtowwcs.
15027         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
15028         * lib/mbsrtowcs.c: Include it.
15029         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
15030
15031 2011-02-04  Bruno Haible  <bruno@clisp.org>
15032
15033         vasnprintf: Reduce use of malloc for small format strings.
15034         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
15035         (arguments): Add room for the first 7 arguments.
15036         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
15037         (char_directives, u8_directives, u16_directives, u32_directives): Add
15038         room for the first 7 directives.
15039         * lib/printf-parse.c: Include <string.h>.
15040         (PRINTF_PARSE): Change memory handling code so that it uses the first
15041         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
15042         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
15043         Reported by Pádraig Brady <P@draigbrady.com>.
15044
15045 2011-01-31  Eric Blake  <eblake@redhat.com>
15046
15047         dup2: work around Haiku bug
15048         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
15049         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
15050         * doc/posix-functions/dup2.texi (dup2): Document the bug.
15051         * tests/test-dup2.c (main): Enhance test.
15052
15053 2011-01-31  Simon Josefsson  <simon@josefsson.org>
15054
15055         doc: off_t is not available in eglibc 2.11.2 stdio.h.
15056         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
15057         declared by eglibc 2.11.2.
15058         * lib/stdio.in.h: Likewise.
15059
15060 2011-01-31  Eric Blake  <eblake@redhat.com>
15061
15062         ignore-value: add missing test dependency
15063         * tests/test-ignore-value.c: Revert previous change; stdio.h
15064         provides off_t.
15065         * modules/ignore-value-tests (Depends-on): Add missing dependency.
15066
15067 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
15068
15069         mktime: clarify long_int width checking
15070         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
15071         the top level, to make it clearer that the assumption about
15072         long_int width is being checked.  See
15073         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
15074
15075 2011-01-30  Simon Josefsson  <simon@josefsson.org>
15076
15077         ignore-value: Fix self-test.
15078         * tests/test-ignore-value.c: Include sys/types.h for off_t.
15079
15080 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
15081
15082         TYPE_MAXIMUM: avoid theoretically undefined behavior
15083         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
15084         negative number, which the C Standard says has undefined behavior.
15085         In practice this is not a problem, but might as well do it by the book.
15086         Reported by Rich Felker and Eric Blake; see
15087         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
15088         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
15089         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
15090         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
15091         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
15092         * m4/stdint.m4 (gl_STDINT_H): Likewise.
15093         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
15094
15095         mktime: #undef mktime before #defining it
15096         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
15097
15098         mktime: systematically normalize tm_isdst comparisons
15099         * lib/mktime.c (isdst_differ): New function.
15100         (__mktime_internal): Use it systematically for all isdst comparisons.
15101         This completes the fix for libc BZ #6723, and removes the need for
15102         normalizing tm_isdst.  See
15103         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
15104         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
15105
15106         mktime: fix some integer overflow issues and sidestep the rest
15107
15108         This was prompted by a bug report by Benjamin Lindner for MinGW
15109         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
15110         His bug is due to signed integer overflow (0 - INT_MIN), and I
15111         I scanned through mktime.c looking for other integer overflow
15112         problems, fixing all the bugs I found.
15113
15114         Although the C Standard says the resulting code is still not safe
15115         in the presence of integer overflow, in practice it should be good
15116         enough for all real-world two's-complement implementations, except
15117         for debugging environments that deliberately trap on integer
15118         overflow (e.g., gcc -ftrapv).
15119
15120         * lib/mktime.c (WRAPV): New macro.
15121         (SHR): Also check that long_int and time_t shift right in the
15122         usual way, before using the fast-but-unportable method.
15123         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
15124         used.  The code already assumed two's complement, so there's
15125         no need to test for alternatives.  All uses removed.
15126         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
15127         the C standard.  Problem reported by Rich Felker in
15128         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
15129         (twos_complement_arithmetic): Also check long_int and time_t.
15130         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
15131         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
15132         (__mktime_internal): Avoid integer overflow with unary subtraction
15133         in two instances where -1 - X is an adequate replacement for -X,
15134         since the calculations are approximate.
15135
15136 2011-01-29  Eric Blake  <eblake@redhat.com>
15137
15138         mktime: avoid infinite loop
15139         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
15140         type; behavior is still undefined but portable to all known targets.
15141         Reported by Rich Felker.
15142
15143 2011-01-29  Simon Josefsson  <simon@josefsson.org>
15144
15145         rename, unlink, same-inode: Relicense.
15146         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
15147         * modules/unlink (License): Likewise.
15148         * modules/same-inode (License): Likewise.
15149
15150 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
15151
15152         mktime: avoid problems on NetBSD 5 / i386
15153         * lib/mktime.c (long_int): New type.  This works around a problem
15154         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
15155         but time_t is 64 bits, and where I expect the existing code is
15156         wrong in some cases.
15157         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
15158         (ydhms_diff): Bring back the compile-time check for wide-enough
15159         year and yday.
15160
15161         mktime: fix misspelling in comment
15162         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
15163         This merges all recent glibc changes of importance.
15164
15165 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15166
15167         move-if-change: cope with concurrent mv of identical file.
15168         * build-aux/move-if-change (CMPPROG): Accept environment
15169         variable as an override for `cmp'.
15170         (usage): Document CMPPROG.
15171         Adjust comparison to drop stdout.  Cope with failure of mv if
15172         the target file exists and is identical to the source, for
15173         parallel builds.
15174         Report from H.J. Lu against binutils in PR binutils/12283.
15175
15176 2011-01-28  Bruce Korb  <bkorb@gnu.org>
15177
15178         * users.txt: Mention sharutils.
15179
15180 2011-01-28  Simon Josefsson  <simon@josefsson.org>
15181
15182         * users.txt: Mention OATH Toolkit.
15183
15184 2011-01-27  Bruno Haible  <bruno@clisp.org>
15185
15186         Prepare for supporting FreeBSD 10.
15187         * build-aux/config.libpath: Remove handling of freebsd1*.
15188
15189 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
15190
15191         Prepare for supporting FreeBSD 10.
15192         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
15193         match FreeBSD 10.0.
15194
15195 2011-01-27  Bruno Haible  <bruno@clisp.org>
15196
15197         vma-iter, get-rusage-as: Add OpenBSD support.
15198         * modules/vma-iter (configure.ac): Test for mquery.
15199         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
15200         * lib/vma-iter.c: Include <sys/mman.h>.
15201         (vma_iterate): Add an implementation based on mquery().
15202         * lib/resource-ext.h (get_rusage_as): Update comments.
15203         * lib/get-rusage-as.c: Likewise.
15204         * lib/get-rusage-data.c: Likewise.
15205
15206 2011-01-26  Karl Berry  <karl@gnu.org>
15207
15208         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
15209         variables to make it easier to override the makeinfo program used.
15210
15211 2011-01-26  Eric Blake  <eblake@redhat.com>
15212
15213         fcntl: work around Haiku F_DUPFD bugs
15214         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
15215         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
15216         cloexec bit on duplication.
15217         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
15218
15219 2011-01-26  Bruno Haible  <bruno@clisp.org>
15220
15221         Enable memory leak tests on AIX.
15222         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
15223         * tests/test-fprintf-posix3.c (main): Likewise.
15224
15225 2011-01-26  Bruno Haible  <bruno@clisp.org>
15226
15227         Tests for module 'get-rusage-data'.
15228         * modules/get-rusage-data-tests: New file.
15229         * tests/test-get-rusage-data.c: New file.
15230
15231         New module 'get-rusage-data'.
15232         * lib/resource-ext.h (get_rusage_data): New declaration.
15233         * lib/get-rusage-data.c: New file.
15234         * modules/get-rusage-data: New file.
15235
15236 2011-01-25  Bruno Haible  <bruno@clisp.org>
15237
15238         get-rusage-as: Allow for easier testing.
15239         * lib/resource-ext.h (get_rusage_as): Add comment.
15240         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
15241         (main): New function for interactive testing.
15242
15243 2011-01-25  Bruno Haible  <bruno@clisp.org>
15244
15245         vma-iter: Treat Haiku like BeOS.
15246         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
15247         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
15248
15249 2011-01-25  Eric Blake  <eblake@redhat.com>
15250
15251         c-stack: fix regression on cygwin when libsigsegv is present
15252         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
15253
15254 2011-01-24  Bruno Haible  <bruno@clisp.org>
15255
15256         vma-iter: Avoid empty intervals.
15257         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
15258         on an empty interval.
15259
15260 2011-01-24  Jim Meyering  <meyering@redhat.com>
15261
15262         u64: remove unnecessary #include
15263         * lib/u64.h: Don't include <stddef.h>.  It was not used.
15264
15265 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
15266
15267         Allow the user to avoid the HAVE_RAW_DECL_* macros.
15268         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
15269
15270 2011-01-23  Bruno Haible  <bruno@clisp.org>
15271
15272         New module 'vma-iter'.
15273         * lib/vma-iter.h: New file.
15274         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
15275         * modules/vma-iter: New file.
15276         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
15277         for get_rusage_as_via_iterator.
15278         (vma_iterate_callback): New function.
15279         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
15280         * modules/get-rusage-as (Depends-on): Add vma-iter.
15281
15282 2011-01-23  Bruno Haible  <bruno@clisp.org>
15283
15284         uninorm: Tweak includes.
15285         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
15286         Reported by Jim Meyering.
15287
15288 2011-01-23  Bruno Haible  <bruno@clisp.org>
15289
15290         get-rusage-as: Improve on NetBSD.
15291         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
15292         /proc, like on FreeBSD.
15293
15294 2011-01-23  Jim Meyering  <meyering@redhat.com>
15295
15296         xreadlink.h: remove unnecessary #include
15297         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
15298
15299         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
15300         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
15301
15302 2011-01-23  Bruno Haible  <bruno@clisp.org>
15303
15304         get-rusage-as: Fix bug.
15305         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
15306         original limit when aborting the first loop.
15307
15308 2011-01-23  Bruno Haible  <bruno@clisp.org>
15309
15310         wctype: Ensure valid C syntax.
15311         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
15312         unconditionally, instead of gl_NEXT_HEADERS conditionally.
15313
15314 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
15315
15316         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
15317         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
15318         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
15319         as they are needed only for configure's test case.
15320         This removes two unnecessary symbols from config.h.
15321
15322         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
15323         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
15324         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
15325         AC_CHECK_HEADERS_ONCE on a header that we also invoke
15326         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
15327         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
15328         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
15329         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
15330         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
15331         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
15332         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
15333         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
15334         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
15335         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
15336         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
15337         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
15338         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
15339         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
15340
15341 2011-01-21  Eric Blake  <eblake@redhat.com>
15342
15343         maintainer-makefile: work with older git for submodule check
15344         * top/maint.mk (public-submodule-commit): Rewrite to avoid
15345         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
15346         Reported by Matthias Bolte.
15347
15348         bootstrap: minor portability fixes
15349         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
15350         (usage): Omit leading capital and trailing . on help phrases, per
15351         GNU Coding Standards.
15352         (check_versions, top level): Prefix messages with script name.
15353
15354 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
15355
15356         bootstrap: support --no-git option
15357         * build-aux/bootstrap: Add --no-git option, to be used when
15358         --gnulib-srcdir points to the exact desired checkout.
15359
15360 2011-01-21  Eric Blake  <eblake@redhat.com>
15361
15362         strerror_r-posix: work with glibc 2.13
15363         * lib/strerror_r.c (strerror_r): Fix return type.
15364
15365 2011-01-21  Pádraig Brady  <P@draigBrady.com>
15366             Bruno Haible  <bruno@clisp.org>
15367
15368         uN_strstr: New unit tests.
15369         * modules/unistr/u8-strstr-tests: New file.
15370         * modules/unistr/u16-strstr-tests: New file.
15371         * modules/unistr/u32-strstr-tests: New file.
15372         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
15373         * tests/unistr/test-u8-strstr.c: New file.
15374         * tests/unistr/test-u16-strstr.c: New file.
15375         * tests/unistr/test-u32-strstr.c: New file.
15376
15377 2011-01-21  Pádraig Brady  <P@draigBrady.com>
15378             Bruno Haible  <bruno@clisp.org>
15379
15380         Make uN_strstr functions O(n) worst-case.
15381         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
15382         16-bit and 32-bit unit cases, use the unibyte algorithm from
15383         lib/mbsstr.c.
15384         * lib/unistr/u8-strstr.c: Include <string.h>.
15385         (UNIT_IS_UINT8_T): New macro.
15386         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
15387         (U_STRLEN, U_STRNLEN): New macros.
15388         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
15389         (U_STRLEN, U_STRNLEN): New macros.
15390         * modules/unistr/u8-strstr (Depends-on): Add strstr.
15391         (configure.ac): Update required libunistring version.
15392         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
15393         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
15394         malloca.
15395         (configure.ac): Update required libunistring version.
15396         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
15397         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
15398         malloca.
15399         (configure.ac): Update required libunistring version.
15400
15401 2011-01-21  Pádraig Brady  <P@draigBrady.com>
15402             Bruno Haible  <bruno@clisp.org>
15403
15404         Prepare for faster uN_strstr functions.
15405         * lib/str-kmp.h: Support definable UNITs.
15406         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
15407         needle_len argument.
15408         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
15409         * lib/mbscasestr.c (mbscasestr): Likewise.
15410
15411 2011-01-21  Pádraig Brady <P@draigBrady.com>
15412
15413         malloca-tests: make faster by unsetting MALLOC_PERTURB_
15414         * tests/test-malloca.c (main): Unset the environment variable
15415         to greatly speed up the test.
15416         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
15417         * modules/malloca-tests: Depend on unsetenv.
15418
15419 2011-01-21  Pádraig Brady <P@draigBrady.com>
15420
15421         ignore-value: remove stdint dependency
15422         * lib/ignore-value.h: Remove <stdint.h>
15423         * modules/ignore-value: Remove stdint dependency.
15424
15425 2011-01-21  Jim Meyering  <meyering@redhat.com>
15426
15427         maint.mk: adjust variable name to be consistent with other gl_ vars
15428         * top/maint.mk (gl_public_submodule_commit): Rename the variable
15429         to be lower case.
15430
15431 2011-01-20  Jim Meyering  <meyering@redhat.com>
15432
15433         maint.mk: make "check" depend on public-submodule-commit by default
15434         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
15435
15436 2011-01-20  Bruno Haible  <bruno@clisp.org>
15437
15438         mbfile, mbiter: Complete change from 2008-12-21.
15439         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
15440         * m4/mbiter.m4 (gl_MBITER): Likewise.
15441
15442 2011-01-20  Jim Meyering  <meyering@redhat.com>
15443
15444         init.sh: insert space between each function name and "()"
15445         * tests/init.sh: Make it a little easier to see that a function's
15446         name is "warn_", and not "warn" when looking at the first part of
15447         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
15448
15449 2011-01-20  Jim Meyering  <meyering@redhat.com>
15450
15451         mountlist: clean up code formatting
15452         * lib/mountlist.c (read_file_system_list): Split a long line,
15453         correct bracing style, use NULL in place of "(struct statfs *)0",
15454         don't parenthesize return value, add spaces around "=" and after
15455         ";-in-for-stmt".
15456
15457 2011-01-14  Markus Duft <mduft@gentoo.org>
15458
15459         mountlist: add support for Interix
15460         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
15461         Apply statvfs to all entries of /dev/fs.
15462         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
15463         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
15464
15465 2011-01-20  Jim Meyering  <meyering@redhat.com>
15466
15467         maint.mk: improve the public-submodule-commit rule
15468         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
15469         to suppress printing of its commands... unless V=1.
15470         Add git submodule's --quiet option to suppress printing of e.g.,
15471         "Entering gnulib" output.
15472         "cd" into $(srcdir) before running git submodule.
15473
15474 2011-01-20  Bruno Haible  <bruno@clisp.org>
15475
15476         include_next: Fix bug introduced on 2011-01-18.
15477         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
15478         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
15479         ac_cv_header_... variable if the second argument is not 'check'.
15480         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
15481         gl_NEXT_HEADERS_INTERNAL.
15482
15483 2011-01-20  Bruno Haible  <bruno@clisp.org>
15484
15485         Allow the user to avoid the GNULIB_TEST_* macros.
15486         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
15487         Suggested by Paul Eggert.
15488
15489 2011-01-14  Jim Meyering  <meyering@redhat.com>
15490
15491         bootstrap: avoid failure when there is no .gitmodules file
15492         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
15493         has been assigned to, even when its value is the empty string.
15494         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
15495         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
15496         Reported by John W. Eaton <jwe@gnu.org>.
15497
15498 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
15499
15500         assume <ctype.h>, ..., <time.h> exist
15501         For years gnulib has been assuming the existence of the headers
15502         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
15503         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
15504         them, since they don't appear to be needed.
15505         * README (Portability guidelines): Document this.
15506         * lib/flock.c: Assume <fcntl.h> exists.
15507         * lib/regex_internal.h: Assume <locale.h> exists.
15508         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
15509         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
15510         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
15511         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
15512         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
15513         * m4/regex.m4 (gl_REGEX): Likewise.
15514         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
15515         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
15516         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
15517         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
15518         * tests/test-argp.c: Likewise.
15519         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
15520
15521         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
15522         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
15523         AA_APPLE_UNIVERSAL_BUILD.  See
15524         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
15525         * NEWS: Document this.
15526
15527 2011-01-19  Eric Blake  <eblake@redhat.com>
15528
15529         c-stack: assume stack overflow if SA_SIGINFO unsupported
15530         * lib/c-stack.c (SIGACTION_WORKS): Rename...
15531         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
15532         sigaction will work.
15533         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
15534         behavior match Linux.
15535         * tests/test-c-stack.c (main): Prefer NULL for pointers.
15536
15537         stdbool-tests: accomodate Haiku
15538         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
15539
15540         binary-io: fix O_TEXT on Haiku
15541         * modules/binary-io (Depends-on): Add fcntl-h.
15542         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
15543         than blindly undefining O_TEXT.
15544         Reported by Scott McCreary.
15545
15546 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
15547
15548         include_next: do not check for standard headers like stddef.h
15549
15550         I found this problem when modifying Emacs to use gnulib.
15551         I noticed that it added HAVE_STDDEF_H to config.h, even though
15552         gnulib always assumes <stddef.h> exists as per README and this
15553         symbol is unnecessary.
15554         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
15555         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
15556         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
15557         faster for headers like stddef.h that are known to exist.
15558         (gl_CHECK_NEXT_HEADERS): Use it.
15559         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
15560         rather than gl_CHECK_NEXT_HEADERS.
15561         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
15562         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
15563
15564 2011-01-18  Eric Blake  <eblake@redhat.com>
15565
15566         ansi-c++-opt: skip C++ dependency style if C++ is unused
15567         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
15568         tests when we know C++ compilation is not desired.
15569         Reported by Scott McCreary.
15570
15571 2011-01-18  Bruno Haible  <bruno@clisp.org>
15572
15573         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
15574         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
15575         (main): Perform test also when getrlimit and setrlimit don't exist or
15576         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
15577         limiting the address space size using setrlimit, compare the address
15578         space size before and after the the test.
15579         * tests/test-dprintf-posix2.c: Likewise.
15580         * tests/test-fprintf-posix3.sh: Update skip messages.
15581         * tests/test-dprintf-posix2.sh: Likewise.
15582         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
15583         * modules/dprintf-posix-tests (Depends-on): Likewise.
15584         Reported by Bruce Korb <bkorb@gnu.org> and
15585         Gary V. Vaughan <gary@gnu.org>.
15586
15587 2011-01-18  Bruno Haible  <bruno@clisp.org>
15588
15589         get-rusage-as: Improvement for Cygwin.
15590         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
15591         areas that are merely reserved.
15592
15593 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
15594
15595         strftime: remove dependencies on multibyte modules
15596
15597         strftime depended on mbrlen, mbsinit, and wchar, but these modules
15598         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
15599         only if __osf__ is defined, and I suspect OSF doesn't need these
15600         other modules.  If my guess is wrong, we'll need to come up with a
15601         variant of strftime that doesn't need the multibyte modules.
15602
15603         I discovered this problem when attempting modify Emacs to use the
15604         strftime module.  With the previous gnulib, this caused Emacs to
15605         need 31 new files, ranging from lib/config.charset to
15606         m4/wint_t.m4.  This was overkill and I expect would be offputting
15607         to the Emacs maintainers.  After this change, only 6 new files are
15608         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
15609         stdbool.m4, and tm_gmtoff.m4.
15610
15611         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
15612         Suggested by Bruno Haible in
15613         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
15614         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
15615         and do not check for wchar.h.
15616         * modules/strftime (Files): Remove m4/mbstate_t.m4.
15617         (Depends-on): Remove mbrlen, mbsinit, wchar.
15618
15619 2011-01-18  Bruno Haible  <bruno@clisp.org>
15620
15621         Tests for module 'get-rusage-as'.
15622         * modules/get-rusage-as-tests: New file.
15623         * tests/test-get-rusage-as.c: New file.
15624
15625         New module 'get-rusage-as'.
15626         * modules/get-rusage-as: New file.
15627         * lib/resource-ext.h: New file.
15628         * lib/get-rusage-as.c: New file.
15629
15630 2011-01-17  Eric Blake  <eblake@redhat.com>
15631
15632         sigaction: relax license from LGPLv3+ to LGPLv2+
15633         * modules/sigaction (License): Relax to LGPLv2+.
15634
15635 2011-01-14  Bruno Haible  <bruno@clisp.org>
15636
15637         filemode: Make function declarations usable in C++ mode.
15638         * lib/filemode.h: Enclose function declarations in extern "C" block.
15639         Reported by John W. Eaton <jwe@gnu.org>.
15640
15641 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
15642
15643         save-cwd: no longer include "xgetcwd.h"
15644         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
15645         This avoids a compilation failure in projects that use save-cwd
15646         without also using the xgetcwd module.
15647
15648 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
15649
15650         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
15651         This is so that a program like Emacs, which needs only dtoastr,
15652         does not have to bother with distributing and compiling ftoastr
15653         and ldtoastr.
15654         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
15655         * modules/dtoastr, modules/ldtoastr: New files.
15656         * modules/ftoastr: Now works just for 'float'.
15657         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
15658         (Makefile.am): Remove ftoastr.h (not needed and no effect),
15659         dtoastr.c, ldtoastr.c.
15660
15661 2011-01-11  Jim Meyering  <meyering@redhat.com>
15662
15663         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
15664         There is no need to work around the lack of the fchdir function,
15665         since gnulib can now provide a replacement when required.
15666         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
15667         * modules/save-cwd (Depends-on): Add fchdir.
15668
15669 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
15670
15671         openat, save-cwd: avoid xmalloc
15672
15673         This removes a direct (but undocumented) dependency of openat on
15674         xalloc, along with an indirect dependency via save-cwd.  It also
15675         removes a dependency of save-cwd on xgetcwd, and thereby
15676         indirectly on xalloc.  This change causes the openat substitute
15677         to fall back on save_cwd when memory is tight, and for save_cwd to
15678         fail instead of dying when memory is tight, but that's good enough.
15679         Problem and initial idea for fix reported by Bastien Roucaries in
15680         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
15681
15682         * lib/openat-proc.c: Include stdlib.h (for malloc), not
15683         xalloc.h (for xmalloc).
15684         (openat_proc_name): Use malloc, not xmalloc.
15685         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
15686         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
15687
15688         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
15689         This avoids heap allocation for file names whose lengths are in
15690         the range 512..1023, with the upper bound increasing to at most
15691         4031 depending on the platform's PATH_MAX.  (We do not want
15692         pathmax.h here as it might supply a non-constant PATH_MAX.)
15693         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
15694         Perhaps they should be moved to malloca.h?
15695         (OPENAT_BUFFER_SIZE): Use them.
15696
15697 2011-01-10  Bruno Haible  <bruno@clisp.org>
15698
15699         doc: Update users.txt.
15700         * users.txt: Add recutils.
15701
15702 2011-01-09  Karl Berry  <karl@gnu.org>
15703
15704         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
15705
15706         * doc/configmake.texi: New file.
15707         * doc/gnulib.texi: Include it.
15708         * modules/configmake: Move documentation from here.
15709
15710 2011-01-09  Bruno Haible  <bruno@clisp.org>
15711
15712         Update to Unicode 6.0.0.
15713         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
15714         (get_lbp): Update for Unicode 6.0.0.
15715         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
15716         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
15717         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
15718         U+11001, U+11038..U+11046. Remove U+06DE.
15719         (uc_width): Fix bounds of planes.
15720         * tests/uniwidth/test-uc_width2.sh: Same updates as in
15721         lib/uniwidth/width.c.
15722         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
15723         trailing whitespace removed.
15724         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
15725         without comments, but with the original copyright notice.
15726         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
15727         * lib/unicase/ignorable.h: Likewise.
15728         * lib/unicase/tocasefold.h: Likewise.
15729         * lib/unicase/tolower.h: Likewise.
15730         * lib/unicase/totitle.h: Likewise.
15731         * lib/unicase/toupper.h: Likewise.
15732         * lib/unictype/bidi_of.h: Likewise.
15733         * lib/unictype/blocks.h: Likewise.
15734         * lib/unictype/categ_C.h: Likewise.
15735         * lib/unictype/categ_Cn.h: Likewise.
15736         * lib/unictype/categ_L.h: Likewise.
15737         * lib/unictype/categ_Ll.h: Likewise.
15738         * lib/unictype/categ_Lm.h: Likewise.
15739         * lib/unictype/categ_Lo.h: Likewise.
15740         * lib/unictype/categ_Lu.h: Likewise.
15741         * lib/unictype/categ_M.h: Likewise.
15742         * lib/unictype/categ_Mc.h: Likewise.
15743         * lib/unictype/categ_Me.h: Likewise.
15744         * lib/unictype/categ_Mn.h: Likewise.
15745         * lib/unictype/categ_N.h: Likewise.
15746         * lib/unictype/categ_Nd.h: Likewise.
15747         * lib/unictype/categ_No.h: Likewise.
15748         * lib/unictype/categ_P.h: Likewise.
15749         * lib/unictype/categ_Po.h: Likewise.
15750         * lib/unictype/categ_S.h: Likewise.
15751         * lib/unictype/categ_Sc.h: Likewise.
15752         * lib/unictype/categ_Sk.h: Likewise.
15753         * lib/unictype/categ_Sm.h: Likewise.
15754         * lib/unictype/categ_So.h: Likewise.
15755         * lib/unictype/categ_of.h: Likewise.
15756         * lib/unictype/combining.h: Likewise.
15757         * lib/unictype/ctype_alnum.h: Likewise.
15758         * lib/unictype/ctype_alpha.h: Likewise.
15759         * lib/unictype/ctype_graph.h: Likewise.
15760         * lib/unictype/ctype_lower.h: Likewise.
15761         * lib/unictype/ctype_print.h: Likewise.
15762         * lib/unictype/ctype_punct.h: Likewise.
15763         * lib/unictype/ctype_upper.h: Likewise.
15764         * lib/unictype/decdigit.h: Likewise.
15765         * lib/unictype/digit.h: Likewise.
15766         * lib/unictype/numeric.h: Likewise.
15767         * lib/unictype/pr_alphabetic.h: Likewise.
15768         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
15769         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
15770         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
15771         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
15772         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
15773         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
15774         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
15775         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
15776         * lib/unictype/pr_case_ignorable.h: Likewise.
15777         * lib/unictype/pr_cased.h: Likewise.
15778         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
15779         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
15780         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
15781         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
15782         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
15783         * lib/unictype/pr_combining.h: Likewise.
15784         * lib/unictype/pr_composite.h: Likewise.
15785         * lib/unictype/pr_currency_symbol.h: Likewise.
15786         * lib/unictype/pr_decimal_digit.h: Likewise.
15787         * lib/unictype/pr_deprecated.h: Likewise.
15788         * lib/unictype/pr_format_control.h: Likewise.
15789         * lib/unictype/pr_grapheme_base.h: Likewise.
15790         * lib/unictype/pr_grapheme_extend.h: Likewise.
15791         * lib/unictype/pr_grapheme_link.h: Likewise.
15792         * lib/unictype/pr_id_continue.h: Likewise.
15793         * lib/unictype/pr_id_start.h: Likewise.
15794         * lib/unictype/pr_ideographic.h: Likewise.
15795         * lib/unictype/pr_lowercase.h: Likewise.
15796         * lib/unictype/pr_math.h: Likewise.
15797         * lib/unictype/pr_numeric.h: Likewise.
15798         * lib/unictype/pr_other_alphabetic.h: Likewise.
15799         * lib/unictype/pr_other_id_continue.h: Likewise.
15800         * lib/unictype/pr_other_math.h: Likewise.
15801         * lib/unictype/pr_punctuation.h: Likewise.
15802         * lib/unictype/pr_sentence_terminal.h: Likewise.
15803         * lib/unictype/pr_terminal_punctuation.h: Likewise.
15804         * lib/unictype/pr_unassigned_code_value.h: Likewise.
15805         * lib/unictype/pr_unified_ideograph.h: Likewise.
15806         * lib/unictype/pr_uppercase.h: Likewise.
15807         * lib/unictype/pr_xid_continue.h: Likewise.
15808         * lib/unictype/pr_xid_start.h: Likewise.
15809         * lib/unictype/scripts.h: Likewise.
15810         * lib/unictype/scripts_byname.gperf: Likewise.
15811         * lib/unictype/sy_java_ident.h: Likewise.
15812         * lib/unigbrk/gbrkprop.h: Likewise.
15813         * lib/unilbrk/lbrkprop1.h: Likewise.
15814         * lib/unilbrk/lbrkprop2.h: Likewise.
15815         * lib/uninorm/decomposition-table2.h: Likewise.
15816         * lib/uniwbrk/wbrkprop.h: Likewise.
15817         * tests/unicase/test-cased.c: Likewise.
15818         * tests/unicase/test-ignorable.c: Likewise.
15819         * tests/unicase/test-uc_tolower.c: Likewise.
15820         * tests/unicase/test-uc_totitle.c: Likewise.
15821         * tests/unicase/test-uc_toupper.c: Likewise.
15822         * tests/unictype/test-categ_C.c: Likewise.
15823         * tests/unictype/test-categ_Cn.c: Likewise.
15824         * tests/unictype/test-categ_L.c: Likewise.
15825         * tests/unictype/test-categ_Ll.c: Likewise.
15826         * tests/unictype/test-categ_Lm.c: Likewise.
15827         * tests/unictype/test-categ_Lo.c: Likewise.
15828         * tests/unictype/test-categ_Lu.c: Likewise.
15829         * tests/unictype/test-categ_M.c: Likewise.
15830         * tests/unictype/test-categ_Mc.c: Likewise.
15831         * tests/unictype/test-categ_Me.c: Likewise.
15832         * tests/unictype/test-categ_Mn.c: Likewise.
15833         * tests/unictype/test-categ_N.c: Likewise.
15834         * tests/unictype/test-categ_Nd.c: Likewise.
15835         * tests/unictype/test-categ_No.c: Likewise.
15836         * tests/unictype/test-categ_P.c: Likewise.
15837         * tests/unictype/test-categ_Po.c: Likewise.
15838         * tests/unictype/test-categ_S.c: Likewise.
15839         * tests/unictype/test-categ_Sc.c: Likewise.
15840         * tests/unictype/test-categ_Sk.c: Likewise.
15841         * tests/unictype/test-categ_Sm.c: Likewise.
15842         * tests/unictype/test-categ_So.c: Likewise.
15843         * tests/unictype/test-ctype_alnum.c: Likewise.
15844         * tests/unictype/test-ctype_alpha.c: Likewise.
15845         * tests/unictype/test-ctype_graph.c: Likewise.
15846         * tests/unictype/test-ctype_lower.c: Likewise.
15847         * tests/unictype/test-ctype_print.c: Likewise.
15848         * tests/unictype/test-ctype_punct.c: Likewise.
15849         * tests/unictype/test-ctype_upper.c: Likewise.
15850         * tests/unictype/test-decdigit.h: Likewise.
15851         * tests/unictype/test-digit.h: Likewise.
15852         * tests/unictype/test-numeric.h: Likewise.
15853         * tests/unictype/test-pr_alphabetic.c: Likewise.
15854         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
15855         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
15856         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
15857         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
15858         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
15859         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
15860         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
15861         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
15862         * tests/unictype/test-pr_case_ignorable.c: Likewise.
15863         * tests/unictype/test-pr_cased.c: Likewise.
15864         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
15865         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
15866         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
15867         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
15868         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
15869         * tests/unictype/test-pr_combining.c: Likewise.
15870         * tests/unictype/test-pr_composite.c: Likewise.
15871         * tests/unictype/test-pr_currency_symbol.c: Likewise.
15872         * tests/unictype/test-pr_decimal_digit.c: Likewise.
15873         * tests/unictype/test-pr_deprecated.c: Likewise.
15874         * tests/unictype/test-pr_format_control.c: Likewise.
15875         * tests/unictype/test-pr_grapheme_base.c: Likewise.
15876         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
15877         * tests/unictype/test-pr_grapheme_link.c: Likewise.
15878         * tests/unictype/test-pr_id_continue.c: Likewise.
15879         * tests/unictype/test-pr_id_start.c: Likewise.
15880         * tests/unictype/test-pr_ideographic.c: Likewise.
15881         * tests/unictype/test-pr_lowercase.c: Likewise.
15882         * tests/unictype/test-pr_math.c: Likewise.
15883         * tests/unictype/test-pr_numeric.c: Likewise.
15884         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
15885         * tests/unictype/test-pr_other_id_continue.c: Likewise.
15886         * tests/unictype/test-pr_other_math.c: Likewise.
15887         * tests/unictype/test-pr_punctuation.c: Likewise.
15888         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
15889         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
15890         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
15891         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
15892         * tests/unictype/test-pr_uppercase.c: Likewise.
15893         * tests/unictype/test-pr_xid_continue.c: Likewise.
15894         * tests/unictype/test-pr_xid_start.c: Likewise.
15895         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
15896         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
15897         changes.
15898         * lib/unictype/categ_Cc.h: Likewise.
15899         * lib/unictype/categ_Cf.h: Likewise.
15900         * lib/unictype/categ_Co.h: Likewise.
15901         * lib/unictype/categ_Cs.h: Likewise.
15902         * lib/unictype/categ_Lt.h: Likewise.
15903         * lib/unictype/categ_Nl.h: Likewise.
15904         * lib/unictype/categ_Pc.h: Likewise.
15905         * lib/unictype/categ_Pd.h: Likewise.
15906         * lib/unictype/categ_Pe.h: Likewise.
15907         * lib/unictype/categ_Pf.h: Likewise.
15908         * lib/unictype/categ_Pi.h: Likewise.
15909         * lib/unictype/categ_Ps.h: Likewise.
15910         * lib/unictype/categ_Z.h: Likewise.
15911         * lib/unictype/categ_Zl.h: Likewise.
15912         * lib/unictype/categ_Zp.h: Likewise.
15913         * lib/unictype/categ_Zs.h: Likewise.
15914         * lib/unictype/ctype_blank.h: Likewise.
15915         * lib/unictype/ctype_cntrl.h: Likewise.
15916         * lib/unictype/ctype_digit.h: Likewise.
15917         * lib/unictype/ctype_space.h: Likewise.
15918         * lib/unictype/ctype_xdigit.h: Likewise.
15919         * lib/unictype/mirror.h: Likewise.
15920         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
15921         * lib/unictype/pr_bidi_block_separator.h: Likewise.
15922         * lib/unictype/pr_bidi_common_separator.h: Likewise.
15923         * lib/unictype/pr_bidi_control.h: Likewise.
15924         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
15925         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
15926         * lib/unictype/pr_bidi_european_digit.h: Likewise.
15927         * lib/unictype/pr_bidi_pdf.h: Likewise.
15928         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
15929         * lib/unictype/pr_bidi_whitespace.h: Likewise.
15930         * lib/unictype/pr_dash.h: Likewise.
15931         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
15932         * lib/unictype/pr_diacritic.h: Likewise.
15933         * lib/unictype/pr_extender.h: Likewise.
15934         * lib/unictype/pr_hex_digit.h: Likewise.
15935         * lib/unictype/pr_hyphen.h: Likewise.
15936         * lib/unictype/pr_ids_binary_operator.h: Likewise.
15937         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
15938         * lib/unictype/pr_ignorable_control.h: Likewise.
15939         * lib/unictype/pr_iso_control.h: Likewise.
15940         * lib/unictype/pr_join_control.h: Likewise.
15941         * lib/unictype/pr_left_of_pair.h: Likewise.
15942         * lib/unictype/pr_line_separator.h: Likewise.
15943         * lib/unictype/pr_logical_order_exception.h: Likewise.
15944         * lib/unictype/pr_non_break.h: Likewise.
15945         * lib/unictype/pr_not_a_character.h: Likewise.
15946         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
15947         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
15948         * lib/unictype/pr_other_id_start.h: Likewise.
15949         * lib/unictype/pr_other_lowercase.h: Likewise.
15950         * lib/unictype/pr_other_uppercase.h: Likewise.
15951         * lib/unictype/pr_paired_punctuation.h: Likewise.
15952         * lib/unictype/pr_paragraph_separator.h: Likewise.
15953         * lib/unictype/pr_pattern_syntax.h: Likewise.
15954         * lib/unictype/pr_pattern_white_space.h: Likewise.
15955         * lib/unictype/pr_private_use.h: Likewise.
15956         * lib/unictype/pr_quotation_mark.h: Likewise.
15957         * lib/unictype/pr_radical.h: Likewise.
15958         * lib/unictype/pr_soft_dotted.h: Likewise.
15959         * lib/unictype/pr_space.h: Likewise.
15960         * lib/unictype/pr_titlecase.h: Likewise.
15961         * lib/unictype/pr_variation_selector.h: Likewise.
15962         * lib/unictype/pr_white_space.h: Likewise.
15963         * lib/unictype/pr_zero_width.h: Likewise.
15964         * lib/unictype/sy_c_ident.h: Likewise.
15965         * lib/unictype/sy_c_whitespace.h: Likewise.
15966         * lib/unictype/sy_java_whitespace.h: Likewise.
15967         * lib/uninorm/composition-table.gperf: Likewise.
15968         * lib/uninorm/decomposition-table1.h: Likewise.
15969         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
15970         LB8.
15971         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
15972         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
15973         * modules/unictype/*: Bump version number of expected libunistring
15974         version.
15975
15976 2011-01-09  Bruno Haible  <bruno@clisp.org>
15977
15978         Update to Unicode 5.2.0.
15979         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
15980         trailing whitespace removed.
15981
15982 2011-01-09  Bruno Haible  <bruno@clisp.org>
15983
15984         New Unicode character properties, from Unicode 5.2.0.
15985         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
15986         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
15987         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
15988         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
15989         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
15990         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
15991         uc_is_property_cased, uc_is_property_case_ignorable,
15992         uc_is_property_changes_when_lowercased,
15993         uc_is_property_changes_when_uppercased,
15994         uc_is_property_changes_when_titlecased,
15995         uc_is_property_changes_when_casefolded,
15996         uc_is_property_changes_when_casemapped): New declarations.
15997         * lib/unictype/pr_byname.gperf: Add the new properties.
15998         * modules/unictype/property-byname (Depends-on): Depend on the new
15999         properties modules.
16000         * modules/unictype/property-all (Depends-on): Likewise.
16001         * MODULES.html.sh (Unicode string functions): Add
16002         unictype/property-case-ignorable, unictype/property-cased,
16003         unictype/property-changes-when-casefolded,
16004         unictype/property-changes-when-casemapped,
16005         unictype/property-changes-when-lowercased,
16006         unictype/property-changes-when-titlecased,
16007         unictype/property-changes-when-uppercased.
16008
16009         New module 'unictype/property-changes-when-casemapped'.
16010         * modules/unictype/property-changes-when-casemapped: New file.
16011         * lib/unictype/pr_changes_when_casemapped.c: New file.
16012         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
16013         generated by gen-uni-tables.
16014         * modules/unictype/property-changes-when-casemapped-tests: New file.
16015         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
16016         automatically generated by gen-uni-tables.
16017
16018         New module 'unictype/property-changes-when-casefolded'.
16019         * modules/unictype/property-changes-when-casefolded: New file.
16020         * lib/unictype/pr_changes_when_casefolded.c: New file.
16021         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
16022         generated by gen-uni-tables.
16023         * modules/unictype/property-changes-when-casefolded-tests: New file.
16024         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
16025         automatically generated by gen-uni-tables.
16026
16027         New module 'unictype/property-changes-when-titlecased'.
16028         * modules/unictype/property-changes-when-titlecased: New file.
16029         * lib/unictype/pr_changes_when_titlecased.c: New file.
16030         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
16031         generated by gen-uni-tables.
16032         * modules/unictype/property-changes-when-titlecased-tests: New file.
16033         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
16034         automatically generated by gen-uni-tables.
16035
16036         New module 'unictype/property-changes-when-uppercased'.
16037         * modules/unictype/property-changes-when-uppercased: New file.
16038         * lib/unictype/pr_changes_when_uppercased.c: New file.
16039         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
16040         generated by gen-uni-tables.
16041         * modules/unictype/property-changes-when-uppercased-tests: New file.
16042         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
16043         automatically generated by gen-uni-tables.
16044
16045         New module 'unictype/property-changes-when-lowercased'.
16046         * modules/unictype/property-changes-when-lowercased: New file.
16047         * lib/unictype/pr_changes_when_lowercased.c: New file.
16048         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
16049         generated by gen-uni-tables.
16050         * modules/unictype/property-changes-when-lowercased-tests: New file.
16051         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
16052         automatically generated by gen-uni-tables.
16053
16054         New module 'unictype/property-case-ignorable'.
16055         * modules/unictype/property-case-ignorable: New file.
16056         * lib/unictype/pr_case_ignorable.c: New file.
16057         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
16058         by gen-uni-tables.
16059         * modules/unictype/property-case-ignorable-tests: New file.
16060         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
16061         generated by gen-uni-tables.
16062
16063         New module 'unictype/property-cased'.
16064         * modules/unictype/property-cased: New file.
16065         * lib/unictype/pr_cased.c: New file.
16066         * lib/unictype/pr_cased.h: New file, automatically generated by
16067         gen-uni-tables.
16068         * modules/unictype/property-cased-tests: New file.
16069         * tests/unictype/test-pr_cased.c: New file, automatically generated by
16070         gen-uni-tables.
16071
16072 2011-01-09  Bruno Haible  <bruno@clisp.org>
16073
16074         Update to Unicode 5.2.0.
16075         * lib/gen-uni-tables.c (output_predicate, output_category,
16076         output_combclass, output_bidi_category, output_decimal_digit_test,
16077         output_decimal_digit, output_digit_test, output_digit,
16078         output_numeric_test, output_numeric, output_mirror, output_scripts,
16079         output_scripts_byname, output_blocks, output_ident_category): Fix
16080         comment header.
16081         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
16082         get_wbp.
16083         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
16084         items.
16085         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
16086         Changes_When_Lowercased, Changes_When_Uppercased,
16087         Changes_When_Titlecased, Changes_When_Casefolded,
16088         Changes_When_Casemapped.
16089         (is_property_alphabetic, is_property_default_ignorable_code_point):
16090         Update for Unicode 5.2.0.
16091         (is_property_cased, is_property_case_ignorable,
16092         is_property_changes_when_lowercased,
16093         is_property_changes_when_uppercased,
16094         is_property_changes_when_titlecased,
16095         is_property_changes_when_casefolded,
16096         is_property_changes_when_casemapped): New functions.
16097         (output_properties): Output also the properties cased, case_ignorable,
16098         changes_when_lowercased, changes_when_uppercased,
16099         changes_when_titlecased, changes_when_casefolded,
16100         changes_when_casemapped.
16101         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
16102         Unicode TR#11 revision 17 -> 19.
16103         (LBP_CP): New enumeration value.
16104         (LBP_*): Adjust values accordingly.
16105         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
16106         TR#14 revision 22 -> 24.
16107         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
16108         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
16109         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
16110         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
16111         is_WBP_MIDLETTER.
16112         (output_composition_tables): Allow for 24 bits instead of 16 bits in
16113         the code1 and code2 of each composition rule.
16114         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
16115         * lib/unicase/ignorable.h: Likewise.
16116         * lib/unicase/tocasefold.h: Likewise.
16117         * lib/unicase/tolower.h: Likewise.
16118         * lib/unicase/totitle.h: Likewise.
16119         * lib/unicase/toupper.h: Likewise.
16120         * lib/unictype/bidi_of.h: Likewise.
16121         * lib/unictype/blocks.h: Likewise.
16122         * lib/unictype/categ_C.h: Likewise.
16123         * lib/unictype/categ_Cf.h: Likewise.
16124         * lib/unictype/categ_Cn.h: Likewise.
16125         * lib/unictype/categ_L.h: Likewise.
16126         * lib/unictype/categ_Ll.h: Likewise.
16127         * lib/unictype/categ_Lm.h: Likewise.
16128         * lib/unictype/categ_Lo.h: Likewise.
16129         * lib/unictype/categ_Lu.h: Likewise.
16130         * lib/unictype/categ_M.h: Likewise.
16131         * lib/unictype/categ_Mc.h: Likewise.
16132         * lib/unictype/categ_Mn.h: Likewise.
16133         * lib/unictype/categ_N.h: Likewise.
16134         * lib/unictype/categ_Nd.h: Likewise.
16135         * lib/unictype/categ_Nl.h: Likewise.
16136         * lib/unictype/categ_No.h: Likewise.
16137         * lib/unictype/categ_P.h: Likewise.
16138         * lib/unictype/categ_Pd.h: Likewise.
16139         * lib/unictype/categ_Po.h: Likewise.
16140         * lib/unictype/categ_S.h: Likewise.
16141         * lib/unictype/categ_Sc.h: Likewise.
16142         * lib/unictype/categ_So.h: Likewise.
16143         * lib/unictype/categ_of.h: Likewise.
16144         * lib/unictype/combining.h: Likewise.
16145         * lib/unictype/ctype_alnum.h: Likewise.
16146         * lib/unictype/ctype_alpha.h: Likewise.
16147         * lib/unictype/ctype_graph.h: Likewise.
16148         * lib/unictype/ctype_lower.h: Likewise.
16149         * lib/unictype/ctype_print.h: Likewise.
16150         * lib/unictype/ctype_punct.h: Likewise.
16151         * lib/unictype/ctype_upper.h: Likewise.
16152         * lib/unictype/decdigit.h: Likewise.
16153         * lib/unictype/digit.h: Likewise.
16154         * lib/unictype/numeric.h: Likewise.
16155         * lib/unictype/pr_alphabetic.h: Likewise.
16156         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
16157         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
16158         * lib/unictype/pr_bidi_european_digit.h: Likewise.
16159         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
16160         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
16161         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
16162         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
16163         * lib/unictype/pr_combining.h: Likewise.
16164         * lib/unictype/pr_composite.h: Likewise.
16165         * lib/unictype/pr_currency_symbol.h: Likewise.
16166         * lib/unictype/pr_dash.h: Likewise.
16167         * lib/unictype/pr_decimal_digit.h: Likewise.
16168         * lib/unictype/pr_deprecated.h: Likewise.
16169         * lib/unictype/pr_diacritic.h: Likewise.
16170         * lib/unictype/pr_extender.h: Likewise.
16171         * lib/unictype/pr_grapheme_base.h: Likewise.
16172         * lib/unictype/pr_grapheme_extend.h: Likewise.
16173         * lib/unictype/pr_grapheme_link.h: Likewise.
16174         * lib/unictype/pr_id_continue.h: Likewise.
16175         * lib/unictype/pr_id_start.h: Likewise.
16176         * lib/unictype/pr_ideographic.h: Likewise.
16177         * lib/unictype/pr_ignorable_control.h: Likewise.
16178         * lib/unictype/pr_logical_order_exception.h: Likewise.
16179         * lib/unictype/pr_lowercase.h: Likewise.
16180         * lib/unictype/pr_numeric.h: Likewise.
16181         * lib/unictype/pr_other_alphabetic.h: Likewise.
16182         * lib/unictype/pr_punctuation.h: Likewise.
16183         * lib/unictype/pr_sentence_terminal.h: Likewise.
16184         * lib/unictype/pr_terminal_punctuation.h: Likewise.
16185         * lib/unictype/pr_unassigned_code_value.h: Likewise.
16186         * lib/unictype/pr_unified_ideograph.h: Likewise.
16187         * lib/unictype/pr_uppercase.h: Likewise.
16188         * lib/unictype/pr_xid_continue.h: Likewise.
16189         * lib/unictype/pr_xid_start.h: Likewise.
16190         * lib/unictype/pr_zero_width.h: Likewise.
16191         * lib/unictype/scripts.h: Likewise.
16192         * lib/unictype/scripts_byname.gperf: Likewise.
16193         * lib/unictype/sy_java_ident.h: Likewise.
16194         * lib/unigbrk/gbrkprop.h: Likewise.
16195         * lib/unilbrk/lbrkprop1.h: Likewise.
16196         * lib/unilbrk/lbrkprop2.h: Likewise.
16197         * lib/unilbrk/lbrktables.h: Likewise.
16198         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
16199         LBP_CP. Implement rule LB30.
16200         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
16201         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
16202         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
16203         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
16204         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
16205         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
16206         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
16207         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
16208         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
16209         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
16210         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
16211         bits instead of 16 bits in the code1 and code2 of each composition
16212         rule.
16213         (uc_composition): Update for Unicode 5.2.0.
16214         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
16215         * lib/uninorm/decomposition-table2.h: Likewise.
16216         * lib/uniwbrk/wbrkprop.h: Likewise.
16217         * tests/unicase/test-cased.c: Likewise.
16218         * tests/unicase/test-ignorable.c: Likewise.
16219         * tests/unicase/test-uc_tolower.c: Likewise.
16220         * tests/unicase/test-uc_totitle.c: Likewise.
16221         * tests/unicase/test-uc_toupper.c: Likewise.
16222         * tests/unictype/test-categ_C.c: Likewise.
16223         * tests/unictype/test-categ_Cf.c: Likewise.
16224         * tests/unictype/test-categ_Cn.c: Likewise.
16225         * tests/unictype/test-categ_L.c: Likewise.
16226         * tests/unictype/test-categ_Ll.c: Likewise.
16227         * tests/unictype/test-categ_Lm.c: Likewise.
16228         * tests/unictype/test-categ_Lo.c: Likewise.
16229         * tests/unictype/test-categ_Lu.c: Likewise.
16230         * tests/unictype/test-categ_M.c: Likewise.
16231         * tests/unictype/test-categ_Mc.c: Likewise.
16232         * tests/unictype/test-categ_Mn.c: Likewise.
16233         * tests/unictype/test-categ_N.c: Likewise.
16234         * tests/unictype/test-categ_Nd.c: Likewise.
16235         * tests/unictype/test-categ_Nl.c: Likewise.
16236         * tests/unictype/test-categ_No.c: Likewise.
16237         * tests/unictype/test-categ_P.c: Likewise.
16238         * tests/unictype/test-categ_Pd.c: Likewise.
16239         * tests/unictype/test-categ_Po.c: Likewise.
16240         * tests/unictype/test-categ_S.c: Likewise.
16241         * tests/unictype/test-categ_Sc.c: Likewise.
16242         * tests/unictype/test-categ_So.c: Likewise.
16243         * tests/unictype/test-ctype_alnum.c: Likewise.
16244         * tests/unictype/test-ctype_alpha.c: Likewise.
16245         * tests/unictype/test-ctype_graph.c: Likewise.
16246         * tests/unictype/test-ctype_lower.c: Likewise.
16247         * tests/unictype/test-ctype_print.c: Likewise.
16248         * tests/unictype/test-ctype_punct.c: Likewise.
16249         * tests/unictype/test-ctype_upper.c: Likewise.
16250         * tests/unictype/test-decdigit.h: Likewise.
16251         * tests/unictype/test-digit.h: Likewise.
16252         * tests/unictype/test-numeric.h: Likewise.
16253         * tests/unictype/test-pr_alphabetic.c: Likewise.
16254         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
16255         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
16256         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
16257         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
16258         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
16259         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
16260         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
16261         * tests/unictype/test-pr_combining.c: Likewise.
16262         * tests/unictype/test-pr_composite.c: Likewise.
16263         * tests/unictype/test-pr_currency_symbol.c: Likewise.
16264         * tests/unictype/test-pr_dash.c: Likewise.
16265         * tests/unictype/test-pr_decimal_digit.c: Likewise.
16266         * tests/unictype/test-pr_deprecated.c: Likewise.
16267         * tests/unictype/test-pr_diacritic.c: Likewise.
16268         * tests/unictype/test-pr_extender.c: Likewise.
16269         * tests/unictype/test-pr_grapheme_base.c: Likewise.
16270         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
16271         * tests/unictype/test-pr_grapheme_link.c: Likewise.
16272         * tests/unictype/test-pr_id_continue.c: Likewise.
16273         * tests/unictype/test-pr_id_start.c: Likewise.
16274         * tests/unictype/test-pr_ideographic.c: Likewise.
16275         * tests/unictype/test-pr_ignorable_control.c: Likewise.
16276         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
16277         * tests/unictype/test-pr_lowercase.c: Likewise.
16278         * tests/unictype/test-pr_numeric.c: Likewise.
16279         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
16280         * tests/unictype/test-pr_punctuation.c: Likewise.
16281         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
16282         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
16283         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
16284         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
16285         * tests/unictype/test-pr_uppercase.c: Likewise.
16286         * tests/unictype/test-pr_xid_continue.c: Likewise.
16287         * tests/unictype/test-pr_xid_start.c: Likewise.
16288         * tests/unictype/test-pr_zero_width.c: Likewise.
16289         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
16290         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
16291         changed behaviour: line breaking is now disallowed between a letter
16292         or '=' and '('.
16293         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
16294         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
16295         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
16296         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
16297         * tests/uniwidth/test-uc_width2.sh: Same updates as in
16298         lib/uniwidth/width.c.
16299         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
16300         without comments, but with the original copyright notice.
16301         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
16302         changes.
16303         * lib/unictype/categ_Cc.h: Likewise.
16304         * lib/unictype/categ_Co.h: Likewise.
16305         * lib/unictype/categ_Cs.h: Likewise.
16306         * lib/unictype/categ_Lt.h: Likewise.
16307         * lib/unictype/categ_Me.h: Likewise.
16308         * lib/unictype/categ_Pc.h: Likewise.
16309         * lib/unictype/categ_Pe.h: Likewise.
16310         * lib/unictype/categ_Pf.h: Likewise.
16311         * lib/unictype/categ_Pi.h: Likewise.
16312         * lib/unictype/categ_Ps.h: Likewise.
16313         * lib/unictype/categ_Sk.h: Likewise.
16314         * lib/unictype/categ_Sm.h: Likewise.
16315         * lib/unictype/categ_Z.h: Likewise.
16316         * lib/unictype/categ_Zl.h: Likewise.
16317         * lib/unictype/categ_Zp.h: Likewise.
16318         * lib/unictype/categ_Zs.h: Likewise.
16319         * lib/unictype/ctype_blank.h: Likewise.
16320         * lib/unictype/ctype_cntrl.h: Likewise.
16321         * lib/unictype/ctype_digit.h: Likewise.
16322         * lib/unictype/ctype_space.h: Likewise.
16323         * lib/unictype/ctype_xdigit.h: Likewise.
16324         * lib/unictype/mirror.h: Likewise.
16325         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
16326         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
16327         * lib/unictype/pr_bidi_block_separator.h: Likewise.
16328         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
16329         * lib/unictype/pr_bidi_common_separator.h: Likewise.
16330         * lib/unictype/pr_bidi_control.h: Likewise.
16331         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
16332         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
16333         * lib/unictype/pr_bidi_pdf.h: Likewise.
16334         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
16335         * lib/unictype/pr_bidi_whitespace.h: Likewise.
16336         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
16337         * lib/unictype/pr_format_control.h: Likewise.
16338         * lib/unictype/pr_hex_digit.h: Likewise.
16339         * lib/unictype/pr_hyphen.h: Likewise.
16340         * lib/unictype/pr_ids_binary_operator.h: Likewise.
16341         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
16342         * lib/unictype/pr_iso_control.h: Likewise.
16343         * lib/unictype/pr_join_control.h: Likewise.
16344         * lib/unictype/pr_left_of_pair.h: Likewise.
16345         * lib/unictype/pr_line_separator.h: Likewise.
16346         * lib/unictype/pr_math.h: Likewise.
16347         * lib/unictype/pr_non_break.h: Likewise.
16348         * lib/unictype/pr_not_a_character.h: Likewise.
16349         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
16350         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
16351         * lib/unictype/pr_other_id_continue.h: Likewise.
16352         * lib/unictype/pr_other_id_start.h: Likewise.
16353         * lib/unictype/pr_other_lowercase.h: Likewise.
16354         * lib/unictype/pr_other_math.h: Likewise.
16355         * lib/unictype/pr_other_uppercase.h: Likewise.
16356         * lib/unictype/pr_paired_punctuation.h: Likewise.
16357         * lib/unictype/pr_paragraph_separator.h: Likewise.
16358         * lib/unictype/pr_pattern_syntax.h: Likewise.
16359         * lib/unictype/pr_pattern_white_space.h: Likewise.
16360         * lib/unictype/pr_private_use.h: Likewise.
16361         * lib/unictype/pr_quotation_mark.h: Likewise.
16362         * lib/unictype/pr_radical.h: Likewise.
16363         * lib/unictype/pr_soft_dotted.h: Likewise.
16364         * lib/unictype/pr_space.h: Likewise.
16365         * lib/unictype/pr_titlecase.h: Likewise.
16366         * lib/unictype/pr_variation_selector.h: Likewise.
16367         * lib/unictype/pr_white_space.h: Likewise.
16368         * lib/unictype/sy_c_ident.h: Likewise.
16369         * lib/unictype/sy_c_whitespace.h: Likewise.
16370         * lib/unictype/sy_java_whitespace.h: Likewise.
16371         * modules/uni*/*: Bump version number of expected libunistring version.
16372         Reported by Simon Josefsson.
16373
16374 2011-01-09  Karl Heuer  <kwzh@gnu.org>
16375
16376         useless-if-before-free: fix typo in --help and make the internal,
16377         automatic version date update process work once again.
16378         --help output contained a NUL character instead of the
16379         backslash-zero that was intended.  Also, the "must lie within
16380         the first 8 lines" line is on line 9, and hence not getting
16381         automatically updated.
16382         * build-aux/useless-if-before-free: Fix the former by adding a
16383         backslash, and the latter by condensing the three lines of what-it-does
16384         to a single line, leaving one line of slack for the future.
16385
16386 2011-01-09  Bruno Haible  <bruno@clisp.org>
16387
16388         uniwidth/width: Fix width of U+1D173..U+1D17A.
16389         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
16390         symbolic_width, output_width_property_test): New functions.
16391         (main): Invoke output_nonspacing_property, output_width_property_test.
16392         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
16393         U+1D173..U+1D17A.
16394         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
16395         1.
16396         * modules/uniwidth/*: Bump version number of expected libunistring
16397         version.
16398         * modules/unilbrk/*: Likewise.
16399
16400 2011-01-08  Bruno Haible  <bruno@clisp.org>
16401
16402         uninorm tests: Preserve copyright of Unicode data file.
16403         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
16404         Mention modifications.
16405
16406 2011-01-08  Bruno Haible  <bruno@clisp.org>
16407
16408         gen-uni-tables: Prepare for Unicode 5.2.0.
16409         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
16410         (debug_output_lbp, output_lbp): Update.
16411
16412 2011-01-08  Bruno Haible  <bruno@clisp.org>
16413
16414         unilbrk: Clarify gen-uni-tables.c code.
16415         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
16416         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
16417         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
16418
16419 2011-01-07  Bruno Haible  <bruno@clisp.org>
16420
16421         strtod: Restore errno when successfully parsing Infinity or NaN.
16422         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
16423         restore the original errno.
16424
16425 2011-01-07  Bruno Haible  <bruno@clisp.org>
16426
16427         remove test: Avoid failure on HP-UX 11.
16428         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
16429
16430 2011-01-07  Bruno Haible  <bruno@clisp.org>
16431
16432         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
16433         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
16434         error code.
16435
16436 2011-01-07  Pádraig Brady <P@draigBrady.com>
16437
16438         ignore-value: fixup comments, and add Eric Blake
16439         as an author since he rewrote the macros.
16440         * lib/ignore-value.h (ignore_value):  State that
16441         we now support aggregates.  Also specify exactly
16442         when the GCC warn_unused_result feature was added.
16443
16444 2011-01-06  Eric Blake  <eblake@redhat.com>
16445
16446         ignore-value: support aggregate types
16447         * lib/ignore-value.h (ignore_value): Provide separate gcc
16448         definition.
16449         * modules/ignore-value-tests: New test module.
16450         * tests/test-ignore-value.c: New test.
16451
16452         maint.mk: improve sc_prohibit_strcmp regex
16453         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
16454         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
16455         definition of STRNEQ.
16456
16457         signal: work around Haiku issue with SIGBUS
16458         * lib/siglist.h: Add comment.
16459         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
16460         strsignal's favoring of SIGSEGV.
16461         * tests/test-signal.c (main): Avoid test failure.
16462         * doc/posix-headers/signal.texi (signal.h): Document the issue.
16463         Reported by Scott McCreary.
16464
16465         maint.mk: add pre-release check to ensure submodule commits are public
16466         * top/maint.mk (public-submodule-commit): New rule.
16467         (submodule-checks): New variable.
16468         (alpha beta stable): Depend on the variable.
16469
16470 2011-01-05  Pádraig Brady <P@draigBrady.com>
16471         and Jim Meyering  <meyering@redhat.com>
16472
16473         ignore-value: make ignore_value more generic; deprecate ignore_ptr
16474         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
16475         (ATTRIBUTE_DEPRECATED): Define.
16476         (_ignore_case): New function.
16477         (ignore_value): New macro, to replace the old function.
16478         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
16479         * modules/ignore-value (Depends-on): Add stdint.
16480
16481 2011-01-04  Eric Blake  <eblake@redhat.com>
16482
16483         doc: regenerate INSTALL
16484         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
16485         @firstparagraphindent support, now that autoconf dropped it.
16486         (INSTALL_PRELUDE): Reinstate old macro.
16487         * doc/install.texi: Resync from autoconf.
16488         * doc/INSTALL: Reflect recent autoconf update.
16489         * doc/INSTALL.ISO: Likewise.
16490         * doc/INSTALL.UTF-8: Likewise.
16491         Reported by Karl Berry.
16492
16493 2011-01-04  Bruce Korb  <address@hidden>
16494
16495         git-version-gen: avoid a sub-shell
16496         * build-aux/git-version-gen: Redirect stderr in `...` via
16497         "exec 2>...", rather than via an added sub-shell.
16498
16499 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
16500
16501         git-version-gen: use (...) rather than sh -c '...'
16502         * build-aux/git-version-gen: Rather than hard-coding a shell's name
16503         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
16504
16505 2011-01-03  Jim Meyering  <meyering@redhat.com>
16506
16507         git-version-gen: convert leading TABs to spaces
16508         * build-aux/git-version-gen: Expand leading TABs.
16509
16510         git-version-gen: handle failed "git rev-list"
16511         * build-aux/git-version-gen: Rather than leaking a "fatal" error
16512         from git and proceeding as if it had succeeded but printed no SHA1
16513         checksums, suppress the diagnostic and handle the failure.
16514         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
16515
16516         git-version-gen: include command name in one more diagnostic
16517         * build-aux/git-version-gen: When the required .tarball-version file
16518         was missing or unreadable, you might see the diagnostic from "cat",
16519         but no trace of the name of the invoking script.  Now, you still see
16520         the diagnostic from cat, but also get one from "git-version-gen: ".
16521         Inspired by a patch from Bruce Korb.
16522
16523         update-copyright: adjust test to match changed code
16524         * tests/test-update-copyright.sh: Change test's expected output
16525         to match new actual output.
16526
16527 2011-01-02  Bruno Haible  <bruno@clisp.org>
16528
16529         getlogin_r: Avoid test failure on HP-UX 11.
16530         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
16531         ERANGE when the second argument is zero.
16532         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
16533         portability problem.
16534
16535 2011-01-02  Bruce Korb  <bkorb@gnu.org>
16536
16537         * build-aux/update-copyright: doc Simon's changes
16538
16539 2011-01-02  Simon Josefsson  <simon@josefsson.org>
16540
16541         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
16542         environment variable.
16543
16544 2011-01-02  Bruno Haible  <bruno@clisp.org>
16545
16546         unigbrk: Avoid gcc warnings.
16547         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
16548         unused variable.
16549         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
16550         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
16551         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
16552         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
16553         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
16554         Change type of first argument to 'const char *'.
16555         (main): Remove unused variable.
16556         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
16557         type of first argument to 'const char *'.
16558         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
16559         Likewise.
16560         (main): Change type of variable 's'.
16561         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
16562         to 'int'.
16563
16564 2011-01-02  Bruno Haible  <bruno@clisp.org>
16565
16566         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
16567         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
16568         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
16569         bug.
16570         * lib/pwrite.c: Undo 2010-12-31 patch.
16571         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
16572
16573 2011-01-02  Bruno Haible  <bruno@clisp.org>
16574
16575         pread: Fix test whether it works.
16576         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
16577
16578 2011-01-02  Bruno Haible  <bruno@clisp.org>
16579
16580         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
16581         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
16582         ends in "6". Don't require a specific month name. Try also the locale
16583         names found on HP-UX 11 and Solaris 7.
16584
16585 2011-01-02  Bruno Haible  <bruno@clisp.org>
16586
16587         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
16588         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
16589         C linkage.
16590         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
16591
16592 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
16593
16594         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
16595         for consistency, since the "cluster" term is not used elsewhere.
16596         * lib/unigbrk.in.h: Update name.
16597         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
16598         * lib/unigbrk/u16-grapheme-next.c: Update name.
16599         * lib/unigbrk/u16-grapheme-prev.c: Update name.
16600         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
16601         * lib/unigbrk/u32-grapheme-next.c: Update name.
16602         * lib/unigbrk/u32-grapheme-prev.c: Update name.
16603         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
16604         * lib/unigbrk/u8-grapheme-next.c: Update name.
16605         * lib/unigbrk/u8-grapheme-prev.c: Update name.
16606         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
16607         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
16608         Suggested by Bruno Haible.
16609
16610 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
16611
16612         Remove module 'u8-grapheme-len' as too redundant with
16613         'u8-grapheme-next'.
16614         * modules/unigbrk/u8-grapheme-len: Delete file.
16615         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
16616         * lib/unigbrk.in.h: Remove prototype for deleted function.
16617         * lib/unigbrk/u8-grapheme-len.c: Delete file.
16618         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
16619
16620         Remove module 'u16-grapheme-len' as too redundant with
16621         'u16-grapheme-next'.
16622         * modules/unigbrk/u16-grapheme-len: Delete file.
16623         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
16624         * lib/unigbrk.in.h: Remove prototype for deleted function.
16625         * lib/unigbrk/u16-grapheme-len.c: Delete file.
16626         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
16627
16628         Remove module 'u32-grapheme-len' as too redundant with
16629         'u32-grapheme-next'.
16630         * modules/unigbrk/u32-grapheme-len: Delete file.
16631         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
16632         * lib/unigbrk.in.h: Remove prototype for deleted function.
16633         * lib/unigbrk/u32-grapheme-len.c: Delete file.
16634         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
16635
16636         Suggested by Bruno Haible.
16637
16638 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
16639
16640         * unigbrk.in.h: Fix typo: "ben" => "been".
16641         Reported by Bruno Haible.
16642
16643 2011-01-01  Jim Meyering  <meyering@redhat.com>
16644
16645         maint: update almost all copyright ranges to include 2011
16646         Run the new "make update-copyright" rule.
16647
16648 2011-01-01  Jim Meyering  <meyering@redhat.com>
16649
16650         maint: update-copyright: exempt doc/INSTALL*
16651         * Makefile (update-copyright): Also exclude doc/INSTALL*,
16652         since they are generated.  Suggested by Bruno Haible.
16653
16654 2011-01-01  Jim Meyering  <meyering@redhat.com>
16655
16656         maint: refine the update-copyright rule
16657         * Makefile (update-copyright): Also exclude any file that includes
16658         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
16659         code that merely generates the comment.
16660
16661 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
16662
16663         New module 'u8-grapheme-len'.
16664         * modules/unigbrk/u8-grapheme-len: New file.
16665         * modules/unigbrk/u8-grapheme-len-tests: New file.
16666         * lib/unigbrk.in.h: Add prototype for new function.
16667         * lib/unigbrk/u8-grapheme-len.c: New file.
16668         * tests/unigbrk/test-u8-grapheme-len.c: New file.
16669
16670         New module 'u16-grapheme-len'.
16671         * modules/unigbrk/u16-grapheme-len: New file.
16672         * modules/unigbrk/u16-grapheme-len-tests: New file.
16673         * lib/unigbrk.in.h: Add prototype for new function.
16674         * lib/unigbrk/u16-grapheme-len.c: New file.
16675         * tests/unigbrk/test-u16-grapheme-len.c: New file.
16676
16677         New module 'u32-grapheme-len'.
16678         * modules/unigbrk/u32-grapheme-len: New file.
16679         * modules/unigbrk/u32-grapheme-len-tests: New file.
16680         * lib/unigbrk.in.h: Add prototype for new function.
16681         * lib/unigbrk/u32-grapheme-len.c: New file.
16682         * tests/unigbrk/test-u32-grapheme-len.c: New file.
16683
16684         New module 'u8-grapheme-next'.
16685         * modules/unigbrk/u8-grapheme-next: New file.
16686         * modules/unigbrk/u8-grapheme-next-tests: New file.
16687         * lib/unigbrk.in.h: Add prototype for new function.
16688         * lib/unigbrk/u8-grapheme-next.c: New file.
16689         * tests/unigbrk/test-u8-grapheme-next.c: New file.
16690
16691         New module 'u16-grapheme-next'.
16692         * modules/unigbrk/u16-grapheme-next: New file.
16693         * modules/unigbrk/u16-grapheme-next-tests: New file.
16694         * lib/unigbrk.in.h: Add prototype for new function.
16695         * lib/unigbrk/u16-grapheme-next.c: New file.
16696         * tests/unigbrk/test-u16-grapheme-next.c: New file.
16697
16698         New module 'u32-grapheme-next'.
16699         * modules/unigbrk/u32-grapheme-next: New file.
16700         * modules/unigbrk/u32-grapheme-next-tests: New file.
16701         * lib/unigbrk.in.h: Add prototype for new function.
16702         * lib/unigbrk/u32-grapheme-next.c: New file.
16703         * tests/unigbrk/test-u32-grapheme-next.c: New file.
16704
16705         New module 'u8-grapheme-prev'.
16706         * modules/unigbrk/u8-grapheme-prev: New file.
16707         * modules/unigbrk/u8-grapheme-prev-tests: New file.
16708         * lib/unigbrk.in.h: Add prototype for new function.
16709         * lib/unigbrk/u8-grapheme-prev.c: New file.
16710         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
16711
16712         New module 'u16-grapheme-prev'.
16713         * modules/unigbrk/u16-grapheme-prev: New file.
16714         * modules/unigbrk/u16-grapheme-prev-tests: New file.
16715         * lib/unigbrk.in.h: Add prototype for new function.
16716         * lib/unigbrk/u16-grapheme-prev.c: New file.
16717         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
16718
16719         New module 'u32-grapheme-prev'.
16720         * modules/unigbrk/u32-grapheme-prev: New file.
16721         * modules/unigbrk/u32-grapheme-prev-tests: New file.
16722         * lib/unigbrk.in.h: Add prototype for new function.
16723         * lib/unigbrk/u32-grapheme-prev.c: New file.
16724         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
16725
16726         New module 'u8-grapheme-breaks'.
16727         * modules/unigbrk/u8-grapheme-breaks: New file.
16728         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
16729         * lib/unigbrk.in.h: Add prototype for new function.
16730         * lib/unigbrk/u8-grapheme-breaks.c: New file.
16731         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
16732
16733         New module 'u16-grapheme-breaks'.
16734         * modules/unigbrk/u16-grapheme-breaks: New file.
16735         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
16736         * lib/unigbrk.in.h: Add prototype for new function.
16737         * lib/unigbrk/u16-grapheme-breaks.c: New file.
16738         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
16739
16740         New module 'u32-grapheme-breaks'.
16741         * modules/unigbrk/u32-grapheme-breaks: New file.
16742         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
16743         * lib/unigbrk.in.h: Add prototype for new function.
16744         * lib/unigbrk/u32-grapheme-breaks.c: New file.
16745         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
16746
16747         New module 'ulc-grapheme-breaks'.
16748         * modules/unigbrk/ulc-grapheme-breaks: New file.
16749         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
16750         * m4/locale-ar.m4: New file.
16751         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
16752         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
16753         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
16754
16755 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
16756
16757         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
16758         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
16759         modified how this file was generated before I initially submitted
16760         the module, but failed to regenerate it.  This meant that several
16761         of the level2 entries were wrong.
16762         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
16763         Remove the division-by-2 that is folded into the table now that
16764         gbrkprop.h has been regenerated properly.  Now -1 entries are
16765         handled correctly.
16766
16767         New module 'unigbrk/uc-gbrk-prop-tests'.
16768         * modules/unigbrk/uc-gbrk-prop-tests: New file.
16769         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
16770         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
16771         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
16772
16773 2011-01-01  Bruno Haible  <bruno@clisp.org>
16774
16775         Avoid use of hexadecimal escapes.
16776         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
16777         instead of hexadecimal escapes.
16778
16779 2011-01-01  Jim Meyering  <meyering@redhat.com>
16780
16781         maint: new rule to update copyright year ranges
16782         * Makefile (update-copyright): New rule.
16783
16784         maint: indent with TABs in Makefile
16785         * Makefile: Expand leading sequences of spaces to TABs
16786
16787         version-etc: update the copyright year it reports
16788         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
16789
16790 2010-12-31  Bruno Haible  <bruno@clisp.org>
16791
16792         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
16793         * lib/isfinite.c (zerof, zerod, zerol): New variables.
16794         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
16795         zero.
16796
16797 2010-12-31  Bruno Haible  <bruno@clisp.org>
16798
16799         pwrite: Work around HP-UX 11.11 bug.
16800         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
16801         works and set REPLACE_PWRITE if not.
16802         * lib/pwrite.c (pwrite): Add an implementation that uses the system
16803         function.
16804         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
16805
16806 2010-12-31  Bruno Haible  <bruno@clisp.org>
16807
16808         pread: Work around HP-UX 11 bugs.
16809         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
16810         and set REPLACE_PREAD if not.
16811         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
16812
16813 2010-12-31  Eric Blake  <eblake@redhat.com>
16814
16815         nl_langinfo: fix YESEXPR on Irix 6.5
16816         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
16817         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
16818         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
16819         it.
16820
16821 2010-12-31  Bruno Haible  <bruno@clisp.org>
16822
16823         iconv: Document HP-UX 11 bug.
16824         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
16825
16826 2010-12-31  Bruno Haible  <bruno@clisp.org>
16827
16828         ldexpl: Fix link error on HP-UX 11.
16829         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
16830         LDEXPL_LIBM, using $ISNANL_LIBM.
16831
16832 2010-12-31  Eric Blake  <eblake@redhat.com>
16833
16834         ftello: avoid compilation failure with SunStudio c89
16835         * lib/ftello.c (ftello): Use lseek, not llseek.
16836
16837         tests: avoid failing coreutils tests on cygwin
16838         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
16839         (create_exe_shims_): Return 0 when skipping.
16840
16841 2010-12-31  Bruno Haible  <bruno@clisp.org>
16842
16843         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
16844         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
16845
16846 2010-12-31  Bruno Haible  <bruno@clisp.org>
16847
16848         waitpid: Fix link error in C++ mode.
16849         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
16850
16851 2010-12-31  Bruno Haible  <bruno@clisp.org>
16852
16853         isnan: Use GCC built-ins when possible.
16854         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
16855         __builtin_isnan.
16856         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
16857         (isnan): Define using GCC built-ins for GCC >= 4.0.
16858
16859 2010-12-31  Bruno Haible  <bruno@clisp.org>
16860
16861         isnand: Fix mistake.
16862         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
16863         __builtin_isnand.
16864
16865 2010-12-31  Bruno Haible  <bruno@clisp.org>
16866
16867         open: Avoid C++ error on HP-UX 11.
16868         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
16869
16870 2010-12-31  Bruno Haible  <bruno@clisp.org>
16871
16872         time_r: Add missing declarations on HP-UX 11.
16873         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
16874         instead of HAVE_LOCALTIME_R.
16875         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
16876         HAVE_LOCALTIME_R always.
16877         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
16878         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
16879         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
16880         HAVE_LOCALTIME_R.
16881         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
16882         * doc/posix-functions/localtime_r.texi: Likewise.
16883
16884 2010-12-29  Eric Blake  <eblake@redhat.com>
16885
16886         mountlist: tweak previous commit
16887         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
16888         Reported by Paul Eggert.
16889
16890         mountlist: fix local drive detection on cygwin
16891         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
16892         that works for cygwin.
16893
16894 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
16895
16896         ftoastr, snprintf: ftoastr + snprintf module
16897         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
16898         since the snprintf module now should be good enough here.
16899         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
16900         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
16901         and gl_MODULE_INDICATOR([snprintf]), but the former enables
16902         GNULIB_SNPRINTF only for the test directory, and the latter
16903         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
16904         seems to suffice by itself.
16905
16906 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
16907
16908         alloca: one step towards thread-safety
16909         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
16910         need for a static variable.  All callers changed.  This does not
16911         make the alloca replacement thread-safe, but it's one step.
16912
16913         tests: minor indenting change
16914         * tests/init.sh: Sync from coreutils housekeeping patch
16915         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
16916         to keep lines within 80 columns.
16917
16918 2010-12-28  Jim Meyering  <meyering@redhat.com>
16919
16920         regex: don't infloop on persistent failing calloc
16921         * lib/regexec.c (build_trtable): Return failure indication upon
16922         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
16923         In glibc, this was fixed for version 2.13:
16924         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
16925
16926 2010-12-28  Bruno Haible  <bruno@clisp.org>
16927             Paul Eggert <eggert@cs.ucla.edu>
16928
16929         linkat: Make implementation robust against system behaviour variations.
16930         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
16931         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
16932         way, and to -2 if it needs a generic runtime test.
16933         * lib/linkat.c (solaris_optimized_link_immediate,
16934         solaris_optimized_link_follow): New functions.
16935         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
16936         (check_same_link): Use it.
16937
16938 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
16939
16940         New module 'unigbrk/base'.
16941         * modules/unigbrk/base: New file.
16942         * lib/unigbrk.in.h: New file.
16943
16944         New module 'unigbrk/uc-gbrk-prop'.
16945         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
16946         * modules/unigbrk/uc-gbrk-prop: New file.
16947         * lib/unigbrk/gbrkprop.h: New file.
16948         * lib/unigbrk/uc-gbrk-prop.c: New file.
16949
16950         New module 'unigbrk/uc-is-grapheme-break'.
16951         * modules/unigbrk/uc-is-grapheme-break: New file.
16952         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
16953         * lib/unigbrk/uc-is-grapheme-break.c: New file.
16954         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
16955         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
16956         * tests/unigbrk/GraphemeBreakTest.txt: New file.
16957
16958         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
16959
16960 2010-12-27  Bruno Haible  <bruno@clisp.org>
16961
16962         linkat test: Avoid failure on Solaris 11 2010-11.
16963         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
16964
16965 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
16966
16967         utimens: work around glibc rounding bug on more platforms
16968         * lib/utimens.c (fdutimens): Work around rounding bug even if
16969         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
16970         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
16971
16972 2010-12-27  Bruno Haible  <bruno@clisp.org>
16973
16974         select tests: Improve comments.
16975         * tests/test-select.c (do_select): Add comments.
16976
16977 2010-12-27  Bruno Haible  <bruno@clisp.org>
16978
16979         select tests: Safer way of handling timeout.
16980         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
16981         at every invocation.
16982
16983 2010-12-27  Bruno Haible  <bruno@clisp.org>
16984
16985         select tests: Use 'bool' where appropriate.
16986         * tests/test-select.c (connect_to_socket): Change argument type to
16987         'bool'.
16988
16989 2010-12-27  Bruno Haible  <bruno@clisp.org>
16990
16991         select tests: Use existing modules.
16992         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
16993         (configure.ac): Don't test for unistd.h.
16994         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
16995         declared in <unistd.h>.
16996
16997 2010-12-27  Bruno Haible  <bruno@clisp.org>
16998
16999         mbrtowc: Work around a Solaris 7 bug.
17000         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
17001         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
17002         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
17003         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
17004         MBRTOWC_NULL_ARG1_BUG.
17005         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
17006         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
17007         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
17008         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
17009
17010 2010-12-27  Jim Meyering  <meyering@redhat.com>
17011
17012         read-file.c: tweak syntax
17013         * lib/read-file.c (fread_file): Remove space after "*" in function
17014         definitions.
17015
17016 2010-12-27  Bruno Haible  <bruno@clisp.org>
17017
17018         times test: Avoid gcc warnings on OSF/1.
17019         * tests/test-times.c (main): Cast printf arguments from clock_t to
17020         'long int'.
17021
17022 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
17023
17024         utimens: work around glibc rounding bug on older Linux kernels
17025         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
17026         on Linux with a glibc whose utimes might not work, then work
17027         around a longstanding glibc bug involving rounding rather than
17028         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
17029         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
17030
17031 2010-12-26  Bruno Haible  <bruno@clisp.org>
17032
17033         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
17034         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
17035         _GL_CXXALIAS_SYS.
17036         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17037
17038 2010-12-26  Bruno Haible  <bruno@clisp.org>
17039
17040         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
17041         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
17042         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
17043         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
17044         looking for the declaration.
17045         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
17046         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
17047         problem.
17048         * doc/posix-functions/inet_pton.texi: Likewise.
17049
17050 2010-12-26  Bruno Haible  <bruno@clisp.org>
17051
17052         arpa_inet: Use the common idioms with C++ support.
17053         * lib/arpa_inet.in.h: Include c++defs.h.
17054         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
17055         support.
17056         * modules/arpa_inet (Depends-on): Add c++defs.
17057         (Makefile.am): Substitute the contents of c++defs.h.
17058         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
17059         * modules/arpa_inet-c++-tests: New file.
17060         * tests/test-arpa_inet-c++.cc: New file.
17061
17062 2010-12-25  Bruno Haible  <bruno@clisp.org>
17063
17064         Fix more C++ link errors on Solaris 8.
17065         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
17066         $(LIB_EACCESS).
17067         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
17068         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
17069         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
17070         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
17071         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
17072
17073 2010-12-25  Bruno Haible  <bruno@clisp.org>
17074
17075         printf-posix: Fix link error when a non-GCC compiler is used.
17076         * lib/stdio.in.h (printf): When not using GCC, override printf
17077         correctly.
17078         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17079
17080 2010-12-25  Bruno Haible  <bruno@clisp.org>
17081
17082         strerror_r-posix: Update doc.
17083         * doc/posix-functions/strerror_r.texi: Update doc about the return
17084         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
17085
17086 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
17087
17088         utimens: simplify the logic of the previous change
17089         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
17090         This should not affect whether the test succeeds or fails.
17091
17092         utimens: configure better on hosts with NFS clock skew
17093         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
17094         uses the clock of the local host.  It might use the clock of the
17095         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
17096         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
17097
17098 2010-12-25  Bruno Haible  <bruno@clisp.org>
17099
17100         ptsname test: Avoid failure on Solaris.
17101         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
17102         open a pseudo-terminal; don't use BSD-style ptys.
17103         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
17104
17105 2010-12-25  Bruno Haible  <bruno@clisp.org>
17106
17107         ptsname: Avoid ERANGE failure on some systems.
17108         * lib/ptsname.c (buffer): Increase size.
17109
17110 2010-12-25  Bruno Haible  <bruno@clisp.org>
17111
17112         rename, renameat: Avoid test failures at NFS mounted locations.
17113         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
17114         so that subsequent mkdir calls succeed.
17115
17116 2010-12-25  Bruno Haible  <bruno@clisp.org>
17117
17118         iswblank: Fix C++ link error on Solaris 8.
17119         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
17120         _GL_FUNCDECL_SYS.
17121
17122 2010-12-25  Bruno Haible  <bruno@clisp.org>
17123
17124         unistd: Fix C++ link error on Solaris 8.
17125         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
17126
17127 2010-12-25  Bruno Haible  <bruno@clisp.org>
17128
17129         readlink doc: Mention an old glibc bug.
17130         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
17131
17132 2010-12-25  Bruno Haible  <bruno@clisp.org>
17133
17134         fcntl-h: Fix for use of C++ on glibc systems.
17135         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
17136         also on glibc systems in C++ mode.
17137         Reported by Gary V. Vaughan <gary@gnu.org>.
17138
17139 2010-12-25  Bruno Haible  <bruno@clisp.org>
17140
17141         roundl-ieee: Make it work on OSF/1 5.1 with cc.
17142         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
17143
17144 2010-12-25  Bruno Haible  <bruno@clisp.org>
17145
17146         truncl-ieee: Make it work on OSF/1 5.1 with cc.
17147         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
17148         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
17149         test whether truncl works according to ISO C 99 with IEC 60559.
17150         * m4/truncl-ieee.m4: New file.
17151         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
17152         m4/signbit.m4.
17153         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
17154
17155 2010-12-25  Bruno Haible  <bruno@clisp.org>
17156
17157         ceill-ieee: Make it work on OSF/1 5.1 with cc.
17158         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
17159         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
17160         test whether ceill works according to ISO C 99 with IEC 60559.
17161         * m4/ceill-ieee.m4: New file.
17162         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
17163         m4/signbit.m4.
17164         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
17165
17166 2010-12-25  Bruno Haible  <bruno@clisp.org>
17167
17168         Ensure all prerequisites of <wchar.h> are included.
17169         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
17170         before <wchar.h>.
17171         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
17172         gl_MBRLEN_NUL_RETVAL): Likewise.
17173         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
17174         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
17175         AC_FUNC_MBRTOWC): Likewise.
17176         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
17177         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
17178         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
17179         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
17180         Likewise.
17181         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
17182         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
17183         (gl_WCHAR_H): Improve comments.
17184         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
17185
17186 2010-12-25  Bruno Haible  <bruno@clisp.org>
17187
17188         strtok_r: Fix C syntax error in autoconf macro.
17189         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
17190         characters in test program.
17191
17192 2010-12-24  Bruno Haible  <bruno@clisp.org>
17193
17194         ceil, trunc, round: Fix gcc warnings.
17195         * lib/ceil.c (MIN): Undefine before redefining.
17196         * lib/trunc.c (MIN): Likewise.
17197         * lib/round.c (MIN): Likewise.
17198         Include <math.h> first.
17199
17200 2010-12-24  Bruno Haible  <bruno@clisp.org>
17201
17202         select tests: Avoid failures on OSF/1 5.1.
17203         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
17204         failure of closing the last socket; it may fail with ECONNRESET.
17205
17206 2010-12-24  Eric Blake  <eblake@redhat.com>
17207
17208         stdint: avoid HP-UX 10.20 preprocessor bug
17209         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
17210         than #if.
17211         * tests/test-floor2.c (main): Likewise.
17212         Reported by Peter O'Gorman.
17213
17214         pipe: make obsoletion transition easier
17215         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
17216         * modules/pipe (Files): Include revived file.
17217         (Include): Drop reference, to mirror getdate's behavior.
17218
17219 2010-12-24  Bruno Haible  <bruno@clisp.org>
17220
17221         sys_socket: Hide mismatch of declarations on NonStop Kernel.
17222         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
17223         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
17224         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17225
17226 2010-12-24  Bruno Haible  <bruno@clisp.org>
17227
17228         gethostname: Ensure declaration on NonStop Kernel.
17229         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
17230         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17231
17232 2010-12-24  Bruno Haible  <bruno@clisp.org>
17233
17234         sys_select: Ensure all necessary types on NonStop Kernel.
17235         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
17236         include <sys/time.h>.
17237         * doc/posix-headers/sys_select.texi: Mention that it's missing on
17238         NonStop Kernel.
17239         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17240
17241 2010-12-24  Bruno Haible  <bruno@clisp.org>
17242
17243         sys_select: Remove unneeded include.
17244         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
17245         have <sys/select.h>.
17246
17247 2010-12-24  Bruno Haible  <bruno@clisp.org>
17248
17249         gethostname: Provide a fallback for HOST_NAME_MAX.
17250         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
17251         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
17252         instead.
17253         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17254
17255 2010-12-24  Bruno Haible  <bruno@clisp.org>
17256
17257         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
17258         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
17259         (SA_RESTART): Likewise.
17260         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17261
17262 2010-12-24  Bruno Haible  <bruno@clisp.org>
17263
17264         signal: Define NSIG.
17265         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
17266         * tests/test-signal.c (nsig): New variable.
17267         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17268
17269 2010-12-24  Bruno Haible  <bruno@clisp.org>
17270
17271         rename, renameat: Avoid test failures on OSF/1 5.1.
17272         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
17273         alternative error codes.
17274         * tests/test-renameat.c (main): Likewise.
17275
17276 2010-12-24  Bruno Haible  <bruno@clisp.org>
17277
17278         *printf: Detect large precisions bug on Solaris 10/SPARC.
17279         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
17280         by Paul Eggert.
17281         * tests/test-snprintf-posix.h (test_function): Add this test code here
17282         too.
17283         * tests/test-sprintf-posix.h (test_function): Likewise.
17284         * tests/test-vasnprintf-posix.c (test_function): Likewise.
17285         * tests/test-vasprintf-posix.c (test_function): Likewise.
17286         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
17287         around by gnulib.
17288         * doc/posix-functions/printf.texi: Likewise.
17289         * doc/posix-functions/snprintf.texi: Likewise.
17290         * doc/posix-functions/sprintf.texi: Likewise.
17291         * doc/posix-functions/vfprintf.texi: Likewise.
17292         * doc/posix-functions/vprintf.texi: Likewise.
17293         * doc/posix-functions/vsnprintf.texi: Likewise.
17294         * doc/posix-functions/vsprintf.texi: Likewise.
17295         * doc/posix-functions/dprintf.texi: Undo last commit.
17296         * doc/posix-functions/vdprintf.texi: Likewise.
17297
17298 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
17299
17300         tests: port test-fdutimensat.c to Solaris 8
17301         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
17302         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
17303         On Solaris 8, it fails with errno == ENOSYS, because there is no
17304         futimens (so it can't use the fd), and there is no lutimens (so it
17305         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
17306
17307         vsnprintf: make more consistent with snprintf; doc fixes
17308
17309         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
17310         the byte count return problem was promoted from the snprintf-posix
17311         to the snprintf module.
17312         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
17313         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
17314         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
17315         * tests/test-snprintf.c (main): Check the byte count returned.
17316         * tests/test-vsnprintf.c (main): Likewise.
17317
17318 2010-12-23  Eric Blake  <eblake@redhat.com>
17319
17320         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
17321         * modules/sigpipe (License): Relax license.
17322
17323 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
17324
17325         doc: document Solaris printf bug with large float precisions
17326         * doc/posix-functions/dprintf.texi (dprintf):
17327         * doc/posix-functions/fprintf.texi (fprintf):
17328         * doc/posix-functions/printf.texi (printf):
17329         * doc/posix-functions/snprintf.texi (snprintf):
17330         * doc/posix-functions/sprintf.texi (sprintf):
17331         * doc/posix-functions/vdprintf.texi (vdprintf):
17332         * doc/posix-functions/vfprintf.texi (vfprintf):
17333         * doc/posix-functions/vprintf.texi (vprintf):
17334         * doc/posix-functions/vsnprintf.texi (vsnprintf):
17335         * doc/posix-functions/vsprintf.texi (vsprintf):
17336         Mention that these functions mishandle large floating point
17337         precisions on Solaris 10.  The same bug is also present in Solaris
17338         8, and I assume earlier.  This causes "cd gnulib-tests; make
17339         check" to fail on Solaris 8 (and I assume, later) when building
17340         the latest coreutils, in test-vasprintf-posix's call to
17341         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
17342         the wide flavors (e.g., wprintf) so this patch just updates the
17343         documentation for the narrow ones.
17344
17345         test-posixtm.c: add two tests
17346         * tests/test-posixtm.c: Add two tests, to highlight the
17347         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
17348         around this bug; this is merely to document it.
17349
17350 2010-12-22  Bruno Haible  <bruno@clisp.org>
17351
17352         getlogin_r: Work around portability problem on OSF/1.
17353         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
17354         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
17355         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
17356         test for a truncated result.
17357         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
17358         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
17359         * modules/getlogin_r (Depends-on): Add memchr.
17360         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
17361
17362 2010-12-22  Bruno Haible  <bruno@clisp.org>
17363
17364         ptsname: Avoid test failure on OSF/1 5.1.
17365         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
17366         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
17367         (same_slave): New function.
17368         (main): Use it to compare ptsname's result with the expected file name.
17369
17370 2010-12-22  Bruno Haible  <bruno@clisp.org>
17371
17372         Port extended stdio modules to HP NonStop Kernel.
17373         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
17374         macros.
17375         * lib/fbufmode.c: Update comments.
17376         * lib/fflush.c: Likewise.
17377         * lib/fpurge.c: Likewise.
17378         * lib/freadable.c: Likewise.
17379         * lib/freadahead.c: Likewise.
17380         * lib/freading.c: Likewise.
17381         * lib/freadptr.c: Likewise.
17382         * lib/freadseek.c: Likewise.
17383         * lib/fseeko.c: Likewise.
17384         * lib/fseterr.c: Likewise.
17385         * lib/fwritable.c: Likewise.
17386         * lib/fwriting.c: Likewise.
17387         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17388
17389 2010-12-22  Bruno Haible  <bruno@clisp.org>
17390
17391         ttyname_r: Work around bug on OSF/1 5.1.
17392         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
17393         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
17394         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
17395         present.
17396         * lib/ttyname_r.c (ttyname_r): Update comments.
17397
17398 2010-12-22  Bruno Haible  <bruno@clisp.org>
17399
17400         round: Implement result sign according to IEEE 754.
17401         * lib/round.c (MIN, MINUS_ZERO): New macros.
17402         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
17403         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
17404         * tests/test-round-ieee.c (main): Likewise.
17405         * tests/test-roundl-ieee.c (main): Likewise.
17406
17407         trunc: Implement result sign according to IEEE 754.
17408         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
17409         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
17410         * tests/test-trunc2.c: Include minus-zero.h.
17411         (MINUS_ZERO): New macro.
17412         (trunc_reference): Keep in sync with lib/trunc.c.
17413         * tests/test-truncf2.c: Include minus-zero.h.
17414         (MINUS_ZERO): New macro.
17415         (truncf_reference): Keep in sync with lib/trunc.c.
17416         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
17417         * tests/test-trunc-ieee.c (main): Likewise.
17418         * tests/test-truncl-ieee.c (main): Likewise.
17419
17420         ceil: Implement result sign according to IEEE 754.
17421         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
17422         (FUNC): Return -0.0 for -1 < x < 0.
17423         * tests/test-ceil2.c: Include minus-zero.h.
17424         (MINUS_ZERO): New macro.
17425         (ceil_reference): Keep in sync with lib/ceil.c.
17426         * tests/test-ceilf2.c: Include minus-zero.h.
17427         (MINUS_ZERO): New macro.
17428         (ceilf_reference): Keep in sync with lib/ceil.c.
17429         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
17430         * tests/test-ceil-ieee.c (main): Likewise.
17431         * tests/test-ceill-ieee.c (main): Likewise.
17432
17433         floor: Implement result sign according to IEEE 754.
17434         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
17435         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
17436         * tests/test-floorf2.c (floorf_reference): Likewise.
17437         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
17438         * tests/test-floor-ieee.c (main): Likewise.
17439         * tests/test-floorl-ieee.c (main): Likewise.
17440
17441 2010-12-22  Bruno Haible  <bruno@clisp.org>
17442
17443         getaddrinfo: Update doc.
17444         * doc/posix-functions/gai_strerror.texi: Return type is also different
17445         on AIX and HP-UX.
17446
17447 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
17448
17449         getaddrinfo, inet_ntop: Update doc for Solaris.
17450         * doc/posix-functions/gai_strerror.texi: Return type is also an
17451         issue on Solaris 9 and earlier.
17452         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
17453         on Solaris 10 and earlier.
17454
17455 2010-12-21  Bruno Haible  <bruno@clisp.org>
17456
17457         New module 'roundl-ieee'.
17458         * modules/roundl-ieee: New file.
17459         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
17460         test whether roundl works according to ISO C 99 with IEC 60559.
17461         * m4/roundl-ieee.m4: New file.
17462         * modules/roundl-ieee-tests: New file.
17463         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
17464         * tests/test-roundl.c (main): Remove signbit tests.
17465         * modules/roundl-tests (Depends-on): Remove signbit.
17466         * doc/posix-functions/roundl.texi: Mention the new module.
17467
17468 2010-12-21  Bruno Haible  <bruno@clisp.org>
17469
17470         New module 'truncl-ieee'.
17471         * modules/truncl-ieee: New file.
17472         * modules/truncl-ieee-tests: New file.
17473         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
17474         * tests/test-truncl.c (main): Remove signbit tests.
17475         * modules/truncl-tests (Depends-on): Remove signbit.
17476         * doc/posix-functions/truncl.texi: Mention the new module.
17477
17478 2010-12-21  Bruno Haible  <bruno@clisp.org>
17479
17480         New module 'ceill-ieee'.
17481         * modules/ceill-ieee: New file.
17482         * modules/ceill-ieee-tests: New file.
17483         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
17484         * tests/test-ceill.c (main): Remove signbit tests.
17485         * modules/ceill-tests (Depends-on): Remove signbit.
17486         * doc/posix-functions/ceill.texi: Mention the new module.
17487
17488 2010-12-21  Bruno Haible  <bruno@clisp.org>
17489
17490         New module 'floorl-ieee'.
17491         * modules/floorl-ieee: New file.
17492         * modules/floorl-ieee-tests: New file.
17493         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
17494         * tests/test-floorl.c (main): Remove signbit tests.
17495         * modules/floorl-tests (Depends-on): Remove signbit.
17496         * doc/posix-functions/floorl.texi: Mention the new module.
17497
17498 2010-12-21  Bruno Haible  <bruno@clisp.org>
17499
17500         New module 'round-ieee'.
17501         * modules/round-ieee: New file.
17502         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
17503         whether round works according to ISO C 99 with IEC 60559.
17504         * m4/round-ieee.m4: New file.
17505         * modules/round-ieee-tests: New file.
17506         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
17507         * tests/test-round1.c (main): Remove signbit tests.
17508         * modules/round-tests (Depends-on): Remove 'signbit'.
17509         * doc/posix-functions/round.texi: Mention the new module.
17510
17511 2010-12-21  Bruno Haible  <bruno@clisp.org>
17512
17513         New module 'trunc-ieee'.
17514         * modules/trunc-ieee: New file.
17515         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
17516         whether trunc works according to ISO C 99 with IEC 60559.
17517         * m4/trunc-ieee.m4: New file.
17518         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
17519         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
17520         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
17521         * modules/trunc-ieee-tests: New file.
17522         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
17523         * tests/test-trunc1.c (main): Remove signbit tests.
17524         * modules/trunc-tests (Depends-on): Remove 'signbit'.
17525         * doc/posix-functions/trunc.texi: Mention the new module.
17526
17527 2010-12-21  Bruno Haible  <bruno@clisp.org>
17528
17529         New module 'ceil-ieee'.
17530         * modules/ceil-ieee: New file.
17531         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
17532         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
17533         ISO C 99 with IEC 60559.
17534         * m4/ceil-ieee.m4: New file.
17535         * modules/ceil (Files): Add lib/ceil.c.
17536         (Depends-on): Add 'float'.
17537         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
17538         * lib/math.in.h (ceil): New declaration.
17539         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
17540         REPLACE_CEIL.
17541         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
17542         * modules/ceil-ieee-tests: New file.
17543         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
17544         * tests/test-math-c++.cc: Check the signature of 'ceil'.
17545         * doc/posix-functions/ceil.texi: Mention the new module.
17546
17547 2010-12-21  Bruno Haible  <bruno@clisp.org>
17548
17549         New module 'floor-ieee'.
17550         * modules/floor-ieee: New file.
17551         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
17552         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
17553         ISO C 99 with IEC 60559.
17554         * m4/floor-ieee.m4: New file.
17555         * modules/floor (Files): Add lib/floor.c.
17556         (Depends-on): Add 'float'.
17557         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
17558         * lib/math.in.h (floor): New declaration.
17559         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
17560         REPLACE_FLOOR.
17561         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
17562         * modules/floor-ieee-tests: New file.
17563         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
17564         * tests/test-math-c++.cc: Check the signature of 'floor'.
17565         * doc/posix-functions/floor.texi: Mention the new module.
17566
17567 2010-12-21  Bruno Haible  <bruno@clisp.org>
17568
17569         New module 'roundf-ieee'.
17570         * modules/roundf-ieee: New file.
17571         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
17572         test whether roundf works according to ISO C 99 with IEC 60559.
17573         * m4/roundf-ieee.m4: New file.
17574         * modules/roundf-ieee-tests: New file.
17575         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
17576         * tests/test-roundf1.c (main): Remove signbit tests.
17577         * modules/roundf-tests (Depends-on): Remove 'signbit'.
17578         * doc/posix-functions/roundf.texi: Mention the new module.
17579
17580 2010-12-21  Bruno Haible  <bruno@clisp.org>
17581
17582         New module 'truncf-ieee'.
17583         * modules/truncf-ieee: New file.
17584         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
17585         test whether truncf works according to ISO C 99 with IEC 60559.
17586         * m4/truncf-ieee.m4: New file.
17587         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
17588         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
17589         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
17590         * modules/truncf-ieee-tests: New file.
17591         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
17592         * tests/test-truncf1.c (main): Remove signbit tests.
17593         * modules/truncf-tests (Depends-on): Remove 'signbit'.
17594         * doc/posix-functions/truncf.texi: Mention the new module.
17595
17596 2010-12-21  Bruno Haible  <bruno@clisp.org>
17597
17598         New module 'ceilf-ieee'.
17599         * modules/ceilf-ieee: New file.
17600         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
17601         test whether ceilf works according to ISO C 99 with IEC 60559.
17602         * m4/ceilf-ieee.m4: New file.
17603         * modules/ceilf-ieee-tests: New file.
17604         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
17605         * tests/test-ceilf1.c (main): Remove signbit tests.
17606         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
17607         * doc/posix-functions/ceilf.texi: Mention the new module.
17608
17609 2010-12-21  Bruno Haible  <bruno@clisp.org>
17610
17611         New module 'floorf-ieee'.
17612         * modules/floorf-ieee: New file.
17613         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
17614         test whether floorf works according to ISO C 99 with IEC 60559.
17615         * m4/floorf-ieee.m4: New file.
17616         * modules/floorf-ieee-tests: New file.
17617         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
17618         * tests/test-floorf1.c (main): Remove signbit tests.
17619         * modules/floorf-tests (Depends-on): Remove 'signbit'.
17620         * doc/posix-functions/floorf.texi: Mention the new module.
17621
17622 2010-12-21  Bruno Haible  <bruno@clisp.org>
17623
17624         Support for minus zero in autoconf macros.
17625         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
17626         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
17627         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
17628         * tests/minus-zero.h: Update comments.
17629
17630 2010-12-21  Bruno Haible  <bruno@clisp.org>
17631
17632         Tests for module 'ceil'.
17633         * modules/ceil-tests: New file.
17634         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
17635         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
17636
17637 2010-12-21  Bruno Haible  <bruno@clisp.org>
17638
17639         Tests for module 'floor'.
17640         * modules/floor-tests: New file.
17641         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
17642         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
17643
17644 2010-12-21  Bruno Haible  <bruno@clisp.org>
17645
17646         math: Fix indentation.
17647         * lib/math.in.h (floorf): Fix indentation.
17648
17649 2010-12-21  Bruno Haible  <bruno@clisp.org>
17650
17651         Fix cross-compilation guesses on Solaris.
17652         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
17653         not match "solaris2.10".
17654         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
17655         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
17656         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
17657
17658 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
17659
17660         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
17661         This fixes a problem observed with the latest coreutils snapshot
17662         that caused a test to fail on Solaris 8.  src/csplit.c's call
17663         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
17664         earlier, instead of returning the number of bytes that would have
17665         been generated; this causes csplit to incorrectly report memory
17666         exhaustion.
17667         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
17668         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
17669         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
17670         comments to match.
17671         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
17672         Fix typo in matching older versions of Solaris: "solaris2.10"
17673         is matched by the shell pattern "solaris2.[0-9]*".  This matters
17674         only for guessing while cross-compiling.
17675         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
17676
17677 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
17678
17679         ftoastr: fix comment again
17680         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
17681         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
17682         Also, simplify example a bit by using flags = 0.
17683
17684 2010-12-20  Bruno Haible  <bruno@clisp.org>
17685
17686         round*, trunc*: Update documentation regarding glibc.
17687         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
17688         * doc/posix-functions/round.texi: Likewise.
17689         * doc/posix-functions/roundl.texi: Likewise.
17690         * doc/posix-functions/truncf.texi: Likewise.
17691         * doc/posix-functions/trunc.texi: Likewise.
17692         * doc/posix-functions/truncl.texi: Likewise.
17693
17694 2010-12-20  Bruno Haible  <bruno@clisp.org>
17695
17696         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
17697         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
17698         * doc/posix-functions/round.texi: Likewise.
17699         * doc/posix-functions/roundl.texi: Likewise.
17700
17701 2010-12-20  Bruno Haible  <bruno@clisp.org>
17702
17703         ttyname_r: Add missing declaration on HP-UX 11.
17704         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
17705         HAVE_TTYNAME_R.
17706         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
17707         declared. Set HAVE_TTYNAME_R always.
17708         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
17709         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
17710         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
17711         HAVE_TTYNAME_R.
17712         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
17713
17714 2010-12-20  Bruno Haible  <bruno@clisp.org>
17715
17716         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
17717         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
17718         * doc/posix-functions/getlogin_r.texi: Likewise.
17719         * tests/test-getlogin.c: Include <errno.h>.
17720         (main): Avoid test failure on HP-UX 11.11.
17721         * tests/test-getlogin_r.c (main): Likewise.
17722
17723 2010-12-20  Bruno Haible  <bruno@clisp.org>
17724
17725         getlogin_r: Add missing declaration on HP-UX 11.
17726         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
17727         declared also when it exists as a function.
17728         * doc/posix-functions/getlogin_r.texi: Document this workaround.
17729
17730 2010-12-20  Bruno Haible  <bruno@clisp.org>
17731
17732         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
17733         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
17734         through wcrtomb.
17735
17736 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
17737
17738         ftoastr: fix comment
17739         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
17740         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
17741
17742 2010-12-19  Bruno Haible  <bruno@clisp.org>
17743
17744         isnan: Ensure it is a macro.
17745         * lib/math.in.h (isnan): Define as a macro if not already a macro.
17746         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
17747         Solaris.
17748
17749 2010-12-19  Bruno Haible  <bruno@clisp.org>
17750
17751         ldexpl test: Fix link error on OSF/1 5.1.
17752         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
17753
17754 2010-12-19  Bruno Haible  <bruno@clisp.org>
17755
17756         wctype: Make it work in C++ mode on OSF/1 5.1.
17757         * lib/wctype.in.h (iswblank): Declare but not define here.
17758         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
17759         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
17760         * modules/wctype (Files): Add lib/iswblank.c.
17761
17762 2010-12-19  Bruno Haible  <bruno@clisp.org>
17763
17764         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
17765         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
17766         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
17767
17768 2010-12-19  Bruno Haible  <bruno@clisp.org>
17769
17770         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
17771         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
17772         _POSIX_PII_SOCKET.
17773         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
17774         * doc/posix-functions/recvfrom.texi: Likewise.
17775         * doc/posix-functions/send.texi: Likewise.
17776         * doc/posix-functions/sendto.texi: Likewise.
17777
17778 2010-12-19  Bruno Haible  <bruno@clisp.org>
17779
17780         tcgetsid: Add missing declaration on OSF/1 5.1.
17781         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
17782         HAVE_TCGETSID.
17783         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
17784         Don't set HAVE_TCGETSID.
17785         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
17786         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
17787         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
17788         HAVE_TCGETSID.
17789         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
17790
17791 2010-12-19  Bruno Haible  <bruno@clisp.org>
17792
17793         stdio: Fix problem with popen() declaration on OSF/1 5.1.
17794         * lib/stdio.in.h: During the include_next statement, let recursive
17795         includes of this file include only the system header file.
17796
17797 2010-12-19  Bruno Haible  <bruno@clisp.org>
17798
17799         iconv_open: Fix regression from 2010-12-04.
17800         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
17801         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
17802
17803 2010-12-19  Bruno Haible  <bruno@clisp.org>
17804
17805         stdbool test: Avoid a gcc warning.
17806         * tests/test-stdbool.c (main): Fail if e1 is false.
17807         Reported by Jim Meyering.
17808
17809 2010-12-19  Jim Meyering  <meyering@redhat.com>
17810
17811         setenv: restore to working order
17812         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
17813         mistakenly removed.
17814         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
17815         HAVE_SETENV.
17816         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
17817         HAVE_SETENV.
17818
17819 2010-12-19  Bruno Haible  <bruno@clisp.org>
17820
17821         Document some different function declarations on OSF/1 5.1.
17822         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
17823         * doc/posix-functions/inet_ntop.texi: Likewise.
17824         * doc/posix-functions/gethostname.texi: Likewise.
17825         * lib/unistd.in.h (gethostname): Update comment.
17826
17827 2010-12-19  Bruno Haible  <bruno@clisp.org>
17828
17829         doc: Mention vasprintf-posix module.
17830         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
17831         the 'vasprintf-posix' module.
17832         * doc/glibc-functions/vasprintf.texi: Likewise.
17833
17834 2010-12-19  Bruno Haible  <bruno@clisp.org>
17835
17836         unsetenv: Add missing declaration on OSF/1 5.1.
17837         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
17838         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
17839         Don't set HAVE_UNSETENV. In the test program, set _BSD.
17840         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
17841         not HAVE_UNSETENV.
17842         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
17843         HAVE_UNSETENV.
17844         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
17845
17846 2010-12-19  Bruno Haible  <bruno@clisp.org>
17847
17848         setenv: Add missing declaration on OSF/1 5.1.
17849         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
17850         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
17851         declared. Don't set HAVE_SETENV.
17852         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
17853         not HAVE_SETENV.
17854         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
17855         HAVE_SETENV.
17856         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
17857
17858 2010-12-19  Bruno Haible  <bruno@clisp.org>
17859
17860         nl_langinfo tests: Avoid gcc warning.
17861         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
17862
17863 2010-12-19  Bruno Haible  <bruno@clisp.org>
17864
17865         mknod: Avoid error in C++ mode on OSF/1 with GCC.
17866         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
17867         _GL_CXXALIAS_SYS.
17868
17869 2010-12-19  Bruno Haible  <bruno@clisp.org>
17870
17871         stdbool: Relax test.
17872         * tests/test-stdbool.c (e): Don't require that casts from a variable's
17873         address to 'bool' work in static initializer, for compilers other than
17874         GCC.
17875
17876 2010-12-19  Bruno Haible  <bruno@clisp.org>
17877
17878         ftello: Add missing declaration on OSF/1 5.1.
17879         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
17880         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
17881         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
17882         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
17883         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
17884
17885 2010-12-19  Bruno Haible  <bruno@clisp.org>
17886
17887         fseeko: Add missing declaration on OSF/1 5.1.
17888         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
17889         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
17890         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
17891         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
17892         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
17893
17894 2010-12-19  Bruno Haible  <bruno@clisp.org>
17895
17896         fchdir: Add missing declaration on OSF/1 5.1.
17897         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
17898         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
17899         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
17900         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
17901         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
17902
17903 2010-12-19  Bruno Haible  <bruno@clisp.org>
17904
17905         relocatable-prog-wrapper: Separate from relocatable-prog.
17906         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
17907         uninstall-relocwrapper rule here.
17908         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
17909         Reported by Ian Beckwith <ianb@erislabs.net>.
17910
17911 2010-12-19  Bruno Haible  <bruno@clisp.org>
17912
17913         unistr/u8-mbsnlen: Add missing dependency.
17914         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
17915         Reported by Ian Beckwith <ianb@erislabs.net>.
17916
17917 2010-12-19  Bruno Haible  <bruno@clisp.org>
17918
17919         iconv: Make it possible again to use this module without 'iconv-h'.
17920         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
17921         if it is not defined.
17922         Reported by Ian Beckwith <ianb@erislabs.net>.
17923
17924 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
17925
17926         acl: port to Solaris 8 when copying from tmpfs to ufs
17927         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
17928         error number.  Problem observed on Solaris 8 with latest
17929         coreutils, with "mv A B", where A is on a tmpfs file system and B
17930         is on a ufs file system.  This caused coreutils' mv/part-symlink
17931         test to fail.
17932
17933         tests: set fail=0 at start
17934         * tests/init.sh (setup_): Move fail=0 initialization here ...
17935         (mktempd_): ... from here, so that tests can rely on fail being
17936         set to 0 initially.  This fixes a problem in coreutils; see:
17937         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
17938
17939 2010-12-18  Bruno Haible  <bruno@clisp.org>
17940
17941         memmem-simple: Stylistic changes.
17942         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
17943         Fix preprocessor directive indentation.
17944
17945 2010-12-15  Pádraig Brady <P@draigBrady.com>
17946
17947         memmem, memmem-simple: reorganize and expand empty needle check
17948         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
17949         functional checks to memmem-simple so that one has a fully functional
17950         memmem by using just this module.
17951         Restrict the performance only check to the memmem module.
17952         Also expand the empty needle check to ensure the correct
17953         pointer is returned, not just a non NULL pointer.
17954         * doc/glibc-functions/memmem.texi: Rearrange the portability
17955         documentation to correlate with the rearranged checks.
17956         Clarify exactly how the memmem and memmem-simple modules
17957         relate to each other.
17958
17959 2010-12-15  Pádraig Brady <P@draigBrady.com>
17960             Bruno Haible  <bruno@clisp.org>
17961
17962         Improve cross-compilation guesses for uClibc.
17963         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
17964         that uClibc does not have the glibc bug.
17965         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
17966         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
17967
17968 2010-12-14  Eric Blake  <eblake@redhat.com>
17969
17970         configmake: provide fallbacks for oldest supported autotools
17971         * m4/configmake.m4: New file.
17972         * modules/configmake (Files): Ship it.
17973         (configure.ac): Use it to guarantee fallbacks.
17974
17975 2010-12-13  Pádraig Brady <P@draigBrady.com>
17976
17977         read-file: Improve handling of large files
17978         * lib/read-file.c (fread_file): Minimize realloc()s
17979         for regular files, and better manage sizes around SIZE_MAX.
17980
17981 2010-12-13  Eric Blake  <eblake@redhat.com>
17982
17983         cloexec, fcntl: relax license
17984         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
17985         consent from all contributors.
17986         * modules/fcntl (License): Likewise.
17987
17988 2010-12-10  Bruno Haible  <bruno@clisp.org>
17989
17990         Tests for module 'pipe-posix'.
17991         * modules/pipe-posix-tests: New file.
17992         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
17993
17994 2010-12-10  Bruno Haible  <bruno@clisp.org>
17995
17996         pipe-posix: Make it work in C++ mode.
17997         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
17998         (pipe): Use common idiom, not a macro definition.
17999         * lib/pipe.c: New file.
18000         * m4/pipe.m4: New file.
18001         * modules/pipe-posix (Description): Enhance.
18002         (Files): Add lib/pipe.c, m4/pipe.m4.
18003         (configure.ac): Invoke gl_FUNC_PIPE.
18004         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
18005         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
18006         * tests/test-unistd-c++.cc: Check the signature of pipe.
18007
18008 2010-12-10  Bruno Haible  <bruno@clisp.org>
18009
18010         Rename module 'pipe' to 'spawn-pipe'.
18011         * modules/spawn-pipe: New file, renamed from modules/pipe.
18012         (Files, configure.ac, Makefile.am): Update.
18013         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
18014         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
18015         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
18016         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
18017         "spawn-pipe.h" instead of "pipe.h".
18018         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
18019         to gl_SPAWN_PIPE.
18020         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
18021         (Files, Makefile.am): Update.
18022         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
18023         Update.
18024         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
18025         Include "spawn-pipe.h" instead of "pipe.h".
18026         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
18027         * lib/javacomp.c: Likewise.
18028         * lib/javaversion.c: Likewise.
18029         * lib/pipe-filter-gi.c: Likewise.
18030         * lib/pipe-filter-ii.c: Likewise.
18031         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
18032         * modules/javacomp (Depends-on): Likewise.
18033         * modules/javaversion (Depends-on): Likewise.
18034         * modules/pipe-filter-gi (Depends-on): Likewise.
18035         * modules/pipe-filter-ii (Depends-on): Likewise.
18036         * MODULES.html.sh (Executing programs): Update.
18037         * NEWS: Mention the change.
18038
18039 2010-12-10  Eric Blake  <eblake@redhat.com>
18040
18041         pipe-posix: new module
18042         * modules/pipe-posix: New file.
18043         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
18044         (gl_UNISTD_H): Check for declaration.
18045         * modules/unistd (Makefile.am): Substitute it.
18046         * lib/unistd.in.h (pipe): Provide it for mingw.
18047         * doc/posix-functions/pipe.texi (pipe): Update documentation.
18048         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
18049
18050 2010-12-07  Bruno Haible  <bruno@clisp.org>
18051
18052         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
18053         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
18054         u8_strcmp_gnu.
18055         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
18056
18057 2010-12-06  Bruno Haible  <bruno@clisp.org>
18058
18059         Update internal documentation.
18060         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
18061
18062 2010-12-04  Bruno Haible  <bruno@clisp.org>
18063
18064         Put more information about failed tests into the test return codes.
18065         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
18066         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
18067         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
18068         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
18069         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
18070         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
18071         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
18072         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
18073         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
18074         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
18075         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
18076         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
18077         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
18078         * m4/stdint.m4 (gl_STDINT_H): Likewise.
18079         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
18080         returns a bit mask.
18081         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
18082         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
18083         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
18084         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
18085         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
18086         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
18087         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
18088         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
18089         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
18090         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
18091         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
18092         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
18093         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
18094         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
18095         * m4/link.m4 (gl_FUNC_LINK): Likewise.
18096         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
18097         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
18098         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
18099         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
18100         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
18101         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
18102         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
18103         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
18104         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
18105         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
18106         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
18107         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
18108         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
18109         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
18110         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
18111         gl_PRINTF_PRECISION): Likewise.
18112         * m4/regex.m4 (gl_REGEX): Likewise.
18113         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
18114         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
18115         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
18116         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
18117         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
18118         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
18119         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
18120         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
18121         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
18122         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
18123         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
18124         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
18125         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
18126         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
18127         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
18128         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
18129         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
18130         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
18131         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
18132         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
18133         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
18134         enumerated value.
18135         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
18136
18137 2010-12-04  Bruno Haible  <bruno@clisp.org>
18138
18139         Update for Solaris 11 2010-11.
18140         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
18141         Express, released in November 2010.
18142
18143 2010-12-04  Bruno Haible  <bruno@clisp.org>
18144
18145         nproc: Relax license.
18146         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
18147         and Paul Eggert.
18148         Requested by Ludovic Courtès <ludo@gnu.org>.
18149
18150 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
18151
18152         utimecmp: fine-grained src to nearby coarse-grained dest
18153
18154         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
18155         and the source is on a file system with higher-resolution time
18156         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
18157         not work, and the time stamps are close together, the algorithm to
18158         determine the exact resolution from the read-back mtime was buggy:
18159         it had a "!=" where it should have had an "==".  This bug has been
18160         in the code ever since it was introduced to gnulib.
18161         Problem reported by Dan Jacobson in
18162         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
18163
18164 2010-11-30  Bruno Haible  <bruno@clisp.org>
18165
18166         strerror_r-posix: Fix autoconf test.
18167         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
18168
18169 2010-11-28  Bruno Haible  <bruno@clisp.org>
18170             Paul Eggert  <eggert@cs.ucla.edu>
18171
18172         Tests for module 'getdomainname'.
18173         * modules/getdomainname-tests: New file.
18174         * tests/test-getdomainname.c: New file, based on
18175         tests/test-gethostname.c.
18176
18177 2010-11-28  Bruno Haible  <bruno@clisp.org>
18178             Paul Eggert  <eggert@cs.ucla.edu>
18179
18180         getdomainname: Use the system function when possible.
18181         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
18182         (getdomainname): Replace if needed. Provide the declaration if it is
18183         missing. Don't use _GL_CXXALIAS_SYS_CAST.
18184         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
18185         (getdomainname): When the system has getdomainname, call the system
18186         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
18187         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
18188         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
18189         found in libnsl. Look for the declaration also in <netdb.h>. Replace
18190         the function if its second argument is of type 'int' or if it is found
18191         in libnsl.
18192         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
18193         <sys/systeminfo.h> and sysinfo().
18194         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
18195         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
18196         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
18197         HAVE_GETDOMAINNAME.
18198         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
18199         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
18200         * doc/glibc-functions/getdomainname.texi: Document the problems with
18201         the getdomainname declaration.
18202
18203 2010-11-28  Bruno Haible  <bruno@clisp.org>
18204
18205         sys_socket: Ensure ss_family field on AIX.
18206         * lib/sys_socket.in.h (ss_family): New macro definition.
18207         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
18208         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
18209         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
18210         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
18211         * modules/sys_socket (Makefile.am): Substitute
18212         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
18213         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
18214
18215 2010-11-27  Bruno Haible  <bruno@clisp.org>
18216
18217         readline: Improve configure output.
18218         * m4/readline.m4 (gl_FUNC_READLINE): Make the
18219         "checking for readline..." result understandable.
18220
18221 2010-11-27  Bruno Haible  <bruno@clisp.org>
18222
18223         *printf-posix: Detect a bug on Solaris 10/x86.
18224         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
18225         for floating-point output.
18226         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
18227         directive.
18228         * tests/test-snprintf-posix.h (test_function): Likewise.
18229         * tests/test-sprintf-posix.h (test_function): Likewise.
18230         * tests/test-vasprintf-posix.c (test_function): Likewise.
18231         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
18232         * doc/posix-functions/printf.texi: Likewise.
18233         * doc/posix-functions/snprintf.texi: Likewise.
18234         * doc/posix-functions/sprintf.texi: Likewise.
18235         * doc/posix-functions/vfprintf.texi: Likewise.
18236         * doc/posix-functions/vprintf.texi: Likewise.
18237         * doc/posix-functions/vsnprintf.texi: Likewise.
18238         * doc/posix-functions/vsprintf.texi: Likewise.
18239         * doc/glibc-functions/obstack_printf.texi: Likewise.
18240         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
18241
18242 2010-11-27  Bruno Haible  <bruno@clisp.org>
18243
18244         Fix link error when module libunistring-optional is in use.
18245         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
18246         * modules/striconveha-tests (Makefile.am): Likewise.
18247
18248 2010-11-27  Bruno Haible  <bruno@clisp.org>
18249
18250         regex: Mention link dependencies.
18251         * modules/regex (Link): New section.
18252         * modules/rpmatch (Link): Likewise.
18253         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
18254
18255 2010-11-27  Bruno Haible  <bruno@clisp.org>
18256
18257         ftoastr: Fix compilation error on Solaris.
18258         * lib/ftoastr.c: Include <config.h>.
18259
18260 2010-11-27  Bruno Haible  <bruno@clisp.org>
18261
18262         getloadavg: Update documentation.
18263         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
18264
18265 2010-11-27  Bruno Haible  <bruno@clisp.org>
18266
18267         sys_socket: Fix test whether the functions are declared.
18268         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
18269         not <sys/select.h>.
18270
18271 2010-11-27  Bruno Haible  <bruno@clisp.org>
18272
18273         getpass: Make sure to get system declaration on some platforms.
18274         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
18275         gl_USE_SYSTEM_EXTENSIONS.
18276         * modules/getpass (Depends-on): Add extensions.
18277
18278 2010-11-26  Bruno Haible  <bruno@clisp.org>
18279
18280         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
18281         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
18282         'iconv' module is present.
18283         (ICONV_CONST): New macro.
18284         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
18285         ICONV_CONST.
18286         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
18287         set ICONV_CONST.
18288         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
18289         here.
18290         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
18291         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
18292         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
18293         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
18294         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
18295         present.
18296
18297 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
18298
18299         ftoastr: comment fix
18300         * lib/ftoastr.c: "little" -> "little or no" in comment
18301
18302 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
18303
18304         stdint: port to GCC 4.3 + OSX + Octave
18305         On this platform, stdint.h is buggy and defines int64_t to long
18306         long int.  The replacement defined it to long int, causing
18307         problems with C++ style name mangling.  Instead, trust the system
18308         definition if INT64_MAX is defined, and likewise for the unsigned
18309         variant.   Problem reported by Jarno Rajahalme in
18310         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
18311         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
18312         and don't mess with int64_t and INT64_MAX in this case.
18313         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
18314
18315 2010-11-24  Bruno Haible  <bruno@clisp.org>
18316
18317         doc: Corrections regarding MacOS X 10.4 and 10.5.
18318         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
18319         MacOS X.
18320         Reported by Simon Josefsson.
18321
18322 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
18323
18324         Uninstall ".bin" files installed by relocwrapper.
18325         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
18326         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
18327         unless it is already there.
18328
18329 2010-11-21  Bruno Haible  <bruno@clisp.org>
18330
18331         Update for NetBSD 5.0.
18332         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
18333         NetBSD; the test fails on NetBSD 5.0.
18334         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
18335         about NetBSD.
18336
18337 2010-11-21  Bruno Haible  <bruno@clisp.org>
18338
18339         Update for HP-UX 11.23 and HP-UX 11.31.
18340         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
18341         HP-UX.
18342
18343 2010-11-21  Bruno Haible  <bruno@clisp.org>
18344
18345         Update for MacOS X 10.5.
18346         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
18347         MacOS X; the test fails on MacOS X 10.5.8.
18348         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
18349         about MacOS X.
18350
18351 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
18352
18353         bootstrap: add bootstrap_sync option.
18354         See discussion at
18355         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
18356         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
18357         * build-aux/bootstrap: Accept --bootstrap-sync to update
18358         bootstrap if it is not identical to the local gnulib's
18359         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
18360         enable this by default.  Accept --no-bootstrap-sync to disable
18361         it.
18362
18363 2010-11-20  Bruno Haible  <bruno@clisp.org>
18364
18365         Ensure that <features.h> is included before __GLIBC__ is tested.
18366         * lib/printf-parse.h: Include <features.h>.
18367         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
18368         Reported by Mike Frysinger <vapier@gentoo.org>.
18369
18370         Ensure that <features.h> is included before __GLIBC__ is tested.
18371         * lib/wchar.in.h: Include <features.h>.
18372         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
18373         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
18374         Reported by Mike Frysinger <vapier@gentoo.org>.
18375
18376         Ensure that <features.h> is included before __GLIBC__ is tested.
18377         * lib/arpa_inet.in.h: Include <features.h>.
18378         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
18379         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
18380         Reported by Mike Frysinger <vapier@gentoo.org>.
18381
18382         Ensure that <features.h> is included before __GLIBC__ is tested.
18383         * build-aux/link-warning.h: Include <features.h>.
18384         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
18385         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
18386         Reported by Mike Frysinger <vapier@gentoo.org>.
18387
18388         Ensure that <features.h> is included before __GLIBC__ is tested.
18389         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
18390         Reported by Mike Frysinger <vapier@gentoo.org>.
18391
18392 2010-11-20  Bruno Haible  <bruno@clisp.org>
18393
18394         memmem: Fix autoconf test.
18395         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
18396
18397 2010-11-20  Bruno Haible  <bruno@clisp.org>
18398
18399         Port to uClibc.
18400         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
18401         * lib/fcntl.in.h: Likewise.
18402         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
18403         * lib/mbrtowc.c (mbrtowc): Likewise.
18404         * lib/relocatable.c (find_shared_library_fullname): Likewise.
18405         * lib/strerror_r.c: Likewise.
18406         * lib/unistr/u8-strnlen.c: Likewise.
18407         * lib/vasnprintf.c (decimal_point_char): Likewise.
18408         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
18409         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
18410         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
18411         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
18412         * tests/test-sigaction.c (handler, main): Likewise.
18413         * lib/freading.h: Treat uClibc like a non-glibc platform.
18414         * lib/freading.c: Likewise.
18415         * lib/gettext.h: Likewise.
18416         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
18417         Likewise.
18418         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
18419         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
18420         * lib/propername.c (proper_name_utf8): Likewise.
18421         * lib/spawn.in.h: Likewise.
18422         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
18423         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
18424         mem_cd_iconveh_internal): Likewise.
18425         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
18426         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
18427         strstr, strcasestr): Likewise.
18428         * lib/unicodeio.c (unicode_to_mb): Likewise.
18429         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
18430         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
18431         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
18432         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
18433         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
18434         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
18435         * lib/unistr/u8-stpncpy.c: Likewise.
18436         * lib/vasnprintf.c (VASNPRINTF): Likewise.
18437         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
18438         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
18439         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
18440         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
18441         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
18442         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
18443         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
18444         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
18445         Likewise.
18446         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
18447         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
18448         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
18449         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
18450         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
18451         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
18452         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
18453         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
18454         * tests/test-getopt.h (OPTIND_MIN): Likewise.
18455         * tests/test-striconveha.c (main): Likewise.
18456         * tests/test-vasnprintf-posix.c (test_function): Likewise.
18457         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
18458         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
18459         * doc/posix-functions/getline.texi: Likewise.
18460         Reported by Mike Frysinger <vapier@gentoo.org>.
18461
18462 2010-11-20  Bruno Haible  <bruno@clisp.org>
18463
18464         nproc: Fix condition.
18465         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
18466         HAVE_PTHREAD_AFFINITY_NP.
18467
18468 2010-11-20  Bruno Haible  <bruno@clisp.org>
18469
18470         Fix a comment.
18471         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
18472
18473 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
18474
18475         ftoastr: don't assume snprintf
18476         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
18477         Implement a subset of snprintf here, by using sprintf safely.
18478         * modules/ftoastr (Depends-on): Remove snprintf.
18479
18480 2010-11-19  Jim Meyering  <meyering@redhat.com>
18481
18482         test-rename.h: fix compilation failure
18483         * tests/test-rename.h (test_rename): Add omitted "}".
18484
18485 2010-11-17  Jim Meyering  <meyering@redhat.com>
18486
18487         maint.mk: add a URL discussing the no-@acronym policy
18488         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
18489
18490 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
18491
18492         ftoastr: depend on snprintf, improve comments
18493         * lib/ftoastr.c: Also mention Loitsch's draft.
18494         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
18495         needed in the current implementation, but it might simplify
18496         speeding up the code later.
18497         * modules/ftoastr: Depend on snprintf; this improves portability.
18498         Suggested by Bruno Haible in the same email.
18499
18500         ftoastr: port to hosts lacking strtof and strtold
18501         Problem reported by Bruno Haible in
18502         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
18503         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
18504         environment and strtold (and presumably strtof) are not available.
18505         * modules/ftoastr (Files): Add m4/c-strtod.m4.
18506         (configure.ac): Require gl_C99_STRTOLD.
18507
18508 2010-11-18  Bruno Haible  <bruno@clisp.org>
18509
18510         c-strtold: Avoid link error on AIX 7.
18511         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
18512         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
18513         (gl_C_STRTOLD): Test whether strtold_l exists.
18514         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
18515
18516 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
18517
18518         intprops: new macro INT_BITS_STRLEN_BOUND
18519         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
18520         ftoastr.h.  This exposes an internal of intprops.h that was formerly
18521         not exposed.  Also, it uses a slightly tighter bound than before;
18522         though this makes no practical difference, we might as well be as
18523         tight as we easily can.
18524
18525         ftoastr: new module, for lossless conversion of floats to short strings
18526         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
18527         * modules/ftoastr: New files.
18528
18529 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
18530
18531         bootstrap: port to Solaris sed
18532         * build-aux/bootstrap (get_version): Port to Solaris sed.
18533         See Ralf Wildenhues's note in
18534         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
18535
18536 2010-11-14  Jim Meyering  <meyering@redhat.com>
18537
18538         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
18539         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
18540         and move definition closer to sole use.
18541
18542 2010-11-13  Jim Meyering  <meyering@redhat.com>
18543
18544         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
18545         Now we require at least autoconf-2.59, which means the work-around
18546         is no longer needed.
18547         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
18548         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
18549         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
18550         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
18551         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
18552
18553 2010-11-13  Bruno Haible  <bruno@clisp.org>
18554
18555         rename, renameat: Avoid test failures at NFS mounted locations.
18556         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
18557         functions.
18558         (test_rename): Use assert_nonexistent.
18559         * tests/test-rename.c: Include <dirent.h>.
18560         * tests/test-renameat.c: Likewise.
18561         Reported by Gary V. Vaughan <gary@gnu.org>.
18562
18563         rename, renameat: Document Linux bug with NFS
18564         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
18565         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
18566         * doc/posix-functions/renameat.texi: Likewise.
18567         Suggested by Eric Blake.
18568
18569 2010-11-13  Bruno Haible  <bruno@clisp.org>
18570
18571         rename test: Add comments.
18572         * tests/test-rename.h (test_rename): Add structure and comments.
18573
18574 2010-11-13  Eric Blake  <eblake@redhat.com>
18575
18576         maintainer-makefile: cover a few more files
18577         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
18578         scripts generated within C files, for libvirt.
18579
18580 2010-11-13  Bruno Haible  <bruno@clisp.org>
18581
18582         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
18583         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
18584         character, return the number of bytes that belong together, not always
18585         1.
18586         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
18587         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
18588         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
18589         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
18590         number of bytes of an invalid character.
18591         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
18592         (main): Invoke it.
18593         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
18594         results.
18595         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
18596         malformed byte sequences.
18597         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
18598         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
18599         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
18600         Reported by Ben Pfaff and Paolo Bonzini.
18601
18602 2010-11-13  Bruno Haible  <bruno@clisp.org>
18603
18604         openat: Work around glibc bug with fchownat() and empty file names.
18605         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
18606         (gl_FUNC_FCHOWNAT): Invoke it.
18607         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
18608         * doc/posix-functions/fchownat.texi: Document the glibc bug.
18609         Reported by Gary V. Vaughan <gary@gnu.org>.
18610
18611 2010-11-13  Bruno Haible  <bruno@clisp.org>
18612
18613         openat: Ensure autoconf macro ordering.
18614         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
18615         gl_USE_SYSTEM_EXTENSIONS.
18616         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
18617
18618 2010-11-13  Bruno Haible  <bruno@clisp.org>
18619
18620         Update comments.
18621         * lib/unistr/u8-check.c: Update file name in comments.
18622         * lib/unistr/u8-mblen.c: Likewise.
18623         * lib/unistr/u8-prev.c: Likewise.
18624         * lib/unistr/u8-strmblen.c: Likewise.
18625         * lib/unistr/u8-strmbtouc.c: Likewise.
18626
18627 2010-11-13  Jim Meyering  <meyering@redhat.com>
18628
18629         tests: avoid test failure on Solaris 10 due to lack of PATH export
18630         * tests/test-update-copyright.sh: Don't forget to export PATH.
18631
18632         init.sh: ensure that IFS is defined, just in case...
18633         * tests/init.sh (setup_): Ensure that IFS is defined,
18634         so that saving and restoring it works as expected.  This
18635         appears to be useful at least for an old version of dash
18636         from a long time ago (RH 6).  See here for details:
18637         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
18638
18639         maint.mk: tighten "test a == b" check
18640         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
18641         test to files that contain something like #!/bin/sh.
18642         Without this, coreutils would get two false positives in
18643         the comments of C source files.
18644
18645 2010-11-12  Eric Blake  <eblake@redhat.com>
18646
18647         bootstrap: fix typo in previous attempt
18648         * build-aux/bootstrap (buildreq): Correct the grouping.
18649         Reported by Paul Eggert.
18650
18651         maintainer-makefile: prohibit test x == x
18652         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
18653         Based on a report by Matthias Bolte.
18654
18655         bootstrap: allow FreeBSD gzip
18656         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
18657         which has no '.' and goes to stderr.
18658         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
18659         Reported by Matthias Bolte.
18660
18661         maintainer-makefile: check for i18n setup
18662         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
18663         will likely work.
18664
18665 2010-11-12  Bruno Haible  <bruno@clisp.org>
18666
18667         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
18668         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
18669         * lib/nanosleep.c (nanosleep): Likewise.
18670
18671 2010-11-11  Bruno Haible  <bruno@clisp.org>
18672
18673         fcntl-h: Fix for use of C++ on glibc systems.
18674         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
18675         also on glibc systems in C++ mode.
18676         Reported by Gary V. Vaughan <gary@gnu.org>.
18677
18678 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
18679
18680         mknod: avoid false failure with dash
18681         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
18682
18683 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
18684
18685         unlink: Fix "is it should" typo in diagnostic.
18686         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
18687         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
18688
18689 2010-11-11  Bruno Haible  <bruno@clisp.org>
18690
18691         Tests for module 'strerror_r-posix'.
18692         * modules/strerror_r-posix-tests: New file.
18693         * tests/test-strerror_r.c: New file.
18694         * tests/test-string-c++.cc: Check the signature of strerror_r.
18695
18696         New module 'strerror_r-posix'.
18697         * lib/string.in.h (strerror_r): New declaration.
18698         * lib/strerror_r.c: New file.
18699         * m4/strerror_r.m4: New file.
18700         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
18701         of strerror_r.
18702         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
18703         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
18704         * modules/strerror_r-posix: New file.
18705         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
18706         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
18707         * doc/posix-functions/strerror_r.texi: Mention the new module and the
18708         portability problems.
18709
18710 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
18711
18712         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
18713         line is also considered for output. Quoted function name in shell
18714         command, so temporary files for functions like MyClass::operator()
18715         are removed correctly without errors.
18716
18717 2010-11-09  Bruno Haible  <bruno@clisp.org>
18718
18719         * doc/posix-functions/strerror.texi: List more failing platforms.
18720
18721         * doc/posix-functions/strerror.texi: Add a comment.
18722
18723 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
18724
18725         fdopendir: fix bug on MacOS X when low on file descriptors
18726
18727         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
18728         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
18729         All callers changed.
18730         (fdopendir): Invoke save_cwd at the top level, not after using
18731         multiple dup() calls to use up file descriptors.  Then retry
18732         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
18733         less than the maximum number of open file descriptors, because
18734         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
18735         on Mac OS X 10.6.4 for tar 1.24
18736         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
18737         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
18738         and for tar 1.25
18739         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
18740
18741 2010-11-07  Bruno Haible  <bruno@clisp.org>
18742
18743         vasnprintf: Support I flag on glibc systems.
18744         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
18745         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
18746         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
18747         snprintf function.
18748         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
18749         glibc systems.
18750         * tests/test-vasnprintf-posix3.c: New file.
18751         * modules/vasnprintf-posix-tests (Files): Add it.
18752         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
18753
18754 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
18755
18756         [html] Fix copy/paste bug: Use unique name for compiler warnings.
18757         * MODULES.html.sh: For compiler warnings, use name
18758         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
18759
18760 2010-11-05  Eric Blake  <eblake@redhat.com>
18761
18762         ceil, floor: avoid spurious failure with icc
18763         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
18764         [denormals-as-zero] when optimizing without -mieee-fp option.
18765         * tests/test-floorf2.c (floorf_reference): Likewise.
18766         * tests/test-ceilf1.c (dummy): New function.
18767         (main): Use it to outsmart icc's optimization.
18768         * tests/test-floorf1.c (dummy, main): Likewise.
18769
18770         tests: require working signbit
18771         * modules/ceilf-tests (Depends-on): Add signbit.
18772         * modules/ceill-tests (Depends-on): Likewise.
18773         * modules/floorf-tests (Depends-on): Likewise.
18774         * modules/floorl-tests (Depends-on): Likewise.
18775         * modules/round-tests (Depends-on): Likewise.
18776         * modules/roundf-tests (Depends-on): Likewise.
18777         * modules/roundl-tests (Depends-on): Likewise.
18778         * modules/trunc-tests (Depends-on): Likewise.
18779         * modules/truncf-tests (Depends-on): Likewise.
18780         * modules/truncl-tests (Depends-on): Likewise.
18781
18782         strtod: work around icc bug
18783         * lib/strtod.c (minus_zero): Define to working value.
18784         (strtod): Use it to avoid icc bug.
18785
18786         copysign: enhance tests
18787         * modules/copysign-tests (Files): Add minus-zero.h.
18788         * tests/test-copysign.c (main): Also test zeros.
18789
18790 2010-11-04  Eric Blake  <eblake@redhat.com>
18791
18792         ceil, floor, round, trunc: enhance tests of -0
18793         * tests/test-ceilf1.c (main): Ensure correct sign of result.
18794         * tests/test-ceill.c (main): Likewise.
18795         * tests/test-floorf1.c (main): Likewise.
18796         * tests/test-floorl.c (main): Likewise.
18797         * tests/test-round1.c (main): Likewise.
18798         * tests/test-roundf1.c (main): Likewise.
18799         * tests/test-roundl.c (main): Likewise.
18800         * tests/test-trunc1.c (main): Likewise.
18801         * tests/test-truncf1.c (main): Likewise.
18802         * tests/test-truncl.c (main): Likewise.
18803
18804 2010-11-04  Eric Blake  <eblake@redhat.com>
18805
18806         frexp, tests: work around ICC bug with -zero
18807         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
18808         works with more compilers.
18809         * tests/minus-zero.h: New file.
18810         * modules/ceilf-tests (Files): Include it.
18811         * modules/ceill-tests (Files): Likewise.
18812         * modules/floorf-tests (Files): Likewise.
18813         * modules/floorl-tests (Files): Likewise.
18814         * modules/frexp-nolibm-tests (Files): Likewise.
18815         * modules/frexp-tests (Files): Likewise.
18816         * modules/frexpl-nolibm-tests (Files): Likewise.
18817         * modules/frexpl-tests (Files): Likewise.
18818         * modules/isnan-tests (Files): Likewise.
18819         * modules/isnand-nolibm-tests (Files): Likewise.
18820         * modules/isnand-tests (Files): Likewise.
18821         * modules/isnanf-nolibm-tests (Files): Likewise.
18822         * modules/isnanf-tests (Files): Likewise.
18823         * modules/isnanl-nolibm-tests (Files): Likewise.
18824         * modules/isnanl-tests (Files): Likewise.
18825         * modules/round-tests (Files): Likewise.
18826         * modules/roundf-tests (Files): Likewise.
18827         * modules/roundl-tests (Files): Likewise.
18828         * modules/ldexpl-tests (Files): Likewise.
18829         * modules/signbit-tests (Files): Likewise.
18830         * modules/snprintf-posix-tests (Files): Likewise.
18831         * modules/sprintf-posix-tests (Files): Likewise.
18832         * modules/strtod-tests (Files): Likewise.
18833         * modules/trunc-tests (Files): Likewise.
18834         * modules/truncf-tests (Files): Likewise.
18835         * modules/truncl-tests (Files): Likewise.
18836         * modules/vsnprintf-posix-tests (Files): Likewise.
18837         * modules/vsprintf-posix-tests (Files): Likewise.
18838         * modules/vasnprintf-posix-tests (Files): Likewise.
18839         * modules/vasprintf-posix-tests (Files): Likewise.
18840         * tests/test-ceilf1.c (main): Use it.
18841         * tests/test-ceill.c (main): Likewise.
18842         * tests/test-floorf1.c (main): Likewise.
18843         * tests/test-floorl.c (main): Likewise.
18844         * tests/test-frexp.c (main): Likewise.
18845         * tests/test-frexpl.c (main): Likewise.
18846         * tests/test-isnan.c (main): Likewise.
18847         * tests/test-isnand.h (main): Likewise.
18848         * tests/test-isnanf.h (main): Likewise.
18849         * tests/test-isnanl.h (main): Likewise.
18850         * tests/test-ldexpl.c (main): Likewise.
18851         * tests/test-round.c (main): Likewise.
18852         * tests/test-roundf.c (main): Likewise.
18853         * tests/test-roundl.c (main): Likewise.
18854         * tests/test-signbit.c (test_signbitf, test_signbitd)
18855         (test_signbitl): Likewise.
18856         * tests/test-snprintf-posix.h (test_function): Likewise.
18857         * tests/test-sprintf-posix.h (test_function): Likewise.
18858         * tests/test-strtod.c (main): Likewise.
18859         * tests/test-trunc1.c (main): Likewise.
18860         * tests/test-truncf1.c (main): Likewise.
18861         * tests/test-truncl.c (main): Likewise.
18862
18863         isnanl: work around icc bug
18864         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
18865
18866 2010-11-03  Eric Blake  <eblake@redhat.com>
18867
18868         tests: fix compiler warnings
18869         * tests/test-getopt.h (test_getopt): Fix condition.
18870         * tests/test-getopt_long.h (test_getopt_long): Likewise.
18871         * tests/test-pipe2.c (main): Likewise.
18872         * tests/test-quotearg-simple.c (main): Avoid icc warning.
18873
18874         utimens: fix broken m4 test
18875         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
18876
18877 2010-10-28  Bruno Haible  <bruno@clisp.org>
18878
18879         posix_spawn*, getdtablesize: Relax license.
18880         * modules/posix_spawn (License): Change to LGPLv2+.
18881         * modules/posix_spawnp (License): Likewise.
18882         * modules/posix_spawn-internal (License): Likewise.
18883         * modules/posix_spawnattr_init (License): Likewise.
18884         * modules/posix_spawnattr_getflags (License): Likewise.
18885         * modules/posix_spawnattr_setflags (License): Likewise.
18886         * modules/posix_spawnattr_getpgroup (License): Likewise.
18887         * modules/posix_spawnattr_setpgroup (License): Likewise.
18888         * modules/posix_spawnattr_getschedparam (License): Likewise.
18889         * modules/posix_spawnattr_setschedparam (License): Likewise.
18890         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
18891         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
18892         * modules/posix_spawnattr_getsigdefault (License): Likewise.
18893         * modules/posix_spawnattr_setsigdefault (License): Likewise.
18894         * modules/posix_spawnattr_getsigmask (License): Likewise.
18895         * modules/posix_spawnattr_setsigmask (License): Likewise.
18896         * modules/posix_spawnattr_destroy (License): Likewise.
18897         * modules/posix_spawn_file_actions_init (License): Likewise.
18898         * modules/posix_spawn_file_actions_addclose (License): Likewise.
18899         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
18900         * modules/posix_spawn_file_actions_addopen (License): Likewise.
18901         * modules/posix_spawn_file_actions_destroy (License): Likewise.
18902         * modules/getdtablesize (License): Likewise.
18903         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
18904
18905 2010-10-26  Bruno Haible  <bruno@clisp.org>
18906
18907         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
18908         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
18909         Cygwin and mingw.
18910         Suggested by Eric Blake.
18911
18912 2010-10-26  Bruno Haible  <bruno@clisp.org>
18913
18914         stdio: Work around compilation error due to renameat() on Solaris 10.
18915         * lib/stdio.in.h: Include <unistd.h> on Solaris.
18916         * lib/renameat.c: Don't include <unistd.h> here.
18917         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
18918         Reported by Paul Eggert and Eric Blake.
18919
18920 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
18921
18922         renameat: port to Solaris 10, which declares renameat in unistd.h
18923
18924         * lib/renameat.c: Include unistd.h before stdio.h, because
18925         Solaris 10 declares renameat in unistd.h.  Problem encountered
18926         when building GNU tar 1.24 on Solaris 10.
18927
18928 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
18929
18930         fdopendir: fix C89 compilation
18931         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
18932         compilers.
18933
18934 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
18935
18936         inttostr: simplify by removing unnecessary redundancy
18937         * lib/anytostr.c: Don't include verify.h.
18938         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
18939         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
18940         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
18941         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
18942         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
18943         Likewise.
18944         * modules/inttostr (Depends-on): Remove 'verify'.
18945
18946 2010-10-23  Bruno Haible  <bruno@clisp.org>
18947
18948         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
18949         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
18950         Reported by Eric Blake.
18951
18952 2010-10-23  Bruno Haible  <bruno@clisp.org>
18953
18954         Tests: Fix LOCALE_JA on MirBSD 10.
18955         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
18956         to an UTF-8 locale.
18957         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
18958         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
18959         Reported by Eric Blake.
18960
18961 2010-10-21  Bruno Haible  <bruno@clisp.org>
18962
18963         nl_langinfo test: Avoid test failure on NetBSD 5.
18964         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
18965         Reported by Eric Blake.
18966
18967 2010-10-21  Eric Blake  <eblake@redhat.com>
18968
18969         c-stack: work around libsigsegv 2.8 bug
18970         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
18971         overflow on at least PowerPC64.
18972
18973 2010-10-17  Bruno Haible  <bruno@clisp.org>
18974
18975         userspec: Drop redundant file.
18976         * modules/userspec (Files): Remove lib/inttostr.h.
18977
18978 2010-10-17  Bruno Haible  <bruno@clisp.org>
18979
18980         nl_langinfo tests: Silence some warnings.
18981         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
18982         Reported by Jim Meyering.
18983
18984 2010-10-17  Bruno Haible  <bruno@clisp.org>
18985
18986         Make use of GCC's attribute __alloc_size__.
18987         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
18988         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
18989         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
18990         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
18991         __alloc_size__.
18992         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
18993         Suggested by Jim Meyering.
18994
18995 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
18996
18997         bootstrap: anchor .gitignore entries.
18998         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
18999         with...
19000         (insert_vc_ignore): ... this new function, which prepends `/' to
19001         all .gitignore entries before passing them to
19002         insert_sorted_if_absent.
19003
19004 2010-10-16  Bruno Haible  <bruno@clisp.org>
19005
19006         nextafter: Fix configure check.
19007         * modules/nextafter (configure.ac): Correct expected prototype.
19008
19009 2010-10-16  Bruno Haible  <bruno@clisp.org>
19010
19011         termios: Update documentation.
19012         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
19013
19014 2010-10-16  Bruno Haible  <bruno@clisp.org>
19015
19016         tests: Make them compile with TinyCC.
19017         * tests/test-strstr.c (main): Remove parentheses around array
19018         initializer.
19019
19020 2010-10-15  Eric Blake  <eblake@redhat.com>
19021
19022         ignore-value: make header idempotent
19023         * lib/ignore-value.h: Add double-inclusion guards.
19024         Reported by Stefan Berger.
19025
19026 2010-10-15  Jim Meyering  <meyering@redhat.com>
19027
19028         GNUmakefile: handle "stable" target, not "major"
19029         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
19030         lists in maint.mk and announce-gen.  Without this, "make stable"
19031         would fail to ensure that $(VERSION) is up to date.
19032
19033 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
19034
19035         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
19036         & co.
19037
19038 2010-10-14  Bruno Haible  <bruno@clisp.org>
19039
19040         vasnprintf: Don't set errno to 0.
19041         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
19042         block that sets it to 0.
19043         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
19044
19045 2010-10-14  Bruno Haible  <bruno@clisp.org>
19046
19047         socketlib: Fix.
19048         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
19049         gl_PREREQ_SYS_H_WINSOCK2.
19050         Reported by Ian Beckwith <ianb@erislabs.net>.
19051
19052 2010-10-13  Jim Meyering  <meyering@redhat.com>
19053
19054         test-select-stdin.c: avoid warn_unused_result warnings
19055         * tests/test-select-stdin.c: Include "macros.h".
19056         ASSERT that read and fflush succeed.
19057
19058 2010-10-13  Jim Meyering  <meyering@redhat.com>
19059
19060         git-version-gen: do require git-VC'd files in cwd
19061         * build-aux/git-version-gen: Reject a git version string
19062         if there are no commits associated with the current directory.
19063         This avoids an unlikely false-positive (unrelated dir whose parent
19064         repository also contains a tag matching v*), as pointed out
19065         by Giuseppe Scrivano in
19066         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
19067
19068 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
19069
19070         argv-iter: omit nonconforming declaration
19071         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
19072         enum arg_iter_err declaration, which doesn't conform to C99.
19073         Solaris 10 cc warns about this.
19074
19075 2010-10-13  Eric Blake  <eblake@redhat.com>
19076
19077         termios: fix compilation on mingw
19078         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
19079         (gl_TERMIOS_H): Adjust it on mingw.
19080         * modules/termios (Makefile.am): Substitute new key.
19081         * lib/termios.in.h (includes): Make include_next conditional.
19082         * doc/posix-headers/termios.texi (termios.h): Update
19083         documentation.
19084         Reported by Daniel P. Berrange.
19085
19086 2010-10-13  Jim Meyering  <meyering@redhat.com>
19087
19088         git-version-gen: don't require that .git/ be in the current dir
19089         * build-aux/git-version-gen: Adjust this script so that it works
19090         when run from any working directory beneath the top-level .git/-
19091         containing directory.  Inspired by a patch from Giuseppe Scrivano,
19092         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
19093
19094         test-select: avoid warn_unused_result warnings
19095         * tests/test-select.c: Include "macros.h".
19096         ASSERT that each call to read, write, and pipe succeeds.
19097         While not technically required, also check each "close".
19098         * modules/select-tests (Files): Add tests/macros.h.
19099
19100         test-symlinkat: remove declaration of unused local
19101         * tests/test-symlinkat.c (main): Remove unused local, "buf".
19102
19103         test-inttostr: avoid shadowing warnings
19104         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
19105         and use malloc rather than the stack for the same reason as
19106         mentioned in the comment justifying the other allocation.
19107
19108 2010-10-11  Bruno Haible  <bruno@clisp.org>
19109
19110         stdlib: Allow multiple gnulib generated replacements to coexist.
19111         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
19112         Reported by Sam Steingold <sds@gnu.org>.
19113
19114 2010-10-11  Jim Meyering  <meyering@redhat.com>
19115
19116         fix a documentation typo
19117         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
19118
19119 2010-10-11  Eric Blake  <eblake@redhat.com>
19120
19121         futimens: work around Solaris 11 bug
19122         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
19123         * tests/test-futimens.h (test_futimens): Enhance, rather than
19124         weaken test.
19125         * doc/posix-functions/futimens.texi (futimens): Document the bug.
19126
19127 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
19128
19129         Indentation.
19130         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
19131         higher-level operators more to the left.
19132
19133 2010-10-11  Jim Meyering  <meyering@redhat.com>
19134
19135         test-futimens: avoid unwarranted test failure on Solaris 5.11
19136         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
19137         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
19138         because it tries to dereference the NULL name argument.
19139
19140 2010-10-11  Bruno Haible  <bruno@clisp.org>
19141
19142         Indentation.
19143         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
19144         indentation.
19145
19146 2010-10-11  Jim Meyering  <meyering@redhat.com>
19147
19148         spawn.in.h: make indentation consistent with parentheses
19149         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
19150         Make indentation consistent with parentheses.
19151
19152 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
19153
19154         Fix mismatched parens in previous commit
19155         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
19156         parens.
19157
19158 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
19159
19160         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
19161
19162         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
19163         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
19164         * lib/malloca.c: Include "verify.h".
19165         (verify1): Remove, replacing with a verify call.
19166         * lib/relocwrapper.c (verify1): Likewise.
19167         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
19168         Likewise.
19169         * modules/malloca (Depends-on): Add 'verify'.
19170         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
19171         * modules/vasnprintf (Depends-on): Add 'verify'.
19172         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
19173         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
19174         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
19175         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
19176         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
19177         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
19178         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
19179
19180         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
19181
19182         Formerly the style was sometimes 2*X - 1, because the C standard
19183         was wrongly thought to disallow ?: in integral constant expressions.
19184         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
19185         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
19186         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
19187         * lib/stdint.in.h (_verify_intmax_size): Likewise.
19188         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
19189         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
19190         verify that time_t cannot be floating.
19191
19192 2010-10-08  Eric Blake  <eblake@redhat.com>
19193
19194         time: enforce recent POSIX ruling that time_t is integral
19195         * lib/time.in.h (__time_t_must_be_integral): Detect any
19196         problematic systems, allowing the rest of gnulib to assume POSIX.
19197
19198 2010-10-08  Jim Meyering  <meyering@redhat.com>
19199
19200         fdopendir: fix a bug on systems lacking openat and /proc support
19201         OpenBSD 4.7 is one such system.  The most noticeable effect was
19202         failure of any application making nontrivial use of fts: rm, du,
19203         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
19204           ./rm: traversal failed: `a': Bad file descriptor
19205         Debugging that, you see that even though FD 6 was closed just
19206         prior to the opendir call in fd_clone_opendir, its resulting
19207         dir->dd_fd was 8, rather than the expected value of 6:
19208
19209         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
19210         93                close (fd);
19211         (gdb) n
19212         94                dir = fd_clone_opendir (dupfd);
19213         (gdb) n
19214         95                saved_errno = errno;
19215         (gdb) p dir->dd_fd
19216         $11 = 8
19217
19218         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
19219         The problem is that on OpenBSD, fd_clone_opendir has to resort
19220         to using the old-style save/restore CWD mechanism, due to its
19221         lack of openat/proc support, and *that* would steal the FD (6)
19222         that opendir was supposed to use.
19223
19224         The fix is to squirrel away the desired FD so that save_cwd uses a
19225         different one, and then free the dest FD right before calling opendir.
19226         That guarantees opendir will use the required file descriptor.
19227
19228         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
19229
19230 2010-10-08  Bruno Haible  <bruno@clisp.org>
19231
19232         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
19233         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
19234
19235 2010-10-08  Bruno Haible  <bruno@clisp.org>
19236
19237         nanosleep: Make replacement POSIX compliant.
19238         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
19239         is out of range.
19240         Reported by Jim Meyering.
19241
19242 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
19243
19244         bootstrap: add hook for altering gnulib.mk, for Bison
19245         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
19246         the Bison bootstrapping process can rewrite file names and variables
19247         in this file before later parts of 'bootstrap' use the file.
19248         Bison wants to include lib/gnulib.mk from the top-level makefile,
19249         so it needs the file names in this file to be relative to the top
19250         level, not relative to lib; plus it needs variable names to be
19251         rewritten.
19252         (slurp): Use the new function.
19253
19254         bootstrap: reformat for readability
19255         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
19256
19257 2010-10-08  Eric Blake  <eblake@redhat.com>
19258
19259         docs: update cygwin progress
19260         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
19261         1.7.7.
19262         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
19263         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
19264         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
19265         * doc/posix-functions/carg.texi (carg): Likewise.
19266         * doc/posix-functions/cargf.texi (cargf): Likewise.
19267         * doc/posix-functions/casin.texi (casin): Likewise.
19268         * doc/posix-functions/casinf.texi (casinf): Likewise.
19269         * doc/posix-functions/casinh.texi (casinh): Likewise.
19270         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
19271         * doc/posix-functions/catan.texi (catan): Likewise.
19272         * doc/posix-functions/catanf.texi (catanf): Likewise.
19273         * doc/posix-functions/catanh.texi (catanh): Likewise.
19274         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
19275         * doc/posix-functions/ccos.texi (ccos): Likewise.
19276         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
19277         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
19278         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
19279         * doc/posix-functions/cexp.texi (cexp): Likewise.
19280         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
19281         * doc/posix-functions/cimag.texi (cimag): Likewise.
19282         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
19283         * doc/posix-functions/clog.texi (clog): Likewise.
19284         * doc/posix-functions/clogf.texi (clogf): Likewise.
19285         * doc/posix-functions/conj.texi (conj): Likewise.
19286         * doc/posix-functions/conjf.texi (conjf): Likewise.
19287         * doc/posix-functions/cpow.texi (cpow): Likewise.
19288         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
19289         * doc/posix-functions/cproj.texi (cproj): Likewise.
19290         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
19291         * doc/posix-functions/creal.texi (creal): Likewise.
19292         * doc/posix-functions/crealf.texi (crealf): Likewise.
19293         * doc/posix-functions/csin.texi (csin): Likewise.
19294         * doc/posix-functions/csinf.texi (csinf): Likewise.
19295         * doc/posix-functions/csinh.texi (csinh): Likewise.
19296         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
19297         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
19298         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
19299         * doc/posix-functions/ctan.texi (ctan): Likewise.
19300         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
19301         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
19302         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
19303         * doc/posix-headers/complex.texi (complex.h): Likewise.
19304
19305 2010-10-07  Jim Meyering  <meyering@redhat.com>
19306
19307         parse-datetime: avoid compilation failure on OpenBSD 4.7
19308         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
19309         This works around a compilation failure on OpenBSD 4.7:
19310         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
19311
19312 2010-10-07  Eric Blake  <eblake@redhat.com>
19313
19314         docs: update cygwin progress
19315         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
19316         1.7.6.
19317         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
19318         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
19319         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
19320         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
19321         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
19322         Likewise.
19323         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
19324         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
19325         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
19326         Likewise.
19327         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
19328         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
19329         Likewise.
19330         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
19331         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
19332         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
19333         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
19334         Likewise.
19335         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
19336         Likewise.
19337         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
19338
19339         docs: update parse-datetime history
19340         * doc/parse-datetime.texi (Authors of parse_datetime): Better
19341         documentation of this function's history and alternatives.
19342
19343         cygwin: use more robust version check
19344         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
19345         exclude an eventual cygwin 1.9.1.
19346         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
19347         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
19348         (gl_FUNC_STRCASESTR): Likewise.
19349         Reported by Bruno Haible.
19350
19351 2010-10-06  Bruno Haible  <bruno@clisp.org>
19352
19353         string, sys_select: Avoid #including large headers unless necessary.
19354         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
19355         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
19356         OSF/1, BeOS, Haiku.
19357         Reported by Jim Meyering.
19358
19359 2010-10-05  Eric Blake  <eblake@redhat.com>
19360
19361         memmem, strstr, strcasestr: fix bug with long periodic needle
19362         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
19363         periodic needle having false positive.
19364         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
19365         and cygwin 1.7.7.
19366         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
19367         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
19368         (gl_FUNC_STRCASESTR): Likewise.
19369         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
19370         * tests/test-memmem.c (main): Expose the bug.
19371         * tests/test-strcasestr.c (main): Likewise.
19372         * tests/test-strstr.c (main): Likewise.
19373         * tests/test-c-strcasestr.c (main): Likewise.
19374         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
19375         * doc/posix-functions/strstr.texi (strstr): Likewise.
19376         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
19377         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
19378
19379 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
19380
19381         parse-datetime: do some more renaming
19382         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
19383         parse_datetime, not get_date.  Mention the renaming.
19384         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
19385         in comments.
19386         * m4/bison.m4: Likewise.
19387
19388 2010-10-05  Eric Blake  <eblake@redhat.com>
19389
19390         parse-datetime: better name than get_date
19391         * NEWS: Reword the deprecation notice.
19392         * modules/get_date: Rename to modules/parse-datetime.
19393         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
19394         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
19395         * lib/get_date.y: Rename to lib/parse-datetime.y.
19396         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
19397         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
19398         * doc/getdate.texi: Provide fallback wrapper.
19399         * lib/getdate.h: Move guts, and wrap...
19400         * lib/parse-datetime.h: ...new file.
19401         * lib/parse-datetime.y (get_date): Rename...
19402         (parse_datetime): ...to this.
19403         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
19404         (gl_PARSE_DATETIME): ...to this.
19405         * doc/posix-functions/getdate.texi (get_date): Provide fallback
19406         documentation.
19407         * modules/getdate (Files): Provide fallback docs and header.
19408         (Notice, Depends-on): Update references.
19409         * tests/test-parse-datetime.c: Likewise.
19410         * DEPENDENCIES: Likewise.
19411         * MODULES.html.sh (Date and time <time.h>): Likewise.
19412         * doc/parse-datetime.texi (Date input formats)
19413         (Authors of parse_datetime): Likewise.
19414         * modules/parse-datetime (Files, configure.ac, Makefile.am)
19415         (Include): Likewise.
19416         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
19417         * gnulib-tool: Likewise.
19418         * m4/bison.m4 (gl_BISON): Likewise.
19419         Suggested by Bruno Haible.
19420
19421 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
19422
19423         more ports to Solaris tr, which needs [] around ranges
19424         * gnulib-tool: Solaris tr needs [] around ranges.
19425         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
19426         * tests/test-pipe-filter-gi1.c (main): Likewise.
19427         * tests/test-pipe-filter-ii1.c (main): Likewise.
19428
19429 2010-10-05  Eric Blake  <eblake@redhat.com>
19430
19431         bootstrap: fix Solaris regression
19432         * build-aux/bootstrap (check_versions): Solaris tr still needs []
19433         around ranges.
19434         Reported by Pádraig Brady.
19435
19436         bootstrap: work with pkg-config
19437         * build-aux/bootstrap (check_versions): Also transliterate - in
19438         prerequisite name.
19439         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
19440         prerequisites that were already found, to avoid confusion.
19441         Reported by Justin Clift.
19442
19443         faccessat: remove unused wrappers
19444         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
19445         presence of these wrappers dragged in -lgen on Solaris.
19446         Reported by Clemens Brogi; fix suggested by Paul Eggert.
19447
19448 2010-10-05  Jim Meyering  <meyering@redhat.com>
19449
19450         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
19451         * Makefile (sc_pragma_columns): New syntax-check rule.
19452
19453 2010-10-04  Bruno Haible  <bruno@clisp.org>
19454
19455         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
19456         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
19457         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
19458         Reported by Bruce Korb and Eric Blake.
19459
19460 2010-10-04  Bruno Haible  <bruno@clisp.org>
19461
19462         threadlib: Make option --with-libpth-prefix work.
19463         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
19464         use $LIBPTH, not just -lpth.
19465
19466 2010-10-04  Bruno Haible  <bruno@clisp.org>
19467
19468         Avoid line length limitation from HP NonStop system header files.
19469         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
19470         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
19471         * lib/ctype.in.h: Likewise.
19472         * lib/dirent.in.h: Likewise.
19473         * lib/errno.in.h: Likewise.
19474         * lib/fcntl.in.h: Likewise.
19475         * lib/float.in.h: Likewise.
19476         * lib/getopt.in.h: Likewise.
19477         * lib/iconv.in.h: Likewise.
19478         * lib/inttypes.in.h: Likewise.
19479         * lib/langinfo.in.h: Likewise.
19480         * lib/locale.in.h: Likewise.
19481         * lib/math.in.h: Likewise.
19482         * lib/netdb.in.h: Likewise.
19483         * lib/netinet_in.in.h: Likewise.
19484         * lib/poll.in.h: Likewise.
19485         * lib/pthread.in.h: Likewise.
19486         * lib/pty.in.h: Likewise.
19487         * lib/sched.in.h: Likewise.
19488         * lib/se-selinux.in.h: Likewise.
19489         * lib/search.in.h: Likewise.
19490         * lib/signal.in.h: Likewise.
19491         * lib/spawn.in.h: Likewise.
19492         * lib/stdarg.in.h: Likewise.
19493         * lib/stddef.in.h: Likewise.
19494         * lib/stdint.in.h: Likewise.
19495         * lib/stdio.in.h: Likewise.
19496         * lib/stdlib.in.h: Likewise.
19497         * lib/string.in.h: Likewise.
19498         * lib/strings.in.h: Likewise.
19499         * lib/sys_file.in.h: Likewise.
19500         * lib/sys_ioctl.in.h: Likewise.
19501         * lib/sys_select.in.h: Likewise.
19502         * lib/sys_socket.in.h: Likewise.
19503         * lib/sys_stat.in.h: Likewise.
19504         * lib/sys_time.in.h: Likewise.
19505         * lib/sys_times.in.h: Likewise.
19506         * lib/sys_utsname.in.h: Likewise.
19507         * lib/sys_wait.in.h: Likewise.
19508         * lib/sysexits.in.h: Likewise.
19509         * lib/termios.in.h: Likewise.
19510         * lib/time.in.h: Likewise.
19511         * lib/unistd.in.h: Likewise.
19512         * lib/wchar.in.h: Likewise.
19513         * lib/wctype.in.h: Likewise.
19514         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
19515         * modules/ctype (Makefile.am): Likewise.
19516         * modules/dirent (Makefile.am): Likewise.
19517         * modules/errno (Makefile.am): Likewise.
19518         * modules/fcntl-h (Makefile.am): Likewise.
19519         * modules/float (Makefile.am): Likewise.
19520         * modules/getopt-posix (Makefile.am): Likewise.
19521         * modules/iconv-h (Makefile.am): Likewise.
19522         * modules/inttypes (Makefile.am): Likewise.
19523         * modules/langinfo (Makefile.am): Likewise.
19524         * modules/locale (Makefile.am): Likewise.
19525         * modules/math (Makefile.am): Likewise.
19526         * modules/netdb (Makefile.am): Likewise.
19527         * modules/netinet_in (Makefile.am): Likewise.
19528         * modules/poll-h (Makefile.am): Likewise.
19529         * modules/pthread (Makefile.am): Likewise.
19530         * modules/pty (Makefile.am): Likewise.
19531         * modules/sched (Makefile.am): Likewise.
19532         * modules/search (Makefile.am): Likewise.
19533         * modules/selinux-h (Makefile.am): Likewise.
19534         * modules/signal (Makefile.am): Likewise.
19535         * modules/spawn (Makefile.am): Likewise.
19536         * modules/stdarg (Makefile.am): Likewise.
19537         * modules/stddef (Makefile.am): Likewise.
19538         * modules/stdint (Makefile.am): Likewise.
19539         * modules/stdio (Makefile.am): Likewise.
19540         * modules/stdlib (Makefile.am): Likewise.
19541         * modules/string (Makefile.am): Likewise.
19542         * modules/strings (Makefile.am): Likewise.
19543         * modules/sys_file (Makefile.am): Likewise.
19544         * modules/sys_ioctl (Makefile.am): Likewise.
19545         * modules/sys_select (Makefile.am): Likewise.
19546         * modules/sys_socket (Makefile.am): Likewise.
19547         * modules/sys_stat (Makefile.am): Likewise.
19548         * modules/sys_time (Makefile.am): Likewise.
19549         * modules/sys_times (Makefile.am): Likewise.
19550         * modules/sys_utsname (Makefile.am): Likewise.
19551         * modules/sys_wait (Makefile.am): Likewise.
19552         * modules/sysexits (Makefile.am): Likewise.
19553         * modules/termios (Makefile.am): Likewise.
19554         * modules/time (Makefile.am): Likewise.
19555         * modules/unistd (Makefile.am): Likewise.
19556         * modules/wchar (Makefile.am): Likewise.
19557         * modules/wctype (Makefile.am): Likewise.
19558
19559 2010-10-04  Bruno Haible  <bruno@clisp.org>
19560
19561         read-file tests: Avoid a test failure on NonStop Kernel.
19562         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
19563         a regular file.
19564         Reported by Joachim Schmitz <schmitz@hp.com>.
19565
19566 2010-10-03  Bruno Haible  <bruno@clisp.org>
19567
19568         gnulib-tool: Fixes for --create-testdir with --libtool.
19569         * gnulib-tool (func_get_automake_snippet): Don't augment
19570         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
19571         an executable.
19572         (func_create_testdir): Handle module 'alloca' like func_import.
19573         Reported by Bruce Korb <bruce.korb@gmail.com>.
19574
19575 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
19576
19577         Avoid some lines longer than 80 characters.
19578         * lib/stdint.in.h: Break long comment lines.
19579         * lib/math.in.h: Likewise.
19580         (_GL_NUM_UINT_WORDS): New macro, for readability.
19581         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
19582         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
19583         * lib/stdlib.in.h: Likewise.
19584         * lib/spawn.in.h: Likewise.
19585         * lib/sys_socket.in.h: Update an URL.
19586         * lib/sys_stat.in.h: Break long line.
19587
19588 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
19589
19590         Improve pmccabe2html.
19591         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
19592         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
19593         when the sources change. Remove the line in the HTML about "Used
19594         ranges" (which implied that there might be other unused ranges),
19595         rename "Resume" to "Summary" (easier to understand for more users).
19596         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
19597         styles, and some unnecessary blank lines.
19598
19599 2010-10-03  Bruno Haible  <bruno@clisp.org>
19600             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
19601
19602         acl: Add support for ACLs on NonStop Kernel.
19603         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
19604         Check whether the function aclsort() exists.
19605         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
19606         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
19607         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
19608         (acl_nontrivial [HAVE_ACLSORT]: New function.
19609         (file_has_acl): Implement for NonStop Kernel.
19610         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
19611         (qset_acl): Implement for NonStop Kernel.
19612         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
19613         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
19614         (main): Implement for NonStop Kernel.
19615         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
19616         Kernel. Handle this flavor.
19617         * tests/test-set-mode-acl.sh: Likewise.
19618         * tests/test-copy-acl.sh: Likewise.
19619         * tests/test-copy-file.sh: Likewise.
19620
19621 2010-10-03  Bruno Haible  <bruno@clisp.org>
19622
19623         Info about ACLs on NonStop Kernel.
19624         * doc/acl-resources.txt: Add info about NonStop Kernel.
19625         References by Joachim Schmitz <schmitz@hp.com>.
19626
19627 2010-10-02  Bruno Haible  <bruno@clisp.org>
19628
19629         Define missing EDQUOT on NonStop Kernel.
19630         * lib/errno.in.h (EDQUOT): Assign a value if missing.
19631         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
19632         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
19633         missing.
19634         * doc/posix-headers/errno.texi: Mention the NSK bug.
19635         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
19636         Reported by Joachim Schmitz <schmitz@hp.com>.
19637
19638 2010-10-02  Bruno Haible  <bruno@clisp.org>
19639
19640         Update doc for POSIX:2008.
19641         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
19642         Update URL of POSIX specification.
19643
19644 2010-10-02  Bruno Haible  <bruno@clisp.org>
19645
19646         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
19647         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
19648         from gnulib, not from Automake.
19649
19650 2010-10-02  Bruno Haible  <bruno@clisp.org>
19651
19652         New module 'system-posix'.
19653         * modules/system-posix: New file.
19654         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
19655         module is present.
19656         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
19657         GNULIB_SYSTEM_POSIX.
19658         * modules/stdlib (Depends-on): Remove sys_wait.
19659         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
19660         * doc/posix-functions/system.texi: Mention the new module.
19661         * doc/posix-headers/stdlib.texi: Likewise.
19662         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
19663         define test_sys_wait_macros to a no-op.
19664         Reported by Sam Steingold <sds@gnu.org>.
19665
19666 2010-09-30  Bruno Haible  <bruno@clisp.org>
19667
19668         More renaming from 'getdate' to 'get_date'.
19669         * doc/get_date.texi: Renamed from doc/getdate.texi.
19670         * modules/get_date (Files): Update.
19671         * MODULES.html.sh (Date and time <time.h>): Update.
19672         * DEPENDENCIES: Update.
19673         * gnulib-tool: Update comment.
19674         * m4/bison.m4 (gl_BISON): Likewise.
19675         * m4/get_date.m4 (gl_GET_DATE): Likewise.
19676
19677 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
19678
19679         bootstrap: support ACLOCAL_FLAGS during aclocal
19680         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
19681         can add additional -I dir for third-party .m4 files.
19682
19683 2010-09-30  Eric Blake  <eblake@redhat.com>
19684
19685         bootstrap: use glibtoolize on MacOS
19686         * build-aux/bootstrap (check_versions): Convert libtool into
19687         libtoolize.
19688         (tool search): Move libtool check earlier, and look for
19689         glibtoolize for MacOS.
19690         (gnulib_tool_options): Auto-add --libtool when appropriate.
19691         Reported by Justin Clift.
19692
19693         poll: fix typo that broke test on MacOS
19694         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
19695         Reported by Justin Clift.
19696
19697         getdate: rename to get_date
19698         Note: getdate.h is not renamed, to minimize client impact.
19699         * modules/getdate: Mark obsolete.  Move old contents...
19700         * modules/get_date: ...to new module name.
19701         * modules/getdate-tests: Move...
19702         * modules/get_date-tests: ...here.
19703         * m4/getdate.m4: Move...
19704         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
19705         * lib/getdate.y: Move...
19706         * lib/get_date.y: ...here.
19707         * tests/test-getdate.c: Move...
19708         * tests/test-get_date.c: ...here.
19709         * doc/posix-functions/getdate.texi (getdate): Update name.
19710         * NEWS: Mention the change.
19711
19712 2010-09-29  Bruno Haible  <bruno@clisp.org>
19713
19714         Separate the module 'waitpid' from the module 'sys_wait'.
19715         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
19716         present.
19717         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
19718         gl_MODULE_INDICATOR_FOR_TESTS.
19719         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
19720         * modules/sys_wait (Depends-on): Remove waitpid.
19721         (Makefile.am): Substitute GNULIB_WAITPID.
19722         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
19723         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
19724         signature only if the 'waitpid' module is present.
19725         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
19726         * NEWS: Mention the change.
19727         * modules/grantpt (Depends-on): Add waitpid.
19728         * modules/wait-process (Depends-on): Likewise.
19729
19730 2010-09-29  Bruno Haible  <bruno@clisp.org>
19731
19732         More tests for module 'sys_wait'.
19733         * modules/sys_wait-c++-tests: New file.
19734         * tests/test-sys_wait-c++.cc: New file.
19735         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
19736         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
19737
19738 2010-09-29  Bruno Haible  <bruno@clisp.org>
19739
19740         New module 'waitpid'.
19741         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
19742         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
19743         Don't include <process.h>.
19744         (waitpid): Declare only, using modern idiom.
19745         * m4/waitpid.m4: New file.
19746         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
19747         * modules/waitpid: New file.
19748         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
19749         (Makefile.am): Update.
19750         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
19751
19752 2010-09-28  Bruno Haible  <bruno@clisp.org>
19753
19754         poll: Assume ANSI C.
19755         * lib/poll.c (poll): Use an ANSI C declaration.
19756
19757 2010-09-28  Bruno Haible  <bruno@clisp.org>
19758
19759         poll-h: Create poll.h on all platforms.
19760         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
19761         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
19762         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
19763         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
19764         (gl_REPLACE_POLL_H): Don't set POLL_H.
19765         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
19766         * modules/poll-h (Depends-on): Add include_next.
19767         (Makefile.am): Create poll.h unconditionally. Substitute also
19768         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
19769
19770 2010-09-28  Bruno Haible  <bruno@clisp.org>
19771
19772         Tests for module 'poll-h'.
19773         * modules/poll-h-c++-tests: New file.
19774         * tests/test-poll-h-c++.cc: New file.
19775
19776         Tests for module 'poll-h'.
19777         * modules/poll-h-tests: New file.
19778         * tests/test-poll-h.c: New file.
19779
19780 2010-09-28  Bruno Haible  <bruno@clisp.org>
19781
19782         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
19783         * modules/poll-h (Depends-on): Add 'extensions'.
19784
19785 2010-09-28  Bruno Haible  <bruno@clisp.org>
19786
19787         New module 'poll-h'.
19788         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
19789         (poll): Use modern idiom.
19790         * modules/poll-h: New file.
19791         * modules/poll (Files): Remove lib/poll.in.h.
19792         (Depends-on): Add poll-h.
19793         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
19794         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
19795         * m4/poll_h.m4: New file.
19796         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
19797         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
19798         and invoke gl_REPLACE_POLL_H.
19799         * lib/poll.c: Use common idiom.
19800         * tests/test-poll.c: Likewise.
19801         * doc/posix-headers/poll.texi: Mention the poll-h module.
19802         Suggested by Eric Blake.
19803
19804 2010-09-26  Bruno Haible  <bruno@clisp.org>
19805
19806         sys_wait: Implement WSTOPSIG.
19807         * lib/sys_wait.in.h (WSTOPSIG): New macro.
19808         Reported by Simon Josefsson.
19809
19810 2010-09-26  Simon Josefsson  <simon@josefsson.org>
19811
19812         stdlib, sys_wait: Avoid compilation error on mingw.
19813         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
19814
19815 2010-09-26  Bruno Haible  <bruno@clisp.org>
19816
19817         stdlib tests: Avoid code duplication.
19818         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
19819         * modules/sys_wait-tests (Files): Likewise.
19820         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
19821         * tests/test-stdlib.c: Include test-sys_wait.h.
19822         (main): Invoke test_sys_wait_macros.
19823         * tests/test-sys_wait.c: Include test-sys_wait.h.
19824         (main): Invoke test_sys_wait_macros.
19825
19826 2010-09-25  Simon Josefsson  <simon@josefsson.org>
19827
19828         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
19829         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
19830         sure Windows sockets are working before calling getaddrinfo.
19831         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
19832         * doc/gnulib.texi (Windows sockets): Fix typo.
19833
19834 2010-09-25  Bruno Haible  <bruno@clisp.org>
19835
19836         Tests for module 'regex-quote'.
19837         * modules/regex-quote-tests: New file.
19838         * tests/test-regex-quote.c: New file.
19839
19840         New module 'regex-quote'.
19841         * lib/regex-quote.h: New file.
19842         * lib/regex-quote.c: New file.
19843         * modules/regex-quote: New file.
19844         Suggested by Reuben Thomas <rrt@sc3d.org>.
19845
19846 2010-09-24  Bruno Haible  <bruno@clisp.org>
19847
19848         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
19849         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
19850
19851 2010-09-23  Bruno Haible  <bruno@clisp.org>
19852
19853         setenv: Relax license.
19854         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
19855         Blake.
19856         Requested by Eric Blake.
19857
19858 2010-09-22  Bruno Haible  <bruno@clisp.org>
19859
19860         termios: Relax license.
19861         * modules/termios (License): Change to LGPLv2+.
19862         Requested by Eric Blake.
19863
19864 2010-09-22  Bruno Haible  <bruno@clisp.org>
19865
19866         threadlib: Allow the package to change the default to 'no'.
19867         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
19868         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
19869         Reported by Paul Eggert.
19870
19871 2010-09-22  Pádraig Brady  <P@draigbrady.com>
19872             Bruno Haible  <bruno@clisp.org>
19873
19874         Fix endless loop in mbmemcasecoll.
19875         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
19876         byte.
19877         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
19878
19879 2010-09-22  Bruno Haible  <bruno@clisp.org>
19880
19881         Tests for module 'memcoll'.
19882         * modules/memcoll-tests: New file.
19883         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
19884
19885         memcoll, xmemcoll: Clarify size vs. length.
19886         * modules/memcoll.c (memcoll0): Clarify specification.
19887         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
19888         passed to collate_error.
19889
19890 2010-09-22  Bruno Haible  <bruno@clisp.org>
19891
19892         Tests for module 'memcasecmp'.
19893         * modules/memcasecmp-tests: New file.
19894         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
19895
19896 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
19897
19898         * lib/pthread.in.h: Add split double-inclusion guard, and include
19899         system <pthread.h> if there is one.  Use @@-style as in other
19900         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
19901         pthread.h doesn't.
19902         (pthread_mutexattr_destroy, pthread_mutexattr_init):
19903         (pthread_mutexattr_settype, pthread_mutex_trylock):
19904         New static inline functions, if there's no system <pthread.h>.
19905         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
19906         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
19907         Approximate with mutexes if the system lacks spinlocks, as in
19908         MacOS.
19909         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
19910         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
19911         @@-style.  Check for spinlocks separately.
19912         (gl_PTHREAD_DEFAULTS): New macro.
19913         * modules/pthread: Redo to use a more typical style for in.h files.
19914
19915 2010-09-21  Eric Blake  <eblake@redhat.com>
19916
19917         net_if: enhance tests
19918         * tests/test-net_if.c (main): Move signature checks earlier.
19919         Print failures to stderr.
19920         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
19921         Document the bug that we do not yet fix.
19922
19923 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
19924
19925         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
19926         about gnulib, not GSS.
19927
19928 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
19929
19930         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
19931         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
19932         for Emacs.
19933         * build-aux/pmccabe2html: Make Makefile.am example code more
19934         cut-and-paste friendly.
19935
19936 2010-09-21  Simon Josefsson  <simon@josefsson.org>
19937
19938         * tests/test-net_if.c: New file.
19939         * modules/net_if-tests: New file.
19940
19941 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
19942
19943         pthread: add pthread_spin_destroy
19944         * lib/pthread.in.h (pthread_spin_destroy): New function.
19945
19946 2010-09-19  Bruno Haible  <bruno@clisp.org>
19947
19948         gnulib-tool: Fix --help output.
19949         * gnulib-tool (func_usage): Fix help message.
19950         Reported by Reuben Thomas <rrt@sc3d.org>.
19951
19952 2010-09-18  Jim Meyering  <meyering@redhat.com>
19953
19954         maint.mk: avoid unexpanded \n in two diagnostics
19955         * top/maint.mk (sc_prohibit_always_true_header_tests):
19956         Don't use a literal \n in a halt=... assignment.  It would not be
19957         expanded, and the two \n bytes would appear in the diagnostic output
19958         rather than the desired newline.  Use halt=$$(printf ... instead.
19959         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
19960
19961 2010-09-18  Bruno Haible  <bruno@clisp.org>
19962
19963         netinet_in: Doc tweak.
19964         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
19965         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
19966
19967 2010-09-18  Jim Meyering  <meyering@redhat.com>
19968
19969         init.sh: correct an outdated comment
19970         * tests/init.sh (create_exe_shims_):  s/function/alias/
19971
19972         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
19973         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
19974         a file named "*.exe" is removed between the glob expansion and the
19975         processing of that oddly named file.
19976
19977 2010-09-17  Eric Blake  <eblake@redhat.com>
19978
19979         mirbsd: add some more support
19980         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
19981         in BSD family.
19982         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
19983         devices as OpenBSD.
19984         * m4/host-os.m4 (mirbsd): Add MirBSD.
19985
19986         tests: fix unportable assumption on sys/wait.h
19987         * tests/test-sys_wait.c (main): Relax test.
19988         * tests/test-stdlib.c (main): Likewise.
19989
19990         init.sh: accomodate directory with no .exes
19991         * tests/init.sh: Accomodate directory containing only scripts.
19992
19993         tests: avoid compiler warning
19994         * tests/test-stdlib.c (main): Use the variable.
19995
19996         fdutimens, fdutimensat: update signature, again
19997         * lib/utimens.h (gl_futimens): Delete, and move signature...
19998         (fdutimens): ...here.
19999         (fdutimensat): Rearrange signature.
20000         (lutimensat): Rename variable for clarity.
20001         * lib/fdutimensat.c (fdutimensat): Update signature.
20002         * lib/utimens.c (fdutimens): Likewise.
20003         (gl_futimens): Delete.
20004         (utimens, lutimens): Update callers.
20005         * lib/futimens.c (futimens): Likewise.
20006         * tests/test-fdutimensat.c: Likewise.
20007         * tests/test-utimens.c: Likewise.
20008         * tests/test-futimens.h: Update comment.
20009         * NEWS: Mention this.
20010         Suggested by Paul Eggert.
20011
20012 2010-09-17  Bruno Haible  <bruno@clisp.org>
20013
20014         Take over the maintenance of some older macros from Autoconf.
20015         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
20016         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
20017         GNU Autoconf.
20018         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
20019         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
20020
20021 2010-09-17  Eric Blake  <eblake@redhat.com>
20022
20023         fdutimensat: drop atflag validation
20024         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
20025         with valid fd, to close a race scenario where futimens is
20026         unsupported and FILE was replaced by a symlink.
20027         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
20028         accordingly.
20029         Suggested by Paul Eggert.
20030
20031 2010-09-16  Bruno Haible  <bruno@clisp.org>
20032
20033         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
20034         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
20035
20036 2010-09-16  Bruno Haible  <bruno@clisp.org>
20037
20038         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
20039         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
20040         login_tty exists.
20041         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
20042
20043 2010-09-16  Bruno Haible  <bruno@clisp.org>
20044
20045         login_tty: Make the replacement code work on BSD systems.
20046         * lib/login_tty.c: Include <sys/ioctl.h>.
20047         (login_tty): Use ioctl TIOCSCTTY when available.
20048         * modules/login_tty (Depends-on): Add sys_ioctl.
20049         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
20050
20051 2010-09-16  Bruno Haible  <bruno@clisp.org>
20052
20053         login_tty: Stricter unit test.
20054         * modules/login_tty-tests (Depends-on): Add tcgetsid.
20055         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
20056         and tcgetsid() after login_tty.
20057         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
20058
20059 2010-09-16  Bruno Haible  <bruno@clisp.org>
20060
20061         New module 'tcgetsid'.
20062         * lib/tcgetsid.c: New file.
20063         * m4/tcgetsid.m4: New file.
20064         * modules/tcgetsid: New file.
20065         * modules/termios (Depends-on): Add c++defs, warn-on-use.
20066         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
20067         GNULIB_TCGETSID, HAVE_TCGETSID.
20068         * lib/termios.in.h: Include <sys/types.h>.
20069         (tcgetsid): New declaration.
20070         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
20071         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
20072         * doc/posix-functions/tcgetsid.texi: Mention the new module.
20073         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
20074
20075 2010-09-16  Bruno Haible  <bruno@clisp.org>
20076
20077         Tests for module 'termios'.
20078         * modules/termios-c++-tests: New file.
20079         * modules/termios-tests: New file.
20080         * tests/test-termios-c++.cc: New file.
20081         * tests/test-termios.c: New file.
20082
20083         New module 'termios'.
20084         * modules/termios: New file.
20085         * lib/termios.in.h: New file.
20086         * m4/termios_h.m4: New file.
20087         * doc/posix-headers/termios.texi: Mention the new module.
20088
20089 2010-09-16  Eric Blake  <eblake@redhat.com>
20090
20091         fdutimensat: add an atflag parameter
20092         * lib/fdutimensat.c (fdutimensat): Add new parameter.
20093         * lib/utimens.h (fdutimensat): Update prototype.
20094         * tests/test-fdutimensat.c: Adjust test to match.
20095         * NEWS: Document the change.
20096         Suggested by Paul Eggert.
20097
20098 2010-09-16  Bruno Haible  <bruno@clisp.org>
20099
20100         Fix typos in comments.
20101         * lib/striconveh.h: Fix typo in comment.
20102         * lib/login_tty.c (login_tty): Likewise.
20103
20104 2010-09-15  Bruno Haible  <bruno@clisp.org>
20105
20106         stdlib: clarify MirBSD WEXITSTATUS bug
20107         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
20108         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
20109
20110 2010-09-15  Eric Blake  <eblake@redhat.com>
20111
20112         stdlib: work around MirBSD WEXITSTATUS bug
20113         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
20114         * modules/stdlib (Depends-on): Add sys_wait.
20115         * tests/test-sys_wait.c (main): Enhance test.
20116         * tests/test-stdlib.c (main): Likewise.
20117         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
20118
20119         docs: mention MacOS issue with WEXITSTATUS(constant)
20120         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
20121         issue.
20122         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
20123
20124         strnlen: add tests
20125         * modules/strnlen-tests: New file.
20126         * tests/test-strnlen.c: Likewise.
20127
20128 2010-09-14  Bruno Haible  <bruno@clisp.org>
20129
20130         unistr/base: Avoid link errors when module 'libunistring' is also used.
20131         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
20132         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
20133         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
20134         Declare also when HAVE_LIBUNISTRING is set.
20135         Reported by Pádraig Brady <P@draigbrady.com>.
20136
20137 2010-09-14  Eric Blake  <eblake@redhat.com>
20138
20139         test-rawmemchr: make more robust
20140         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
20141         (Depends-on, configure.ac): Add needed prerequisites to use it.
20142         * modules/memchr-tests (Files, Depends-on, configure.ac):
20143         Likewise, to avoid implicit reliance on memchr module prereqs.
20144         * tests/test-memchr.c (main): Ensure proper masking.
20145         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
20146         reads.
20147
20148         memchr: detect glibc Alpha bug
20149         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
20150         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
20151         Alpha.
20152         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
20153         * tests/test-memchr.c (main): Enhance test.
20154         Reported by Nelson H. F. Beebe.
20155
20156 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
20157
20158         fts, getcwd, glob: audit for dirfd returning -1
20159         * lib/fts.c (opendir): Remove #define; no longer used.
20160         (opendirat): New arg PDIR_FD.  All callers changed.
20161         (fts_build, _opendir2): Use new opendirat to avoid the need for
20162         dirfd, or for checking whether dirfd returns a negative value.
20163         Don't use opendir; always use openat followed by fdopendir.
20164         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
20165         it.
20166         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
20167         returns -1 here.
20168         * modules/fts (Depends-on): Remove dirfd.
20169         * modules/getcwd (Depends-on): Likewise.
20170
20171 2010-09-13  Eric Blake  <eblake@redhat.com>
20172
20173         float: fix broken MirBSD header
20174         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
20175         * doc/posix-headers/float.texi (float.h): Document it.
20176
20177 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
20178
20179         fts: use O_NOFOLLOW to avoid race condition when opening a directory
20180         * lib/fts.c (opendirat): New arg extra_flags.
20181         (__opendir2): Use it to avoid following symlinks when opening
20182         a directory, if symlinks are not supposed to be followed.  See
20183         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
20184
20185         fdopendir: preserve argument fd before returning
20186         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
20187         (fdopendir_with_dup, fd_clone_opendir): New static functions.
20188         (fdopendir): Use them, arranging for FD to be open to the same
20189         directory that it was when it started.  (It might be temporarily
20190         closed while fdopendir is running, so this not thread- or
20191         signal-safe.)  Be careful to do the right thing even when file
20192         descriptors are scarce and dup fails with errno == EMFILE.  See
20193         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
20194
20195 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
20196
20197         regex: Pass the system regex if its only problem is 32-bit regoff_t.
20198         * NEWS: Document change.
20199         * m4/regex.m4: Disable test for regoff_t size.
20200
20201 2010-09-13  Jim Meyering  <meyering@redhat.com>
20202
20203         fts: don't operate on an invalid file descriptor after failed dup
20204         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
20205         negative file descriptor.
20206
20207 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
20208
20209         savedir: add streamsavedir, deprecate fdsavedir
20210         * NEWS: Mention deprecation of fdsavedir.
20211         * lib/savedir.c (streamsavedir): New extern function, whose name
20212         ends in "savedir" to be consistent with the others.  This differs
20213         from savedirstream in that it doesn't close its argument.  The
20214         next version of GNU tar will use this instead of fdsavedir, to
20215         avoid some race conditions and conserve file descriptors.
20216         (savedirstream): Reimplement as a wrapper around streamsavedir.
20217         (fdsavedir): Add a comment deprecating this function.  As far as
20218         I know, only GNU tar used it, and GNU tar doesn't need it any more.
20219         * lib/savedir.h (streamsavedir): New decl.
20220         (fdsavedir): Add a comment deprecating this.
20221
20222 2010-09-10  Bruno Haible  <bruno@clisp.org>
20223
20224         langinfo: Fix last commit.
20225         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
20226         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
20227         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
20228
20229 2010-09-10  Bruno Haible  <bruno@clisp.org>
20230
20231         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
20232         * lib/progreloc.c (O_EXEC): Define fallback.
20233
20234 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
20235
20236         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
20237         * NEWS: Document recent changes to fcntl-h.
20238         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
20239         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
20240         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
20241         Similarly for O_SEARCH; this last was already true, but not documented.
20242         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
20243         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
20244         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
20245         Likewise.
20246         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
20247         is zero, not whether it is defined.
20248         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
20249         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
20250         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
20251
20252 2010-09-10  Bruno Haible  <bruno@clisp.org>
20253
20254         langinfo, nl_langinfo: Fix for IRIX 5.3.
20255         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
20256         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
20257         HAVE_LANGINFO_YESEXPR.
20258         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
20259         HAVE_LANGINFO_YESEXPR.
20260         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
20261         HAVE_LANGINFO_T_FMT_AMPM is 0.
20262         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
20263         HAVE_LANGINFO_YESEXPR is 0.
20264         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
20265         NOEXPR.
20266         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
20267         * doc/posix-functions/nl_langinfo.texi: Likewise.
20268         Reported by Eric Blake.
20269
20270 2010-09-10  Bruno Haible  <bruno@clisp.org>
20271
20272         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
20273         * doc/glibc-functions/login_tty.texi: Mention the include file problem
20274         on FreeBSD 8.0 and OpenBSD 4.6.
20275         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
20276         * m4/pty_h.m4 (gl_PTY_H): Likewise.
20277         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
20278         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
20279         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
20280         ac_includes_default.
20281         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
20282
20283 2010-09-09  Eric Blake  <eblake@redhat.com>
20284
20285         strsignal: work around NetBSD bug
20286         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
20287         * lib/string.in.h (includes): Likewise.
20288         * doc/posix-functions/strsignal.texi (strsignal): Document the
20289         bug.
20290         Reported by Nelson H. F. Beebe.
20291
20292         gnulib-tool: work with NetBSD /bin/sh
20293         * gnulib-tool (func_cache_var, func_cache_lookup_module)
20294         (func_get_description, func_get_comment, func_get_status)
20295         (func_get_notice, func_get_applicability, func_get_filelist)
20296         (func_get_dependencies, func_get_autoconf_early_snippet)
20297         (func_get_autoconf_snippet, func_get_automake_snippet)
20298         (func_get_include_directive, func_get_link_directive)
20299         (func_get_license, func_get_maintainer, func_import): Avoid
20300         shell syntax errors from parsing syntax extensions.
20301
20302 2010-09-09  Bruno Haible  <bruno@clisp.org>
20303
20304         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
20305         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
20306         a reliable way to determine whether the 'alias' command works.
20307
20308 2010-09-08  Jim Meyering  <meyering@redhat.com>
20309
20310         init.sh: penalize a set-x-impaired shell; don't disqualify it
20311         * tests/init.sh: Too many shells corrupt application stderr when
20312         you set -x, so we can't afford to disqualify them, since at least
20313         on Irix-6.5, that would disqualify all bourne shells.
20314         Instead, use a two-pass approach.
20315         On the first pass, try to find a shell that meets the stricter
20316         condition that set -x does not corrupt stderr.
20317         If no shell meets the stricter condition, retest each candidate
20318         shell, but without that extra condition.  Finally, when
20319         VERBOSE=yes is requested and set -x might cause trouble, simply
20320         issue a warning and refrain from enabling debug output.
20321
20322 2010-09-08  Eric Blake  <eblake@redhat.com>
20323
20324         unsetenv: fix OpenBSD bug
20325         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
20326         * doc/posix-functions/unsetenv.texi (unsetenv): Update
20327         documentation.
20328         Reported by Jim Meyering.
20329
20330         strtod: work around IRIX 6.5 bug
20331         * lib/strtod.c (strtod): Reparse number on shorter string if
20332         exponent parse was invalid.
20333         * tests/test-strtod.c (main): Add check for "0x1p 2".
20334         Reported by Tom G. Christensen.
20335
20336         getopt: optimize previous patch
20337         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
20338         empty variable.  Speed up awk script.
20339         Reported by Paolo Bonzini.
20340
20341 2010-09-08  Jim Meyering  <meyering@redhat.com>
20342
20343         test.sh: disqualify shells for which set -x corrupts stderr
20344         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
20345         and OpenBSD 4.7.  They make it so with "set -x", environment settings
20346         appear in stderr output.  For example, this command:
20347             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
20348         prints "P=1" on those two systems:
20349
20350 2010-09-08  Bruno Haible  <bruno@clisp.org>
20351
20352         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
20353         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
20354         commands, because some shells ignore redirections when there is an
20355         error in the command lookup.
20356         Reported by Eric Blake.
20357
20358 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
20359
20360         * lib/regex.h: Fix a mention of `regex_compile' (should be
20361         `re_compile_pattern').
20362         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
20363         (re_set_registers): Correct name of parameter in comment.
20364
20365         * doc/regex.texi: Add documentation for missing syntax flags.
20366         Remove commented-out documentation of defunct syntax option
20367         RE_NO_EMPTY_ALTS.
20368         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
20369         Add documentation of re_set_registers.
20370         Document trick to re-use a pattern buffer by setting fastmap manually.
20371         Update documentation of struct re_pattern_buffer per public members.
20372         Uncomment documentation of equivalence class operators and
20373         collating symbol operators, since they are now implemented,
20374         Explain leftmost-longest matching in relation to alternatives.
20375         Tidy documentation of substring matching.
20376         Remove POSIX documentation, which is done better in
20377         glibc, and refer the reader there. Keep BSD API documentation, as
20378         that is not readily available elsewhere.
20379
20380 2010-09-07  Eric Blake  <eblake@redhat.com>
20381
20382         getopt: handle POSIXLY_CORRECT set but not exported
20383         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
20384         export state of POSIXLY_CORRECT, due to bash set -o posix.
20385         Reported by Dustin J. Mitchell.
20386
20387 2010-09-05  Bruno Haible  <bruno@clisp.org>
20388
20389         gnulib-tool: Highlight the changed options.
20390         * gnulib-tool (func_usage): Display the --import, --add-import,
20391         --remove-import explanations in bold font.
20392
20393 2010-09-06  Karl Berry  <karl@gnu.org>
20394
20395         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
20396
20397 2010-09-05  Bruno Haible  <bruno@clisp.org>
20398
20399         uniwidth/width: Update comment.
20400         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
20401         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
20402
20403 2010-09-05  Bruno Haible  <bruno@clisp.org>
20404
20405         isinf, isnan: Relax license.
20406         * modules/isinf (License): Change from GPL to LGPL, with consent from
20407         Ben Pfaff.
20408         * modules/isnan (License): Likewise.
20409         Requested by Ludovic Courtès.
20410
20411 2010-09-04  Bruno Haible  <bruno@clisp.org>
20412
20413         gnulib-tool: Help migration from --import to --add-import or --update.
20414         * gnulib-tool: Emit a verbose error message when --import is used
20415         without any module name.
20416
20417 2010-09-04  Bruno Haible  <bruno@clisp.org>
20418
20419         Update doc about gnulib-tool.
20420         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
20421         'gnulib-tool --update' in more detail.
20422         Reported by Eric Blake.
20423
20424 2010-09-04  Bruno Haible  <bruno@clisp.org>
20425
20426         gnulib-tool: Change --import. New options --add/remove-import.
20427         * gnulib-tool: New options --add-import, --remove-import.
20428         (func_usage): Document them.
20429         (have_associative): Define always.
20430         (func_import): In import mode, don't merge the specified settings with
20431         the cached settings. Implement remove-import mode.
20432         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
20433         Explain when to use them versus --import.
20434         (Simple update): Use --add-import instead of --import.
20435         * NEWS: Mention the change.
20436
20437 2010-09-04  Bruno Haible  <bruno@clisp.org>
20438
20439         * doc/gnulib-tool.texi (Initial import): Update paragraph about
20440         separate gnulib.mk.
20441
20442 2010-09-04  Bruno Haible  <bruno@clisp.org>
20443
20444         gnulib-tool: Don't talk about CVS any more.
20445         * gnulib-tool (func_usage, func_import): Write "version control"
20446         instead of CVS.
20447
20448 2010-09-04  Jim Meyering  <meyering@redhat.com>
20449
20450         maint.mk: avoid obscure sc_copyright_check failure in coreutils
20451         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
20452         false positives (whose names may be ill-chosen) when searching
20453         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
20454         would cause a false-positive.
20455
20456         avoid coreutils "make distcheck" failure
20457         Coreutils tests with an absolute build directory name that contains
20458         a space.  Not quoting this directory name caused a failure.
20459         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
20460         * tests/test-vc-list-files-cvs.sh: Likewise.
20461
20462 2010-09-04  Bruno Haible  <bruno@clisp.org>
20463
20464         gnulib-tool: Avoid error when run in a package without Makefile.am.
20465         * gnulib-tool: When collecting the m4dirs in a package that does not
20466         have a Makefile.am, eliminate those directories that contain no
20467         gnulib-cache.m4. Fix expression that counts these directories.
20468
20469 2010-09-04  Bruno Haible  <bruno@clisp.org>
20470
20471         update-copyright test: Improve output when perl is missing or too old.
20472         * tests/test-update-copyright.sh: Move test of Perl version down after
20473         the test whether Perl exists. Provide an explanation relating Perl's
20474         error message to Automake's SKIP: message.
20475
20476 2010-09-04  Bruno Haible  <bruno@clisp.org>
20477
20478         Don't augment PATH in TESTS_ENVIRONMENT.
20479         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
20480         set abs_aux_dir instead of augmenting PATH.
20481         * modules/vc-list-files-tests (Makefile.am): Likewise.
20482         * tests/test-update-copyright.sh: Augment PATH here.
20483         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
20484         path_prepend_.
20485         * tests/test-vc-list-files-git.sh: Likewise.
20486
20487 2010-09-04  Jim Meyering  <meyering@redhat.com>
20488
20489         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
20490         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
20491
20492 2010-09-04  Bruno Haible  <bruno@clisp.org>
20493
20494         strdup: Fix compilation error in C++ mode.
20495         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
20496         the macro.
20497
20498 2010-09-04  Bruno Haible  <bruno@clisp.org>
20499
20500         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
20501         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
20502         macro into a function.
20503         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
20504
20505 2010-09-04  Bruno Haible  <bruno@clisp.org>
20506
20507         Set PATH_SEPARATOR the same way autoconf does.
20508         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
20509         the value of PATH_SEPARATOR the same way autoconf-generated configure
20510         scripts do.
20511         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
20512         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
20513
20514 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
20515
20516         Set PATH_SEPARATOR the same way autoconf does.
20517         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
20518         the same way autoconf-generated configure scripts do.
20519         * posix-modules: Likewise.
20520
20521 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
20522
20523         hash: fix safe_hasher const typo
20524         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
20525         const; otherwise, there is a type error later.
20526
20527 2010-09-02  Jim Meyering  <meyering@redhat.com>
20528
20529         test-update-copyright.sh: require perl 5.8.0
20530         * tests/test-update-copyright.sh: Require 5.8.0,
20531         which Tom G. Christensen has confirmed is adequate,
20532         while 5.6.1 is not.
20533
20534 2010-09-02  Eric Blake  <eblake@redhat.com>
20535
20536         tests: init.sh improvements for re-exec'ing with zsh
20537         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
20538         -vx through shell re-exec.
20539         Reported by Tom G. Christensen.
20540
20541         wctype: fix typo in previous commit
20542         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
20543         Reported by Ludovic Courtès.
20544
20545 2010-09-02  Jim Meyering  <meyering@redhat.com>
20546
20547         test-update-copyright.sh: skip test if Perl is too old
20548         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
20549         Reported by Tom G. Christensen.
20550
20551 2010-09-02  Bruno Haible  <bruno@clisp.org>
20552
20553         wctype: Avoid compilation error on IRIX 6.5.30.
20554         * lib/wctype.in.h (iswblank): Declare with a replacement if
20555         REPLACE_ISWBLANK is set.
20556         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
20557         declared. Set REPLACE_ISWBLANK.
20558         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
20559         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
20560         * doc/posix-headers/wctype.texi: Likewise.
20561         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
20562
20563 2010-09-01  Bruno Haible  <bruno@clisp.org>
20564
20565         New module 'socketlib'.
20566         * modules/socketlib: New file.
20567         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
20568         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
20569         * modules/sockets (Depends-on): Add socketlib.
20570         Suggested by Sam Steingold <sds@gnu.org>.
20571
20572 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
20573
20574         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
20575
20576         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
20577         when one needs search access to a directory but not read access.
20578         On systems where it is available, it works in some cases where
20579         O_RDONLY does not, namely on directories that are searchable but
20580         not readable, and which need only to be searchable.  If O_SEARCH
20581         is not available, fall back to the traditional method of using
20582         O_RDONLY.
20583
20584         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
20585         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
20586         when opening a directory that needs only to be searchable.
20587         * lib/chdir-safer.c (chdir_no_follow): Likewise.
20588         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
20589         * lib/openat-proc.c (openat_proc_name): Likewise.
20590         * lib/openat.c (openat_needs_fchdir): Likewise.
20591         * lib/save-cwd.c (save_cwd): Likewise.
20592         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
20593
20594 2010-08-28  Bruno Haible  <bruno@clisp.org>
20595
20596         New module 'host-cpu-c-abi'.
20597         * modules/host-cpu-c-abi: New file.
20598         * m4/host-cpu-c-abi.m4: New file, based on part of
20599         clisp/src/m4/general.m4.
20600         Requested by Sam Steingold <sds@gnu.org>.
20601
20602 2010-08-31  Eric Blake  <eblake@redhat.com>
20603         and Jim Meyering  <meyering@redhat.com>
20604
20605         hash: factor, and guard against misbehaving hasher function
20606         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
20607         of table->hasher's return value.  Also protect against a hash value
20608         so large that adding it to table->bucket results in a NULL pointer.
20609         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
20610         Use it in place of open-coded check-and-abort.
20611
20612 2010-08-30  Bruno Haible  <bruno@clisp.org>
20613
20614         hash: silence spurious clang warning
20615         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
20616         Reported by Eric Blake.
20617
20618 2010-08-30  Eric Blake  <eblake@redhat.com>
20619
20620         strstr, memmem, strcasestr: avoid leaked shell message
20621         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
20622         FreeBSD.
20623         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
20624         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
20625
20626         tests: silence clang warning
20627         * tests/test-malloca.c (do_allocation): Avoid dead store.
20628
20629 2010-08-29  Bruno Haible  <bruno@clisp.org>
20630
20631         gettext: Fix recent mistake.
20632         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
20633
20634 2010-08-29  Bruno Haible  <bruno@clisp.org>
20635
20636         selinux-h: Offer a --without-selinux option.
20637         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
20638         --without-selinux was specified, skip all tests and define
20639         HAVE_SELINUX_SELINUX_H to 0.
20640         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
20641         set LIB_SELINUX to empty.
20642         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
20643         gl_LIBSELINUX. If --without-selinux was specified, replace
20644         selinux/context.h.
20645         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
20646
20647 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20648             Bruno Haible  <bruno@clisp.org>
20649
20650         Make the module 'realloc-gnu' work again on AIX and OSF/1.
20651         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
20652         of HAVE_REALLOC.
20653         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
20654         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
20655         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
20656         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
20657
20658 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20659             Bruno Haible  <bruno@clisp.org>
20660
20661         Make the module 'calloc-gnu' work again on AIX and OSF/1.
20662         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
20663         HAVE_CALLOC.
20664         * lib/xmalloc.c: Update accordingly.
20665         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
20666         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
20667         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
20668
20669 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20670             Bruno Haible  <bruno@clisp.org>
20671
20672         Make the module 'malloc-gnu' work again on AIX and OSF/1.
20673         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
20674         HAVE_MALLOC.
20675         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
20676         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
20677         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
20678
20679 2010-08-29  Bruno Haible  <bruno@clisp.org>
20680
20681         Update modules list.
20682         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
20683         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
20684         (String handling <string.h>): Add astrxfrm.
20685         (File system functions): Add readlinkat.
20686
20687 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20688
20689         Tests for module 'realloc-gnu'.
20690         * modules/realloc-gnu-tests: New file.
20691         * tests/test-realloc-gnu.c: New file.
20692
20693         Tests for module 'calloc-gnu'.
20694         * modules/calloc-gnu-tests: New file.
20695         * tests/test-calloc-gnu.c: New file.
20696
20697         Tests for module 'malloc-gnu'.
20698         * modules/malloc-gnu-tests: New file.
20699         * tests/test-malloc-gnu.c: New file.
20700
20701 2010-08-28  Bruno Haible  <bruno@clisp.org>
20702
20703         Rename module 'realloc' -> 'realloc-gnu'.
20704         * modules/realloc-gnu: New file, copied from modules/realloc.
20705         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
20706         obsolete.
20707         * modules/mgetgroups (Depends-on): Update.
20708         * doc/posix-functions/realloc.texi: Update.
20709         * NEWS: Mention the change.
20710
20711         Rename module 'calloc' -> 'calloc-gnu'.
20712         * modules/calloc-gnu: New file, copied from modules/calloc.
20713         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
20714         obsolete.
20715         * doc/posix-functions/calloc.texi: Update.
20716         * NEWS: Mention the change.
20717
20718         Rename module 'malloc' -> 'malloc-gnu'.
20719         * modules/malloc-gnu: New file, copied from modules/malloc.
20720         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
20721         obsolete.
20722         * modules/argp (Depends-on): Update.
20723         * modules/regex (Depends-on): Update.
20724         * doc/posix-functions/malloc.texi: Update.
20725         * NEWS: Mention the change.
20726
20727 2010-08-28  Eric Blake  <eblake@redhat.com>
20728
20729         pread, pwrite: add missing dependency
20730         * modules/pread (Depends-on): Add extensions.
20731         * modules/pwrite (Depends-on): Likewise.
20732
20733 2010-08-28  Bruno Haible  <bruno@clisp.org>
20734
20735         unistr/u*-strchr: Fix tests dependencies.
20736         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
20737         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
20738         Reported by Ian Beckwith <ianb@erislabs.net>.
20739
20740 2010-08-28  Bruno Haible  <bruno@clisp.org>
20741
20742         read-file: Don't occupy too much unused memory.
20743         * lib/read-file.c (fread_file): Shrink the buffer at the end.
20744
20745 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
20746             Eric Blake  <eblake@redhat.com>
20747             Bruno Haible  <bruno@clisp.org>
20748
20749         read-file: Avoid memory reallocations with regular files.
20750         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
20751         (fread_file): With regular files, use the remaining length as the
20752         initial buffer size.  Check against overflow.
20753         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
20754         sys_stat.
20755
20756 2010-08-28  Bruno Haible  <bruno@clisp.org>
20757
20758         ftello: Relax license.
20759         * modules/ftello (License): Relax to LGPLv2+.
20760         Reported by Eric Blake.
20761
20762 2010-08-28  Bruno Haible  <bruno@clisp.org>
20763
20764         Avoid relocwrapper link errors due to gnulib replacement functions.
20765         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
20766         function.
20767         Reported by Ben Pfaff <blp@cs.stanford.edu>.
20768
20769 2010-08-28  Bruno Haible  <bruno@clisp.org>
20770
20771         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
20772         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
20773         defined.
20774         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
20775         Suggested by Eric Blake.
20776
20777 2010-08-28  Bruno Haible  <bruno@clisp.org>
20778
20779         sys_socket, netdb: Ensure socklen_t gets defined.
20780         * modules/sys_socket (Depends-on): Add socklen.
20781         * modules/netdb (Depends-on): Likewise.
20782         * modules/getaddrinfo (Depends-on): Remove socklen.
20783         * modules/getsockopt (Depends-on): Likewise.
20784         * modules/setsockopt (Depends-on): Likewise.
20785         * tests/test-sys_socket.c: Check that socklen_t is defined.
20786         * tests/test-netdb.c: Likewise.
20787         * m4/socklen.m4: Update comments.
20788         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
20789
20790 2010-08-27  Eric Blake  <eblake@redhat.com>
20791
20792         login_tty: add missing dependency
20793         * modules/login_tty (Depends-on): Add pty.
20794
20795 2010-08-26  Eric Blake  <eblake@redhat.com>
20796
20797         lib-symbol-versions: fix m4 quoting
20798         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
20799         format for AC_LINK_IFELSE.
20800
20801         glob: fix compile test
20802         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
20803
20804         btowc: fix missing file
20805         * modules/btowc (Files): Also ship locale-fr.m4.
20806
20807         lseek: fix link test
20808         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
20809         AC_LINK_IFELSE.
20810
20811         include_next: silence autoconf 2.68 warning
20812         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
20813         AC_COMPILE_IFELSE as special.
20814         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
20815         autoconf < 2.68.
20816
20817         acl: fix compilation test
20818         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
20819         AC_COMPILE_IFELSE.
20820
20821 2010-08-26  Bruno Haible  <bruno@clisp.org>
20822
20823         Modernize AC_TRY_RUN invocations.
20824         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
20825         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
20826         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
20827         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
20828         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
20829         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
20830         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
20831         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
20832         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
20833         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
20834         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
20835         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
20836         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
20837         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
20838         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
20839         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
20840         gl_MBRLEN_NUL_RETVAL): Likewise.
20841         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
20842         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
20843         Likewise.
20844         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
20845         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
20846         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
20847         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
20848         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
20849         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
20850         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
20851         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
20852         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
20853         Likewise.
20854         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
20855         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
20856         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
20857         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
20858         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
20859         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
20860         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
20861         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
20862         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
20863         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
20864
20865 2010-08-26  Bruno Haible  <bruno@clisp.org>
20866
20867         Modernize AC_TRY_LINK invocations.
20868         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
20869         AC_TRY_LINK.
20870         * m4/argp.m4 (gl_ARGP): Likewise.
20871         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
20872         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
20873         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
20874         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
20875         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
20876         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
20877         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
20878         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
20879         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
20880         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
20881         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
20882         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
20883         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
20884         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
20885         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
20886         * m4/hostent.m4 (gl_HOSTENT): Likewise.
20887         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
20888         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
20889         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
20890         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
20891         Likewise.
20892         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
20893         Likewise.
20894         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
20895         Likewise.
20896         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
20897         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
20898         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
20899         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
20900         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
20901         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
20902         * m4/servent.m4 (gl_SERVENT): Likewise.
20903         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
20904         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
20905         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
20906         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
20907         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
20908         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
20909         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
20910         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
20911         * modules/tsearch-tests (configure.ac): Likewise.
20912
20913 2010-08-26  Bruno Haible  <bruno@clisp.org>
20914
20915         Modernize AC_TRY_COMPILE invocations.
20916         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
20917         AC_TRY_COMPILE.
20918         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
20919         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
20920         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
20921         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
20922         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
20923         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
20924         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
20925         * m4/lock.m4 (gl_LOCK): Likewise.
20926         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
20927         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
20928         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
20929         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
20930         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
20931         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
20932         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
20933         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
20934         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
20935         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
20936         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
20937         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
20938         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
20939         extraneous semicolon.
20940
20941 2010-08-26  Jim Meyering  <meyering@redhat.com>
20942
20943         stat-time: relax license LGPL
20944         * modules/stat-time (License): Change from GPL to LGPL,
20945         with consent from all contributors, for use in libguile.
20946         Requested by Ludovic Courtès.
20947
20948 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
20949
20950         poll: return immediately on POLLHUP.
20951         * lib/poll.c (poll): Always set timeout before wait_timeout is
20952         computed.
20953
20954 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20955
20956         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
20957         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
20958         rmdir ("dir/.//"), unlinkat.
20959
20960 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
20961
20962         stdbool: avoid spurious failure with modern xlc
20963         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
20964
20965 2010-08-24  Bruno Haible  <bruno@clisp.org>
20966
20967         getloadavg: simplify code
20968         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
20969         gl_have_func. Update comments.
20970
20971 2010-08-24  Eric Blake  <eblake@redhat.com>
20972
20973         getloadavg: don't define SVR4 on cygwin
20974         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
20975         only define SVR4 when -lkvm is required.
20976         Reported by Yaakov Selkowitz.
20977
20978 2010-08-24  Bruno Haible  <bruno@clisp.org>
20979
20980         priv-set: fix comment
20981         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
20982
20983 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
20984
20985         priv-set: fix comments
20986         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
20987         to match code, as suggested by David Bartley in:
20988         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
20989
20990 2010-08-23  Eric Blake  <eblake@redhat.com>
20991
20992         stdbool: avoid rejecting clang
20993         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
20994         * tests/test-stdbool.c: Enable more tests if using the system
20995         <stdbool.h> instead of the gnulib replacement.
20996         (main): Move xlc bug test to a runtime test for all compilers.
20997         Reported by Anders Kaseorg.
20998
20999         argz: fix shell quoting issue
21000         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
21001         Reported by Charles Wilson.
21002
21003 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
21004             Erik Faye-Lund <kusmabite@gmail.com>
21005
21006         poll, select: handle ERROR_BROKEN_PIPE.
21007         * lib/poll.c (win32_compute_revents): Return POLLHUP when
21008         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
21009         * lib/select.c (win32_compute_revents): Do not mark a pipe
21010         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
21011
21012 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
21013
21014         fts: allow compilation with C++
21015         * lib/fts_.h: Specify extern "C" linkage with C++.
21016
21017 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21018
21019         Fix gnulib-tool sed script de-commentation for AIX sed.
21020         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
21021         sed.
21022
21023 2010-08-17  Eric Blake  <eblake@redhat.com>
21024
21025         test-stddef: test for (some) offsetof bugs
21026         * tests/test-stddef.c: Enhance test to ensure correct type of
21027         offsetof.
21028         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
21029         that we are not fixing at this time.
21030
21031 2010-08-15  Bruno Haible  <bruno@clisp.org>
21032
21033         stpncpy: Allow stpncpy to be defined as a macro.
21034         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
21035         if it's already correctly declared.
21036         * lib/string.in.h (stpncpy): Undefine before redefining.
21037         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
21038
21039 2010-08-14  Bruno Haible  <bruno@clisp.org>
21040
21041         Rename module 'memxfrm' to 'amemxfrm'.
21042         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
21043         (amemxfrm): Renamed from memxfrm.
21044         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
21045         (amemxfrm): Renamed from memxfrm.
21046         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
21047         * NEWS: Mention the change.
21048         * MODULES.html.sh (String handling <string.h>): Update.
21049         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
21050         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
21051         * lib/unicase/u16-casexfrm.c: Likewise.
21052         * lib/unicase/u32-casexfrm.c: Likewise.
21053         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
21054         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
21055         * lib/uninorm/u16-normxfrm.c: Likewise.
21056         * lib/uninorm/u32-normxfrm.c: Likewise.
21057         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
21058         memxfrm.
21059         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
21060         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
21061         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
21062         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
21063         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
21064         Suggested by Paul Eggert.
21065
21066 2010-08-14  Bruno Haible  <bruno@clisp.org>
21067
21068         Tests for module 'astrxfrm'.
21069         * modules/astrxfrm-tests: New file.
21070         * tests/test-astrxfrm.c: New file.
21071
21072         New module 'astrxfrm'.
21073         * lib/astrxfrm.h: New file.
21074         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
21075         * modules/astrxfrm: New file.
21076
21077 2010-08-14  Reuben Thomas <rrt@sc3d.org>
21078
21079         regex: Tweak doc.
21080         * doc/regex.texi (Overview): Don't mention regex.c.
21081         (GNU Regular Expression Compiling): Likewise.
21082         (Match-end-of-line Operator): Mention 'not_eol'.
21083
21084 2010-08-14  Brian Gough  <bjg@gnu.org>
21085             Bruno Haible  <bruno@clisp.org>
21086
21087         git-merge-changelog: add doc relating to use with bzr and hg.
21088         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
21089
21090 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
21091
21092         pthread: fix pthread.h creation for srcdir != builddir
21093         * modules/pthread (Makefile.am): Fix the rule to work also in a
21094         non-srcdir build.
21095
21096 2010-08-13  Karl Berry  <karl@gnu.org>
21097
21098         * doc/regex.texi (Predefined Syntaxes): @smallexample.
21099         * doc/posix-*/*: force line break before @url of POSIX
21100         specifications.
21101         Suggested by Werner Lemberg.
21102
21103 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
21104
21105         strtod: fix const diagnostic
21106         * lib/strtod.c (strtod): Don't assign const char * to char *,
21107         as this elicits a warning from GCC when warnings are enabled.
21108
21109 2010-08-10  Pádraig Brady <P@draigbrady.com>
21110         and Eric Blake  <eblake@redhat.com>
21111
21112         copy-acl: ignore ENOTSUP on HP-UX
21113         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
21114         so that it is available for HP-UX.
21115         * lib/copy-acl.c (qcopy_acl): Use it.
21116         Reported by Patrick M. Callahan.
21117
21118 2010-08-10  Eric Blake  <eblake@redhat.com>
21119
21120         open, chown: relax license
21121         * modules/open (License): Change to LGPLv2+, with consent by all
21122         authors, for use in augeas.
21123         * modules/chown (License): Likewise.
21124         * modules/lchown (Likewise): Likewise.
21125         Requested by Adam Stokes.
21126
21127 2010-08-09  Karl Berry  <karl@gnu.org>
21128
21129         * build-aux/ar-lib: new file, import from Automake.
21130         * config/srclist.txt: autocheck for updates.
21131
21132 2010-08-09  Eric Blake  <eblake@redhat.com>
21133
21134         readlinkat: adjust client modules
21135         * modules/areadlinkat (Depends-on): Use readlinkat, not
21136         symlinkat.
21137         * modules/areadlinkat-with-size (Depends-on): Likewise.
21138
21139         mknod: be more vocal about danger of running tests as root
21140         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
21141         root, since that is just asking for problems.
21142         Suggested by Bruno Haible, based on a report by Rainer Tammer.
21143
21144         readlinkat: split into its own module
21145         * modules/symlinkat: Split readlinkat...
21146         * modules/readlinkat: ...into separate module.
21147         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
21148         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
21149         * lib/symlinkat.c (readlinkat): Move...
21150         * lib/readlinkat.c: ...into new file.
21151         * modules/symlinkat-tests: Split readlinkat test...
21152         * modules/readlinkat-tests: ...into separate module.
21153         * tests/test-symlinkat.c: Split...
21154         * tests/test-readlinkat.c: ...into new file.
21155         * NEWS: Document the split.
21156         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
21157         * lib/unistd.in.h (readlinkat): Likewise.
21158         Suggested by Bruno Haible.
21159
21160 2010-08-08  Bruno Haible  <bruno@clisp.org>
21161
21162         memxfrm: Speed up.
21163         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
21164         that usually only one call to strxfrm is necessary for each string
21165         part.
21166         Reported by Paul Eggert <eggert@cs.ucla.edu>.
21167
21168 2010-08-07  Karl Berry  <karl@gnu.org>
21169
21170         * doc/posix-headers/limits.texi,
21171         * doc/posix-functions/malloc.texi,
21172         * doc/posix-functions/strsignal.texi: missing @item.
21173         * doc/ld-version-script.texi: spurious leading i.
21174         * doc/regex.texi (Interval Operators): no commas inside @var.
21175
21176 2010-08-01  Bruno Haible  <bruno@clisp.org>
21177
21178         Integrate the regex documentation.
21179         * doc/gnulib.texi: Define 'cn' index.
21180         (Regular expressions): New a chapter that includes regex.texi and
21181         regexprops-generic.texi.
21182         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
21183         syntax.
21184
21185         Whitespace cleanup.
21186         * doc/regex.texi: Remove trailing spaces.
21187
21188         Add regex documentation.
21189         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
21190         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
21191         Written by Kathy A. Hargreaves and Karl Berry.
21192
21193 2010-08-01  Bruno Haible  <bruno@clisp.org>
21194
21195         link: Update documentation.
21196         * doc/posix-functions/link.texi: Update regarding Solaris.
21197
21198 2010-07-31  Bruno Haible  <bruno@clisp.org>
21199
21200         Update modules list.
21201         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
21202         (String handling <string.h>): Add memcmp2, memxfrm.
21203         (Container data structures): Add xlist, xsublist, xoset.
21204         (Core language properties): Add alignof, unused-parameter.
21205         (Process control, Numeric conversion functions <stdlib.h>): Renamed
21206         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
21207         (Unibyte characters <ctype.h>): New section.
21208         (String handling <string.h>): New section.
21209         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
21210         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
21211         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
21212         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
21213         tan, tanh, tanl, y0, y1, yn.
21214         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
21215         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
21216         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
21217         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
21218         unlockpt, vdprintf, vdprintf-posix.
21219         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
21220         (File system functions): Add concat-filename, sys_file, sys_ioctl,
21221         xconcat-filename.
21222         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
21223         getdtablesize, pipe2, pipe2-safer.
21224         (Security): New section.
21225         (Networking functions): Add accept4.
21226         (Signal handling): Add sigpipe.
21227         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
21228         mbmemcasecoll.
21229         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
21230         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
21231         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
21232         pipe-filter-ii.
21233         (Misc): Add argp-version-etc, login_tty, parse-duration.
21234
21235 2010-07-31  Bruno Haible  <bruno@clisp.org>
21236
21237         Improve doc in MODULES.html.
21238         * modules/linkat (Description): Add the word "function".
21239         * modules/mkfifo (Description): Likewise.
21240         * modules/mknod (Description): Likewise.
21241         * modules/remove (Description): Likewise.
21242         * modules/renameat (Description): Likewise.
21243         * modules/stat (Description): Likewise.
21244         * modules/symlink (Description): Likewise.
21245         * modules/unlink (Description): Likewise.
21246
21247 2010-07-31  Bruno Haible  <bruno@clisp.org>
21248
21249         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
21250         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
21251         option --enable/disable-c++ instead of --enable/disable-cxx.
21252         * NEWS: Mention the change.
21253
21254 2010-07-31  Bruno Haible  <bruno@clisp.org>
21255
21256         readlink, areadlink: Relax test a bit.
21257         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
21258         alternative to ENOTDIR.
21259         * tests/test-areadlink.h (test_areadlink): Likewise.
21260         Reported by Rainer Tammer.
21261
21262 2010-07-31  Bruno Haible  <bruno@clisp.org>
21263
21264         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
21265         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
21266         character, perform the search using U_STRCHR.
21267         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
21268         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
21269         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
21270         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
21271         Suggested by Paolo Bonzini.
21272
21273 2010-07-31  Bruno Haible  <bruno@clisp.org>
21274
21275         unistr/u*-strstr: Fix dependencies.
21276         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
21277         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
21278         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
21279
21280 2010-07-31  Bruno Haible  <bruno@clisp.org>
21281
21282         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
21283         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
21284         the beginning of the loop.
21285         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
21286         cases in 'switch' statement.
21287
21288         unistr/u8-strchr: Fix several bugs.
21289         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
21290         the string. When not found, return NULL, not a pointer near the end.
21291
21292         More tests for unistr/u8-strchr.
21293         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
21294         that the function does not read past the first occurrence of the byte
21295         being searched.
21296         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
21297         * tests/unistr/test-u16-strchr.c (main): New function.
21298         * tests/unistr/test-u32-strchr.c (main): New function.
21299
21300 2010-07-31  Bruno Haible  <bruno@clisp.org>
21301
21302         posix-modules: Ignore backup files of documentation files.
21303         * posix-modules: grep only through files named *.texi.
21304
21305 2010-07-31  Bruno Haible  <bruno@clisp.org>
21306
21307         symlinkat: Fix documentation.
21308         * doc/posix-functions/readlinkat.texi: Fix module name.
21309
21310 2010-07-31  Bruno Haible  <bruno@clisp.org>
21311
21312         fchownat: Replace also when chown has the trailing slash bug.
21313         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
21314         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
21315         introduced on 2010-04-10.
21316         Reported by Rainer Tammer.
21317
21318 2010-07-31  Bruno Haible  <bruno@clisp.org>
21319
21320         linkat: Work around AIX 7.1 bug.
21321         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
21322         whether linkat handles trailing slash correctly. If not, replace linkat
21323         and define LINKAT_TRAILING_SLASH_BUG.
21324         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
21325         check whether (fd1,file1) points to a directory if file1 or file2 ends
21326         in a slash. Code taken from lib/link.c.
21327         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
21328         Reported by Rainer Tammer.
21329
21330 2010-07-31  Bruno Haible  <bruno@clisp.org>
21331
21332         Correctly determine whether pow is available in libc on AIX 7 with xlc.
21333         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
21334         This disables an xlc optimization that was causing wrong test results.
21335         Reported by Rainer Tammer.
21336
21337 2010-07-31  Bruno Haible  <bruno@clisp.org>
21338
21339         iconv: Work around AIX 6.1..7.1 bug.
21340         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
21341         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
21342         cross-compiling, guess no on all versions of AIX.
21343         Reported by Rainer Tammer.
21344
21345 2010-07-31  Bruno Haible  <bruno@clisp.org>
21346
21347         readlink: Relax test a bit.
21348         * tests/test-readlink.h (test_readlink): Allow different errno value
21349         when readlink is called with a file name that ends in / and refers to
21350         a file.
21351         Suggested by Eric Blake.
21352         Reported by Rainer Tammer.
21353
21354 2010-07-31  Bruno Haible  <bruno@clisp.org>
21355
21356         copysign: Does not require -lm on glibc systems.
21357         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
21358         gl_COMMON_DOUBLE_MATHFUNC.
21359         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
21360
21361 2010-07-31  Bruno Haible  <bruno@clisp.org>
21362
21363         duplocale: Work around AIX 7.1 bug.
21364         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
21365         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
21366         * lib/duplocale.c (rpl_duplocale): Update comment.
21367         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
21368         Reported by Rainer Tammer.
21369
21370 2010-07-30  Bruno Haible  <bruno@clisp.org>
21371
21372         dirfd: Avoid link error on AIX 7.1.
21373         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
21374         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
21375         exist, set REPLACE_DIRFD.
21376         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
21377         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
21378         * doc/posix-functions/dirfd.texi: Update.
21379         Reported by Rainer Tammer.
21380
21381 2010-07-30  Eric Blake  <eblake@redhat.com>
21382
21383         strtod: next round of AIX fixes
21384         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
21385         exponent.
21386         * tests/test-strtod.c (main): Enhance tests.
21387         * doc/posix-functions/strtod.texi (strtod): Document next bug.
21388         Reported by Rainer Tammer.
21389
21390         futimens: fix configure check
21391         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
21392         Reported by Bruno Haible.
21393
21394 2010-07-30  Bruno Haible  <bruno@clisp.org>
21395
21396         getline: Update regarding AIX.
21397         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
21398         Reported by Rainer Tammer.
21399
21400 2010-07-30  Bruno Haible  <bruno@clisp.org>
21401
21402         wcwidth: Drop replacement on AIX 7.
21403         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
21404         AIX 7.
21405         Reported by Rainer Tammer.
21406
21407 2010-07-30  Bruno Haible  <bruno@clisp.org>
21408
21409         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
21410         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
21411         a 'char *'.
21412         Reported by Rainer Tammer.
21413
21414 2010-07-30  Bruno Haible  <bruno@clisp.org>
21415
21416         unlink: Update regarding AIX.
21417         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
21418         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
21419         Reported by Rainer Tammer.
21420
21421 2010-07-30  Bruno Haible  <bruno@clisp.org>
21422
21423         symlink: Update regarding AIX.
21424         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
21425         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
21426         Reported by Rainer Tammer.
21427
21428 2010-07-30  Bruno Haible  <bruno@clisp.org>
21429
21430         strndup: Update regarding AIX.
21431         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
21432         AIX 7.
21433         Reported by Rainer Tammer.
21434
21435 2010-07-30  Bruno Haible  <bruno@clisp.org>
21436
21437         stat: Update regarding AIX.
21438         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
21439         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
21440         Reported by Rainer Tammer.
21441
21442 2010-07-30  Bruno Haible  <bruno@clisp.org>
21443
21444         truncl: Fix autoconf test.
21445         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
21446         whether truncl works.
21447         Reported by Rainer Tammer.
21448
21449 2010-07-30  Bruno Haible  <bruno@clisp.org>
21450
21451         round: Update regarding AIX.
21452         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
21453         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
21454         Reported by Rainer Tammer.
21455
21456 2010-07-30  Bruno Haible  <bruno@clisp.org>
21457
21458         rename: Update regarding AIX.
21459         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
21460         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
21461         Reported by Rainer Tammer.
21462
21463 2010-07-30  Bruno Haible  <bruno@clisp.org>
21464
21465         printf.m4: Update regarding AIX.
21466         * m4/printf.m4: Update comments regarding AIX.
21467         Reported by Rainer Tammer.
21468
21469 2010-07-30  Bruno Haible  <bruno@clisp.org>
21470
21471         iconv: Update regarding AIX.
21472         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
21473         AIX 7.
21474         Reported by Rainer Tammer.
21475
21476 2010-07-30  Bruno Haible  <bruno@clisp.org>
21477
21478         getopt: Update regarding AIX.
21479         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
21480         no on AIX.
21481         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
21482         Reported by Rainer Tammer.
21483
21484 2010-07-30  Bruno Haible  <bruno@clisp.org>
21485
21486         ldexpl; Update regarding AIX.
21487         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
21488         on AIX 7.
21489         Reported by Rainer Tammer.
21490
21491 2010-07-30  Bruno Haible  <bruno@clisp.org>
21492
21493         frexpl: Update regarding AIX.
21494         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
21495         on AIX 7.
21496         Reported by Rainer Tammer.
21497
21498 2010-07-30  Bruno Haible  <bruno@clisp.org>
21499
21500         open, fopen: Update regarding AIX.
21501         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
21502         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
21503         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
21504         * doc/posix-functions/fopen.texi: Likewise.
21505         Reported by Rainer Tammer.
21506
21507 2010-07-30  Bruno Haible  <bruno@clisp.org>
21508
21509         chown: Update doc regarding AIX.
21510         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
21511         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
21512         Reported by Rainer Tammer.
21513
21514 2010-07-30  Eric Blake  <eblake@redhat.com>
21515
21516         strtod: fix bug in replacement function on AIX
21517         * lib/strtod.c (strtod): Special case broken "0x" parse in
21518         underlying strtod.
21519         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
21520         * doc/posix-functions/strtod.texi (strtod): Likewise.
21521         Reported by Rainer Tammer.
21522
21523 2010-07-30  Bruno Haible  <bruno@clisp.org>
21524
21525         mbrlen: Fix cross-compilation guess for AIX.
21526         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
21527         guess. Leftover from 2008-12-22.
21528
21529 2010-07-30  Bruno Haible  <bruno@clisp.org>
21530
21531         mbrtowc: Fix cross-compilation guess for AIX.
21532         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
21533         guess. Leftover from 2008-12-21.
21534
21535 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
21536
21537         init.sh: work around trap limitation of some shells
21538         * tests/init.sh (setup_): Move exit trap outside of shell function.
21539
21540 2010-07-29  Eric Blake  <eblake@redhat.com>
21541
21542         strtod: aid debugging
21543         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
21544         understanding why strtod is rejected.
21545
21546 2010-07-28  Bruno Haible  <bruno@clisp.org>
21547
21548         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
21549         * lib/unistr/u8-chr.c: Include <string.h>.
21550         * tests/unistr/test-u8-chr.c: Likewise.
21551         * tests/unistr/test-u16-chr.c: Likewise.
21552         * tests/unistr/test-u32-chr.c: Likewise.
21553         * tests/unistr/test-u8-strchr.c: Likewise.
21554         * tests/unistr/test-u16-strchr.c: Likewise.
21555         * tests/unistr/test-u32-strchr.c: Likewise.
21556         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
21557         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
21558         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
21559         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
21560
21561 2010-07-28  Bruno Haible  <bruno@clisp.org>
21562
21563         Use spaces for indentation, not tabs.
21564         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
21565
21566 2010-07-27  Bruno Haible  <bruno@clisp.org>
21567
21568         mbspcasecmp: Fix function specification.
21569         * lib/string.in.h (mbspcasecmp): Fix specification comment.
21570         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
21571         Reported by Eric Blake <eblake@redhat.com>.
21572
21573 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
21574
21575         timespec: use cast and not conditional, as truncation isn't possible
21576         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
21577         instead of a conditional.  Comment about the situation in more detail.
21578         This undoes most of the 2009-10-29 patch.
21579
21580 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
21581
21582         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
21583         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
21584         * lib/unistr/u8-strchr.c: Likewise.
21585         * modules/unistr/u8-chr: Depend on memchr.
21586
21587         unistr/u*-strchr: add tests
21588         * modules/unistr/u8-strchr-tests: New file.
21589         * modules/unistr/u16-strchr-tests: New file.
21590         * modules/unistr/u32-strchr-tests: New file.
21591         * tests/unistr/test-strchr.h: New file.
21592         * tests/unistr/test-u8-strchr.c: New file.
21593         * tests/unistr/test-u16-strchr.c: New file.
21594         * tests/unistr/test-u32-strchr.c: New file.
21595
21596         unistr/u*-chr: test multibyte sequences more
21597         * tests/unistr/test-chr.h: Do complete testing of the characters in the
21598         test vector.
21599         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
21600         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
21601         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
21602
21603         unistr/u*-chr: test multibyte sequences
21604         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
21605
21606         unistr/u*-chr: prepare for multibyte tests
21607         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
21608         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
21609         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
21610         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
21611         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
21612         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
21613
21614 2010-07-18  Bruno Haible  <bruno@clisp.org>
21615
21616         unistr/u8-strchr: Optimize non-ASCII argument case.
21617         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
21618         because the first byte often matches anyway.
21619         Reported by Pádraig Brady <P@draigbrady.com>.
21620
21621 2010-07-15  Karl Berry  <karl@gnu.org>
21622
21623         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
21624
21625 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
21626
21627         getcwd: on Solaris, work better if ancestors are inaccessible
21628         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
21629         buffer and size, try again with a large buffer.  This works better
21630         on Solaris, since its getcwd succeeds even if the path to the root
21631         is inaccessible, and this is helpful in common cases such as .zfs
21632         hidden directories.  Problem reported by J Chapman Flack in
21633         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
21634         Use system getcwd if it's declared, not merely if it's partly
21635         working; use the partly-working test only to avoid needless effort
21636         if the system getcwd fails.
21637         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
21638         comment that was already obsolete and is now even more obsolete.
21639         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
21640         now might call strdup.
21641
21642 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
21643
21644         pthread: Add enough so that coreutils/src/sort.c compiles.
21645         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
21646         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
21647         gnulib. Include <sched.h> and <time.h>, as per POSIX.
21648         Include <sys/types.h>, in case it defines pthread_t.
21649         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
21650         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
21651         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
21652         (pthread_rwlockattr_t, pthread_spinlock_t):
21653         New typedefs, if HAVE_PTHREAD_T is not defined.
21654         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
21655         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
21656         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
21657         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
21658         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
21659         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
21660         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
21661         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
21662         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
21663         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
21664         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
21665         New macros.
21666         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
21667         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
21668         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
21669         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
21670         (pthread_spin_unlock): New dummy functions.
21671         (pthread_create): Return EAGAIN; don't set errno.
21672         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
21673         require AC_C_INLINE.
21674         * modules/pthread (Depends-on): Add sched, time.
21675         (pthread.h): Use AM_V_GEN.
21676
21677 2010-07-13  Bruno Haible  <bruno@clisp.org>
21678
21679         striconveh: Don't malloc memory if the result buffer is sufficient.
21680         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
21681         buffer if its size is sufficient.
21682         Reported by Ludovic Courtès <ludo@gnu.org>.
21683
21684 2010-07-13  Bruno Haible  <bruno@clisp.org>
21685
21686         strtod: Add safety check.
21687         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
21688
21689 2010-07-12  Bruno Haible  <bruno@clisp.org>
21690
21691         Unify tests that set gl_cv_func_ldexpl_no_libm.
21692         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
21693         gl_FUNC_LDEXPL.
21694         (gl_FUNC_LDEXPL): Invoke it.
21695         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
21696
21697 2010-07-12  Bruno Haible  <bruno@clisp.org>
21698
21699         Unify tests that set gl_cv_func_ldexp_no_libm.
21700         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
21701         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
21702         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
21703         (configure.ac): Simply invoke gl_FUNC_LDEXP.
21704         * modules/strtod (Files): Add m4/ldexp.m4.
21705
21706 2010-07-12  Bruno Haible  <bruno@clisp.org>
21707
21708         Unify tests that set gl_cv_func_frexpl_no_libm.
21709         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
21710         gl_FUNC_FREXPL_NO_LIBM.
21711         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
21712         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
21713
21714 2010-07-12  Bruno Haible  <bruno@clisp.org>
21715
21716         Unify tests that set gl_cv_func_frexp_no_libm.
21717         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
21718         gl_FUNC_FREXP_NO_LIBM.
21719         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
21720         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
21721
21722 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
21723
21724         memcoll: clarify sizes versus lengths, document better, and tweak perf
21725         * lib/memcoll.c (strcoll_loop, memcoll0):
21726         Improve quality of descriptive comments.  Name variables
21727         consistently as to whether they are lengths (which do not include
21728         terminating null) versus sizes (which do).
21729         * lib/xmemcoll.c (xmemcoll0): Likewise.
21730         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
21731         returned when s1size == 0; this is easier to compile and saves
21732         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
21733
21734 2010-07-12  Bruno Haible  <bruno@clisp.org>
21735
21736         Tests for module '_Exit'.
21737         * modules/_Exit-tests: New file.
21738         * tests/test-_Exit.sh: New file.
21739         * tests/test-_Exit.c: New file.
21740
21741         New module '_Exit'.
21742         * lib/stdlib.in.h (__attribute__): New macro.
21743         (_Exit): New declaration.
21744         * lib/_Exit.c: New file.
21745         * m4/_Exit.m4: New file.
21746         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
21747         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
21748         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
21749         * modules/_Exit: New file.
21750         * tests/test-stdlib-c++.cc (_Exit): Check signature.
21751         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
21752
21753 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
21754
21755         strtod: make it more-accurate typically, and don't require libm
21756         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
21757         Include limits.h.  Don't include string.h.
21758         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
21759         (locale_isspace): New function, so that no casts are needed to
21760         check whether *s is a space.
21761         (ldexp): Provide an unused dummy if not available.
21762         (scale_radix_exp, parse_number, underlying_strtod): New functions.
21763         (strtod): Use them.  This implementation prefers to use the
21764         underlying strtod if available, falling back on our own code
21765         only to fix known bugs.  This is more likely to produce an
21766         accurate result.  Also, it avoids the use of libm functions.
21767         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
21768         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
21769         was absent, but it caused a test failure with coreutils.
21770         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
21771         with libm.
21772         * modules/strtod (Makefile.am, Link): libm is no longer needed.
21773         * modules/strtod-tests (Makefile.am): Likewise.
21774
21775 2010-07-11  Pádraig Brady  <P@draigBrady.com>
21776             Bruno Haible  <bruno@clisp.org>
21777
21778         unistr/u8-strchr: Optimize ASCII argument case.
21779         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
21780
21781 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
21782
21783         (x)memcoll: minor tweaks
21784         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
21785         is after the type that it qualifies.
21786         (memcoll0): Likewise.
21787         * lib/memcoll.h (memcoll0): Likewise.
21788         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
21789         * lib/xmemcoll.h (xmemcoll0): Likewise.
21790         * lib/memcoll.c (memcoll0): Correct the comment.  This function
21791         differs from memcoll in that the NUL byte is part of the argument.
21792         Omit the abort-checks, as performance is a real issue here.  Plus,
21793         the checks were wrong anyway (an off-by-one error).  Omit local
21794         variable 'diff', as it's a bit clearer that way.
21795         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
21796         no longer needed.
21797
21798 2010-07-08  Chen Guo <chenguo4@yahoo.com>
21799
21800         (x)memcoll: speedup when input is known to be NUL delimited
21801         * lib/memcoll.c: Include stdlib.
21802         (memcoll0): New function.
21803         (strcoll_loop): New function, refactored for use in both memcoll
21804         and memcoll0.
21805         * lib/memcoll.h (memcoll0): Add prototype.
21806         * lib/xmemcoll.c (xmemcoll0): New function.
21807         (collate_error): New function, refactored for use in both xmemcoll
21808         and xmemcoll0.
21809         * lib/xmemcoll.h (xmemcoll0): Add prototype.
21810         * m4/memcoll.m4: add inline invocation.
21811
21812 2010-07-06  Pádraig Brady  <P@draigBrady.com>
21813
21814         * build-aux/bootstrap: Remove any local translations
21815         from the translation project synchronization directory,
21816         so that local only translations are not distributed.
21817
21818 2010-07-04  Bruno Haible  <bruno@clisp.org>
21819
21820         fsusage: Clarify which code applies to which platforms.
21821         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
21822         platform.
21823         * lib/fsusage.c (get_fs_usage): Likewise.
21824
21825 2010-07-04  Bruno Haible  <bruno@clisp.org>
21826
21827         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
21828         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
21829         Reported by Martin Lambers <marlam@marlam.de>.
21830
21831 2010-07-04  Jim Meyering  <meyering@redhat.com>
21832
21833         hash: once again explicitly disallow insertion of NULL
21834         * lib/hash.c (hash_insert0): Reinstate just-removed test:
21835         inserting a NULL pointer cannot work with these functions.
21836         Add a comment with details.
21837         This reverts part of the 2010-07-01 commit, 5bef1a35
21838         "hash: extend module to deal with non-pointer keys".
21839
21840 2010-07-01  Bruno Haible  <bruno@clisp.org>
21841
21842         stdbool: Update doc.
21843         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
21844         Info from Christian Weisgerber <naddy@mips.inka.de>.
21845
21846 2010-07-01  Jim Meyering  <meyering@redhat.com>
21847
21848         hash: extend module to deal with non-pointer keys
21849         * lib/hash.c (hash_insert0): New interface, much like hash_insert
21850         but that allows insertion of non-pointer entries.
21851         Do not disallow an ENTRY value of NULL.
21852         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
21853         * lib/hash.h (hash_insert0): Declare.
21854
21855 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
21856
21857         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
21858         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
21859         not present (i.e. with autoconf 2.59 and when using gettextize, not
21860         gnulib), require AC_GNU_SOURCE instead.
21861
21862 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
21863
21864         idpriv-drop: Fix tests.
21865         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
21866         not to the test-idpriv-droptemp program.
21867
21868 2010-06-29  Bruno Haible  <bruno@clisp.org>
21869
21870         string: Fix syntax error with g++ 2.96.
21871         * lib/string.in.h (__pure__): Remove definition.
21872         (_GL_ATTRIBUTE_PURE): New macro.
21873         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
21874         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
21875         Reported by Christian Weisgerber <naddy@mips.inka.de>.
21876
21877 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
21878
21879         unitypes: Fix bug introduced on 2010-05-18.
21880         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
21881
21882 2010-06-22  Eric Blake  <eblake@redhat.com>
21883
21884         memmem: slight optimization
21885         * lib/str-two-way.h (critical_factorization): Update comments.
21886         Reduce work during factorization phase.
21887         Reported by Carlos Bueno <carlos@bueno.org>.
21888
21889 2010-06-21  Bruno Haible  <bruno@clisp.org>
21890
21891         Fix HAVE_CALLOC_POSIX misnomer.
21892         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
21893         !HAVE_CALLOC_POSIX.
21894         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
21895         HAVE_CALLOC_POSIX.
21896         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
21897         instead of HAVE_CALLOC_POSIX.
21898         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
21899         HAVE_CALLOC_POSIX.
21900
21901         Use modern idiom for calloc() replacement.
21902         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
21903         AC_FUNC_CALLOC.
21904         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
21905         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
21906         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
21907         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
21908         (gl_REPLACE_CALLOC): New macro.
21909
21910 2010-06-21  Bruno Haible  <bruno@clisp.org>
21911
21912         Fix HAVE_REALLOC_POSIX misnomer.
21913         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
21914         !HAVE_REALLOC_POSIX.
21915         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
21916         HAVE_REALLOC_POSIX.
21917         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
21918         instead of HAVE_REALLOC_POSIX.
21919         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
21920         HAVE_REALLOC_POSIX.
21921
21922         Use modern idiom for realloc() replacement.
21923         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
21924         AC_FUNC_REALLOC.
21925         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
21926         Autoconf's AC_FUNC_REALLOC.
21927         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
21928         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
21929         (gl_REPLACE_REALLOC): New macro.
21930         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
21931
21932 2010-06-21  Bruno Haible  <bruno@clisp.org>
21933
21934         Fix HAVE_MALLOC_POSIX misnomer.
21935         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
21936         !HAVE_MALLOC_POSIX.
21937         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
21938         HAVE_MALLOC_POSIX.
21939         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
21940         instead of HAVE_MALLOC_POSIX.
21941         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
21942         HAVE_MALLOC_POSIX.
21943
21944         Use modern idiom for malloc() replacement.
21945         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
21946         AC_FUNC_MALLOC.
21947         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
21948         Autoconf's AC_FUNC_MALLOC.
21949         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
21950         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
21951         (gl_REPLACE_MALLOC): New macro.
21952         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
21953
21954 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
21955
21956         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
21957         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
21958         This macro takes 3 arguments, not 4.
21959
21960 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
21961
21962         ipv6: fix detection under mingw
21963         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
21964         in6_addr.
21965
21966 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
21967
21968         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
21969         that strtod() works when cross-compiling to a glibc version known
21970         to work.
21971
21972 2010-06-15  Bruno Haible  <bruno@clisp.org>
21973
21974         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
21975
21976 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
21977
21978         select: Correct timeout.
21979         * lib/select.c (rpl_select): Compute wait_timeout correctly.
21980
21981 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
21982
21983         git-version-gen: init shell var to avoid env var influence
21984         * build-aux/git-version-gen (v): Init shell var to empty.
21985
21986 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
21987
21988         priv-set: Don't assume that priv.h exists merely because getppriv does.
21989         See Jan Andersen's bug report about AIX 5L in
21990         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
21991         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
21992         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
21993         * lib/priv-set.h: Likewise.
21994         * tests/test-priv-set.c: Likewise.
21995
21996 2010-06-13  Bruno Haible  <bruno@clisp.org>
21997
21998         relocatable: Make it easier to test whether to install wrappers.
21999         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
22000         RELOCATABLE_VIA_WRAPPER.
22001
22002 2010-06-13  Bruno Haible  <bruno@clisp.org>
22003
22004         gnulib-tool: Display specified modules and dependencies differently.
22005         * gnulib-tool (func_show_module_list): New function.
22006         (func_import, func_create_testdir): Invoke it.
22007         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
22008
22009 2010-06-13  Bruno Haible  <bruno@clisp.org>
22010
22011         gnulib-tool: Align code of func_import and func_create_testdir.
22012         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
22013         specified_modules.
22014
22015 2010-06-12  Jim Meyering  <meyering@redhat.com>
22016
22017         test-inttostr: avoid spurious failure on Solaris 9
22018         * tests/test-inttostr.c (main): Skip the test when snprintf fails
22019         to accept "%ju".  Reported by Bruno Haible.
22020
22021 2010-06-11  Jim Meyering  <meyering@redhat.com>
22022
22023         test-sys_socket: mark variables as used more readably
22024         * tests/test-sys_socket.c (main): Mark otherwise unused variables
22025         as "used" explicitly via (void) statement casts.  This is more
22026         readable than using them in an artificial return expression.
22027         Suggestion from Bruno Haible.
22028
22029 2010-06-11  Bruno Haible  <bruno@clisp.org>
22030
22031         Avoid some more warnings from "gcc -Wwrite-strings".
22032         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
22033         to 'const char *'.
22034         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
22035         * tests/test-c-strcasestr.c (main): Likewise.
22036         * tests/test-mbscasestr1.c (main): Likewise.
22037         * tests/test-mbscasestr2.c (main): Likewise.
22038         * tests/test-memmem.c (main): Likewise.
22039         * tests/test-strstr.c (main): Likewise.
22040         * tests/test-strcasestr.c (main): Likewise.
22041
22042 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22043
22044         init.sh: change framework_failure_ to fail with status 99, not 1
22045         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
22046         automake's parallel-tests rule that this is an unexpected failure,
22047         even if the test is listed in XFAIL_TESTS.
22048
22049 2010-06-11  Jim Meyering  <meyering@redhat.com>
22050
22051         test-inttostr: avoid warnings about 4-6KB literal strings
22052         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
22053         Include "macros.h", for its definition of ASSERT.
22054         (CK): s/assert/ASSERT/
22055         * modules/inttostr-tests (Files): Add macros.h.
22056
22057         init.sh: don't use $ME_ or skip_ before they are defined
22058         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
22059         their first uses.  Also hoist their companions: warn_, fail_,
22060         framework_failure_, $stderr_fileno.  Prompted by a patch from
22061         Stefano Lattarini.
22062
22063         test-sys_socket: avoid set-but-not-used warnings from gcc
22064         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
22065         avoid warning about set-but-not-used variables.
22066
22067         test-xvasprintf: avoid 'const' discard warnings
22068         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
22069         "const" when assigning from literal strings.
22070         (test_xasprintf): Add "void" in function argument list to placate
22071         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
22072
22073         tests: avoid compilation warnings in argmatch and exclude tests...
22074         in packages that define ARGMATCH_DIE_DECL, like coreutils.
22075         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
22076         Since it always exits, declare with the "noreturn" attribute.
22077         * tests/test-argmatch.c: Likewise.
22078
22079         tests: avoid 'const' discard warnings in mbsstr tests
22080         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
22081         * tests/test-mbsstr2.c (main): Likewise.
22082
22083         test-verify: avoid warning from gcc's -Wmissing-declarations
22084         * tests/test-verify.c (function): Declare to be static.
22085
22086         test-inttostr.c: include <string.h> for use of strcmp
22087         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
22088
22089         test-linkat: avoid failed assertion on "other" architectures
22090         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
22091         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
22092         sparc: https://bugs.launchpad.net/bugs/591968
22093
22094 2010-06-11  Jim Meyering  <meyering@redhat.com>
22095
22096         printf.m4: avoid autoconf's "Expanded Before Required" warning
22097         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
22098         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
22099         autoconf warning.
22100
22101 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
22102
22103         Replacement header templates are now named with ".in", not "_".
22104         * doc/gnulib-intro.texi: Correct.
22105
22106 2010-06-10  Jim Meyering  <meyering@redhat.com>
22107
22108         inttostr-tests: depend on snprintf, not snprintf-posix
22109         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
22110         snprintf-posix, to avoid this aclocal failure:
22111           missing file gnulib-tests/vasnprintf.c
22112           configure.ac:45: error: expected source file, required through \
22113           AC_LIBSOURCES, not found
22114
22115 2010-06-10  Jim Meyering  <meyering@redhat.com>
22116
22117         inttostr: add a new function, inttostr, and tests
22118         The namesake function was not available.  The existence of the
22119         template file, inttostr.c makes its addition nontrivial.
22120         * lib/anytostr.c: Rename from inttostr.c.
22121         (anytostr): Rename from inttostr.
22122         * lib/inttostr.c: New file.
22123         * modules/inttostr (Files): Add anytostr.c.
22124         (Makefile.am): Set lib_SOURCES instead of ...
22125         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
22126         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
22127         * lib/offtostr.c: Likewise.
22128         * lib/uinttostr.c: Likewise.
22129         * lib/umaxtostr.c: Likewise.
22130         * modules/inttostr-tests: New file.
22131         * tests/test-inttostr.c: New file.  Test these functions.
22132
22133 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
22134             Bruno Haible  <bruno@clisp.org>
22135
22136         Add "Extending Gnulib" chapter to manual.
22137         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
22138         chapter.
22139         (Extending Gnulib): New chapter.
22140         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
22141         chapter.
22142
22143 2010-06-09  Bruno Haible  <bruno@clisp.org>
22144
22145         Avoid relocwrapper link errors due to gnulib replacement functions.
22146         * lib/areadlink.c: Use the system's malloc, realloc functions.
22147         (areadlink): Set errno to ENOMEM explicitly.
22148         * modules/areadlink (Depends-on): Remove malloc-posix.
22149         Reported by Ben Pfaff <blp@cs.stanford.edu>.
22150
22151 2010-06-09  Bruno Haible  <bruno@clisp.org>
22152
22153         Avoid relocwrapper link errors due to gnulib replacement functions.
22154         * lib/canonicalize-lgpl.c: Use the system's malloc function.
22155         * lib/malloca.c: Likewise.
22156         * lib/relocatable.c: Likewise.
22157         * lib/progreloc.c: Use the system's malloc, sprintf functions.
22158         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
22159         * lib/setenv.c: Use the system's malloc, realloc functions.
22160         * lib/strerror.c: Use the system's sprintf function.
22161         Reported by Ben Pfaff <blp@cs.stanford.edu>.
22162
22163 2010-06-04  Bruno Haible  <bruno@clisp.org>
22164
22165         Prefer documented low-level autoconf macro names.
22166         * m4/lib-link.m4: Use m4_translit instead of translit.
22167         * m4/environ.m4: Likewise.
22168         * m4/mathfunc.m4: Likewise.
22169         * m4/onceonly.m4: Likewise.
22170         * m4/stdint.m4: Likewise.
22171         Suggested by Eric Blake.
22172
22173 2010-06-04  Martin Lambers  <marlam@marlam.de>
22174             Bruno Haible  <bruno@clisp.org>
22175
22176         havelib: Allow library names with '+' characters.
22177         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
22178         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
22179
22180 2010-06-09  Bruno Haible  <bruno@clisp.org>
22181
22182         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
22183         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
22184         realloc failed.
22185
22186 2010-06-08  Peter Simons  <simons@cryp.to>
22187
22188         maint.mk: make the news-check rule more configurable
22189         * top/maint.mk (news-check-lines-spec): New variable.
22190         (news-check): Use "sed -n 1,10p" in place of "head".
22191
22192 2010-06-07  Jim Meyering  <meyering@redhat.com>
22193
22194         do-release-commit-and-tag: fix typo in --help
22195         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
22196
22197         regex: avoid new dead-code warning with gcc-4.6.0
22198         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
22199         if-block containing a while-loop.  It's been unused for at least
22200         5 years.
22201
22202 2010-06-05  Bruno Haible  <bruno@clisp.org>
22203
22204         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
22205         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
22206
22207 2010-06-04  Bruno Haible  <bruno@clisp.org>
22208
22209         Update to GNU gettext 0.18.1.
22210         * modules/gettext (configure.ac): Require gettext infrastructure from
22211         version 0.18.1.
22212
22213 2010-06-03  Bruno Haible  <bruno@clisp.org>
22214
22215         Don't use AC_LIBOBJ with file names in subdirectories.
22216         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
22217         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
22218         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
22219         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
22220         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
22221         gl_LIBUNISTRING_LIBSOURCE.
22222         (Makefile.am): Augment lib_SOURCES here, conditionally.
22223         * NEWS: Drop requirement for Automake option 'subdir-objects'.
22224
22225 2010-06-03  Bruno Haible  <bruno@clisp.org>
22226
22227         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
22228         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
22229         expansion does not end with a newline.
22230         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
22231         unnecessary newline.
22232
22233 2010-06-03  Bruno Haible  <bruno@clisp.org>
22234
22235         Reduce dependencies.
22236         * tests/test-quotearg.h: New file, extracted from
22237         tests/test-quotearg.c.
22238         * tests/test-quotearg-simple.c: New file, extracted from
22239         tests/test-quotearg.c.
22240         * tests/test-quotearg.c: Don't include <ctype.h>.
22241         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
22242         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
22243         use_quote_double_quotes, use_quotearg_colon): Moved to
22244         tests/test-quotearg.h.
22245         (results_g, flag_results, custom_quotes, custom_results): Moved
22246         to tests/test-quotearg-simple.c.
22247         (main): Moved the part that does not depend on gettext to
22248         tests/test-quotearg-simple.c. Return 77 if the test cannot be
22249         performed.
22250         * modules/quotearg-simple: New file.
22251         * modules/quotearg-simple-tests: New file.
22252         * modules/quotearg (Depends-on): Add quotearg-simple.
22253         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
22254         (Files): Add tests/test-quotearg.h.
22255         Reported by Paolo Bonzini.
22256
22257 2010-06-03  Bruno Haible  <bruno@clisp.org>
22258
22259         Reduce dependencies.
22260         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
22261
22262 2010-06-03  Bruno Haible  <bruno@clisp.org>
22263
22264         time: Undefine more broken macros.
22265         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
22266         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
22267         Reported by Eric Blake.
22268
22269 2010-06-03  Bruno Haible  <bruno@clisp.org>
22270
22271         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
22272         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
22273         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
22274         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
22275         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
22276         Reported by Ludovic Courtès <ludo@gnu.org>.
22277
22278 2010-06-02  Eric Blake  <eblake@redhat.com>
22279
22280         time: work with mingw + pthreads-win32 library
22281         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
22282         if timespec is defined only in pthread.h.
22283         * modules/time (Makefile.am): Substitute it.
22284         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
22285         <pthread.h>, when needed.
22286         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
22287         from the library.
22288
22289 2010-05-31  Bruno Haible  <bruno@clisp.org>
22290
22291         Avoid expanding two macros in the wrong order.
22292         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
22293         gl_LIBUNISTRING if it is defined.
22294         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
22295         autoconf >= 2.64.
22296         Reported by Ludovic Courtès <ludo@gnu.org>.
22297
22298 2010-05-27  Jim Meyering  <meyering@redhat.com>
22299
22300         maint.mk: also prohibit "#undef" of always-defined symbols
22301         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
22302         Allow more than one space before the symbol name.
22303         (sc_prohibit_always-defined_macros): Use grep's -E, now that
22304         the regexp uses alternation.
22305
22306 2010-05-26  Eric Blake  <eblake@redhat.com>
22307
22308         maint.mk: avoid echo -e
22309         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
22310         Convert all uses of echo -* to printf.
22311         Reported by Matthias Bolte.
22312
22313 2010-05-25  Bruno Haible  <bruno@clisp.org>
22314
22315         Update to GNU gettext 0.18, part 2.
22316         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
22317         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
22318
22319 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22320
22321         Add missing include in test-pwrite.c.
22322         * tests/test-pwrite.c: Include string.h, for strcmp.
22323
22324 2010-05-24  Bruno Haible  <bruno@clisp.org>
22325
22326         * NEWS: Mention requirement for Automake option 'subdir-objects'.
22327
22328 2010-05-24  Bruno Haible  <bruno@clisp.org>
22329
22330         Don't use conversion with transliteration in u{8,16,32}_strcoll.
22331         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
22332         iconveh_error argument.
22333         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
22334         U_STRCONV_TO_LOCALE.
22335         * lib/unistr/u16-strcoll.c: Likewise.
22336         * lib/unistr/u32-strcoll.c: Likewise.
22337         * modules/unistr/u8-strcoll (Depends-on): Add
22338         uniconv/u8-strconv-to-enc, localcharset. Remove
22339         uniconv/u8-strconv-to-locale.
22340         (configure.ac): Bump version number.
22341         * modules/unistr/u16-strcoll (Depends-on): Add
22342         uniconv/u16-strconv-to-enc, localcharset. Remove
22343         uniconv/u16-strconv-to-locale.
22344         (configure.ac): Bump version number.
22345         * modules/unistr/u32-strcoll (Depends-on): Add
22346         uniconv/u32-strconv-to-enc, localcharset. Remove
22347         uniconv/u32-strconv-to-locale.
22348         (configure.ac): Bump version number.
22349
22350 2010-05-24  Bruno Haible  <bruno@clisp.org>
22351
22352         Avoid a test failure on NetBSD 5.0.
22353         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
22354         an iconv() bug.
22355
22356 2010-05-24  Bruno Haible  <bruno@clisp.org>
22357
22358         Adjust #include directive style.
22359         * modules/regex (Includes): Recommend to write <regex.h>.
22360
22361 2010-05-24  Bruno Haible  <bruno@clisp.org>
22362
22363         regex: Don't require alloca.
22364         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
22365         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
22366         only inside if (0).
22367
22368 2010-05-23  Jim Meyering  <meyering@redhat.com>
22369
22370         test-renameat.c: include <sys/stat.h>
22371         * tests/test-renameat.c: Include <sys/stat.h>; required for
22372         definition of S_IS* macros.
22373
22374 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
22375
22376         Update maintainer documentation for 'relocatable-prog' module.
22377         * doc/relocatable-maint.texi: Update.
22378         Comments by Bruno Haible.
22379
22380 2010-05-23  Bruno Haible  <bruno@clisp.org>
22381
22382         git-merge-changelog: Enable --split-merged-entry by default.
22383         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
22384         (usage): Don't mention this option any more.
22385         Reported by Ralf Wildenhues.
22386
22387 2010-05-23  Jim Meyering  <meyering@redhat.com>
22388
22389         test-pwrite: do not leave behind a test file named "out"
22390         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
22391         The trivial-looking use of init.sh is really necessary.
22392         It ensures that the temporary file, "out", is created in
22393         a temporary directory, and removed upon termination.
22394         * tests/test-pwrite.sh: Re-add file.
22395         * modules/pwrite-tests: Reference it.
22396
22397 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22398
22399         Fix output redirection buglet in init.sh.
22400         * tests/init.sh: Fix redirection of stderr.
22401
22402 2010-05-20  Simon Josefsson  <simon@josefsson.org>
22403
22404         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
22405
22406 2010-05-17  Simon Josefsson  <simon@josefsson.org>
22407
22408         * modules/valgrind-tests: New file.
22409         * m4/valgrind-tests.m4: New file.
22410         * doc/valgrind-tests.texi: New file.
22411         * doc/gnulib.texi (Running self-tests under valgrind): New
22412         section.
22413
22414 2010-05-19  Bruno Haible  <bruno@clisp.org>
22415
22416         Clean up dead code in recent commit.
22417         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
22418         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
22419         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
22420         Suggested by Paolo Bonzini.
22421
22422 2010-05-19  Bruno Haible  <bruno@clisp.org>
22423
22424         Avoid valgrind error reports from libunistring.
22425         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
22426         * modules/libunistring (Files): Add it.
22427         * modules/libunistring-optional (Files): Likewise.
22428
22429 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
22430             Bruno Haible  <bruno@clisp.org>
22431
22432         New module 'libunistring-optional'.
22433         * modules/libunistring-optional: New file.
22434         * m4/libunistring-base.m4: New file.
22435         * m4/libunistring-optional.m4: New file.
22436         * lib/unicase.in.h: Renamed from lib/unicase.h.
22437         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
22438         * lib/unictype.in.h: Renamed from lib/unictype.h.
22439         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
22440         * lib/uniname.in.h: Renamed from lib/uniname.h.
22441         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
22442         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
22443         * lib/unistr.in.h: Renamed from lib/unistr.h.
22444         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
22445         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
22446         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
22447         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
22448         gl_LIBUNISTRING. If the library was found, determine the installed
22449         version and set LIBUNISTRING_VERSION.
22450         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
22451         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
22452         handle a configuration option --with-included-libunistring.
22453         * modules/libunistring (Files): Add m4/absolute-header.m4.
22454         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
22455         Add m4/libunistring-base.m4.
22456         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22457         (Makefile.am): Build unicase.h from unicase.in.h.
22458         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
22459         Add m4/libunistring-base.m4.
22460         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22461         (Makefile.am): Build uniconv.h from uniconv.in.h.
22462         * modules/unictype/base (Files): Use unictype.in.h instead of
22463         unictype.h. Add m4/libunistring-base.m4.
22464         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22465         (Makefile.am): Build unictype.h from unictype.in.h.
22466         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
22467         Add m4/libunistring-base.m4.
22468         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22469         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
22470         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
22471         Add m4/libunistring-base.m4.
22472         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22473         (Makefile.am): Build uniname.h from uniname.in.h.
22474         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
22475         Add m4/libunistring-base.m4.
22476         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22477         (Makefile.am): Build uninorm.h from uninorm.in.h.
22478         * modules/unistdio/base (Files): Use unistdio.in.h instead of
22479         unistdio.h. Add m4/libunistring-base.m4.
22480         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22481         (Makefile.am): Build unistdio.h from unistdio.in.h.
22482         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
22483         Add m4/libunistring-base.m4.
22484         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22485         (Makefile.am): Build unistr.h from unistr.in.h.
22486         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
22487         Add m4/libunistring-base.m4.
22488         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22489         (Makefile.am): Build unitypes.h from unitypes.in.h.
22490         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
22491         Add m4/libunistring-base.m4.
22492         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22493         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
22494         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
22495         uniwidth.h. Add m4/libunistring-base.m4.
22496         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22497         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
22498         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
22499         instead of augmenting lib_SOURCES.
22500         * modules/unicase/empty-suffix-context: Likewise.
22501         * modules/unicase/locale-language: Likewise.
22502         * modules/unicase/tolower: Likewise.
22503         * modules/unicase/totitle: Likewise.
22504         * modules/unicase/toupper: Likewise.
22505         * modules/unicase/u8-casecmp: Likewise.
22506         * modules/unicase/u8-casecoll: Likewise.
22507         * modules/unicase/u8-casefold: Likewise.
22508         * modules/unicase/u8-casexfrm: Likewise.
22509         * modules/unicase/u8-ct-casefold: Likewise.
22510         * modules/unicase/u8-ct-tolower: Likewise.
22511         * modules/unicase/u8-ct-totitle: Likewise.
22512         * modules/unicase/u8-ct-toupper: Likewise.
22513         * modules/unicase/u8-is-cased: Likewise.
22514         * modules/unicase/u8-is-casefolded: Likewise.
22515         * modules/unicase/u8-is-lowercase: Likewise.
22516         * modules/unicase/u8-is-titlecase: Likewise.
22517         * modules/unicase/u8-is-uppercase: Likewise.
22518         * modules/unicase/u8-prefix-context: Likewise.
22519         * modules/unicase/u8-suffix-context: Likewise.
22520         * modules/unicase/u8-tolower: Likewise.
22521         * modules/unicase/u8-totitle: Likewise.
22522         * modules/unicase/u8-toupper: Likewise.
22523         * modules/unicase/u16-casecmp: Likewise.
22524         * modules/unicase/u16-casecoll: Likewise.
22525         * modules/unicase/u16-casefold: Likewise.
22526         * modules/unicase/u16-casexfrm: Likewise.
22527         * modules/unicase/u16-ct-casefold: Likewise.
22528         * modules/unicase/u16-ct-tolower: Likewise.
22529         * modules/unicase/u16-ct-totitle: Likewise.
22530         * modules/unicase/u16-ct-toupper: Likewise.
22531         * modules/unicase/u16-is-cased: Likewise.
22532         * modules/unicase/u16-is-casefolded: Likewise.
22533         * modules/unicase/u16-is-lowercase: Likewise.
22534         * modules/unicase/u16-is-titlecase: Likewise.
22535         * modules/unicase/u16-is-uppercase: Likewise.
22536         * modules/unicase/u16-prefix-context: Likewise.
22537         * modules/unicase/u16-suffix-context: Likewise.
22538         * modules/unicase/u16-tolower: Likewise.
22539         * modules/unicase/u16-totitle: Likewise.
22540         * modules/unicase/u16-toupper: Likewise.
22541         * modules/unicase/u32-casecmp: Likewise.
22542         * modules/unicase/u32-casecoll: Likewise.
22543         * modules/unicase/u32-casefold: Likewise.
22544         * modules/unicase/u32-casexfrm: Likewise.
22545         * modules/unicase/u32-ct-casefold: Likewise.
22546         * modules/unicase/u32-ct-tolower: Likewise.
22547         * modules/unicase/u32-ct-totitle: Likewise.
22548         * modules/unicase/u32-ct-toupper: Likewise.
22549         * modules/unicase/u32-is-cased: Likewise.
22550         * modules/unicase/u32-is-casefolded: Likewise.
22551         * modules/unicase/u32-is-lowercase: Likewise.
22552         * modules/unicase/u32-is-titlecase: Likewise.
22553         * modules/unicase/u32-is-uppercase: Likewise.
22554         * modules/unicase/u32-prefix-context: Likewise.
22555         * modules/unicase/u32-suffix-context: Likewise.
22556         * modules/unicase/u32-tolower: Likewise.
22557         * modules/unicase/u32-totitle: Likewise.
22558         * modules/unicase/u32-toupper: Likewise.
22559         * modules/unicase/ulc-casecmp: Likewise.
22560         * modules/unicase/ulc-casecoll: Likewise.
22561         * modules/unicase/ulc-casexfrm: Likewise.
22562         * modules/uniconv/u8-conv-from-enc: Likewise.
22563         * modules/uniconv/u8-conv-to-enc: Likewise.
22564         * modules/uniconv/u8-strconv-from-enc: Likewise.
22565         * modules/uniconv/u8-strconv-from-locale: Likewise.
22566         * modules/uniconv/u8-strconv-to-enc: Likewise.
22567         * modules/uniconv/u8-strconv-to-locale: Likewise.
22568         * modules/uniconv/u16-conv-from-enc: Likewise.
22569         * modules/uniconv/u16-conv-to-enc: Likewise.
22570         * modules/uniconv/u16-strconv-from-enc: Likewise.
22571         * modules/uniconv/u16-strconv-from-locale: Likewise.
22572         * modules/uniconv/u16-strconv-to-enc: Likewise.
22573         * modules/uniconv/u16-strconv-to-locale: Likewise.
22574         * modules/uniconv/u32-conv-from-enc: Likewise.
22575         * modules/uniconv/u32-conv-to-enc: Likewise.
22576         * modules/uniconv/u32-strconv-from-enc: Likewise.
22577         * modules/uniconv/u32-strconv-from-locale: Likewise.
22578         * modules/uniconv/u32-strconv-to-enc: Likewise.
22579         * modules/uniconv/u32-strconv-to-locale: Likewise.
22580         * modules/unictype/bidicategory-byname: Likewise.
22581         * modules/unictype/bidicategory-name: Likewise.
22582         * modules/unictype/bidicategory-of: Likewise.
22583         * modules/unictype/bidicategory-test: Likewise.
22584         * modules/unictype/block-list: Likewise.
22585         * modules/unictype/block-test: Likewise.
22586         * modules/unictype/category-C: Likewise.
22587         * modules/unictype/category-Cc: Likewise.
22588         * modules/unictype/category-Cf: Likewise.
22589         * modules/unictype/category-Cn: Likewise.
22590         * modules/unictype/category-Co: Likewise.
22591         * modules/unictype/category-Cs: Likewise.
22592         * modules/unictype/category-L: Likewise.
22593         * modules/unictype/category-Ll: Likewise.
22594         * modules/unictype/category-Lm: Likewise.
22595         * modules/unictype/category-Lo: Likewise.
22596         * modules/unictype/category-Lt: Likewise.
22597         * modules/unictype/category-Lu: Likewise.
22598         * modules/unictype/category-M: Likewise.
22599         * modules/unictype/category-Mc: Likewise.
22600         * modules/unictype/category-Me: Likewise.
22601         * modules/unictype/category-Mn: Likewise.
22602         * modules/unictype/category-N: Likewise.
22603         * modules/unictype/category-Nd: Likewise.
22604         * modules/unictype/category-Nl: Likewise.
22605         * modules/unictype/category-No: Likewise.
22606         * modules/unictype/category-P: Likewise.
22607         * modules/unictype/category-Pc: Likewise.
22608         * modules/unictype/category-Pd: Likewise.
22609         * modules/unictype/category-Pe: Likewise.
22610         * modules/unictype/category-Pf: Likewise.
22611         * modules/unictype/category-Pi: Likewise.
22612         * modules/unictype/category-Po: Likewise.
22613         * modules/unictype/category-Ps: Likewise.
22614         * modules/unictype/category-S: Likewise.
22615         * modules/unictype/category-Sc: Likewise.
22616         * modules/unictype/category-Sk: Likewise.
22617         * modules/unictype/category-Sm: Likewise.
22618         * modules/unictype/category-So: Likewise.
22619         * modules/unictype/category-Z: Likewise.
22620         * modules/unictype/category-Zl: Likewise.
22621         * modules/unictype/category-Zp: Likewise.
22622         * modules/unictype/category-Zs: Likewise.
22623         * modules/unictype/category-and: Likewise.
22624         * modules/unictype/category-and-not: Likewise.
22625         * modules/unictype/category-byname: Likewise.
22626         * modules/unictype/category-name: Likewise.
22627         * modules/unictype/category-none: Likewise.
22628         * modules/unictype/category-of: Likewise.
22629         * modules/unictype/category-or: Likewise.
22630         * modules/unictype/category-test: Likewise.
22631         * modules/unictype/combining-class: Likewise.
22632         * modules/unictype/ctype-alnum: Likewise.
22633         * modules/unictype/ctype-alpha: Likewise.
22634         * modules/unictype/ctype-blank: Likewise.
22635         * modules/unictype/ctype-cntrl: Likewise.
22636         * modules/unictype/ctype-digit: Likewise.
22637         * modules/unictype/ctype-graph: Likewise.
22638         * modules/unictype/ctype-lower: Likewise.
22639         * modules/unictype/ctype-print: Likewise.
22640         * modules/unictype/ctype-punct: Likewise.
22641         * modules/unictype/ctype-space: Likewise.
22642         * modules/unictype/ctype-upper: Likewise.
22643         * modules/unictype/ctype-xdigit: Likewise.
22644         * modules/unictype/decimal-digit: Likewise.
22645         * modules/unictype/digit: Likewise.
22646         * modules/unictype/mirror: Likewise.
22647         * modules/unictype/numeric: Likewise.
22648         * modules/unictype/property-alphabetic: Likewise.
22649         * modules/unictype/property-ascii-hex-digit: Likewise.
22650         * modules/unictype/property-bidi-arabic-digit: Likewise.
22651         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
22652         * modules/unictype/property-bidi-block-separator: Likewise.
22653         * modules/unictype/property-bidi-boundary-neutral: Likewise.
22654         * modules/unictype/property-bidi-common-separator: Likewise.
22655         * modules/unictype/property-bidi-control: Likewise.
22656         * modules/unictype/property-bidi-embedding-or-override: Likewise.
22657         * modules/unictype/property-bidi-eur-num-separator: Likewise.
22658         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
22659         * modules/unictype/property-bidi-european-digit: Likewise.
22660         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
22661         * modules/unictype/property-bidi-left-to-right: Likewise.
22662         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
22663         * modules/unictype/property-bidi-other-neutral: Likewise.
22664         * modules/unictype/property-bidi-pdf: Likewise.
22665         * modules/unictype/property-bidi-segment-separator: Likewise.
22666         * modules/unictype/property-bidi-whitespace: Likewise.
22667         * modules/unictype/property-byname: Likewise.
22668         * modules/unictype/property-combining: Likewise.
22669         * modules/unictype/property-composite: Likewise.
22670         * modules/unictype/property-currency-symbol: Likewise.
22671         * modules/unictype/property-dash: Likewise.
22672         * modules/unictype/property-decimal-digit: Likewise.
22673         * modules/unictype/property-default-ignorable-code-point: Likewise.
22674         * modules/unictype/property-deprecated: Likewise.
22675         * modules/unictype/property-diacritic: Likewise.
22676         * modules/unictype/property-extender: Likewise.
22677         * modules/unictype/property-format-control: Likewise.
22678         * modules/unictype/property-grapheme-base: Likewise.
22679         * modules/unictype/property-grapheme-extend: Likewise.
22680         * modules/unictype/property-grapheme-link: Likewise.
22681         * modules/unictype/property-hex-digit: Likewise.
22682         * modules/unictype/property-hyphen: Likewise.
22683         * modules/unictype/property-id-continue: Likewise.
22684         * modules/unictype/property-id-start: Likewise.
22685         * modules/unictype/property-ideographic: Likewise.
22686         * modules/unictype/property-ids-binary-operator: Likewise.
22687         * modules/unictype/property-ids-trinary-operator: Likewise.
22688         * modules/unictype/property-ignorable-control: Likewise.
22689         * modules/unictype/property-iso-control: Likewise.
22690         * modules/unictype/property-join-control: Likewise.
22691         * modules/unictype/property-left-of-pair: Likewise.
22692         * modules/unictype/property-line-separator: Likewise.
22693         * modules/unictype/property-logical-order-exception: Likewise.
22694         * modules/unictype/property-lowercase: Likewise.
22695         * modules/unictype/property-math: Likewise.
22696         * modules/unictype/property-non-break: Likewise.
22697         * modules/unictype/property-not-a-character: Likewise.
22698         * modules/unictype/property-numeric: Likewise.
22699         * modules/unictype/property-other-alphabetic: Likewise.
22700         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
22701         * modules/unictype/property-other-grapheme-extend: Likewise.
22702         * modules/unictype/property-other-id-continue: Likewise.
22703         * modules/unictype/property-other-id-start: Likewise.
22704         * modules/unictype/property-other-lowercase: Likewise.
22705         * modules/unictype/property-other-math: Likewise.
22706         * modules/unictype/property-other-uppercase: Likewise.
22707         * modules/unictype/property-paired-punctuation: Likewise.
22708         * modules/unictype/property-paragraph-separator: Likewise.
22709         * modules/unictype/property-pattern-syntax: Likewise.
22710         * modules/unictype/property-pattern-white-space: Likewise.
22711         * modules/unictype/property-private-use: Likewise.
22712         * modules/unictype/property-punctuation: Likewise.
22713         * modules/unictype/property-quotation-mark: Likewise.
22714         * modules/unictype/property-radical: Likewise.
22715         * modules/unictype/property-sentence-terminal: Likewise.
22716         * modules/unictype/property-soft-dotted: Likewise.
22717         * modules/unictype/property-space: Likewise.
22718         * modules/unictype/property-terminal-punctuation: Likewise.
22719         * modules/unictype/property-test: Likewise.
22720         * modules/unictype/property-titlecase: Likewise.
22721         * modules/unictype/property-unassigned-code-value: Likewise.
22722         * modules/unictype/property-unified-ideograph: Likewise.
22723         * modules/unictype/property-uppercase: Likewise.
22724         * modules/unictype/property-variation-selector: Likewise.
22725         * modules/unictype/property-white-space: Likewise.
22726         * modules/unictype/property-xid-continue: Likewise.
22727         * modules/unictype/property-xid-start: Likewise.
22728         * modules/unictype/property-zero-width: Likewise.
22729         * modules/unictype/scripts: Likewise.
22730         * modules/unictype/syntax-c-ident: Likewise.
22731         * modules/unictype/syntax-c-whitespace: Likewise.
22732         * modules/unictype/syntax-java-ident: Likewise.
22733         * modules/unictype/syntax-java-whitespace: Likewise.
22734         * modules/unilbrk/u8-possible-linebreaks: Likewise.
22735         * modules/unilbrk/u8-width-linebreaks: Likewise.
22736         * modules/unilbrk/u16-possible-linebreaks: Likewise.
22737         * modules/unilbrk/u16-width-linebreaks: Likewise.
22738         * modules/unilbrk/u32-possible-linebreaks: Likewise.
22739         * modules/unilbrk/u32-width-linebreaks: Likewise.
22740         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
22741         * modules/unilbrk/ulc-width-linebreaks: Likewise.
22742         * modules/uniname/uniname: Likewise.
22743         * modules/uninorm/canonical-decomposition: Likewise.
22744         * modules/uninorm/composition: Likewise.
22745         * modules/uninorm/decomposing-form: Likewise.
22746         * modules/uninorm/decomposition: Likewise.
22747         * modules/uninorm/filter: Likewise.
22748         * modules/uninorm/nfc: Likewise.
22749         * modules/uninorm/nfd: Likewise.
22750         * modules/uninorm/nfkc: Likewise.
22751         * modules/uninorm/nfkd: Likewise.
22752         * modules/uninorm/u8-normalize: Likewise.
22753         * modules/uninorm/u8-normcmp: Likewise.
22754         * modules/uninorm/u8-normcoll: Likewise.
22755         * modules/uninorm/u8-normxfrm: Likewise.
22756         * modules/uninorm/u16-normalize: Likewise.
22757         * modules/uninorm/u16-normcmp: Likewise.
22758         * modules/uninorm/u16-normcoll: Likewise.
22759         * modules/uninorm/u16-normxfrm: Likewise.
22760         * modules/uninorm/u32-normalize: Likewise.
22761         * modules/uninorm/u32-normcmp: Likewise.
22762         * modules/uninorm/u32-normcoll: Likewise.
22763         * modules/uninorm/u32-normxfrm: Likewise.
22764         * modules/unistdio/u8-asnprintf: Likewise.
22765         * modules/unistdio/u8-asprintf: Likewise.
22766         * modules/unistdio/u8-snprintf: Likewise.
22767         * modules/unistdio/u8-sprintf: Likewise.
22768         * modules/unistdio/u8-u8-asnprintf: Likewise.
22769         * modules/unistdio/u8-u8-asprintf: Likewise.
22770         * modules/unistdio/u8-u8-snprintf: Likewise.
22771         * modules/unistdio/u8-u8-sprintf: Likewise.
22772         * modules/unistdio/u8-u8-vasnprintf: Likewise.
22773         * modules/unistdio/u8-u8-vasprintf: Likewise.
22774         * modules/unistdio/u8-u8-vsnprintf: Likewise.
22775         * modules/unistdio/u8-u8-vsprintf: Likewise.
22776         * modules/unistdio/u8-vasnprintf: Likewise.
22777         * modules/unistdio/u8-vasprintf: Likewise.
22778         * modules/unistdio/u8-vsnprintf: Likewise.
22779         * modules/unistdio/u8-vsprintf: Likewise.
22780         * modules/unistdio/u16-asnprintf: Likewise.
22781         * modules/unistdio/u16-asprintf: Likewise.
22782         * modules/unistdio/u16-snprintf: Likewise.
22783         * modules/unistdio/u16-sprintf: Likewise.
22784         * modules/unistdio/u16-u16-asnprintf: Likewise.
22785         * modules/unistdio/u16-u16-asprintf: Likewise.
22786         * modules/unistdio/u16-u16-snprintf: Likewise.
22787         * modules/unistdio/u16-u16-sprintf: Likewise.
22788         * modules/unistdio/u16-u16-vasnprintf: Likewise.
22789         * modules/unistdio/u16-u16-vasprintf: Likewise.
22790         * modules/unistdio/u16-u16-vsnprintf: Likewise.
22791         * modules/unistdio/u16-u16-vsprintf: Likewise.
22792         * modules/unistdio/u16-vasnprintf: Likewise.
22793         * modules/unistdio/u16-vasprintf: Likewise.
22794         * modules/unistdio/u16-vsnprintf: Likewise.
22795         * modules/unistdio/u16-vsprintf: Likewise.
22796         * modules/unistdio/u32-asnprintf: Likewise.
22797         * modules/unistdio/u32-asprintf: Likewise.
22798         * modules/unistdio/u32-snprintf: Likewise.
22799         * modules/unistdio/u32-sprintf: Likewise.
22800         * modules/unistdio/u32-u32-asnprintf: Likewise.
22801         * modules/unistdio/u32-u32-asprintf: Likewise.
22802         * modules/unistdio/u32-u32-snprintf: Likewise.
22803         * modules/unistdio/u32-u32-sprintf: Likewise.
22804         * modules/unistdio/u32-u32-vasnprintf: Likewise.
22805         * modules/unistdio/u32-u32-vasprintf: Likewise.
22806         * modules/unistdio/u32-u32-vsnprintf: Likewise.
22807         * modules/unistdio/u32-u32-vsprintf: Likewise.
22808         * modules/unistdio/u32-vasnprintf: Likewise.
22809         * modules/unistdio/u32-vasprintf: Likewise.
22810         * modules/unistdio/u32-vsnprintf: Likewise.
22811         * modules/unistdio/u32-vsprintf: Likewise.
22812         * modules/unistdio/ulc-asnprintf: Likewise.
22813         * modules/unistdio/ulc-asprintf: Likewise.
22814         * modules/unistdio/ulc-fprintf: Likewise.
22815         * modules/unistdio/ulc-snprintf: Likewise.
22816         * modules/unistdio/ulc-sprintf: Likewise.
22817         * modules/unistdio/ulc-vasnprintf: Likewise.
22818         * modules/unistdio/ulc-vasprintf: Likewise.
22819         * modules/unistdio/ulc-vfprintf: Likewise.
22820         * modules/unistdio/ulc-vsnprintf: Likewise.
22821         * modules/unistdio/ulc-vsprintf: Likewise.
22822         * modules/unistr/u8-check: Likewise.
22823         * modules/unistr/u8-chr: Likewise.
22824         * modules/unistr/u8-cmp: Likewise.
22825         * modules/unistr/u8-cmp2: Likewise.
22826         * modules/unistr/u8-cpy: Likewise.
22827         * modules/unistr/u8-cpy-alloc: Likewise.
22828         * modules/unistr/u8-endswith: Likewise.
22829         * modules/unistr/u8-mblen: Likewise.
22830         * modules/unistr/u8-mbsnlen: Likewise.
22831         * modules/unistr/u8-mbtouc: Likewise.
22832         * modules/unistr/u8-mbtouc-unsafe: Likewise.
22833         * modules/unistr/u8-mbtoucr: Likewise.
22834         * modules/unistr/u8-move: Likewise.
22835         * modules/unistr/u8-next: Likewise.
22836         * modules/unistr/u8-prev: Likewise.
22837         * modules/unistr/u8-set: Likewise.
22838         * modules/unistr/u8-startswith: Likewise.
22839         * modules/unistr/u8-stpcpy: Likewise.
22840         * modules/unistr/u8-stpncpy: Likewise.
22841         * modules/unistr/u8-strcat: Likewise.
22842         * modules/unistr/u8-strchr: Likewise.
22843         * modules/unistr/u8-strcmp: Likewise.
22844         * modules/unistr/u8-strcoll: Likewise.
22845         * modules/unistr/u8-strcpy: Likewise.
22846         * modules/unistr/u8-strcspn: Likewise.
22847         * modules/unistr/u8-strdup: Likewise.
22848         * modules/unistr/u8-strlen: Likewise.
22849         * modules/unistr/u8-strmblen: Likewise.
22850         * modules/unistr/u8-strmbtouc: Likewise.
22851         * modules/unistr/u8-strncat: Likewise.
22852         * modules/unistr/u8-strncmp: Likewise.
22853         * modules/unistr/u8-strncpy: Likewise.
22854         * modules/unistr/u8-strnlen: Likewise.
22855         * modules/unistr/u8-strpbrk: Likewise.
22856         * modules/unistr/u8-strrchr: Likewise.
22857         * modules/unistr/u8-strspn: Likewise.
22858         * modules/unistr/u8-strstr: Likewise.
22859         * modules/unistr/u8-strtok: Likewise.
22860         * modules/unistr/u8-to-u16: Likewise.
22861         * modules/unistr/u8-to-u32: Likewise.
22862         * modules/unistr/u8-uctomb: Likewise.
22863         * modules/unistr/u16-check: Likewise.
22864         * modules/unistr/u16-chr: Likewise.
22865         * modules/unistr/u16-cmp: Likewise.
22866         * modules/unistr/u16-cmp2: Likewise.
22867         * modules/unistr/u16-cpy: Likewise.
22868         * modules/unistr/u16-cpy-alloc: Likewise.
22869         * modules/unistr/u16-endswith: Likewise.
22870         * modules/unistr/u16-mblen: Likewise.
22871         * modules/unistr/u16-mbsnlen: Likewise.
22872         * modules/unistr/u16-mbtouc: Likewise.
22873         * modules/unistr/u16-mbtouc-unsafe: Likewise.
22874         * modules/unistr/u16-mbtoucr: Likewise.
22875         * modules/unistr/u16-move: Likewise.
22876         * modules/unistr/u16-next: Likewise.
22877         * modules/unistr/u16-prev: Likewise.
22878         * modules/unistr/u16-set: Likewise.
22879         * modules/unistr/u16-startswith: Likewise.
22880         * modules/unistr/u16-stpcpy: Likewise.
22881         * modules/unistr/u16-stpncpy: Likewise.
22882         * modules/unistr/u16-strcat: Likewise.
22883         * modules/unistr/u16-strchr: Likewise.
22884         * modules/unistr/u16-strcmp: Likewise.
22885         * modules/unistr/u16-strcoll: Likewise.
22886         * modules/unistr/u16-strcpy: Likewise.
22887         * modules/unistr/u16-strcspn: Likewise.
22888         * modules/unistr/u16-strdup: Likewise.
22889         * modules/unistr/u16-strlen: Likewise.
22890         * modules/unistr/u16-strmblen: Likewise.
22891         * modules/unistr/u16-strmbtouc: Likewise.
22892         * modules/unistr/u16-strncat: Likewise.
22893         * modules/unistr/u16-strncmp: Likewise.
22894         * modules/unistr/u16-strncpy: Likewise.
22895         * modules/unistr/u16-strnlen: Likewise.
22896         * modules/unistr/u16-strpbrk: Likewise.
22897         * modules/unistr/u16-strrchr: Likewise.
22898         * modules/unistr/u16-strspn: Likewise.
22899         * modules/unistr/u16-strstr: Likewise.
22900         * modules/unistr/u16-strtok: Likewise.
22901         * modules/unistr/u16-to-u32: Likewise.
22902         * modules/unistr/u16-to-u8: Likewise.
22903         * modules/unistr/u16-uctomb: Likewise.
22904         * modules/unistr/u32-check: Likewise.
22905         * modules/unistr/u32-chr: Likewise.
22906         * modules/unistr/u32-cmp: Likewise.
22907         * modules/unistr/u32-cmp2: Likewise.
22908         * modules/unistr/u32-cpy: Likewise.
22909         * modules/unistr/u32-cpy-alloc: Likewise.
22910         * modules/unistr/u32-endswith: Likewise.
22911         * modules/unistr/u32-mblen: Likewise.
22912         * modules/unistr/u32-mbsnlen: Likewise.
22913         * modules/unistr/u32-mbtouc: Likewise.
22914         * modules/unistr/u32-mbtouc-unsafe: Likewise.
22915         * modules/unistr/u32-mbtoucr: Likewise.
22916         * modules/unistr/u32-move: Likewise.
22917         * modules/unistr/u32-next: Likewise.
22918         * modules/unistr/u32-prev: Likewise.
22919         * modules/unistr/u32-set: Likewise.
22920         * modules/unistr/u32-startswith: Likewise.
22921         * modules/unistr/u32-stpcpy: Likewise.
22922         * modules/unistr/u32-stpncpy: Likewise.
22923         * modules/unistr/u32-strcat: Likewise.
22924         * modules/unistr/u32-strchr: Likewise.
22925         * modules/unistr/u32-strcmp: Likewise.
22926         * modules/unistr/u32-strcoll: Likewise.
22927         * modules/unistr/u32-strcpy: Likewise.
22928         * modules/unistr/u32-strcspn: Likewise.
22929         * modules/unistr/u32-strdup: Likewise.
22930         * modules/unistr/u32-strlen: Likewise.
22931         * modules/unistr/u32-strmblen: Likewise.
22932         * modules/unistr/u32-strmbtouc: Likewise.
22933         * modules/unistr/u32-strncat: Likewise.
22934         * modules/unistr/u32-strncmp: Likewise.
22935         * modules/unistr/u32-strncpy: Likewise.
22936         * modules/unistr/u32-strnlen: Likewise.
22937         * modules/unistr/u32-strpbrk: Likewise.
22938         * modules/unistr/u32-strrchr: Likewise.
22939         * modules/unistr/u32-strspn: Likewise.
22940         * modules/unistr/u32-strstr: Likewise.
22941         * modules/unistr/u32-strtok: Likewise.
22942         * modules/unistr/u32-to-u16: Likewise.
22943         * modules/unistr/u32-to-u8: Likewise.
22944         * modules/unistr/u32-uctomb: Likewise.
22945         * modules/uniwbrk/u8-wordbreaks: Likewise.
22946         * modules/uniwbrk/u16-wordbreaks: Likewise.
22947         * modules/uniwbrk/u32-wordbreaks: Likewise.
22948         * modules/uniwbrk/ulc-wordbreaks: Likewise.
22949         * modules/uniwbrk/wordbreak-property: Likewise.
22950         * modules/uniwidth/u8-strwidth: Likewise.
22951         * modules/uniwidth/u8-width: Likewise.
22952         * modules/uniwidth/u16-strwidth: Likewise.
22953         * modules/uniwidth/u16-width: Likewise.
22954         * modules/uniwidth/u32-strwidth: Likewise.
22955         * modules/uniwidth/u32-width: Likewise.
22956         * modules/uniwidth/width: Likewise.
22957         * modules/unicase/cased-tests (Makefile.am): Link all test programs
22958         with $(LIBUNISTRING).
22959         * modules/unicase/ignorable-tests: Likewise.
22960         * modules/unicase/locale-language-tests: Likewise.
22961         * modules/unicase/tolower-tests: Likewise.
22962         * modules/unicase/totitle-tests: Likewise.
22963         * modules/unicase/toupper-tests: Likewise.
22964         * modules/unicase/u8-casecmp-tests: Likewise.
22965         * modules/unicase/u8-casecoll-tests: Likewise.
22966         * modules/unicase/u8-casefold-tests: Likewise.
22967         * modules/unicase/u8-is-cased-tests: Likewise.
22968         * modules/unicase/u8-is-casefolded-tests: Likewise.
22969         * modules/unicase/u8-is-lowercase-tests: Likewise.
22970         * modules/unicase/u8-is-titlecase-tests: Likewise.
22971         * modules/unicase/u8-is-uppercase-tests: Likewise.
22972         * modules/unicase/u8-tolower-tests: Likewise.
22973         * modules/unicase/u8-totitle-tests: Likewise.
22974         * modules/unicase/u8-toupper-tests: Likewise.
22975         * modules/unicase/u16-casecmp-tests: Likewise.
22976         * modules/unicase/u16-casecoll-tests: Likewise.
22977         * modules/unicase/u16-casefold-tests: Likewise.
22978         * modules/unicase/u16-is-cased-tests: Likewise.
22979         * modules/unicase/u16-is-casefolded-tests: Likewise.
22980         * modules/unicase/u16-is-lowercase-tests: Likewise.
22981         * modules/unicase/u16-is-titlecase-tests: Likewise.
22982         * modules/unicase/u16-is-uppercase-tests: Likewise.
22983         * modules/unicase/u16-tolower-tests: Likewise.
22984         * modules/unicase/u16-totitle-tests: Likewise.
22985         * modules/unicase/u16-toupper-tests: Likewise.
22986         * modules/unicase/u32-casecmp-tests: Likewise.
22987         * modules/unicase/u32-casecoll-tests: Likewise.
22988         * modules/unicase/u32-casefold-tests: Likewise.
22989         * modules/unicase/u32-is-cased-tests: Likewise.
22990         * modules/unicase/u32-is-casefolded-tests: Likewise.
22991         * modules/unicase/u32-is-lowercase-tests: Likewise.
22992         * modules/unicase/u32-is-titlecase-tests: Likewise.
22993         * modules/unicase/u32-is-uppercase-tests: Likewise.
22994         * modules/unicase/u32-tolower-tests: Likewise.
22995         * modules/unicase/u32-totitle-tests: Likewise.
22996         * modules/unicase/u32-toupper-tests: Likewise.
22997         * modules/unicase/ulc-casecmp-tests: Likewise.
22998         * modules/unicase/ulc-casecoll-tests: Likewise.
22999         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
23000         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
23001         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
23002         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
23003         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
23004         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
23005         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
23006         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
23007         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
23008         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
23009         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
23010         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
23011         * modules/unictype/bidicategory-byname-tests: Likewise.
23012         * modules/unictype/bidicategory-name-tests: Likewise.
23013         * modules/unictype/bidicategory-of-tests: Likewise.
23014         * modules/unictype/bidicategory-test-tests: Likewise.
23015         * modules/unictype/block-list-tests: Likewise.
23016         * modules/unictype/block-of-tests: Likewise.
23017         * modules/unictype/block-test-tests: Likewise.
23018         * modules/unictype/category-C-tests: Likewise.
23019         * modules/unictype/category-Cc-tests: Likewise.
23020         * modules/unictype/category-Cf-tests: Likewise.
23021         * modules/unictype/category-Cn-tests: Likewise.
23022         * modules/unictype/category-Co-tests: Likewise.
23023         * modules/unictype/category-Cs-tests: Likewise.
23024         * modules/unictype/category-L-tests: Likewise.
23025         * modules/unictype/category-Ll-tests: Likewise.
23026         * modules/unictype/category-Lm-tests: Likewise.
23027         * modules/unictype/category-Lo-tests: Likewise.
23028         * modules/unictype/category-Lt-tests: Likewise.
23029         * modules/unictype/category-Lu-tests: Likewise.
23030         * modules/unictype/category-M-tests: Likewise.
23031         * modules/unictype/category-Mc-tests: Likewise.
23032         * modules/unictype/category-Me-tests: Likewise.
23033         * modules/unictype/category-Mn-tests: Likewise.
23034         * modules/unictype/category-N-tests: Likewise.
23035         * modules/unictype/category-Nd-tests: Likewise.
23036         * modules/unictype/category-Nl-tests: Likewise.
23037         * modules/unictype/category-No-tests: Likewise.
23038         * modules/unictype/category-P-tests: Likewise.
23039         * modules/unictype/category-Pc-tests: Likewise.
23040         * modules/unictype/category-Pd-tests: Likewise.
23041         * modules/unictype/category-Pe-tests: Likewise.
23042         * modules/unictype/category-Pf-tests: Likewise.
23043         * modules/unictype/category-Pi-tests: Likewise.
23044         * modules/unictype/category-Po-tests: Likewise.
23045         * modules/unictype/category-Ps-tests: Likewise.
23046         * modules/unictype/category-S-tests: Likewise.
23047         * modules/unictype/category-Sc-tests: Likewise.
23048         * modules/unictype/category-Sk-tests: Likewise.
23049         * modules/unictype/category-Sm-tests: Likewise.
23050         * modules/unictype/category-So-tests: Likewise.
23051         * modules/unictype/category-Z-tests: Likewise.
23052         * modules/unictype/category-Zl-tests: Likewise.
23053         * modules/unictype/category-Zp-tests: Likewise.
23054         * modules/unictype/category-Zs-tests: Likewise.
23055         * modules/unictype/category-and-not-tests: Likewise.
23056         * modules/unictype/category-and-tests: Likewise.
23057         * modules/unictype/category-byname-tests: Likewise.
23058         * modules/unictype/category-name-tests: Likewise.
23059         * modules/unictype/category-none-tests: Likewise.
23060         * modules/unictype/category-of-tests: Likewise.
23061         * modules/unictype/category-or-tests: Likewise.
23062         * modules/unictype/category-test-withtable-tests: Likewise.
23063         * modules/unictype/combining-class-tests: Likewise.
23064         * modules/unictype/ctype-alnum-tests: Likewise.
23065         * modules/unictype/ctype-alpha-tests: Likewise.
23066         * modules/unictype/ctype-blank-tests: Likewise.
23067         * modules/unictype/ctype-cntrl-tests: Likewise.
23068         * modules/unictype/ctype-digit-tests: Likewise.
23069         * modules/unictype/ctype-graph-tests: Likewise.
23070         * modules/unictype/ctype-lower-tests: Likewise.
23071         * modules/unictype/ctype-print-tests: Likewise.
23072         * modules/unictype/ctype-punct-tests: Likewise.
23073         * modules/unictype/ctype-space-tests: Likewise.
23074         * modules/unictype/ctype-upper-tests: Likewise.
23075         * modules/unictype/ctype-xdigit-tests: Likewise.
23076         * modules/unictype/decimal-digit-tests: Likewise.
23077         * modules/unictype/digit-tests: Likewise.
23078         * modules/unictype/mirror-tests: Likewise.
23079         * modules/unictype/numeric-tests: Likewise.
23080         * modules/unictype/property-alphabetic-tests: Likewise.
23081         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
23082         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
23083         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
23084         * modules/unictype/property-bidi-block-separator-tests: Likewise.
23085         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
23086         * modules/unictype/property-bidi-common-separator-tests: Likewise.
23087         * modules/unictype/property-bidi-control-tests: Likewise.
23088         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
23089         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
23090         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
23091         * modules/unictype/property-bidi-european-digit-tests: Likewise.
23092         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
23093         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
23094         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
23095         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
23096         * modules/unictype/property-bidi-pdf-tests: Likewise.
23097         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
23098         * modules/unictype/property-bidi-whitespace-tests: Likewise.
23099         * modules/unictype/property-byname-tests: Likewise.
23100         * modules/unictype/property-combining-tests: Likewise.
23101         * modules/unictype/property-composite-tests: Likewise.
23102         * modules/unictype/property-currency-symbol-tests: Likewise.
23103         * modules/unictype/property-dash-tests: Likewise.
23104         * modules/unictype/property-decimal-digit-tests: Likewise.
23105         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
23106         * modules/unictype/property-deprecated-tests: Likewise.
23107         * modules/unictype/property-diacritic-tests: Likewise.
23108         * modules/unictype/property-extender-tests: Likewise.
23109         * modules/unictype/property-format-control-tests: Likewise.
23110         * modules/unictype/property-grapheme-base-tests: Likewise.
23111         * modules/unictype/property-grapheme-extend-tests: Likewise.
23112         * modules/unictype/property-grapheme-link-tests: Likewise.
23113         * modules/unictype/property-hex-digit-tests: Likewise.
23114         * modules/unictype/property-hyphen-tests: Likewise.
23115         * modules/unictype/property-id-continue-tests: Likewise.
23116         * modules/unictype/property-id-start-tests: Likewise.
23117         * modules/unictype/property-ideographic-tests: Likewise.
23118         * modules/unictype/property-ids-binary-operator-tests: Likewise.
23119         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
23120         * modules/unictype/property-ignorable-control-tests: Likewise.
23121         * modules/unictype/property-iso-control-tests: Likewise.
23122         * modules/unictype/property-join-control-tests: Likewise.
23123         * modules/unictype/property-left-of-pair-tests: Likewise.
23124         * modules/unictype/property-line-separator-tests: Likewise.
23125         * modules/unictype/property-logical-order-exception-tests: Likewise.
23126         * modules/unictype/property-lowercase-tests: Likewise.
23127         * modules/unictype/property-math-tests: Likewise.
23128         * modules/unictype/property-non-break-tests: Likewise.
23129         * modules/unictype/property-not-a-character-tests: Likewise.
23130         * modules/unictype/property-numeric-tests: Likewise.
23131         * modules/unictype/property-other-alphabetic-tests: Likewise.
23132         * modules/unictype/property-other-default-ignorable-code-point-tests:
23133         Likewise.
23134         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
23135         * modules/unictype/property-other-id-continue-tests: Likewise.
23136         * modules/unictype/property-other-id-start-tests: Likewise.
23137         * modules/unictype/property-other-lowercase-tests: Likewise.
23138         * modules/unictype/property-other-math-tests: Likewise.
23139         * modules/unictype/property-other-uppercase-tests: Likewise.
23140         * modules/unictype/property-paired-punctuation-tests: Likewise.
23141         * modules/unictype/property-paragraph-separator-tests: Likewise.
23142         * modules/unictype/property-pattern-syntax-tests: Likewise.
23143         * modules/unictype/property-pattern-white-space-tests: Likewise.
23144         * modules/unictype/property-private-use-tests: Likewise.
23145         * modules/unictype/property-punctuation-tests: Likewise.
23146         * modules/unictype/property-quotation-mark-tests: Likewise.
23147         * modules/unictype/property-radical-tests: Likewise.
23148         * modules/unictype/property-sentence-terminal-tests: Likewise.
23149         * modules/unictype/property-soft-dotted-tests: Likewise.
23150         * modules/unictype/property-space-tests: Likewise.
23151         * modules/unictype/property-terminal-punctuation-tests: Likewise.
23152         * modules/unictype/property-test-tests: Likewise.
23153         * modules/unictype/property-titlecase-tests: Likewise.
23154         * modules/unictype/property-unassigned-code-value-tests: Likewise.
23155         * modules/unictype/property-unified-ideograph-tests: Likewise.
23156         * modules/unictype/property-uppercase-tests: Likewise.
23157         * modules/unictype/property-variation-selector-tests: Likewise.
23158         * modules/unictype/property-white-space-tests: Likewise.
23159         * modules/unictype/property-xid-continue-tests: Likewise.
23160         * modules/unictype/property-xid-start-tests: Likewise.
23161         * modules/unictype/property-zero-width-tests: Likewise.
23162         * modules/unictype/scripts-tests: Likewise.
23163         * modules/unictype/syntax-c-ident-tests: Likewise.
23164         * modules/unictype/syntax-c-whitespace-tests: Likewise.
23165         * modules/unictype/syntax-java-ident-tests: Likewise.
23166         * modules/unictype/syntax-java-whitespace-tests: Likewise.
23167         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
23168         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
23169         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
23170         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
23171         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
23172         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
23173         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
23174         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
23175         * modules/uniname/uniname-tests: Likewise.
23176         * modules/uninorm/canonical-decomposition-tests: Likewise.
23177         * modules/uninorm/compat-decomposition-tests: Likewise.
23178         * modules/uninorm/composition-tests: Likewise.
23179         * modules/uninorm/decomposing-form-tests: Likewise.
23180         * modules/uninorm/decomposition-tests: Likewise.
23181         * modules/uninorm/filter-tests: Likewise.
23182         * modules/uninorm/nfc-tests: Likewise.
23183         * modules/uninorm/nfd-tests: Likewise.
23184         * modules/uninorm/nfkc-tests: Likewise.
23185         * modules/uninorm/nfkd-tests: Likewise.
23186         * modules/uninorm/u8-normcmp-tests: Likewise.
23187         * modules/uninorm/u8-normcoll-tests: Likewise.
23188         * modules/uninorm/u16-normcmp-tests: Likewise.
23189         * modules/uninorm/u16-normcoll-tests: Likewise.
23190         * modules/uninorm/u32-normcmp-tests: Likewise.
23191         * modules/uninorm/u32-normcoll-tests: Likewise.
23192         * modules/unistdio/u8-asnprintf-tests: Likewise.
23193         * modules/unistdio/u8-vasnprintf-tests: Likewise.
23194         * modules/unistdio/u8-vasprintf-tests: Likewise.
23195         * modules/unistdio/u8-vsnprintf-tests: Likewise.
23196         * modules/unistdio/u8-vsprintf-tests: Likewise.
23197         * modules/unistdio/u16-asnprintf-tests: Likewise.
23198         * modules/unistdio/u16-vasnprintf-tests: Likewise.
23199         * modules/unistdio/u16-vasprintf-tests: Likewise.
23200         * modules/unistdio/u16-vsnprintf-tests: Likewise.
23201         * modules/unistdio/u16-vsprintf-tests: Likewise.
23202         * modules/unistdio/u32-asnprintf-tests: Likewise.
23203         * modules/unistdio/u32-vasnprintf-tests: Likewise.
23204         * modules/unistdio/u32-vasprintf-tests: Likewise.
23205         * modules/unistdio/u32-vsnprintf-tests: Likewise.
23206         * modules/unistdio/u32-vsprintf-tests: Likewise.
23207         * modules/unistdio/ulc-asnprintf-tests: Likewise.
23208         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
23209         * modules/unistdio/ulc-vasprintf-tests: Likewise.
23210         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
23211         * modules/unistdio/ulc-vsprintf-tests: Likewise.
23212         * modules/unistr/u8-check-tests: Likewise.
23213         * modules/unistr/u8-chr-tests: Likewise.
23214         * modules/unistr/u8-cmp-tests: Likewise.
23215         * modules/unistr/u8-cmp2-tests: Likewise.
23216         * modules/unistr/u8-cpy-alloc-tests: Likewise.
23217         * modules/unistr/u8-cpy-tests: Likewise.
23218         * modules/unistr/u8-mblen-tests: Likewise.
23219         * modules/unistr/u8-mbsnlen-tests: Likewise.
23220         * modules/unistr/u8-mbtouc-tests: Likewise.
23221         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
23222         * modules/unistr/u8-mbtoucr-tests: Likewise.
23223         * modules/unistr/u8-move-tests: Likewise.
23224         * modules/unistr/u8-next-tests: Likewise.
23225         * modules/unistr/u8-prev-tests: Likewise.
23226         * modules/unistr/u8-set-tests: Likewise.
23227         * modules/unistr/u8-stpcpy-tests: Likewise.
23228         * modules/unistr/u8-stpncpy-tests: Likewise.
23229         * modules/unistr/u8-strcat-tests: Likewise.
23230         * modules/unistr/u8-strcmp-tests: Likewise.
23231         * modules/unistr/u8-strcoll-tests: Likewise.
23232         * modules/unistr/u8-strcpy-tests: Likewise.
23233         * modules/unistr/u8-strdup-tests: Likewise.
23234         * modules/unistr/u8-strlen-tests: Likewise.
23235         * modules/unistr/u8-strmblen-tests: Likewise.
23236         * modules/unistr/u8-strmbtouc-tests: Likewise.
23237         * modules/unistr/u8-strncat-tests: Likewise.
23238         * modules/unistr/u8-strncmp-tests: Likewise.
23239         * modules/unistr/u8-strncpy-tests: Likewise.
23240         * modules/unistr/u8-strnlen-tests: Likewise.
23241         * modules/unistr/u8-to-u16-tests: Likewise.
23242         * modules/unistr/u8-to-u32-tests: Likewise.
23243         * modules/unistr/u8-uctomb-tests: Likewise.
23244         * modules/unistr/u16-check-tests: Likewise.
23245         * modules/unistr/u16-chr-tests: Likewise.
23246         * modules/unistr/u16-cmp-tests: Likewise.
23247         * modules/unistr/u16-cmp2-tests: Likewise.
23248         * modules/unistr/u16-cpy-alloc-tests: Likewise.
23249         * modules/unistr/u16-cpy-tests: Likewise.
23250         * modules/unistr/u16-mblen-tests: Likewise.
23251         * modules/unistr/u16-mbsnlen-tests: Likewise.
23252         * modules/unistr/u16-mbtouc-tests: Likewise.
23253         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
23254         * modules/unistr/u16-mbtoucr-tests: Likewise.
23255         * modules/unistr/u16-move-tests: Likewise.
23256         * modules/unistr/u16-next-tests: Likewise.
23257         * modules/unistr/u16-prev-tests: Likewise.
23258         * modules/unistr/u16-set-tests: Likewise.
23259         * modules/unistr/u16-stpcpy-tests: Likewise.
23260         * modules/unistr/u16-stpncpy-tests: Likewise.
23261         * modules/unistr/u16-strcat-tests: Likewise.
23262         * modules/unistr/u16-strcmp-tests: Likewise.
23263         * modules/unistr/u16-strcoll-tests: Likewise.
23264         * modules/unistr/u16-strcpy-tests: Likewise.
23265         * modules/unistr/u16-strdup-tests: Likewise.
23266         * modules/unistr/u16-strlen-tests: Likewise.
23267         * modules/unistr/u16-strmblen-tests: Likewise.
23268         * modules/unistr/u16-strmbtouc-tests: Likewise.
23269         * modules/unistr/u16-strncat-tests: Likewise.
23270         * modules/unistr/u16-strncmp-tests: Likewise.
23271         * modules/unistr/u16-strncpy-tests: Likewise.
23272         * modules/unistr/u16-strnlen-tests: Likewise.
23273         * modules/unistr/u16-to-u32-tests: Likewise.
23274         * modules/unistr/u16-to-u8-tests: Likewise.
23275         * modules/unistr/u16-uctomb-tests: Likewise.
23276         * modules/unistr/u32-check-tests: Likewise.
23277         * modules/unistr/u32-chr-tests: Likewise.
23278         * modules/unistr/u32-cmp-tests: Likewise.
23279         * modules/unistr/u32-cmp2-tests: Likewise.
23280         * modules/unistr/u32-cpy-alloc-tests: Likewise.
23281         * modules/unistr/u32-cpy-tests: Likewise.
23282         * modules/unistr/u32-mblen-tests: Likewise.
23283         * modules/unistr/u32-mbsnlen-tests: Likewise.
23284         * modules/unistr/u32-mbtouc-tests: Likewise.
23285         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
23286         * modules/unistr/u32-mbtoucr-tests: Likewise.
23287         * modules/unistr/u32-move-tests: Likewise.
23288         * modules/unistr/u32-next-tests: Likewise.
23289         * modules/unistr/u32-prev-tests: Likewise.
23290         * modules/unistr/u32-set-tests: Likewise.
23291         * modules/unistr/u32-stpcpy-tests: Likewise.
23292         * modules/unistr/u32-stpncpy-tests: Likewise.
23293         * modules/unistr/u32-strcat-tests: Likewise.
23294         * modules/unistr/u32-strcmp-tests: Likewise.
23295         * modules/unistr/u32-strcoll-tests: Likewise.
23296         * modules/unistr/u32-strcpy-tests: Likewise.
23297         * modules/unistr/u32-strdup-tests: Likewise.
23298         * modules/unistr/u32-strlen-tests: Likewise.
23299         * modules/unistr/u32-strmblen-tests: Likewise.
23300         * modules/unistr/u32-strmbtouc-tests: Likewise.
23301         * modules/unistr/u32-strncat-tests: Likewise.
23302         * modules/unistr/u32-strncmp-tests: Likewise.
23303         * modules/unistr/u32-strncpy-tests: Likewise.
23304         * modules/unistr/u32-strnlen-tests: Likewise.
23305         * modules/unistr/u32-to-u16-tests: Likewise.
23306         * modules/unistr/u32-to-u8-tests: Likewise.
23307         * modules/unistr/u32-uctomb-tests: Likewise.
23308         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
23309         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
23310         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
23311         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
23312         * modules/uniwidth/u8-strwidth-tests: Likewise.
23313         * modules/uniwidth/u8-width-tests: Likewise.
23314         * modules/uniwidth/u16-strwidth-tests: Likewise.
23315         * modules/uniwidth/u16-width-tests: Likewise.
23316         * modules/uniwidth/u32-strwidth-tests: Likewise.
23317         * modules/uniwidth/u32-width-tests: Likewise.
23318         * modules/uniwidth/width-tests: Likewise.
23319
23320 2010-05-18  Richard Jones  <rjones@redhat.com>
23321
23322         doc: users.txt: list hivex
23323         * users.txt: Add hivex.
23324
23325 2010-05-18  Richard Jones  <rjones@redhat.com>
23326
23327         doc: users.txt: list febootstrap
23328         * users.txt: Add febootstrap.
23329
23330 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
23331
23332         bootstrap: fix an error when gnulib is not used as a git submodule
23333         * build-aux/bootstrap (gnulib_path): If its length is zero then
23334         assign "gnulib" to it.
23335         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
23336
23337 2010-05-16  Bruno Haible  <bruno@clisp.org>
23338
23339         Avoid autoconf warnings about AM_ICONV.
23340         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
23341         2.64.
23342
23343 2010-05-16  Bruno Haible  <bruno@clisp.org>
23344
23345         absolute-header: Make the macro usable in more situations.
23346         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
23347         from gl_ABSOLUTE_HEADER.
23348         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
23349
23350 2010-05-16  James Youngman  <jay@gnu.org>
23351
23352         doc: update users.txt
23353         * users.txt: Add CSSC.
23354
23355 2010-05-16  Jim Meyering  <meyering@redhat.com>
23356
23357         init.sh: fix an error in the previous change; add more comments
23358         * tests/init.sh: Compare exit code in loop against 9, not 2.
23359         Patch by Bruno Haible.
23360         Make the two tests more similar by adding an empty "then" clause.
23361         Add comments.
23362
23363         init.sh: avoid unnecessary shell re-exec
23364         * tests/init.sh: Improve the re-exec-required check to first test the
23365         current shell.  If it passes the test, do not search for a shell that
23366         does pass, and do not re-exec.  This test is particularly contorted to
23367         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
23368         of $(...) evokes a syntax error and causes immediate shell exit with
23369         status 2.  Bruno Haible reported that the re-exec made it impossible
23370         to single-step through any init.sh-using script.
23371
23372 2010-05-16  Bruno Haible  <bruno@clisp.org>
23373
23374         Fix collision between gnulib's and libintl's printf replacements.
23375         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
23376         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
23377         (printf): When using GNU C, map the __printf__ function to rpl_printf
23378         via __asm__. When not using GNU C, define rpl_printf instead of
23379         __printf__.
23380         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
23381         commit.
23382         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
23383         commit.
23384         * m4/asm-underscore.m4: New file.
23385         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
23386         * modules/stdio (Files): Add m4/asm-underscore.m4.
23387         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
23388         Reported by Ben Pfaff.
23389
23390 2010-05-16  Bruno Haible  <bruno@clisp.org>
23391
23392         verify: Avoid skipping the test on openSUSE 11.0.
23393         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
23394
23395 2010-05-13  Bruno Haible  <bruno@clisp.org>
23396
23397         Avoid useless warnings from G++.
23398         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
23399         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
23400         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
23401
23402 2010-05-11  Jim Meyering  <meyering@redhat.com>
23403
23404         maint.mk: tweak preceding change
23405         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
23406         regexps tighter by anchoring at EOL, and make the new group "shy"
23407         for slightly decreased overhead.
23408
23409 2010-05-11  Eric Blake  <eblake@redhat.com>
23410
23411         maint.mk: gnulib doesn't guarantee NSIG
23412         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
23413
23414 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
23415
23416         test-pwrite.c: Remove unused variable declaration.
23417         * tests/test-pwrite.c (main): Remove read_buf declaration.
23418
23419         Remove useless test-pwrite.sh file.
23420         * tests/test-pwrite.sh: Delete file.
23421         * modules/pwrite-tests: Remove references.
23422         Reported by Bruno Haible.
23423
23424 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
23425
23426         init.sh: fix a typo
23427         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
23428
23429 2010-05-10  Jim Meyering  <meyering@redhat.com>
23430
23431         maint.mk: avoid using a temporary file in the always-defined-macros check
23432         * top/maint.mk (.re-defmac): Remove rule.
23433         (gl_trap_): Remove definition.
23434         (sc_prohibit_always-defined_macros): Rewrite not to create and
23435         depend on a temporary file.  Instead, depend on GNU grep's ability
23436         to read a list of regular expressions from stdin when given "-f -".
23437
23438 2010-05-09  Bruno Haible  <bruno@clisp.org>
23439
23440         Update to GNU gettext 0.18, part 1.
23441         * m4/gettext.m4: Update to GNU gettext 0.18.
23442         * m4/intl.m4: Likewise.
23443         * m4/po.m4: Likewise.
23444         * modules/gettext (Files): Add m4/fcntl-o.m4.
23445         (configure.ac): Require gettext infrastructure from version 0.18.
23446
23447 2010-05-09  Jim Meyering  <meyering@redhat.com>
23448
23449         init.sh: enable MALLOC_PERTURB_
23450         * tests/init.sh: Enable glibc's malloc-perturbing option.
23451
23452         maint.mk: improve sc_cross_check_PATH_usage_in_tests
23453         With my recent change in init.sh from the two-line form:
23454             -#   : ${srcdir=.}
23455             -#   . "$srcdir/init.sh"; path_prepend_ .
23456             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
23457         I noticed that using the one-line form would cause this test
23458         to fail with a false-positive, or to stop working altogether,
23459         depending on whether help-version changed or all the tests did.
23460         * top/maint.mk (_hv_regex): Remove this definition.
23461         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
23462         (_hv_regex_strong): Use a stronger regex to check for conformance.
23463         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
23464         Give a separate diagnostic for lack of conforming use.
23465
23466         maint.mk: prohibit definition of symbols defined by gnulib
23467         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
23468         definition of symbols defined by gnulib.
23469
23470 2010-05-09  Bruno Haible  <bruno@clisp.org>
23471
23472         acl: Avoid test failure on Cygwin-hosted mingw.
23473         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
23474
23475 2010-05-09  Bruno Haible  <bruno@clisp.org>
23476
23477         error: Use system's fcntl function.
23478         * lib/error.c (fcntl): Undefine.
23479
23480 2010-05-09  Jim Meyering  <meyering@redhat.com>
23481
23482         verify: adjust formatting to be more consistent
23483         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
23484         argument-list '('s, and after one comma.
23485
23486 2010-05-09  Bruno Haible  <bruno@clisp.org>
23487
23488         error: More reliable output on mingw.
23489         * lib/error.c: Include <windows.h>.
23490         (is_open): New function.
23491         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
23492         defined.
23493
23494 2010-05-09  Bruno Haible  <bruno@clisp.org>
23495
23496         vasnprintf: Fix syntax errors in libintl build on mingw.
23497         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
23498         pad_ourselves and prec_ourselves after use.
23499
23500 2010-05-08  Bruno Haible  <bruno@clisp.org>
23501
23502         * lib/config.charset: Update comments for Cygwin 1.7.
23503         * lib/localcharset.c: Likewise.
23504
23505 2010-05-07  Jim Meyering  <meyering@redhat.com>
23506
23507         init.sh: improve comments
23508         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
23509         . "${srcdir=.}/init.sh"; path_prepend_ .
23510         Add a note about path_prepend_ and the alternative of using
23511         TESTS_ENVIRONMENT.
23512
23513 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
23514
23515         exclude: Unescape hashed patterns in wildcard mode.
23516         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
23517         to the hash list.
23518         * tests/test-exclude8.sh: New test case.
23519         * modules/exclude-tests: Add new test.
23520
23521 2010-05-05  Eric Blake  <eblake@redhat.com>
23522
23523         verify: automate tests
23524         * modules/verify-tests: New module.
23525         * tests/test-verify.sh: New file.
23526         * tests/test-verify.c: Guard each negative test with a unique id.
23527         Also avoid warning about unused left hand of comma expressions.
23528
23529 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
23530
23531         Further improvements to verify.h, suggested by Eric Blake.
23532         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
23533         the GL_* versions, to avoid collision with OpenGL.
23534         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
23535         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
23536         than testing merely whether it's defined.
23537
23538         Modify verify.h to pacify gcc -Wredundant_decls.
23539         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
23540         These use the prefix "GL_" since they're likely to be useful elsewhere.
23541         We may need to break them out into a different .h file.
23542         (__COUNTER__): Define to 0 if the compiler doesn't support it.
23543         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
23544         of verify_function__.
23545
23546 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
23547
23548         Tests for module pwrite.
23549         * modules/pwrite-tests: New file.
23550         * tests/test-pwrite.sh: New file.
23551         * tests/test-pwrite.c: New file.
23552
23553         New module pwrite.
23554         * lib/unistd.in.h (pwrite): New declaration.
23555         * lib/pwrite.c: New file, from glibc with modifications.
23556         * m4/pwrite.m4: New file.
23557         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
23558         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
23559         REPLACE_PWRITE.
23560         * modules/pwrite: New file.
23561         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
23562         REPLACE_PWRITE.
23563         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
23564         * doc/posix-functions/pwrite.texi: Mention the new module.
23565
23566 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
23567
23568         pread: Update documentation.
23569         * doc/posix-functions/pread.texi: Mention the 'pread' module.
23570
23571 2010-05-04  Eric Blake  <eblake@redhat.com>
23572
23573         docs: update cygwin progress
23574         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
23575         this bug.
23576         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
23577         Added in cygwin 1.7.2.
23578         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
23579         Likewise.
23580         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
23581         Likewise.
23582         * doc/glibc-functions/dup3.texi (dup3): Likewise.
23583         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
23584         * doc/glibc-functions/accept4.texi (accept4): Likewise.
23585         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
23586         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
23587         Mention nproc module.
23588         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
23589         bug in cygwin 1.7.5 addition.
23590         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
23591         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
23592         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
23593         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
23594         1.7.5.
23595         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
23596         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
23597         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
23598         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
23599         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
23600         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
23601         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
23602         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
23603         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
23604         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
23605         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
23606         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
23607         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
23608         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
23609         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
23610         Likewise.
23611         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
23612         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
23613         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
23614         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
23615         Likewise.
23616         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
23617         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
23618         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
23619         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
23620         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
23621         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
23622         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
23623         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
23624         Likewise.
23625         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
23626         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
23627         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
23628         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
23629         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
23630         Likewise.
23631         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
23632         Likewise.
23633         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
23634         Likewise.
23635         * doc/glibc-functions/xdrrec_endofrecord.texi
23636         (xdrrec_endofrecord): Likewise.
23637         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
23638         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
23639         Likewise.
23640         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
23641         Likewise.
23642
23643 2010-05-04  Jim Meyering  <meyering@redhat.com>
23644
23645         gendocs.sh: make its "-s FILE" option more useful
23646         * build-aux/gendocs.sh: When honoring the -s FILE option, update
23647         $PACKAGE to reflect the probably-different basename of "FILE".
23648
23649 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
23650
23651         bootstrap: don't ignore download_po_files failure
23652         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
23653         failure.
23654
23655 2010-05-03  Jim Meyering  <meyering@redhat.com>
23656
23657         maint.mk: allow to pass options to gendocs.sh
23658         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
23659         (gendocs_options_): New overridable variable.
23660
23661         gnu-web-doc-update: don't ignore configure or build failure
23662         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
23663
23664         announce-gen: backslash-escape '@'s in --help output
23665         * build-aux/announce-gen: Fix syntax errors.
23666
23667         maint.mk, announce-gen: allow project-specific announcement mail headers
23668         * top/maint.mk (translation_project_): Define default.
23669         (announcement_Cc_, announcement_mail_headers_): Likewise.
23670         (announcement): Invoke announce-gen with new --mail-headers option.
23671         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
23672
23673         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
23674         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
23675         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
23676         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
23677         line in the "err2" output file when running "make check" in verbose
23678         mode (i.e., with set -x enabled).
23679
23680 2010-05-03  Bruno Haible  <bruno@clisp.org>
23681
23682         wctob: Fix for weird platforms.
23683         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
23684         argument value.
23685
23686 2010-05-03  Jim Meyering  <meyering@redhat.com>
23687
23688         maint.mk: prohibit unwarranted use of <strings.h>
23689         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
23690         strings.h in a file that does not also use strcasecmp, strncasecmp,
23691         ffs or ffsll.
23692
23693         maint.mk: remove obsolete comments
23694         * top/maint.mk: Remove stale, commented-out rules.
23695
23696 2010-05-02  Bruno Haible  <bruno@clisp.org>
23697
23698         wcwidth: Declare also when it's aliased.
23699         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
23700         macro.
23701
23702 2010-05-02  Bruno Haible  <bruno@clisp.org>
23703
23704         Fix regression from 2010-04-25.
23705         * gnulib-tool (func_modules_transitive_closure): Check the status of
23706         all modules, not only of the tests that are of the form foo-tests where
23707         foo is a module.
23708
23709 2010-05-02  Bruno Haible  <bruno@clisp.org>
23710
23711         wctob: Work around nasty Cygwin 1.7.2 bug.
23712         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
23713         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
23714
23715 2010-05-01  Bruno Haible  <bruno@clisp.org>
23716
23717         fpurge: Sharper test.
23718         * tests/test-fpurge.c (main): Add one more ftell check.
23719         * modules/fpurge-tests (Depends-on): Add ftell.
23720         Suggested by Eric Blake.
23721
23722 2010-05-01  Bruno Haible  <bruno@clisp.org>
23723
23724         ftello: Another test.
23725         * tests/test-ftello3.c: New file.
23726         * modules/ftello-tests (Files): Add it.
23727         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
23728         MOSTLYCLEANFILES.
23729
23730         ftell: Another test.
23731         * tests/test-ftell3.c: New file.
23732         * modules/ftell-tests (Files): Add it.
23733         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
23734         MOSTLYCLEANFILES.
23735
23736 2010-05-01  Bruno Haible  <bruno@clisp.org>
23737
23738         ftell, ftello: Work around Solaris bug.
23739         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
23740         * lib/ftello.c: Include stdio-impl.h.
23741         (ftello): On Solaris, when _IOWRT is set, compute the result without
23742         looking at _IOREAD.
23743         * modules/ftello (Files): Add lib/stdio-impl.h.
23744         * doc/posix-functions/ftell.texi: Mention Solaris bug.
23745         * doc/posix-functions/ftello.texi: Likewise.
23746         Reported by Eric Blake.
23747
23748 2010-05-01  Bruno Haible  <bruno@clisp.org>
23749
23750         freading: Adapt to special meaning of _IOREAD flag on Solaris.
23751         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
23752         the _IOWRT flag is also set.
23753
23754 2010-05-01  Bruno Haible  <bruno@clisp.org>
23755
23756         Fix doc about a HP-UX stdio bug.
23757         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
23758         * doc/posix-functions/ftello.texi: Likewise.
23759
23760 2010-05-01  Bruno Haible  <bruno@clisp.org>
23761
23762         lseek test: Fix failure on Solaris.
23763         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
23764         output.
23765
23766 2010-04-30  Jim Meyering  <meyering@redhat.com>
23767
23768         bootstrap: don't ignore failure to generate po*/Makevars
23769         * build-aux/bootstrap (with_gettext): Don't ignore failure
23770         to create po/Makevars or runtime-po/Makevars.
23771
23772 2010-04-29  Eric Blake  <eblake@redhat.com>
23773
23774         headers: relax license to LGPLv2+
23775         * modules/fcntl-h (License): Relax license.
23776         * modules/getopt-posix (License): Likewise.
23777         * modules/locale (License): Likewise.
23778         * modules/math (License): Likewise.
23779         * modules/pty (License): Likewise.
23780         * modules/sched (License): Likewise.
23781         * modules/search (License): Likewise.
23782         * modules/spawn (License): Likewise.
23783         * modules/stdarg (License): Likewise.
23784         * modules/sysexits (License): Likewise.
23785
23786 2010-04-29  Jim Meyering  <meyering@redhat.com>
23787
23788         inttypes: relax license to LGPLv2+
23789         * modules/inttypes (License): Relax license.
23790
23791 2010-04-29  Simon Josefsson  <simon@josefsson.org>
23792
23793         * top/maint.mk (indent): Run twice to produce idempotent results.
23794
23795 2010-04-28  Bruno Haible  <bruno@clisp.org>
23796
23797         getdate: Generate getdate.c in the source directory.
23798         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
23799         MOSTLYCLEANFILES.
23800         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
23801
23802 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
23803
23804         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
23805         is not declared as a const *; avoid warnings in that case.
23806
23807 2010-04-28  Eric Blake  <eblake@redhat.com>
23808
23809         canonicalize-lgpl: avoid compiler warning
23810         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
23811         declaration' / 'extraneous semicolon' warning with some compilers.
23812         Reported by Andreas Gruenbacher.
23813
23814 2010-04-28  Jim Meyering  <meyering@redhat.com>
23815
23816         init.sh: ensure a more reliable exit status when exiting via trap
23817         * tests/init.sh (setup_): Don't rely on $? in signal handler.
23818         Inspired by patches from Dmitry V. Levin.
23819         Also trap on signal 3 (SIGQUIT).
23820
23821 2010-04-27  Bruno Haible  <bruno@clisp.org>
23822
23823         Update doc about utimes().
23824         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
23825         'utimens' module.
23826         Reported by Andreas Gruenbacher <agruen@suse.de>.
23827
23828 2010-04-27  Eric Blake  <eblake@redhat.com>
23829
23830         full-read, full-write: relax license
23831         * modules/full-read (License): Drop to LGPLv2+.
23832         * modules/full-write (License): Likewise.
23833         * modules/safe-read (License): Likewise.
23834         * modules/safe-write (License): Likewise.
23835
23836         pthread: mention library for linking
23837         * modules/pthread (Link): Mention $(LIB_PTHREAD).
23838
23839 2010-04-27  Jim Meyering  <meyering@redhat.com>
23840
23841         maint.mk: fix a bug introduced in last change
23842         * top/maint.mk (gl_assured_headers_): Now that all names are on
23843         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
23844         is not anchored to end of word, it should be adequate.
23845
23846         maint.mk: avoid side-effect in latest syntax-check
23847         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
23848         to run commands via $(shell...), and hence to incur cost only when
23849         the new rule is actually run.
23850
23851         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
23852         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
23853         and use that to create a regexp used to detect all #if HAVE_..._H uses.
23854         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
23855         (gl_assured_headers_, az_, AZ_): Define.
23856         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
23857
23858 2010-04-26  Jim Meyering  <jim@meyering.net>
23859             Bruno Haible  <bruno@clisp.org>
23860
23861         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
23862         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
23863         Prompted by an exchange with Gilles Espinasse.
23864
23865 2010-04-26  Jim Meyering  <meyering@redhat.com>
23866
23867         git-version-gen: aesthetic tweak
23868         * build-aux/git-version-gen: Use "$nl" rather than a literal,
23869         so that the command remains on a single line.
23870
23871 2010-04-26  Eric Blake  <eblake@redhat.com>
23872
23873         git-version-gen: allow use on EBCDIC hosts
23874         * build-aux/git-version-gen (dirty): Use literal rather than tying
23875         ourselves to ascii.
23876         Reported by Steve Goetze.
23877
23878 2010-04-25  Bruno Haible  <bruno@clisp.org>
23879
23880         netdb: Add support for GNULIB_POSIXCHECK.
23881         * lib/netdb.in.h: Include warn-on-use.h.
23882         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
23883         functions are used when GNULIB_POSIXCHECK is defined and the
23884         getaddrinfo module is not in use.
23885         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
23886         freeaddrinfo, gai_strerror, getnameinfo are declared.
23887         * modules/netdb (Depends-on): Add warn-on-use.
23888         (Makefile.am): Include warn-on-use.h in netdb.h.
23889
23890 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
23891
23892         build: avoid "make check" failure without .git/ directory
23893         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
23894         there is no .git/ directory.
23895
23896 2010-04-25  Bruno Haible  <bruno@clisp.org>
23897
23898         ptsname: Fix misuse of ttyname_r.
23899         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
23900         of errno.
23901
23902 2010-04-25  Bruno Haible  <bruno@clisp.org>
23903
23904         ttyname_r: Make it work on Solaris 10.
23905         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
23906         if the system function has the POSIX declaration. Test whether the
23907         function fails if the buffer is less than 128 bytes large.
23908         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
23909         system's ttyname_r function. Provide a reasonably large buffer.
23910         * modules/ttyname_r (Depends-on): Add extensions.
23911         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
23912
23913 2010-04-25  Bruno Haible  <bruno@clisp.org>
23914
23915         Use the 'extensions' module for some more functions on Solaris.
23916         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
23917         module.
23918         * doc/posix-functions/ctime_r.texi: Likewise.
23919         * doc/posix-functions/getgrgid_r.texi: Likewise.
23920         * doc/posix-functions/getgrnam_r.texi: Likewise.
23921         * doc/posix-functions/getpwnam_r.texi: Likewise.
23922         * doc/posix-functions/getpwuid_r.texi: Likewise.
23923         * doc/posix-functions/readdir_r.texi: Likewise.
23924         * doc/posix-functions/sigwait.texi: Likewise.
23925         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
23926         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
23927
23928 2010-04-25  Bruno Haible  <bruno@clisp.org>
23929
23930         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
23931         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
23932         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
23933         * lib/ttyname_r.c: Include <limits.h>.
23934         (ttyname_r): Define using the system's ttyname_r function, if it exists
23935         and not on Solaris.
23936         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
23937         set.
23938         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
23939         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
23940         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
23941         Reported by Simon Josefsson.
23942
23943 2010-04-25  Bruno Haible  <bruno@clisp.org>
23944
23945         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
23946         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
23947         * doc/posix-functions/ctime_r.texi: Likewise.
23948         * doc/posix-functions/getgrgid_r.texi: Likewise.
23949         * doc/posix-functions/getgrnam_r.texi: Likewise.
23950         * doc/posix-functions/getlogin_r.texi: Likewise.
23951         * doc/posix-functions/getpwnam_r.texi: Likewise.
23952         * doc/posix-functions/getpwuid_r.texi: Likewise.
23953         * doc/posix-functions/readdir_r.texi: Likewise.
23954         * doc/posix-functions/sigwait.texi: Likewise.
23955         * doc/posix-functions/ttyname_r.texi: Likewise.
23956         Reported by Simon Josefsson.
23957
23958 2010-04-25  Bruno Haible  <bruno@clisp.org>
23959
23960         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
23961         * gnulib-tool (func_usage): Document that --with-*-tests options apply
23962         also to --create-testdir.
23963         (func_acceptable): Don't consider the status of *-tests modules here.
23964         (func_modules_transitive_closure): Consider it here, before including a
23965         test module.
23966         (func_import, func_create_testdir): Set inc_all_direct_tests,
23967         inc_all_indirect_tests.
23968         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
23969         --create-testdir and --create-megatestdir.
23970
23971 2010-04-25  Bruno Haible  <bruno@clisp.org>
23972
23973         gnulib-tool: Add --without-*-tests options.
23974         * gnulib-tool (func_usage): Document the --without-*-tests options.
23975         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
23976         excl_unportable_tests): New variables.
23977         Fail if they are specified with --import or --update.
23978         (func_acceptable): Respect the excl_*_tests variables.
23979         (func_import): Set the excl_*_tests variables to empty.
23980
23981 2010-04-25  Simon Josefsson  <simon@josefsson.org>
23982             Bruno Haible  <bruno@clisp.org>
23983
23984         Work around a MacOS X 10.4 bug with openpty.
23985         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
23986         * tests/test-openpty.c (main): Close the master side explicitly.
23987
23988 2010-04-25  Bruno Haible  <bruno@clisp.org>
23989
23990         strnlen: Fix a C++ test error on MacOS X and Solaris.
23991         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
23992         the function is not declared.
23993         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
23994         Simon Josefsson.
23995
23996 2010-04-24  Bruno Haible  <bruno@clisp.org>
23997
23998         Avoid a gcc warning.
23999         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
24000         of correct type for %08lx directive.
24001         Reported by Eric Blake.
24002
24003 2010-04-24  Bruno Haible  <bruno@clisp.org>
24004
24005         vasnprintf: Correct errno value in case of out-of-memory.
24006         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
24007         or sprintf. Use the errno value from SNPRINTF or sprintf.
24008         Reported by Ian Beckwith <ianb@erislabs.net>.
24009
24010 2010-04-24  Bruno Haible  <bruno@clisp.org>
24011
24012         ansi-c++-opt: Find correct compiler when cross-compiling.
24013         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
24014         AC_CHECK_PROGS.
24015         Reported by Simon Josefsson.
24016
24017 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
24018
24019         vc-list-files: Add support for subversion
24020         * build-aux/vc-list-files: Use "svn list" to generate the list of
24021         files controlled by subversion.
24022
24023 2010-04-23  Jim Meyering  <meyering@redhat.com>
24024
24025         vc-list-files tests: convert to use init.sh
24026         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
24027         path_prepend_.
24028         Use Exit, not exit.
24029         Use skip_ rather than open coding it.
24030         Remove trap set-up and compare definitions.
24031         * tests/test-vc-list-files-git.sh: Likewise.
24032         * modules/vc-list-files-tests (Files): Add tests/init.sh.
24033
24034 2010-04-22  Simon Josefsson  <simon@josefsson.org>
24035
24036         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
24037         backup files.
24038
24039 2010-04-21  Simon Josefsson  <simon@josefsson.org>
24040
24041         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
24042
24043 2010-04-20  Eric Blake  <eblake@redhat.com>
24044
24045         tests: be robust to ignored SIGPIPE
24046         * tests/test-select-in.sh: Consume all output.
24047         * tests/test-lseek.sh: Check correct exit status, while avoiding
24048         EPIPE.
24049
24050 2010-04-20  Simon Josefsson  <simon@josefsson.org>
24051             Bruno Haible  <bruno@clisp.org>
24052
24053         visibility: Don't use -fvisibility if it leads to a warning.
24054         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
24055         yes, don't pretend that visibility works if it leads to a warning.
24056         Reported by Mike Gran <spk121@yahoo.com>.
24057
24058 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
24059
24060         * build-aux/bootstrap: Use "git -h" for testing for supported options
24061         instead of "git --help".  The short-form option only shows a summary,
24062         and doesn't layout the full man page.  Grep for the full option name
24063         in the summary, too.
24064
24065 2010-04-19  Bruno Haible  <bruno@clisp.org>
24066
24067         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
24068         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
24069         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
24070         mention of RELOCATABLE_STRIP.
24071         Reported by Sylvain Beucler <beuc@beuc.net>.
24072
24073 2010-04-19  Bruno Haible  <bruno@clisp.org>
24074
24075         * lib/diffseq.h: Fix typo in comment.
24076         Reported by Eric Blake.
24077
24078 2010-04-19  Bruno Haible  <bruno@clisp.org>
24079
24080         ioctl: Move autoconf macro to a .m4 file.
24081         * m4/ioctl.m4: New file, extracted from modules/ioctl.
24082         * modules/ioctl (Files): Add it.
24083         (configure.ac): Simply invoke gl_FUNC_IOCTL.
24084         Reported by Ian Beckwith <ianb@erislabs.net>.
24085
24086 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
24087             Bruno Haible  <bruno@clisp.org>
24088
24089         diffseq: Accommodate use-case with abstract arrays.
24090         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
24091         is not defined.
24092         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
24093         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
24094
24095 2010-04-18  Bruno Haible  <bruno@clisp.org>
24096
24097         * doc/posix-headers/stdbool.texi: More precise wording.
24098
24099 2010-04-17  Jim Meyering  <meyering@redhat.com>
24100
24101         maint.mk: use gnu-style indentation in an embedded perl script
24102         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
24103         Rename variable: s/two/last_two_bytes/
24104
24105 2010-04-16  Eric Blake  <eblake@redhat.com>
24106
24107         test-stdbool: skip test that fails with Solaris CC
24108         * tests/test-stdbool.c (f): Skip test that causes compilation
24109         error under buggy C++ compiler.
24110         * lib/stdbool.in.h: Document the limitation.
24111         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
24112
24113         setenv: allow compilation with C++
24114         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
24115         register keyword.
24116
24117         stdint: allow test to pass with C++
24118         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
24119
24120         getopt: allow compilation with C++
24121         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
24122         struct.
24123         * lib/getopt.c (_getopt_internal_r): Use correct type.
24124         Reported by Dagobert Michelson, via Joel E. Denny.
24125
24126 2010-04-16  Bruno Haible  <bruno@clisp.org>
24127
24128         Override netdb.h always.
24129         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
24130         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
24131         Reported by Ludovic Courtès <ludo@gnu.org>.
24132
24133 2010-04-15  Bruno Haible  <bruno@clisp.org>
24134
24135         openpty: Fix mistake from 2010-03-21.
24136         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
24137         Reported by Simon Josefsson.
24138
24139 2010-04-15  Eric Blake  <eblake@redhat.com>
24140
24141         test-forkpty: fix expected signature
24142         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
24143         Reported by Simon Josefsson.
24144
24145 2010-04-15  Jim Meyering  <meyering@redhat.com>
24146
24147         maint.mk: texinfo_suffix_re_: correct the default regexp
24148         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
24149
24150         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
24151         make it configurable via texinfo_suffix_re_.
24152
24153 2010-04-14  Eric Blake  <eblake@redhat.com>
24154
24155         strtok_r: relax license to LGPLv2+
24156         * modules/strtok_r (License): Relax license.
24157         Reported by Matthias Bolte.
24158
24159 2010-04-14  Simon Josefsson  <simon@josefsson.org>
24160
24161         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
24162         version 1.4.4 by default instead of requiring the libgcrypt
24163         version used during build.  This makes it possible to use the
24164         application with older but still binary compatible libgcrypt
24165         versions.
24166
24167 2010-04-13  Eric Blake  <eblake@redhat.com>
24168
24169         getopt-gnu: match recent glibc fixes and posix ruling
24170         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
24171         '+' handling, when requesting extensions.
24172         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
24173         'W;' handling.
24174         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
24175         * doc/posix-functions/getopt.texi (getopt): Document this.
24176         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
24177         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
24178         Likewise.
24179
24180         getopt: merge bug fixes from glibc
24181         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
24182         diagnostics.  Honor '+:' correctly.  Reject ';'.
24183
24184         getopt-posix: detect MacOS bug
24185         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
24186         optind when missing a required argument.
24187         * doc/posix-functions/getopt.texi (getopt): Document the bug.
24188         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
24189         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
24190         Likewise.
24191
24192         getopt-posix: avoid spurious failure on Solaris
24193         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
24194         an indicator that setting optind=1 is sufficient for reset.
24195
24196         getopt-posix: avoid spurious failure on FreeBSD
24197         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
24198         in POSIX mode, since the m4 test uses it.
24199
24200         gnulib-tool: silence warning on BSD sh
24201         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
24202
24203 2010-04-13  Jim Meyering  <meyering@redhat.com>
24204
24205         doc: users.txt: GNU patch now uses gnulib
24206         * users.txt: Add patch.
24207
24208 2010-04-12  Jim Meyering  <meyering@redhat.com>
24209
24210         maint.mk: generate more concise timing data for syntax-check rules
24211         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
24212         " done" from each line that reports a syntax-check test duration.
24213
24214 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
24215
24216         git-version-gen: use "git update-index..." rather than "git status"
24217         * build-aux/git-version-gen: Use git update-index --refresh, not
24218         "git status".  With some versions of git, "git status" would fail
24219         to update the index and result in an unwarranted "-dirty" suffix.
24220
24221 2010-04-11  Jim Meyering  <meyering@redhat.com>
24222
24223         openat: correct formatting (no semantic change)
24224         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
24225         Suggested by Bruno Haible.
24226
24227 2010-04-11  Bruno Haible  <bruno@clisp.org>
24228
24229         Stricter declaration checking in testdirs.
24230         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
24231         If for_tests is true, augment AM_CPPFLAGS to define
24232         GNULIB_STRICT_CHECKING.
24233         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
24234         GNULIB_STRICT_CHECKING is defined, verify that the function is
24235         declared.
24236
24237 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
24238             Bruno Haible  <bruno@clisp.org>
24239
24240         libunistring: Improve configure output.
24241         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
24242         Don't say "consider installing GNU libunistring" when checking again
24243         with libiconv.
24244
24245 2010-04-11  Bruno Haible  <bruno@clisp.org>
24246
24247         libunistring: Correct value of $LTLIBUNISTRING.
24248         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
24249         correct the value of $LTLIBUNISTRING.
24250
24251 2010-04-11  Bruno Haible  <bruno@clisp.org>
24252
24253         havelib: Add static libraries to LIBS in the right order.
24254         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
24255         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
24256
24257 2010-04-11  Bruno Haible  <bruno@clisp.org>
24258
24259         libunistring: Detect libunistring also when it depends on libiconv.
24260         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
24261         the second AC_LIB_HAVE_LINKFLAGS invocation.
24262
24263 2010-04-11  James Youngman  <jay@gnu.org>
24264
24265         close-stream: declare local scalars to be "const"
24266         * lib/close-stream.c (close_stream): Make boolean variables const
24267         to document the fact that we set but do not change them.
24268
24269 2010-04-11  Bruno Haible  <bruno@clisp.org>
24270
24271         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
24272
24273 2010-04-11  Jim Meyering  <meyering@redhat.com>
24274
24275         maint.mk: don't include dist-check.mk
24276         * top/maint.mk: Remove bogus include directive.
24277
24278         maint.mk: improve empty-line-at-EOF check
24279         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
24280         solution, rather than tail+Perl-based one.  The latter would read
24281         a few kilobytes from the end of each file, and did not handle empty
24282         files properly.
24283
24284         maint.mk: print the elapsed time for each syntax-check rule
24285         * top/maint.mk (sc_m_rules_): Save start time in a file.
24286         (sc_z_rules_): New rules: remove temp file and print elapsed time.
24287         (local-check): Interpose the .z rules
24288
24289 2010-04-11  Jim Meyering  <meyering@redhat.com>
24290
24291         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
24292         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
24293         empty file with one that ends in an empty line.
24294
24295 2010-04-10  Bruno Haible  <bruno@clisp.org>
24296
24297         mkdir: Make it work on mingw64.
24298         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
24299         * lib/mkdir.c: Update comment.
24300         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
24301
24302 2010-04-10  Bruno Haible  <bruno@clisp.org>
24303
24304         Don't override improved macro from newer autoconf.
24305         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
24306         autoconf >= 2.62.
24307         Reported by Joel E. Denny <jdenny@clemson.edu>.
24308
24309 2010-04-10  Jim Meyering  <meyering@redhat.com>
24310
24311         maint.mk: new syntax-check rule: prohibit empty lines at end of file
24312         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
24313
24314         maint.mk: correct a diagnostic
24315         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
24316         in diagnostic; now use $prohibit.
24317
24318 2010-04-10  Bruno Haible  <address@hidden>
24319
24320         fchownat: Fix a C++ test error on Solaris 8.
24321         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
24322         the function does not exist.
24323
24324 2010-04-10  Bruno Haible  <bruno@clisp.org>
24325
24326         vasnprintf: Add more tests.
24327         * tests/test-vasnprintf-posix.c: Include <errno.h>.
24328         (test_function): Test converting an invalid wide string.
24329
24330         vasnprintf: Correct handling of unconvertible wide string arguments.
24331         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
24332         VASNPRINTF.
24333         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
24334         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
24335         smaller than the expected maximum need for the directive. Set errno to
24336         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
24337         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
24338         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
24339         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
24340         * modules/vasnprintf (Files): Add m4/printf.m4.
24341         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
24342
24343 2010-04-10  Bruno Haible  <bruno@clisp.org>
24344
24345         vasnprintf: Fix crash in %ls directive.
24346         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
24347         string is passed as argument to %ls, with no precision and no width.
24348         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
24349
24350 2010-04-10  Bruno Haible  <bruno@clisp.org>
24351
24352         vasnprintf: Fix multiple test failures on mingw.
24353         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
24354         _snprintf, or snwprintf, not _snwprintf.
24355
24356 2010-04-10  Bruno Haible  <bruno@clisp.org>
24357
24358         write: Fix a C++ test error on mingw.
24359         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
24360
24361 2010-04-10  Bruno Haible  <bruno@clisp.org>
24362
24363         vasnprintf test: Reduce code duplication.
24364         * tests/test-vasnprintf.c (test_function): New function, extracted from
24365         test_vasnprintf.
24366         (test_vasnprintf, test_asnprintf): Invoke it.
24367
24368 2010-04-10  Bruno Haible  <bruno@clisp.org>
24369
24370         strnlen: Fix warning in C++ mode on MacOS X.
24371         * lib/string.in.h (strnlen): Use the modern idiom.
24372         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
24373         defining strnlen as a macro already in <config.h>.
24374         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
24375         REPLACE_STRNLEN.
24376         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
24377         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
24378
24379 2010-04-08  James Youngman  <jay@gnu.org>
24380
24381         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
24382         the example.
24383
24384 2010-04-09  Jim Meyering  <meyering@redhat.com>
24385
24386         maint.mk: print better diagnostic when there is no $(_hv_file)
24387         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
24388         announce that when $(_hv_file) (aka help-version) does not exist.
24389
24390         init.sh: run tr in the "C" locale to avoid multibyte interpretation
24391         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
24392         not try to interpret its random input bytes.  Jarno Rajahalme reported
24393         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
24394         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
24395         (mktempd_): Likewise, just in case.
24396
24397         ftruncate: add two years to projected module removal date: 2012
24398         * m4/ftruncate.m4: Adjust comments.
24399
24400         ftruncate: mark module as obsolete; even MinGW provides it, now
24401         * modules/ftruncate (Status): Obsolete.
24402         (Notice): Say that.
24403         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
24404         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
24405
24406 2010-04-08  Bruno Haible  <bruno@clisp.org>
24407
24408         Fix side effects from tests-related modules.
24409         * modules/dprintf-posix (Comment): New section.
24410         * modules/fprintf-posix (Comment): Likewise.
24411         * modules/obstack-printf-posix (Comment): Likewise.
24412         * modules/printf-posix (Comment): Likewise.
24413         * modules/snprintf-posix (Comment): Likewise.
24414         * modules/sprintf-posix (Comment): Likewise.
24415         * modules/vasnprintf-posix (Comment): Likewise.
24416         * modules/vasprintf-posix (Comment): Likewise.
24417         * modules/vdprintf-posix (Comment): Likewise.
24418         * modules/vfprintf-posix (Comment): Likewise.
24419         * modules/vprintf-posix (Comment): Likewise.
24420         * modules/vsnprintf-posix (Comment): Likewise.
24421         * modules/vsprintf-posix (Comment): Likewise.
24422         * modules/xprintf-posix (Comment): Likewise.
24423         * modules/xvasprintf-posix (Comment): Likewise.
24424         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
24425         * modules/floorf-tests (Depends-on): Likewise.
24426         * modules/round-tests (Depends-on): Likewise.
24427         * modules/roundf-tests (Depends-on): Likewise.
24428         * modules/trunc-tests (Depends-on): Likewise.
24429         * modules/truncf-tests (Depends-on): Likewise.
24430         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
24431         'fprintf-posix' module is not present.
24432         * tests/test-floorf2.c (check): Likewise.
24433         * tests/test-trunc2.c (check): Likewise.
24434         * tests/test-truncf2.c (check): Likewise.
24435         * tests/test-round2.c (equal): Likewise.
24436         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
24437
24438 2010-04-07  Karl Berry  <karl@gnu.org>
24439
24440         * config/srclist.txt,
24441         * config/srclistvars.sh,
24442         * config/srclist-update: doc fixes.
24443
24444 2010-04-07  Jim Meyering  <meyering@redhat.com>
24445
24446         maint.mk: add a PATH crosschecking syntax-check rule
24447         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
24448         Useful if you use a test like the one in help-version (coreutils,
24449         diffutils, grep, gzip) that ensures $(VERSION) matches what is
24450         printed by prog --version.
24451
24452 2010-04-06  Bruno Haible  <bruno@clisp.org>
24453
24454         Fix link error on mingw.
24455         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
24456         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
24457
24458 2010-04-06  Bruno Haible  <bruno@clisp.org>
24459
24460         Assume rmdir exists.
24461         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
24462
24463 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
24464
24465         doc: update users.txt
24466         * users.txt: Add gcal.
24467
24468 2010-04-06  Jim Meyering  <meyering@redhat.com>
24469
24470         init.sh: simply unset TMPDIR rather than risking env -i
24471         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
24472         although it probably works fine on all Unix-based systems, some
24473         systems (Cygwin?) cannot tolerate a totally cleared environment.
24474         Suggestion from Eric Blake.
24475
24476 2010-04-06  Jim Meyering  <meyering@redhat.com>
24477
24478         init.sh: portability fix: use env's POSIX-specified -i option not -u
24479         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
24480         than unportable env -u.  Solaris 5.11's env lacks support for -u.
24481
24482 2010-04-05  Bruno Haible  <bruno@clisp.org>
24483
24484         btowc: Work around Cygwin 1.7.2 bug.
24485         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
24486         does not map NUL to 0.
24487         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
24488
24489 2010-04-05  Bruno Haible  <bruno@clisp.org>
24490
24491         Make the multithread modules work on Cygwin 1.7.2.
24492         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
24493         imported symbols can be declared weak, so that it returns "no" on
24494         Cygwin 1.7.2.
24495
24496 2010-04-05  Bruno Haible  <bruno@clisp.org>
24497
24498         Use the module 'strncat'.
24499         * modules/unistr/u8-strncat (Depends-on): Add strncat.
24500
24501         Tests for module 'strncat'.
24502         * modules/strncat-tests: New file.
24503         * tests/test-strncat.c: New file.
24504
24505         New module 'strncat'.
24506         * lib/string.in.h (strncat): New declaration.
24507         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
24508         * m4/strncat.m4: New file, based on m4/memchr.m4.
24509         * modules/strncat: New file.
24510         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
24511         is declared.
24512         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
24513         REPLACE_STRNCAT.
24514         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
24515         REPLACE_STRNCAT.
24516         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
24517         module.
24518         * tests/test-string-c++.cc: Check signature of strncat.
24519
24520 2010-04-05  Jim Meyering  <meyering@redhat.com>
24521
24522         xstrtoumax-tests: convert to use init.sh
24523         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
24524         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
24525         Use Exit, not exit.
24526         Remove uses of $EXEEXT and "./" to run a program in the current dir.
24527
24528         xstrtoimax-tests: convert to use init.sh
24529         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
24530         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
24531         Use Exit, not exit.
24532         Remove uses of $EXEEXT and "./" to run a program in the current dir.
24533
24534 2010-04-05  Bruno Haible  <bruno@clisp.org>
24535
24536         sys_socket: Avoid #define replacements in C++ mode.
24537         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
24538         warning to the function if possible, rather than #defining the symbol
24539         to a dysfunctional alias.
24540
24541 2010-04-05  Bruno Haible  <bruno@clisp.org>
24542
24543         fseeko: Fix C++ test error on mingw.
24544         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
24545         gl_FUNC_FSEEKO.
24546         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
24547         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
24548         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
24549         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
24550
24551 2010-04-05  Bruno Haible  <bruno@clisp.org>
24552
24553         duplocale: Improve test output.
24554         * tests/test-duplocale.c (main): Print reason for skipped test.
24555
24556 2010-04-05  Bruno Haible  <bruno@clisp.org>
24557
24558         Assume rmdir exists.
24559         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
24560         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
24561
24562 2010-04-05  Bruno Haible  <bruno@clisp.org>
24563
24564         Fix link error on Solaris 8 with cc.
24565         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
24566
24567 2010-04-05  Bruno Haible  <bruno@clisp.org>
24568
24569         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
24570         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
24571
24572 2010-04-05  Bruno Haible  <bruno@clisp.org>
24573
24574         vasprintf: Update documentation.
24575         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
24576
24577 2010-04-05  Bruno Haible  <bruno@clisp.org>
24578
24579         ptsname: Improve test.
24580         * tests/test-ptsname.c (main): Also try the various master names of BSD
24581         systems.
24582
24583 2010-04-05  Bruno Haible  <bruno@clisp.org>
24584
24585         memchr: Avoid a possible C++ test error.
24586         * lib/string.in.h (memchr): Provide declaration if function is missing.
24587         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
24588         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
24589         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
24590         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
24591
24592 2010-04-05  Bruno Haible  <bruno@clisp.org>
24593
24594         strtok_r: Improve idiom.
24595         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
24596         AC_LIBOBJ is used.
24597
24598 2010-04-05  Bruno Haible  <bruno@clisp.org>
24599
24600         strdup: Improve idiom.
24601         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
24602         AC_LIBOBJ is used.
24603         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
24604         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
24605         when AC_LIBOBJ is used.
24606
24607 2010-04-05  Bruno Haible  <bruno@clisp.org>
24608
24609         mbsinit, mbrtowc, wcrtomb: Improve idioms.
24610         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
24611         don't set REPLACE_MBSINIT to 1.
24612         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
24613         don't set REPLACE_MBRTOWC to 1.
24614         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
24615         exist, don't set REPLACE_MBSRTOWCS to 1.
24616         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
24617         exist, don't set REPLACE_MBSNRTOWCS to 1.
24618         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
24619         don't set REPLACE_WCRTOMB to 1.
24620         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
24621         exist, don't set REPLACE_WCSRTOMBS to 1.
24622         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
24623         exist, don't set REPLACE_WCSNRTOMBS to 1.
24624
24625 2010-04-05  Bruno Haible  <bruno@clisp.org>
24626
24627         ldexpl: Improve idiom.
24628         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
24629         make sure to set HAVE_DECL_LDEXPL to 0.
24630
24631 2010-04-05  Jim Meyering  <meyering@redhat.com>
24632
24633         xstrtol-tests: convert to use init.sh
24634         * modules/xstrtol-tests (Files): Add tests/init.sh.
24635         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
24636         Use Exit, not exit.
24637         Remove uses of $EXEEXT and "./" to run a program in the current dir.
24638
24639         atexit-tests: convert to use init.sh
24640         * modules/atexit-tests (Files): Add tests/init.sh.
24641         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
24642         Use Exit, not exit.
24643         Remove uses of $EXEEXT and "./" to run a program in the current dir.
24644
24645         init.sh: fix typo
24646         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
24647
24648         init.sh: make it easier for a test script to write to the tty, ...
24649         when using automake's parallel-tests mode.
24650         * tests/init.sh (stderr_fileno_): Define overridable variable.
24651         (warn_): New function, to use it.
24652         (fail_, skip_, framework_failure_): Use warn_.
24653
24654 2010-04-04  Bruno Haible  <bruno@clisp.org>
24655
24656         btowc: Avoid warning.
24657         * lib/btowc.c: Include <stdlib.h>.
24658         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
24659
24660 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
24661             Bruno Haible  <bruno@clisp.org>
24662
24663         wchar: Port to NetBSD 1.5.
24664         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
24665         * lib/wctype.in.h (WEOF): Likewise.
24666
24667 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
24668             Bruno Haible  <bruno@clisp.org>
24669
24670         Port extended stdio to NetBSD 1.5.
24671         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
24672         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
24673         older.
24674
24675 2010-04-04  Bruno Haible  <bruno@clisp.org>
24676
24677         string: Remove unused substitution.
24678         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
24679         HAVE_DECL_STRERROR.
24680         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
24681
24682 2010-04-04  Bruno Haible  <bruno@clisp.org>
24683
24684         strtod: Avoid a possible C++ test error.
24685         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
24686         set REPLACE_STRTOD.
24687
24688 2010-04-04  Bruno Haible  <bruno@clisp.org>
24689
24690         strerror: Update documentation.
24691         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
24692
24693 2010-04-04  Bruno Haible  <bruno@clisp.org>
24694
24695         stdio: Fix some C++ test errors on Solaris 8 with GCC.
24696         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
24697         _GL_CXXALIAS_SYS_CAST.
24698
24699 2010-04-04  Bruno Haible  <bruno@clisp.org>
24700
24701         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
24702         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
24703         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
24704         REPLACE_FREXPL to 1.
24705         * doc/posix-functions/frexpl.texi: Update documentation.
24706
24707 2010-04-04  Bruno Haible  <bruno@clisp.org>
24708
24709         math: Fix some C++ test errors on Solaris 8 and Cygwin.
24710         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
24711
24712 2010-04-04  Bruno Haible  <bruno@clisp.org>
24713
24714         Implement nanosleep for native Windows.
24715         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
24716
24717 2010-04-04  Bruno Haible  <bruno@clisp.org>
24718
24719         math: Fix some C++ test errors on Solaris 8.
24720         * lib/math.in.h (truncf, trunc): Use simpler idiom.
24721
24722 2010-04-04  Bruno Haible  <bruno@clisp.org>
24723
24724         math: Fix some C++ test errors on Cygwin.
24725         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
24726         truncl): Provide declaration if the system does not have it.
24727         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
24728         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
24729         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
24730         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
24731         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
24732         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
24733         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
24734         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
24735         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
24736         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
24737         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
24738         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
24739         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
24740         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
24741         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
24742         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
24743         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
24744         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
24745         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
24746         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
24747         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
24748         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
24749
24750 2010-04-04  Bruno Haible  <bruno@clisp.org>
24751
24752         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
24753         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
24754         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
24755         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
24756         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
24757         * m4/isinf.m4 (gl_ISINF): Likewise.
24758         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
24759
24760 2010-04-04  Bruno Haible  <bruno@clisp.org>
24761
24762         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
24763         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
24764
24765 2010-04-04  Bruno Haible  <bruno@clisp.org>
24766
24767         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
24768         * modules/tmpfile (configure.ac): Update.
24769
24770         tmpfile: Fix C++ test error on mingw.
24771         * lib/stdio.in.h (tmpfile): New declaration.
24772         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
24773         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
24774         * modules/tmpfile (Depends-on): Add stdio.
24775         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
24776         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
24777         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
24778         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
24779         REPLACE_TMPFILE.
24780         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
24781
24782 2010-04-04  Bruno Haible  <bruno@clisp.org>
24783
24784         ioctl: Fix C++ test error on mingw.
24785         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
24786         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
24787         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
24788
24789 2010-04-03  Bruno Haible  <bruno@clisp.org>
24790
24791         wcwidth: Fix C++ test error on mingw.
24792         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
24793         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
24794         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
24795
24796 2010-04-03  Bruno Haible  <bruno@clisp.org>
24797
24798         nanosleep: Fix C++ test error on mingw.
24799         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
24800         * lib/time.in.h (nanosleep): Use modern idiom.
24801         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
24802         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
24803         REPLACE_NANOSLEEP to 1.
24804         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
24805         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
24806
24807 2010-04-03  Bruno Haible  <bruno@clisp.org>
24808
24809         strptime: Fix C++ test error on mingw.
24810         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
24811         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
24812         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
24813         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
24814         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
24815         not REPLACE_STRPTIME.
24816         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
24817         REPLACE_STRPTIME.
24818
24819 2010-04-03  Bruno Haible  <bruno@clisp.org>
24820
24821         timegm: Fix C++ test error on mingw.
24822         * lib/time.in.h (timegm): Use modern idiom.
24823         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
24824         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
24825         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
24826         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
24827
24828 2010-04-03  Bruno Haible  <bruno@clisp.org>
24829
24830         timegm: Assume declaration if function exists.
24831         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
24832         if it exists. Don't clobber ac_cv_func_timegm.
24833
24834 2010-04-03  Bruno Haible  <bruno@clisp.org>
24835
24836         time_r: Fix C++ test error on mingw.
24837         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
24838         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
24839         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
24840         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
24841         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
24842
24843 2010-04-03  Bruno Haible  <bruno@clisp.org>
24844
24845         time_r: Minor updates.
24846         * modules/time_r (Description): Mention the provided functions.
24847         * lib/time_r.c: Don't include <string.h>.
24848         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
24849         * doc/posix-functions/localtime_r.texi: Likewise.
24850
24851 2010-04-03  Bruno Haible  <bruno@clisp.org>
24852
24853         time: Fix regression introduced on 2010-03-08.
24854         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
24855         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
24856
24857 2010-04-03  Jim Meyering  <meyering@redhat.com>
24858
24859         maint.mk: don't silently disable project-specific syntax-check rules
24860         * top/maint.mk (_prohibit_regexp): Define, to help people realize
24861         that they need to convert their project-specific syntax-check rules
24862         to use the new _sc_search_regexp.
24863
24864 2010-04-03  Bruno Haible  <bruno@clisp.org>
24865
24866         fchdir: Fix regression introduced on 2010-03-08.
24867         * lib/unistd.in.h (fchdir): Fix declaration.
24868         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
24869         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
24870         REPLACE_FCHDIR.
24871         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
24872         REPLACE_FCHDIR.
24873
24874 2010-04-03  Bruno Haible  <bruno@clisp.org>
24875
24876         getpagesize: Fix C++ test error on mingw.
24877         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
24878         system does not declare the function.
24879         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
24880         declared.
24881         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
24882         HAVE_DECL_GETPAGESIZE.
24883         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
24884
24885 2010-04-03  Bruno Haible  <bruno@clisp.org>
24886
24887         stdio: Make C++ tests work on mingw.
24888         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
24889         does not declare the function.
24890
24891 2010-04-03  Bruno Haible  <bruno@clisp.org>
24892
24893         ftello: Fix C++ test error on mingw.
24894         * lib/stdio.in.h (ftello): Use modern idiom.
24895         * lib/ftello.c (ftello): Renamed from rpl_ftello.
24896         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
24897         is missing and that it needs to be replaced.
24898         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
24899         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
24900         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
24901
24902 2010-04-03  Bruno Haible  <bruno@clisp.org>
24903
24904         fseeko: Fix C++ test error on mingw.
24905         * lib/stdio.in.h (fseeko): Use modern idiom.
24906         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
24907         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
24908         is missing and that it needs to be replaced.
24909         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
24910         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
24911         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
24912
24913 2010-04-03  Bruno Haible  <bruno@clisp.org>
24914
24915         mkstemp: Fix C++ test error on mingw.
24916         * lib/stdlib.in.h (mkstemp): Use modern idiom.
24917         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
24918         function is missing and that it needs to be replaced.
24919         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
24920         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
24921
24922 2010-04-03  Bruno Haible  <bruno@clisp.org>
24923
24924         stpncpy: Fix C++ test error on mingw.
24925         * lib/string.in.h (stpncpy): Use modern idiom.
24926         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
24927         function is missing and that it needs to be replaced.
24928         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
24929         REPLACE_STPNCPY.
24930         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
24931
24932 2010-04-03  Bruno Haible  <bruno@clisp.org>
24933
24934         sys_stat: Fix C++ test error on mingw.
24935         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
24936         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
24937
24938 2010-04-03  Bruno Haible  <bruno@clisp.org>
24939
24940         pty: Update doc.
24941         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
24942
24943 2010-04-03  Bruno Haible  <bruno@clisp.org>
24944
24945         unistd: Fix C++ test error on mingw.
24946         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
24947
24948 2010-04-03  Bruno Haible  <bruno@clisp.org>
24949
24950         Update doc regarding mingw.
24951         * doc/glibc-functions/openpty.texi: Update regarding mingw.
24952         * doc/glibc-functions/login_tty.texi: Likewise.
24953         * doc/glibc-functions/forkpty.texi: Likewise.
24954
24955 2010-04-03  Bruno Haible  <bruno@clisp.org>
24956
24957         stdlib: Avoid compilation failure of c-strtold on mingw.
24958         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
24959
24960 2010-04-03  Bruno Haible  <bruno@clisp.org>
24961
24962         locale: Make C++ tests work on Cygwin and mingw.
24963         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
24964         cannot provide the function.
24965         Reported by Simon Josefsson.
24966
24967 2010-04-03  Bruno Haible  <bruno@clisp.org>
24968
24969         localename: Port to MacOS X 10.6.
24970         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
24971         memory layout of the locales in MacOS X 10.6 as well.
24972         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
24973
24974 2010-04-02  Bruno Haible  <bruno@clisp.org>
24975
24976         gnulib-tool: Ensure that long-running tests are executed last.
24977         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
24978         running tests after the one for the other tests.
24979
24980 2010-04-02  Bruno Haible  <bruno@clisp.org>
24981
24982         gnulib-tool: Ensure the tests in the main directory are executed first.
24983         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
24984         start with the current directory.
24985
24986 2010-04-02  Bruno Haible  <bruno@clisp.org>
24987
24988         Tests for module 'havelib', moved here from GNU gettext.
24989         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
24990         modifications.
24991         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
24992         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
24993         with modifications.
24994         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
24995         modifications.
24996         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
24997         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
24998         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
24999         with modifications.
25000         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
25001         with modifications.
25002         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
25003         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
25004         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
25005         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
25006         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
25007         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
25008         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
25009         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
25010         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
25011         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
25012         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
25013         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
25014         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
25015         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
25016         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
25017         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
25018         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
25019         with modifications.
25020         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
25021         with modifications.
25022         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
25023         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
25024         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
25025         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
25026         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
25027         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
25028         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
25029         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
25030         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
25031         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
25032         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
25033         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
25034         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
25035         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
25036         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
25037         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
25038         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
25039         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
25040         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
25041         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
25042         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
25043         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
25044         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
25045         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
25046         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
25047         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
25048         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
25049         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
25050         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
25051         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
25052         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
25053         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
25054         * tests/havelib/rpathx/rpathx.c: New file, from
25055         gettext/autoconf-lib-link.
25056         * tests/havelib/rpathx/Makefile.am: New file, from
25057         gettext/autoconf-lib-link.
25058         * tests/havelib/rpathx/configure.ac: New file, from
25059         gettext/autoconf-lib-link with modifications.
25060         * tests/havelib/rpathy/rpathy.c: New file, from
25061         gettext/autoconf-lib-link.
25062         * tests/havelib/rpathy/Makefile.am: New file, from
25063         gettext/autoconf-lib-link.
25064         * tests/havelib/rpathy/configure.ac: New file, from
25065         gettext/autoconf-lib-link with modifications.
25066         * tests/havelib/rpathz/rpathz.c: New file, from
25067         gettext/autoconf-lib-link.
25068         * tests/havelib/rpathz/Makefile.am: New file, from
25069         gettext/autoconf-lib-link.
25070         * tests/havelib/rpathz/configure.ac: New file, from
25071         gettext/autoconf-lib-link with modifications.
25072         * tests/havelib/rpathlx/usex.c: New file, from
25073         gettext/autoconf-lib-link.
25074         * tests/havelib/rpathlx/Makefile.am: New file, from
25075         gettext/autoconf-lib-link.
25076         * tests/havelib/rpathlx/configure.ac: New file, from
25077         gettext/autoconf-lib-link with modifications.
25078         * tests/havelib/rpathly/usey.c: New file, from
25079         gettext/autoconf-lib-link.
25080         * tests/havelib/rpathly/Makefile.am: New file, from
25081         gettext/autoconf-lib-link.
25082         * tests/havelib/rpathly/configure.ac: New file, from
25083         gettext/autoconf-lib-link with modifications.
25084         * tests/havelib/rpathlz/usez.c: New file, from
25085         gettext/autoconf-lib-link.
25086         * tests/havelib/rpathlz/Makefile.am: New file, from
25087         gettext/autoconf-lib-link.
25088         * tests/havelib/rpathlz/configure.ac: New file, from
25089         gettext/autoconf-lib-link with modifications.
25090         * tests/havelib/rpathlyx/usey.c: New file, from
25091         gettext/autoconf-lib-link.
25092         * tests/havelib/rpathlyx/Makefile.am: New file, from
25093         gettext/autoconf-lib-link.
25094         * tests/havelib/rpathlyx/configure.ac: New file, from
25095         gettext/autoconf-lib-link with modifications.
25096         * tests/havelib/rpathlzyx/usez.c: New file, from
25097         gettext/autoconf-lib-link.
25098         * tests/havelib/rpathlzyx/Makefile.am: New file, from
25099         gettext/autoconf-lib-link.
25100         * tests/havelib/rpathlzyx/configure.ac: New file, from
25101         gettext/autoconf-lib-link with modifications.
25102         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
25103         with modifications.
25104
25105 2010-04-02  Bruno Haible  <bruno@clisp.org>
25106
25107         gnulib-tool: Create distributed built sources also for the tests.
25108         * gnulib-tool (func_create_testdir): Also generate distributed built
25109         sources in the tests directory.
25110
25111 2010-04-02  Bruno Haible  <bruno@clisp.org>
25112
25113         gnulib-tool: Obey user's environment variables.
25114         * gnulib-tool (func_create_testdir): When creating built sources,
25115         respect the environment variables for autoconf, automake, etc. given by
25116         the user.
25117
25118 2010-04-02  Bruno Haible  <bruno@clisp.org>
25119
25120         gnulib-tool: Provide the value of --m4-base to modules.
25121         * gnulib-tool (func_import, func_create_testdir): Emit a definition
25122         of gl_m4_base.
25123
25124 2010-04-02  Eric Blake  <eblake@redhat.com>
25125
25126         maint.mk: fix some fallout
25127         * NEWS: Document the incompatible change, and its effect on cfg.mk.
25128         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
25129
25130 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
25131
25132         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
25133         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
25134         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
25135         (sc_cast_of_x_alloc_return_value): Likewise.
25136         (sc_cast_of_alloca_return_value): Likewise.
25137         (sc_space_tab): Likewise.
25138         (sc_prohibit_atoi_atof): Likewise.
25139         (sc_prohibit_magic_number_exit): Likewise.
25140         (sc_error_exit_success): Likewise.
25141         (sc_file_system): Likewise.
25142         (sc_prohibit_have_config_h): Likewise.
25143         (sc_require_config_h): Likewise.
25144         (sc_prohibit_HAVE_MBRTOWC): Likewise.
25145         (sc_obsolete_symbols): Likewise.
25146         (sc_changelog): Likewise.
25147         (sc_program_name): Likewise.
25148         (sc_the_the): Likewise.
25149         (sc_trailing_blank): Likewise.
25150         (sc_two_space_separator_in_usage): Likewise.
25151         (sc_useless_cpp_parens): Likewise.
25152         (sc_GPL_version): Likewise.
25153         (sc_GFDL_version): Likewise.
25154         (sc_texinfo_acronym): Likewise.
25155         (sc_prohibit_cvs_keyword): Likewise.
25156         (sc_prohibit_stat_st_blocks): Likewise.
25157         (sc_prohibit_S_IS_definition): Likewise.
25158         (sc_redundant_const): Likewise.
25159         (sc_makefile_TAB_only_indentation): Likewise.
25160         (sc_m4_quote_check): Likewise.
25161         (sc_makefile_path_separator_check): Likewise.
25162         (sc_copyright_check): Likewise.
25163         (sc_Wundef_boolean): Likewise.
25164         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
25165
25166         maint.mk: match 0 or more whitespace-before-function-call '('
25167         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
25168         that have zero or two-and-more spaces between the function name
25169         and the open parenthesis.
25170         (sc_error_message_warn_fatal): Likewise.
25171         (sc_error_message_uppercase): Likewise.
25172         (sc_error_message_period): Likewise.
25173
25174 2010-03-31  Eric Blake  <eblake@redhat.com>
25175
25176         maint.mk: check for [ as well as test
25177         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
25178         Based on a libvirt report by Matthias Bolte.
25179
25180         gnumakefile: don't squelch _version output
25181         * top/GNUmakefile (_version): Create one-shot dependency rather
25182         than using $(shell) when version must be regenerated.
25183         (_autoreconf): Run verbosely, by default.
25184
25185         sys_time: avoid compiler warnings
25186         * lib/sys_time.in.h (includes): Ensure gcc pragma is
25187         unconditional, fixing regression from 2010-03-29.
25188         Reported by Simon Josefsson.
25189
25190 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
25191
25192         maint.mk: s/_header_without_use/_sc_header_without_use/
25193         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
25194         (sc_prohibit_assert_without_use): Use the new name.
25195         (sc_prohibit_close_stream_without_use): Likewise.
25196         (sc_prohibit_getopt_without_use): Likewise.
25197         (sc_prohibit_quotearg_without_use): Likewise.
25198         (sc_prohibit_quote_without_use): Likewise.
25199         (sc_prohibit_long_options_without_use): Likewise.
25200         (sc_prohibit_inttostr_without_use): Likewise.
25201         (sc_prohibit_ignore_value_without_use): Likewise.
25202         (sc_prohibit_error_without_use): Likewise.
25203         (sc_prohibit_xalloc_without_use): Likewise.
25204         (sc_prohibit_hash_without_use): Likewise.
25205         (sc_prohibit_hash_pjw_without_use): Likewise.
25206         (sc_prohibit_safe_read_without_use): Likewise.
25207         (sc_prohibit_argmatch_without_use): Likewise.
25208         (sc_prohibit_canonicalize_without_use): Likewise.
25209         (sc_prohibit_root_dev_ino_without_use): Likewise.
25210         (sc_prohibit_openat_without_use): Likewise.
25211         (sc_prohibit_c_ctype_without_use): Likewise.
25212         (sc_prohibit_signal_without_use): Likewise.
25213         (sc_prohibit_intprops_without_use): Likewise.
25214
25215 2010-03-30  Eric Blake  <eblake@redhat.com>
25216
25217         maint: improve module indicators
25218         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
25219         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
25220         columns, and avoid extra macro expansion.
25221
25222         fdopendir: work around FreeBSD bug
25223         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
25224         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
25225         * modules/dirent (Makefile.am): Substitute it.
25226         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
25227         declaration.
25228         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
25229         fix.
25230         Reported by Christian Weisgerber <naddy@mips.inka.de>.
25231
25232 2010-03-29  Bruno Haible  <bruno@clisp.org>
25233
25234         Emit #pragma system_header after the inclusion guard, not before.
25235         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
25236         guard that spans the entire file, not before. This enables an
25237         optimization in GCC's preprocessor.
25238         * lib/ctype.in.h: Likewise.
25239         * lib/dirent.in.h: Likewise.
25240         * lib/errno.in.h: Likewise.
25241         * lib/float.in.h: Likewise.
25242         * lib/getopt.in.h: Likewise.
25243         * lib/iconv.in.h: Likewise.
25244         * lib/langinfo.in.h: Likewise.
25245         * lib/locale.in.h: Likewise.
25246         * lib/math.in.h: Likewise.
25247         * lib/netdb.in.h: Likewise.
25248         * lib/netinet_in.in.h: Likewise.
25249         * lib/pty.in.h: Likewise.
25250         * lib/sched.in.h: Likewise.
25251         * lib/se-selinux.in.h: Likewise.
25252         * lib/search.in.h: Likewise.
25253         * lib/spawn.in.h: Likewise.
25254         * lib/stdarg.in.h: Likewise.
25255         * lib/stdint.in.h: Likewise.
25256         * lib/string.in.h: Likewise.
25257         * lib/strings.in.h: Likewise.
25258         * lib/sys_file.in.h: Likewise.
25259         * lib/sys_ioctl.in.h: Likewise.
25260         * lib/sys_time.in.h: Likewise.
25261         * lib/sys_times.in.h: Likewise.
25262         * lib/sys_utsname.in.h: Likewise.
25263         * lib/sys_wait.in.h: Likewise.
25264         * lib/sysexits.in.h: Likewise.
25265         * lib/wctype.in.h: Likewise.
25266
25267 2010-03-28  James Youngman  <jay@gnu.org>
25268
25269         save-cwd: don't leak a file descriptor when the caller execs.
25270         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
25271         saved file descriptor.
25272         * modules/save-cwd (Depends-on): Depend on cloexec.
25273
25274 2010-03-29  Bruno Haible  <bruno@clisp.org>
25275
25276         Remove vestiges of fts-lgpl module.
25277         * lib/fts_.h: Assume GNULIB_FTS is 1.
25278         * lib/fts.c: Likewise.
25279         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
25280
25281 2010-03-28  Bruno Haible  <bruno@clisp.org>
25282
25283         Fix definition of tests witness macro.
25284         * gnulib-tool (func_import): Fix definition of witness macro.
25285
25286 2010-03-28  Bruno Haible  <bruno@clisp.org>
25287
25288         Fix ioctl's protoype on glibc systems.
25289         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
25290         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
25291         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
25292         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
25293         signature. If not, arrange to replace the ioctl function.
25294         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
25295         REPLACE_IOCTL.
25296         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
25297         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
25298         Reported by Ludovic Courtès <ludo@gnu.org>.
25299
25300 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
25301
25302         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
25303         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
25304         made it so grep -r --include=GLOB* ... did not work.
25305
25306 2010-03-26  Jim Meyering  <meyering@redhat.com>
25307             Eric Blake  <eblake@redhat.com>
25308
25309         maint.mk: prohibit use of test's -o and -a operators
25310         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
25311
25312 2010-03-28  Bruno Haible  <bruno@clisp.org>
25313
25314         Remove unused GNULIB_XYZ macro definitions.
25315         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
25316         invocation.
25317
25318 2010-03-28  Bruno Haible  <bruno@clisp.org>
25319
25320         Mark privileged tests modules.
25321         * modules/idpriv-drop-tests (Status): New section.
25322         * modules/idpriv-droptemp-tests (Status): New section.
25323
25324 2010-03-28  Bruno Haible  <bruno@clisp.org>
25325
25326         Split C++ tests into separate tests modules.
25327         * modules/dirent-c++-tests: New file, extracted from
25328         modules/dirent-tests.
25329         * modules/dirent-tests: Depend on it.
25330         * modules/fcntl-h-c++-tests: New file, extracted from
25331         modules/fcntl-h-tests.
25332         * modules/fcntl-h-tests: Depend on it.
25333         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
25334         * modules/glob-tests: Depend on it.
25335         * modules/iconv-h-c++-tests: New file, extracted from
25336         modules/iconv-h-tests.
25337         * modules/iconv-h-tests: Depend on it.
25338         * modules/langinfo-c++-tests: New file, extracted from
25339         modules/langinfo-tests.
25340         * modules/langinfo-tests: Depend on it.
25341         * modules/locale-c++-tests: New file, extracted from
25342         modules/locale-tests.
25343         * modules/locale-tests: Depend on it.
25344         * modules/math-c++-tests: New file, extracted from modules/math-tests.
25345         * modules/math-tests: Depend on it.
25346         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
25347         * modules/pty-tests: Depend on it.
25348         * modules/search-c++-tests: New file, extracted from
25349         modules/search-tests.
25350         * modules/search-tests: Depend on it.
25351         * modules/signal-c++-tests: New file, extracted from
25352         modules/signal-tests.
25353         * modules/signal-tests: Depend on it.
25354         * modules/spawn-c++-tests: New file, extracted from
25355         modules/spawn-tests.
25356         * modules/spawn-tests: Depend on it.
25357         * modules/stdio-c++-tests: New file, extracted from
25358         modules/stdio-tests.
25359         * modules/stdio-tests: Depend on it.
25360         * modules/stdlib-c++-tests: New file, extracted from
25361         modules/stdlib-tests.
25362         * modules/stdlib-tests: Depend on it.
25363         * modules/string-c++-tests: New file, extracted from
25364         modules/string-tests.
25365         * modules/string-tests: Depend on it.
25366         * modules/sys_ioctl-c++-tests: New file, extracted from
25367         modules/sys_ioctl-tests.
25368         * modules/sys_ioctl-tests: Depend on it.
25369         * modules/sys_select-c++-tests: New file, extracted from
25370         modules/sys_select-tests.
25371         * modules/sys_select-tests: Depend on it.
25372         * modules/sys_socket-c++-tests: New file, extracted from
25373         modules/sys_socket-tests.
25374         * modules/sys_socket-tests: Depend on it.
25375         * modules/sys_stat-c++-tests: New file, extracted from
25376         modules/sys_stat-tests.
25377         * modules/sys_stat-tests: Depend on it.
25378         * modules/sys_time-c++-tests: New file, extracted from
25379         modules/sys_time-tests.
25380         * modules/sys_time-tests: Depend on it.
25381         * modules/time-c++-tests: New file, extracted from modules/time-tests.
25382         * modules/time-tests: Depend on it.
25383         * modules/unistd-c++-tests: New file, extracted from
25384         modules/unistd-tests.
25385         * modules/unistd-tests: Depend on it.
25386         * modules/wchar-c++-tests: New file, extracted from
25387         modules/wchar-tests.
25388         * modules/wchar-tests: Depend on it.
25389         * modules/wctype-c++-tests: New file, extracted from
25390         modules/wctype-tests.
25391         * modules/wctype-tests: Depend on it.
25392         Reported by Simon Josefsson.
25393
25394 2010-03-28  Bruno Haible  <bruno@clisp.org>
25395
25396         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
25397         * gnulib-tool (func_exists_module): New function, extracted from
25398         func_verify_module.
25399         (func_verify_module): Use it.
25400         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
25401         'foo' only if 'foo' exists.
25402         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
25403         module.
25404
25405 2010-03-28  Bruno Haible  <bruno@clisp.org>
25406
25407         gnulib-tool: Add support for special categories of tests.
25408         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
25409         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
25410         (func_usage): Document them.
25411         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
25412         inc_unportable_tests, inc_all_tests): New variables.
25413         (func_acceptable): Consider these variables.
25414         (func_modules_transitive_closure): Make it work when the 'Status' field
25415         consists of multiple words.
25416         (func_import): Store and restore the values of inc_cxx_tests,
25417         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
25418         inc_all_tests in gnulib-comp.m4.
25419         (func_create_testdir): Set inc_all_tests to true.
25420         * doc/gnulib.texi (Extra tests modules): New section.
25421         Suggested by Jim Meyering.
25422
25423 2010-03-28  Bruno Haible  <bruno@clisp.org>
25424
25425         ansi-c++-opt: Allow turning off the C++ build by default.
25426         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
25427         gl_CXX_CHOICE_DEFAULT_NO is defined.
25428         Requested by Eric Blake.
25429
25430 2010-03-28  Bruno Haible  <bruno@clisp.org>
25431
25432         unistd: Avoid #define replacements in C++ mode.
25433         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
25434         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
25435         setsockopt, shutdown, select): In C++, attach a warning to the function
25436         if possible, rather than #defining the symbol to a dysfunctional alias.
25437         Reported by John W. Eaton <jwe@gnu.org>.
25438
25439 2010-03-28  Bruno Haible  <bruno@clisp.org>
25440
25441         Fix link errors on mingw.
25442         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
25443         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
25444         $(LIBSOCKET).
25445         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
25446         $(LIBSOCKET).
25447
25448 2010-03-28  Bruno Haible  <bruno@clisp.org>
25449             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25450
25451         lib-ignore: Determine different options for different compilers.
25452         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
25453         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
25454         Add comments.
25455         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
25456         * NEWS: Mention the change.
25457
25458 2010-03-27  Bruno Haible  <bruno@clisp.org>
25459
25460         Remove unused GNULIB_XYZ macro definitions.
25461         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
25462         * modules/fseek (configure.ac): Likewise.
25463         * modules/ioctl (configure.ac): Likewise.
25464         * modules/open (configure.ac): Likewise.
25465         * modules/stdlib-safer (configure.ac): Likewise.
25466
25467 2010-03-27  Bruno Haible  <bruno@clisp.org>
25468
25469         Add a remark about certain modules.
25470         * modules/malloc (Comment): New section.
25471         * modules/realloc (Comment): Likewise.
25472         * modules/sigpipe (Comment): Likewise.
25473
25474 2010-03-27  Bruno Haible  <bruno@clisp.org>
25475
25476         Resolve conflict between the two kinds of module indicators.
25477         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
25478         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
25479         * modules/canonicalize (configure.ac): Invoke
25480         gl_MODULE_INDICATOR_FOR_TESTS.
25481         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
25482         GNULIB_XYZ.
25483         * tests/test-dirent-c++.cc: Likewise.
25484         * tests/test-dirent-safer.c: Likewise.
25485         * tests/test-dup2.c: Likewise.
25486         * tests/test-fchdir.c: Likewise.
25487         * tests/test-fcntl-h-c++.cc: Likewise.
25488         * tests/test-getopt.c: Likewise.
25489         * tests/test-getopt.h: Likewise.
25490         * tests/test-langinfo-c++.cc: Likewise.
25491         * tests/test-locale-c++.cc: Likewise.
25492         * tests/test-math-c++.cc: Likewise.
25493         * tests/test-pty-c++.cc: Likewise.
25494         * tests/test-search-c++.cc: Likewise.
25495         * tests/test-signal-c++.cc: Likewise.
25496         * tests/test-spawn-c++.cc: Likewise.
25497         * tests/test-stdio-c++.cc: Likewise.
25498         * tests/test-stdlib-c++.cc: Likewise.
25499         * tests/test-string-c++.cc: Likewise.
25500         * tests/test-sys_ioctl-c++.cc: Likewise.
25501         * tests/test-sys_select-c++.cc: Likewise.
25502         * tests/test-sys_socket-c++.cc: Likewise.
25503         * tests/test-sys_stat-c++.cc: Likewise.
25504         * tests/test-sys_time-c++.cc: Likewise.
25505         * tests/test-time-c++.cc: Likewise.
25506         * tests/test-unistd-c++.cc: Likewise.
25507         * tests/test-wchar-c++.cc: Likewise.
25508         * tests/uninorm/test-u8-nfc.c: Likewise.
25509         * tests/uninorm/test-u8-nfd.c: Likewise.
25510         * tests/uninorm/test-u8-nfkc.c: Likewise.
25511         * tests/uninorm/test-u8-nfkd.c: Likewise.
25512         * tests/uninorm/test-u16-nfc.c: Likewise.
25513         * tests/uninorm/test-u16-nfd.c: Likewise.
25514         * tests/uninorm/test-u16-nfkc.c: Likewise.
25515         * tests/uninorm/test-u16-nfkd.c: Likewise.
25516         * tests/uninorm/test-u32-nfc.c: Likewise.
25517         * tests/uninorm/test-u32-nfc-big.c: Likewise.
25518         * tests/uninorm/test-u32-nfd.c: Likewise.
25519         * tests/uninorm/test-u32-nfd-big.c: Likewise.
25520         * tests/uninorm/test-u32-nfkc.c: Likewise.
25521         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
25522         * tests/uninorm/test-u32-nfkd.c: Likewise.
25523         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
25524         * tests/uninorm/test-u32-normalize-big.c: Likewise.
25525
25526 2010-03-27  Bruno Haible  <bruno@clisp.org>
25527
25528         Distinguish two kinds of module indicators.
25529         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
25530         gl_MODULE_INDICATOR.
25531         (gl_MODULE_INDICATOR): New macro.
25532         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
25533         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
25534         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
25535         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
25536         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
25537         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
25538         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
25539         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
25540         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
25541         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
25542         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
25543         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
25544         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
25545         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
25546         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
25547         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
25548         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
25549         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
25550         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
25551         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
25552         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
25553         * modules/cloexec (configure.ac): Likewise.
25554         * modules/getopt-gnu (configure.ac): Likewise.
25555         * modules/uninorm/u8-normalize (configure.ac): Likewise.
25556         * modules/uninorm/u16-normalize (configure.ac): Likewise.
25557         * modules/uninorm/u32-normalize (configure.ac): Likewise.
25558         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
25559
25560 2010-03-27  Bruno Haible  <bruno@clisp.org>
25561
25562         New module description field 'Comment'.
25563         * gnulib-tool: New option --extract-comment.
25564         (func_usage): Document it.
25565         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
25566         (func_get_comment): New function.
25567         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
25568
25569 2010-03-27  Bruno Haible  <bruno@clisp.org>
25570
25571         Addendum to 2010-02-07 commit.
25572         * gnulib-tool (func_usage): Document --extract-applicability option.
25573
25574 2010-03-27  Bruno Haible  <bruno@clisp.org>
25575
25576         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
25577         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
25578         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
25579         rather than link errors.
25580
25581 2010-03-27  Bruno Haible  <bruno@clisp.org>
25582
25583         Avoid side effects from tests-related modules on the compilation of lib.
25584         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
25585         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
25586         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
25587         parameter. Emit into AM_CPPFLAGS a definition of the designated C
25588         macro.
25589         (func_import): Define a witness macro. Assign it a value that depends
25590         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
25591         tests-related modules.
25592         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
25593         Reported by Jim Meyering.
25594
25595 2010-03-27  Bruno Haible  <bruno@clisp.org>
25596
25597         Factorize common .m4 code.
25598         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
25599         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
25600         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
25601         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
25602         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
25603         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
25604         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
25605         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
25606         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
25607         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
25608         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
25609         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
25610         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
25611         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
25612         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
25613         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
25614         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
25615         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
25616         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
25617         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
25618         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
25619         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
25620         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
25621         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
25622         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
25623         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
25624         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
25625         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
25626         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
25627         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
25628         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
25629         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
25630
25631 2010-03-27  Bruno Haible  <bruno@clisp.org>
25632
25633         Fix a compilation error on Cygwin with g++ >= 4.3.
25634         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
25635         if it is undefined or if we alias it to chmod.
25636         (lstat): Don't warn about the use of this function if it is undefined
25637         or if we alias it to stat.
25638         Reported by Simon Josefsson.
25639
25640 2010-03-27  Bruno Haible  <bruno@clisp.org>
25641
25642         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
25643         * modules/getlogin (configure.ac): Update.
25644
25645         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
25646         * modules/getlogin_r (configure.ac): Update.
25647
25648         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
25649         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
25650         * modules/inet_ntop (configure.ac): Update.
25651
25652         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
25653         * modules/inet_pton (configure.ac): Update.
25654
25655         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
25656         * modules/mbslen (configure.ac): Update.
25657
25658         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
25659         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
25660         * modules/forkpty (configure.ac): Update.
25661         * modules/openpty (configure.ac): Update.
25662
25663 2010-03-26  Simon Josefsson  <simon@josefsson.org>
25664
25665         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
25666         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
25667
25668 2010-03-25  Eric Blake  <eblake@redhat.com>
25669
25670         maint: use pragma consistently across replacement headers
25671         * lib/ctype.in.h (system_header): Hoist for consistent placement.
25672         * lib/dirent.in.h (system_header): Likewise.
25673         * lib/errno.in.h (system_header): Likewise.
25674         * lib/float.in.h (system_header): Likewise.
25675         * lib/getopt.in.h (system_header): Likewise.
25676         * lib/iconv.in.h (system_header): Likewise.
25677         * lib/inttypes.in.h (system_header): Likewise.
25678         * lib/langinfo.in.h (system_header): Likewise.
25679         * lib/locale.in.h (system_header): Likewise.
25680         * lib/math.in.h (system_header): Likewise.
25681         * lib/netdb.in.h (system_header): Likewise.
25682         * lib/netinet_in.in.h (system_header): Likewise.
25683         * lib/pty.in.h (system_header): Likewise.
25684         * lib/sched.in.h (system_header): Likewise.
25685         * lib/se-selinux.in.h (system_header): Likewise.
25686         * lib/search.in.h (system_header): Likewise.
25687         * lib/spawn.in.h (system_header): Likewise.
25688         * lib/stdarg.in.h (system_header): Likewise.
25689         * lib/stdint.in.h (system_header): Likewise.
25690         * lib/string.in.h (system_header): Likewise.
25691         * lib/strings.in.h (system_header): Likewise.
25692         * lib/sys_file.in.h (system_header): Likewise.
25693         * lib/sys_ioctl.in.h (system_header): Likewise.
25694         * lib/sys_socket.in.h (system_header): Likewise.
25695         * lib/sys_times.in.h (system_header): Likewise.
25696         * lib/sys_utsname.in.h (system_header): Likewise.
25697         * lib/sys_wait.in.h (system_header): Likewise.
25698         * lib/sysexits.in.h (system_header): Likewise.
25699         * lib/unistd.in.h (system_header): Likewise.
25700         * lib/wctype.in.h (system_header): Likewise.
25701
25702         arpa/inet: fix mingw compilation warning
25703         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
25704         Reported by Matthew Bolte.
25705
25706 2010-03-25  Bruno Haible  <bruno@clisp.org>
25707
25708         Avoid collision between gnulib wrapper and libintl wrapper.
25709         * lib/printf.c (printf): Don't define if a printf wrapper is already
25710         defined in intl/printf.c.
25711         Reported by Michel Boaventura <michel@michelboaventura.com>.
25712
25713 2010-03-25  Bruno Haible  <bruno@clisp.org>
25714
25715         Use ANSI C.
25716         * lib/readutmp.h (getutent): Provide ANSI C prototype.
25717
25718 2010-03-25  Bruno Haible  <bruno@clisp.org>
25719
25720         Minor formatting changes.
25721         * lib/acosl.c: Insert space before function argument list.
25722         * lib/argz.c: Likewise.
25723         * lib/asinl.c: Likewise.
25724         * lib/expl.c: Likewise.
25725         * lib/gen-uni-tables.c: Likewise.
25726         * lib/gettext.h: Likewise.
25727         * lib/glthread/lock.h: Likewise.
25728         * lib/tanl.c: Likewise.
25729         * lib/uniname/uniname.c: Likewise.
25730         * tests/test-idpriv-drop.c: Likewise.
25731         * tests/test-idpriv-droptemp.c: Likewise.
25732         * tests/test-lock.c: Likewise.
25733         * tests/test-tls.c: Likewise.
25734         * lib/argp-help.c: Insert space before function-like macro argument
25735         list.
25736         * lib/memcmp.c: Likewise.
25737         * tests/test-base64.c: Likewise.
25738         * lib/localename.c: Insert space before sizeof's argument list.
25739         * lib/safe-alloc.h: Likewise.
25740         * lib/file-set.h: Insert space before macro argument list.
25741         * tests/test-argp.c: Likewise.
25742         * lib/argp-namefrob.h: Insert space before function parameter list.
25743         * lib/getaddrinfo.c: Likewise.
25744         * lib/netdb.in.h: Likewise.
25745         * lib/parse-duration.h: Likewise.
25746         * lib/parse-duration.c: Likewise.
25747         * lib/poll.c: Likewise.
25748         * lib/select.c: Likewise.
25749         * lib/trim.h: Likewise.
25750         * tests/test-usleep.c: Likewise.
25751         * lib/ldexpl.c: Insert space before function parameter list and before
25752         function argument list.
25753         * lib/logl.c: Likewise.
25754         * lib/sqrtl.c: Likewise.
25755         * lib/trim.c: Likewise.
25756         * lib/cosl.c: Use GNU style indentation. Insert space before function
25757         argument list.
25758         * lib/sinl.c: Likewise.
25759         * lib/tsearch.c: Insert space after 'for'.
25760         Reported by Jim Meyering.
25761
25762 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
25763
25764         * maint.mk (sc_Wundef_boolean): Check for the presence of the
25765         config header before grepping, as it's not present before
25766         autoreconf/configure are run.  Reported by Simon Josefsson.
25767
25768 2010-03-23  Bruno Haible  <bruno@clisp.org>
25769
25770         pt_chown: Make it work with automake < 1.11.
25771         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
25772         Reported by Simon Josefsson.
25773
25774 2010-03-23  Bruno Haible  <bruno@clisp.org>
25775
25776         pt_chown: Don't depend on GPLed modules.
25777         * lib/pt_chown.c: Don't include idpriv.h.
25778         (main): Don't drop privileges.
25779         * modules/pt_chown (Depends-on): Remove idpriv-drop.
25780         Reported by Simon Josefsson.
25781
25782 2010-03-24  Simon Josefsson  <simon@josefsson.org>
25783
25784         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
25785         suggestions from karl@freefriends.org (Karl Berry).
25786
25787 2010-03-22  Eric Blake  <eblake@redhat.com>
25788
25789         gethostname: further tweaks
25790         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
25791         are overriding gethostname.
25792         Suggested by Bruno Haible.
25793
25794 2010-03-21  Bruno Haible  <bruno@clisp.org>
25795
25796         Fix comments.
25797         * lib/forkpty.c (rpl_forkpty): Fix comment.
25798         * lib/openpty.c (rpl_openpty): Likewise.
25799         Reported by Eric Blake.
25800
25801 2010-03-22  Eric Blake  <eblake@redhat.com>
25802
25803         gethostname: fix build on mingw
25804         * lib/unistd.in.h (includes): Work around fact that mingw
25805         <winsock2.h> re-includes <unistd.h>, by avoiding any
25806         redeclarations if we are being included by <winsock2.h>.
25807         Reported by Matthias Bolte.
25808
25809 2010-03-21  Bruno Haible  <bruno@clisp.org>
25810
25811         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
25812         * lib/forkpty.c (forkpty): New replacement function, from glibc with
25813         modifications.
25814         * lib/pty.in.h (forkpty): Update declaration. Add comments.
25815         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
25816         provide the replacement.
25817         * modules/forkpty (Depends-on): Add openpty, login_tty.
25818         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
25819         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
25820         * doc/glibc-functions/forkpty.texi: More supported platforms.
25821         * config/srclist.txt: Add forkpty.c (commented).
25822
25823 2010-03-21  Bruno Haible  <bruno@clisp.org>
25824
25825         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
25826         (Makefile.am): Verify that PTY_LIB is defined.
25827
25828         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
25829
25830 2010-03-21  Bruno Haible  <bruno@clisp.org>
25831
25832         Tests for module 'login_tty'.
25833         * modules/login_tty-tests: New file.
25834         * tests/test-login_tty.c: New file.
25835
25836         New module 'login_tty'.
25837         * lib/login_tty.c: New file.
25838         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
25839         * modules/login_tty: New file.
25840         * doc/glibc-functions/login_tty.texi: Mention the new module.
25841
25842 2010-03-21  Bruno Haible  <bruno@clisp.org>
25843
25844         login_tty: Documentation.
25845         * doc/glibc-functions/login_tty.texi: New file.
25846         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
25847
25848 2010-03-21  Bruno Haible  <bruno@clisp.org>
25849
25850         pty: Consistent macro naming.
25851         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
25852         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
25853         * modules/pty (configure.ac): Update.
25854
25855 2010-03-21  Bruno Haible  <bruno@clisp.org>
25856
25857         Tests for openpty: Make stricter.
25858         * tests/test-openpty.c (main): Add test of canonical processing and
25859         erase.
25860         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
25861
25862         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
25863         * lib/openpty.c (openpty): New replacement function.
25864         * lib/pty.in.h: Include <termios.h>.
25865         (openpty): Update declaration. Add comments.
25866         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
25867         is not declared, arrange to provide the replacement. Check for _getpty
25868         and posix_openpt.
25869         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
25870         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
25871         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
25872         * modules/pty-tests (test_pty_c___LDADD): New variable.
25873         * doc/glibc-functions/openpty.texi: More supported platforms.
25874
25875 2010-03-21  Bruno Haible  <bruno@clisp.org>
25876
25877         setenv: Tweaks.
25878         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
25879         the test program.
25880         * doc/posix-functions/setenv.texi: Update platforms list.
25881
25882 2010-03-21  Bruno Haible  <bruno@clisp.org>
25883
25884         New module 'unlockpt'.
25885         * lib/unlockpt.c: New file, from glibc with modifications.
25886         * m4/unlockpt.m4: New file.
25887         * modules/unlockpt: New file.
25888         * lib/stdlib.in.h (unlockpt): New declaration.
25889         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
25890         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
25891         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
25892         HAVE_UNLOCKPT.
25893         * doc/posix-functions/unlockpt.texi: Mention the new module.
25894         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
25895         * config/srclist.txt: Add unlockpt.c (commented).
25896
25897 2010-03-21  Jim Meyering  <meyering@redhat.com>
25898
25899         maint.mk: prohibit inclusion of "intprops.h" without use
25900         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
25901
25902 2010-03-21  Bruno Haible  <bruno@clisp.org>
25903
25904         New module 'grantpt'.
25905         * lib/grantpt.c: New file, from glibc with modifications.
25906         * m4/grantpt.m4: New file.
25907         * modules/grantpt: New file.
25908         * lib/stdlib.in.h (grantpt): New declaration.
25909         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
25910         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
25911         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
25912         HAVE_GRANTPT.
25913         * doc/posix-functions/grantpt.texi: Mention the new module.
25914         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
25915         * config/srclist.txt: Add grantpt.c (commented).
25916
25917 2010-03-21  Bruno Haible  <bruno@clisp.org>
25918
25919         New module 'pt_chown'.
25920         * lib/pt_chown.c: New file, from glibc with modifications.
25921         * lib/pty-private.h: New file, from glibc with modifications.
25922         * modules/pt_chown: New file.
25923         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
25924
25925 2010-03-21  Bruno Haible  <bruno@clisp.org>
25926
25927         Tests for module 'ptsname'.
25928         * modules/ptsname-tests: New file.
25929         * tests/test-ptsname.c: New file.
25930
25931         New module 'ptsname'.
25932         * lib/ptsname.c: New file, from glibc with modifications.
25933         * m4/ptsname.m4: New file.
25934         * modules/ptsname: New file.
25935         * lib/stdlib.in.h (ptsname): New declaration.
25936         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
25937         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
25938         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
25939         HAVE_PTSNAME.
25940         * doc/posix-functions/ptsname.texi: Mention the new module.
25941         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
25942         * config/srclist.txt: Add ptsname.c (commented).
25943
25944 2010-03-21  Bruno Haible  <bruno@clisp.org>
25945
25946         Tests for module 'ttyname_r'.
25947         * modules/ttyname_r-tests: New file.
25948         * tests/test-ttyname_r.c: New file.
25949
25950         New module 'ttyname_r'.
25951         * lib/ttyname_r.c: New file.
25952         * m4/ttyname_r.m4: New file.
25953         * modules/ttyname_r: New file.
25954         * lib/unistd.in.h (ttyname_r): New declaration.
25955         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
25956         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
25957         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
25958         HAVE_TTYNAME_R.
25959         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
25960         * doc/posix-functions/ttyname_r.texi: Mention the new module.
25961
25962 2010-03-20  Bruno Haible  <bruno@clisp.org>
25963
25964         signal: Undefine macro definitions in C++ mode.
25965         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
25966         sigfillset): Undefine macro definitions from the system header in C++
25967         mode.
25968         Reported by John W. Eaton <jwe@gnu.org>.
25969
25970 2010-03-20  Bruno Haible  <bruno@clisp.org>
25971
25972         Ensure no #include statements inside extern "C" { ... }.
25973         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
25974         contain #include statements.
25975         * lib/time.in.h: Likewise.
25976
25977 2010-03-20  Bruno Haible  <bruno@clisp.org>
25978
25979         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
25980         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
25981         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
25982         Reported by John W. Eaton <jwe@gnu.org>.
25983
25984 2010-03-20  Bruno Haible  <bruno@clisp.org>
25985
25986         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
25987         Reported by Jim Meyering.
25988
25989 2010-03-20  Bruno Haible  <bruno@clisp.org>
25990
25991         pipe: Set errno upon failure.
25992         * lib/pipe.h: Specify that when -1 is returned, errno is set.
25993         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
25994         errno value in error message.
25995
25996 2010-03-20  Bruno Haible  <bruno@clisp.org>
25997             Jim Meyering  <meyering@redhat.com>
25998
25999         lchown: Avoid "unused variable" warning.
26000         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
26001
26002 2010-03-20  Bruno Haible  <bruno@clisp.org>
26003
26004         Work around unlink() bug on MacOS X 10.5.6.
26005         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
26006         attempting to unlink a parent directory.
26007         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
26008         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
26009         activate for the replacement function.
26010         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
26011
26012 2010-03-20  Bruno Haible  <bruno@clisp.org>
26013
26014         Fix link errors on Solaris 8.
26015         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
26016         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
26017
26018 2010-03-19  Jim Meyering  <meyering@redhat.com>
26019
26020         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
26021         The _LIBC implementation of build_range_exp correctly honors the
26022         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
26023         However, the non-_LIBC implementation would ignore that syntax-bit
26024         flag and return REG_ERANGE unconditionally.
26025         This change makes it honor that flag.
26026         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
26027         Make two pointer parameters "const".
26028         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
26029         (parse_bracket_exp): Update caller.
26030
26031         regex.m4: correct the reversed range endpoint ([b-a]) test
26032         * m4/regex.m4: When requiring that [b-a] evoke failure,
26033         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
26034         test pass once again for x86-based systems.
26035
26036 2010-03-19  Bruno Haible  <bruno@clisp.org>
26037
26038         scandir: Fix link error on Solaris 8.
26039         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
26040         macros.
26041
26042 2010-03-19  Bruno Haible  <bruno@clisp.org>
26043
26044         getusershell: Fix documentation.
26045         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
26046         module.
26047         * doc/glibc-functions/setusershell.texi: Likewise.
26048
26049         getusershell: Provide declaration, missing on Solaris 9.
26050         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
26051         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
26052         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
26053         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
26054         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
26055         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
26056         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
26057         HAVE_GETUSERSHELL.
26058         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
26059
26060 2010-03-19  Bruno Haible  <bruno@clisp.org>
26061
26062         wctype: Provide iswblank function.
26063         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
26064         exists and is fine.
26065         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
26066         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
26067         * tests/test-wctype.c (main): Re-enable the iswblank tests.
26068         * doc/posix-functions/iswblank.texi: Update.
26069
26070 2010-03-19  Bruno Haible  <bruno@clisp.org>
26071
26072         Tests of module 'pty' in C++ mode.
26073         * modules/pty-tests: New file.
26074         * tests/test-pty-c++.cc: New file.
26075         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
26076
26077 2010-03-19  Eric Blake  <eblake@redhat.com>
26078
26079         logb: fix documentation
26080         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
26081         1.5 declaration bug.
26082
26083         forkpty, openpty: prefer glibc's const-safe prototype
26084         * lib/forkpty.c (rpl_forkpty): New file.
26085         * lib/openpty.c (rpl_openpty): Likewise.
26086         * modules/forkpty (Files): Distribute it.
26087         * modules/openpty (Files): Likewise.
26088         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
26089         check...
26090         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
26091         replacement for for non-const BSD signature.
26092         * modules/pty (Makefile.am): Substitute witnesses.
26093         * lib/pty.in.h (forkpty, openpty): Declare replacements.
26094         * tests/test-forkpty.c: Update signature check.
26095         * tests/test-openpty.c: Likewise.
26096         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
26097         * doc/glibc-functions/openpty.texi (openpty): Likewise.
26098
26099         forkpty, openpty: split functions into new modules
26100         * modules/pty (Makefile.am): Substitute new witnesses.
26101         (Libraries): Move library detection...
26102         * modules/forkpty: ...into new module.
26103         * modules/openpty: Another new module.
26104         * modules/pty-tests: Rename and split...
26105         * modules/forkpty-tests: ...to this...
26106         * modules/openpty-tests: ...and this.
26107         * tests/test-pty.c: Rename and split...
26108         * tests/test-forkpty.c: ...to this...
26109         * tests/test-openpty.c: ...and this.
26110         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
26111         (gl_PTY): Split library searching...
26112         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
26113         (gl_FORKPTY, gl_OPENPTY): New macros.
26114         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
26115         * NEWS: Mention the split.
26116         * MODULES.html.sh (Misc): Document the modules.
26117         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
26118         * doc/glibc-functions/openpty.texi (openpty): Likewise.
26119
26120         pty: improve replacement header
26121         * lib/pty.in.h: New file.
26122         * modules/pty (Files): Ship it.
26123         (Makefile.am): Always build replacement.
26124         * m4/pty.m4: Rename...
26125         * m4/pty_h.m4: ...to this.
26126         (gl_PTY): Modernize setting of witness macros; update check of
26127         forkpty to take proper advantage of cache.
26128         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
26129
26130         getopt: avoid compiler warning
26131         * lib/getopt.c (attribute_hidden): Remove unused macro.
26132
26133 2010-03-18  Bruno Haible  <bruno@clisp.org>
26134
26135         Fix link errors on Solaris 8.
26136         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
26137         * modules/search-tests (test_search_c___LDADD): Likewise.
26138         * modules/signal-tests (test_signal_c___LDADD): Likewise.
26139         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
26140         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
26141         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
26142         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
26143         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
26144         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
26145
26146 2010-03-18  Bruno Haible  <bruno@clisp.org>
26147
26148         Fix bug introduced on 2010-03-14.
26149         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
26150         (gl_SPAWN_H): Require it.
26151         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
26152         Reported by Simon Josefsson.
26153
26154 2010-03-18  Bruno Haible  <bruno@clisp.org>
26155
26156         Fix typo introduced on 2009-12-31.
26157         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
26158         posix_spawn_file_actions_adddup2.
26159
26160 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
26161         and Eric Blake  <eblake@redhat.com>
26162
26163         test-vc-list-files-git: make more robust
26164         * tests/test-vc-list-files-git.sh: Unset problematic environment
26165         variables.  Chain commands together.
26166
26167 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
26168
26169         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
26170         `AC_CHECK_DECL' invocation.
26171
26172 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
26173
26174         * lib/inttostr.c (inttostr): Make sure the invocation of verify
26175         appears before executable statements. Suggested by Petr Sumbera
26176         <Petr.Sumbera@Sun.COM>.
26177
26178 2010-03-14  Bruno Haible  <bruno@clisp.org>
26179
26180         * tests/test-flock.c (test_exclusive): Comment out a test that causes
26181         portability problems. Instead use a simpler test.
26182         (main): Check that invalid arguments are rejected only on Linux.
26183
26184 2010-03-14  Bruno Haible  <bruno@clisp.org>
26185
26186         Fix bug introduced on 2009-12-31.
26187         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
26188         gl_PREREQ_SYS_H_WINSOCK2 always.
26189         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
26190         SYS_SOCKET_H variable.
26191         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
26192         Update comments.
26193         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
26194         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
26195         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
26196         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
26197         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
26198
26199 2010-03-14  Bruno Haible  <bruno@clisp.org>
26200
26201         Fix values returned by sinl, cosl.
26202         * lib/trigl.h: Add specification comments.
26203         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
26204         that combines the values from the precomputed table with the values of
26205         the Chebyshev polynomials.
26206
26207 2010-03-14  Bruno Haible  <bruno@clisp.org>
26208
26209         Fix compilation error when modules 'posix_spawn[p]' are not used.
26210         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
26211         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
26212
26213 2010-03-14  Bruno Haible  <bruno@clisp.org>
26214
26215         Fix compilation error on mingw when module 'time_r' is not used.
26216         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
26217         is 1.
26218         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
26219         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
26220         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
26221         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
26222
26223 2010-03-14  Bruno Haible  <bruno@clisp.org>
26224
26225         Fix compilation error with Sun C.
26226         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
26227         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
26228         instead of GCC specific ULONG_LONG_MAX.
26229         * lib/xstrtoll.c: Likewise.
26230         * lib/xstrtoull.c: Likewise.
26231
26232 2010-03-13  Bruno Haible  <bruno@clisp.org>
26233
26234         Allow the user to disable C++ code and tests.
26235         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
26236         (gl_PROG_ANSI_CXX): Require it.
26237
26238 2010-03-13  Bruno Haible  <bruno@clisp.org>
26239
26240         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
26241         cases.
26242
26243 2010-03-13  Bruno Haible  <bruno@clisp.org>
26244
26245         Test that gnulib does not break the standard C++ headers.
26246         * tests/test-locale-c++2.cc: New file.
26247         * modules/locale-tests (Files): Add it.
26248         (Makefile.am): Compile it for test-locale-c++.
26249         * tests/test-math-c++2.cc: New file.
26250         * modules/math-tests (Files): Add it.
26251         (Makefile.am): Compile it for test-math-c++.
26252         * tests/test-signal-c++2.cc: New file.
26253         * modules/signal-tests (Files): Add it.
26254         (Makefile.am): Compile it for test-signal-c++.
26255         * tests/test-stdio-c++2.cc: New file.
26256         * modules/stdio-tests (Files): Add it.
26257         (Makefile.am): Compile it for test-stdio-c++.
26258         * tests/test-stdlib-c++2.cc: New file.
26259         * modules/stdlib-tests (Files): Add it.
26260         (Makefile.am): Compile it for test-stdlib-c++.
26261         * tests/test-string-c++2.cc: New file.
26262         * modules/string-tests (Files): Add it.
26263         (Makefile.am): Compile it for test-string-c++.
26264         * tests/test-time-c++2.cc: New file.
26265         * modules/time-tests (Files): Add it.
26266         (Makefile.am): Compile it for test-time-c++.
26267         Reported by John W. Eaton <jwe@gnu.org>.
26268
26269 2010-03-13  Bruno Haible  <bruno@clisp.org>
26270
26271         * gnulib-tool (func_usage): Clarify which options are available for
26272         --create-testdir and --create-megatestdir.
26273
26274 2010-03-13  Bruno Haible  <bruno@clisp.org>
26275
26276         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
26277         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
26278         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
26279         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
26280         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
26281         when appropriate.
26282         Reported by Jim Meyering.
26283
26284 2010-03-12  Simon Josefsson  <simon@josefsson.org>
26285
26286         * gnulib-tool (func_import): Explain origin of code.
26287
26288 2010-03-12  Bruno Haible  <bruno@clisp.org>
26289
26290         Fix problem with automake's definition of CXXLINK.
26291         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
26292         Reported by Simon Josefsson and Ludovic Courtès.
26293
26294 2010-03-12  Bruno Haible  <bruno@clisp.org>
26295
26296         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
26297         stable releases.
26298
26299 2010-03-11  Bruno Haible  <bruno@clisp.org>
26300
26301         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
26302         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
26303         whether the system provides one variant or multiple variants of the
26304         function.
26305         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
26306         C++ compilers.
26307         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
26308         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
26309         Reported by Jim Meyering.
26310
26311 2010-03-09  Simon Josefsson  <simon@josefsson.org>
26312
26313         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
26314
26315 2010-03-08  Bruno Haible  <bruno@clisp.org>
26316
26317         gnulib-tool: Add support for --libtool in --create-testdir.
26318         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
26319         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
26320
26321 2010-03-08  Eric Blake  <eblake@redhat.com>
26322
26323         gnulib-tool.texi: mention possibility of git submodule
26324         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
26325         submodules.
26326         * doc/.gitignore: Ignore another generated file.
26327
26328 2010-03-08  Karl Berry  <karl@gnu.org>
26329
26330         * doc/gnulib-tool.texi (VCS Issues): Mention third option
26331         of committing gnulib files while skipping others.
26332
26333 2010-03-07  Bruno Haible  <bruno@clisp.org>
26334
26335         Tests of module 'wctype' in C++ mode.
26336         * tests/test-wctype-c++.cc: New file.
26337         * modules/wctype-tests (Files): Add it and tests/signature.h.
26338         (Depends-on): Add ansi-c++-opt.
26339         (Makefile.am): Arrange to compile and run test-wctype-c++.
26340
26341         Tests of module 'wchar' in C++ mode.
26342         * tests/test-wchar-c++.cc: New file.
26343         * modules/wchar-tests (Files): Add it and tests/signature.h.
26344         (Depends-on): Add ansi-c++-opt.
26345         (Makefile.am): Arrange to compile and run test-wchar-c++.
26346         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
26347         gl_MODULE_INDICATOR.
26348
26349         Tests of module 'unistd' in C++ mode.
26350         * tests/test-unistd-c++.cc: New file.
26351         * modules/unistd-tests (Files): Add it and tests/signature.h.
26352         (Depends-on): Add ansi-c++-opt.
26353         (Makefile.am): Arrange to compile and run test-unistd-c++.
26354         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
26355         gl_MODULE_INDICATOR.
26356
26357         Tests of module 'time' in C++ mode.
26358         * tests/test-time-c++.cc: New file.
26359         * modules/time-tests (Files): Add it and tests/signature.h.
26360         (Depends-on): Add ansi-c++-opt.
26361         (Makefile.am): Arrange to compile and run test-time-c++.
26362         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
26363
26364         Tests of module 'sys_time' in C++ mode.
26365         * tests/test-sys_time-c++.cc: New file.
26366         * modules/sys_time-tests (Files): Add it and tests/signature.h.
26367         (Depends-on): Add ansi-c++-opt.
26368         (Makefile.am): Arrange to compile and run test-sys_time-c++.
26369         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
26370         gl_MODULE_INDICATOR.
26371
26372         Tests of module 'sys_stat' in C++ mode.
26373         * tests/test-sys_stat-c++.cc: New file.
26374         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
26375         (Depends-on): Add ansi-c++-opt.
26376         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
26377         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
26378         gl_MODULE_INDICATOR.
26379
26380         Tests of module 'sys_socket' in C++ mode.
26381         * tests/test-sys_socket-c++.cc: New file.
26382         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
26383         (Depends-on): Add ansi-c++-opt.
26384         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
26385         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
26386         gl_MODULE_INDICATOR.
26387
26388         Tests of module 'sys_select' in C++ mode.
26389         * tests/test-sys_select-c++.cc: New file.
26390         * modules/sys_select-tests (Files): Add it and tests/signature.h.
26391         (Depends-on): Add ansi-c++-opt.
26392         (Makefile.am): Arrange to compile and run test-sys_select-c++.
26393         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
26394         gl_MODULE_INDICATOR.
26395
26396         Tests of module 'sys_ioctl' in C++ mode.
26397         * tests/test-sys_ioctl-c++.cc: New file.
26398         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
26399         (Depends-on): Add ansi-c++-opt.
26400         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
26401         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
26402         gl_MODULE_INDICATOR.
26403
26404         Tests of module 'string' in C++ mode.
26405         * tests/test-string-c++.cc: New file.
26406         * modules/string-tests (Files): Add it and tests/signature.h.
26407         (Depends-on): Add ansi-c++-opt.
26408         (Makefile.am): Arrange to compile and run test-string-c++.
26409         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
26410         gl_MODULE_INDICATOR.
26411
26412         Tests of module 'stdlib' in C++ mode.
26413         * tests/test-stdlib-c++.cc: New file.
26414         * modules/stdlib-tests (Files): Add it and tests/signature.h.
26415         (Depends-on): Add ansi-c++-opt.
26416         (Makefile.am): Arrange to compile and run test-stdlib-c++.
26417         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
26418         gl_MODULE_INDICATOR.
26419
26420         Tests of module 'stdio' in C++ mode.
26421         * tests/test-stdio-c++.cc: New file.
26422         * modules/stdio-tests (Files): Add it and tests/signature.h.
26423         (Depends-on): Add ansi-c++-opt.
26424         (Makefile.am): Arrange to compile and run test-stdio-c++.
26425         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
26426         gl_MODULE_INDICATOR.
26427
26428         Tests of module 'spawn' in C++ mode.
26429         * tests/test-spawn-c++.cc: New file.
26430         * modules/spawn-tests (Files): Add it and tests/signature.h.
26431         (Depends-on): Add ansi-c++-opt.
26432         (Makefile.am): Arrange to compile and run test-spawn-c++.
26433         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
26434         gl_MODULE_INDICATOR.
26435
26436         Tests of module 'signal' in C++ mode.
26437         * tests/test-signal-c++.cc: New file.
26438         * modules/signal-tests (Files): Add it and tests/signature.h.
26439         (Depends-on): Add ansi-c++-opt.
26440         (Makefile.am): Arrange to compile and run test-signal-c++.
26441         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
26442         gl_MODULE_INDICATOR.
26443
26444         Tests of module 'search' in C++ mode.
26445         * tests/test-search-c++.cc: New file.
26446         * modules/search-tests (Files): Add it and tests/signature.h.
26447         (Depends-on): Add ansi-c++-opt.
26448         (Makefile.am): Arrange to compile and run test-search-c++.
26449         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
26450         gl_MODULE_INDICATOR.
26451
26452         Tests of module 'math' in C++ mode.
26453         * tests/test-math-c++.cc: New file.
26454         * modules/math-tests (Files): Add it and tests/signature.h.
26455         (Depends-on): Add ansi-c++-opt.
26456         (Makefile.am): Arrange to compile and run test-math-c++.
26457         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
26458
26459         Tests of module 'locale' in C++ mode.
26460         * tests/test-locale-c++.cc: New file.
26461         * modules/locale-tests (Files): Add it and tests/signature.h.
26462         (Depends-on): Add ansi-c++-opt.
26463         (Makefile.am): Arrange to compile and run test-locale-c++.
26464         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
26465         gl_MODULE_INDICATOR.
26466
26467         Tests of module 'langinfo' in C++ mode.
26468         * tests/test-langinfo-c++.cc: New file.
26469         * modules/langinfo-tests (Files): Add it and tests/signature.h.
26470         (Depends-on): Add ansi-c++-opt.
26471         (Makefile.am): Arrange to compile and run test-langinfo-c++.
26472         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
26473         gl_MODULE_INDICATOR.
26474
26475         Tests of module 'iconv-h' in C++ mode.
26476         * tests/test-iconv-h-c++.cc: New file.
26477         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
26478         (Depends-on): Add ansi-c++-opt.
26479         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
26480
26481         Tests of module 'glob' in C++ mode.
26482         * tests/test-glob-c++.cc: New file.
26483         * modules/glob-tests (Files): Add it.
26484         (Depends-on): Add ansi-c++-opt.
26485         (Makefile.am): Arrange to compile and run test-glob-c++.
26486
26487         Tests of module 'fcntl-h' in C++ mode.
26488         * tests/test-fcntl-h-c++.cc: New file.
26489         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
26490         (Depends-on): Add ansi-c++-opt.
26491         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
26492         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
26493         gl_MODULE_INDICATOR.
26494
26495         Tests of module 'dirent' in C++ mode.
26496         * tests/test-dirent-c++.cc: New file.
26497         * modules/dirent-tests (Files): Add it and tests/signature.h.
26498         (Depends-on): Add ansi-c++-opt.
26499         (Makefile.am): Arrange to compile and run test-dirent-c++.
26500         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
26501         gl_MODULE_INDICATOR.
26502
26503         New module 'ansi-c++-opt'.
26504         * modules/ansi-c++-opt: New file.
26505         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
26506
26507         Document C++ namespace mode.
26508         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
26509
26510         wctype: Avoid #define replacements in C++ mode.
26511         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
26512         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
26513         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
26514         In C++, define a namespaced alias symbol.
26515         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
26516         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
26517         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
26518         rule.
26519
26520         wchar: Avoid #define replacements in C++ mode.
26521         * lib/wchar.in.h: Include c++defs.h.
26522         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
26523         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
26524         symbol.
26525         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
26526         * modules/wchar (Depends-on): Add c++defs.
26527         (Makefile.am): Update wchar.h rule.
26528
26529         unistd: Avoid #define replacements in C++ mode.
26530         * lib/unistd.in.h: Include c++defs.h.
26531         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
26532         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
26533         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
26534         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
26535         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
26536         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
26537         symbol.
26538         (environ): Update.
26539         * modules/unistd (Depends-on): Add c++defs.
26540         (Makefile.am): Update unistd.h rule.
26541
26542         time: Avoid #define replacements in C++ mode.
26543         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
26544         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
26545         define a namespaced alias symbol.
26546         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
26547         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
26548         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
26549         * modules/time (Depends-on): Add c++defs, warn-on-use.
26550         (Makefile.am): Update time.h rule.
26551         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
26552         * modules/nanosleep (configure.ac): Likewise.
26553         * modules/strptime (configure.ac): Likewise.
26554         * modules/timegm (configure.ac): Likewise.
26555
26556         sys_time: Avoid #define replacements in C++ mode.
26557         * lib/sys_time.in.h: Include c++defs.h.
26558         (gettimeofday): In C++, define a namespaced alias symbol.
26559         * modules/sys_time (Depends-on): Add c++defs.
26560         (Makefile.am): Update sys/time.h rule.
26561
26562         sys_stat: Avoid #define replacements in C++ mode.
26563         * lib/sys_stat.in.h: Include c++defs.h.
26564         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
26565         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
26566         namespaced alias symbol.
26567         In C++, define a namespaced alias symbol.
26568         * modules/sys_stat (Depends-on): Add c++defs.
26569         (Makefile.am): Update sys/stat.h rule.
26570
26571         sys_socket: Avoid #define replacements in C++ mode.
26572         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
26573         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
26574         definitions also when the system has a <sys/socket.h>.
26575         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
26576         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
26577         In C++, define a namespaced alias symbol.
26578         * modules/sys_socket (Depends-on): Add c++defs.
26579         (Makefile.am): Update sys/socket.h rule.
26580
26581         sys_select: Avoid #define replacements in C++ mode.
26582         * lib/sys_select.in.h: Include c++defs.h. Enable the function
26583         definitions also when the system has a <sys/select.h>.
26584         (select): In C++, define a namespaced alias symbol.
26585         * modules/sys_select (Depends-on): Add c++defs.
26586         (Makefile.am): Update sys/select.h rule.
26587
26588         sys_ioctl: Avoid #define replacements in C++ mode.
26589         * lib/sys_ioctl.in.h: Include c++defs.h.
26590         (ioctl): In C++, define a namespaced alias symbol.
26591         * modules/sys_ioctl (Depends-on): Add c++defs.
26592         (Makefile.am): Update sys/ioctl.h rule.
26593
26594         string: Avoid #define replacements in C++ mode.
26595         * lib/string.in.h: Include c++defs.h.
26596         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
26597         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
26598         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
26599         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
26600         strsignal, strverscmp): In C++, define a namespaced alias symbol.
26601         * modules/string (Depends-on): Add c++defs.
26602         (Makefile.am): Update string.h rule.
26603
26604         stdlib: Avoid #define replacements in C++ mode.
26605         * lib/stdlib.in.h: Include c++defs.h.
26606         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
26607         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
26608         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
26609         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
26610         symbol.
26611         * modules/stdlib (Depends-on): Add c++defs.
26612         (Makefile.am): Update stdlib.h rule.
26613
26614         stdio: Avoid #define replacements in C++ mode.
26615         * lib/stdio.in.h: Include c++defs.h.
26616         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
26617         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
26618         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
26619         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
26620         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
26621         namespaced alias symbol.
26622         * modules/stdio (Depends-on): Add c++defs.
26623         (Makefile.am): Update stdio.h rule.
26624
26625         spawn: Avoid #define replacements in C++ mode.
26626         * lib/spawn.in.h: Include c++defs.h.
26627         (posix_spawn, posix_spawnp, posix_spawnattr_init,
26628         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
26629         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
26630         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
26631         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
26632         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
26633         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
26634         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
26635         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
26636         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
26637         In C++, define a namespaced alias symbol.
26638         * modules/spawn (Depends-on): Add c++defs.
26639         (Makefile.am): Update spawn.h rule.
26640
26641         signal: Avoid #define replacements in C++ mode.
26642         * lib/signal.in.h: Include c++defs.h.
26643         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
26644         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
26645         namespaced alias symbol.
26646         * modules/signal (Depends-on): Add c++defs.
26647         (Makefile.am): Update signal.h rule.
26648
26649         search: Avoid #define replacements in C++ mode.
26650         * lib/search.in.h: Include c++defs.h.
26651         (_gl_search_compar_fn, _gl_search_action_fn): New types.
26652         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
26653         symbol.
26654         * modules/search (Depends-on): Add c++defs.
26655         (Makefile.am): Update search.h rule.
26656
26657         math: Avoid #define replacements in C++ mode.
26658         * lib/math.in.h: Include c++defs.h.
26659         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
26660         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
26661         trunc, truncl): In C++, define a namespaced alias symbol.
26662         * modules/math (Depends-on): Add c++defs.
26663         (Makefile.am): Update math.h rule.
26664
26665         locale: Avoid #define replacements in C++ mode.
26666         * lib/locale.in.h: Include c++defs.h.
26667         (duplocale): In C++, define a namespaced alias symbol.
26668         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
26669         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
26670         * modules/locale (Depends-on): Add c++defs.
26671         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
26672
26673         langinfo: Avoid #define replacements in C++ mode.
26674         * lib/langinfo.in.h: Include c++defs.h.
26675         (nl_langinfo): In C++, define a namespaced alias symbol.
26676         * modules/langinfo (Depends-on): Add c++defs.
26677         (Makefile.am): Update langinfo.h rule.
26678
26679         iconv-h: Avoid #define replacements in C++ mode.
26680         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
26681         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
26682         symbol.
26683         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
26684         whenever iconv is present.
26685         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
26686         (Makefile.am): Update iconv.h rule.
26687
26688         glob: Avoid #define replacements in C++ mode.
26689         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
26690         (_gl_glob_errfunc_fn): New type.
26691         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
26692         symbol.
26693         * modules/glob (Depends-on): Add c++defs, warn-on-use.
26694         (Makefile.am): Update glob.h rule.
26695
26696         fcntl-h: Avoid #define replacements in C++ mode.
26697         * lib/fcntl.in.h: Include c++defs.h.
26698         (fcntl, open, openat): In C++, define a namespaced alias symbol.
26699         * modules/fcntl-h (Depends-on): Add c++defs.
26700         (Makefile.am): Update fcntl.h rule.
26701
26702         dirent: Avoid #define replacements in C++ mode.
26703         * lib/dirent.in.h: Include c++defs.h.
26704         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
26705         namespaced alias symbol.
26706         (dirfd): Update declaration.
26707         * modules/dirent (Depends-on): Add c++defs.
26708         (Makefile.am): Update dirent.h rule.
26709
26710         ctype: Make it usable in C++ code.
26711         * lib/ctype.in.h: Include c++defs.h.
26712         (isblank): Declare as extern "C".
26713         * modules/ctype (Depends-on): Add c++defs.
26714         (Makefile.am): Update ctype.h rule.
26715
26716         New module 'c++defs'.
26717         * modules/c++defs: New file.
26718         * build-aux/c++defs.h: New file.
26719         Reported by John W. Eaton <jwe@gnu.org>.
26720
26721 2010-03-07  Bruno Haible  <bruno@clisp.org>
26722
26723         logb: Provide missing declaration for Cygwin.
26724         * lib/math.in.h (logb): New declaration.
26725         * m4/logb.m4: New file.
26726         * modules/logb (Files): Add m4/logb.m4.
26727         (Depends-on): Add math.
26728         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
26729         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
26730         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
26731         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
26732         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
26733
26734 2010-03-07  Bruno Haible  <bruno@clisp.org>
26735
26736         Fix test-cond link error.
26737         * tests/test-cond.c: Include <stdio.h>.
26738
26739 2010-03-07  Bruno Haible  <bruno@clisp.org>
26740
26741         Fix test-dirent-safer link error.
26742         * modules/dirent-safer-tests (Makefile.am): Define
26743         test_dirent_safer_LDADD.
26744
26745 2010-03-07  Bruno Haible  <bruno@clisp.org>
26746
26747         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
26748         among default module list.
26749
26750 2010-03-07  Bruno Haible  <bruno@clisp.org>
26751
26752         Fix link error on platforms with GNU libiconv.
26753         * modules/unistr/u8-strcoll-tests (Makefile): Define
26754         test_u8_strcoll_LDADD.
26755         * modules/unistr/u16-strcoll-tests (Makefile): Define
26756         test_u16_strcoll_LDADD.
26757         * modules/unistr/u32-strcoll-tests (Makefile): Define
26758         test_u32_strcoll_LDADD.
26759
26760 2010-03-07  Bruno Haible  <bruno@clisp.org>
26761
26762         Use POSIX declarations for socket functions.
26763         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
26764         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
26765         rpl_sendto): Change declaration to match POSIX.
26766         * lib/connect.c (rpl_connect): Likewise.
26767         * lib/accept.c (rpl_accept): Likewise.
26768         * lib/bind.c (rpl_bind): Likewise.
26769         * lib/getpeername.c (rpl_getpeername): Likewise.
26770         * lib/getsockname.c (rpl_getsockname): Likewise.
26771         * lib/recv.c (rpl_recv): Likewise.
26772         * lib/send.c (rpl_send): Likewise.
26773         * lib/recvfrom.c (rpl_recvfrom): Likewise.
26774         * lib/sendto.c (rpl_sendto): Likewise.
26775
26776 2010-03-06  Bruno Haible  <bruno@clisp.org>
26777
26778         Clarify access, euidaccess, faccessat.
26779         * doc/posix-functions/faccessat.texi: Mention security problem under
26780         "Other problems", not "Portability problems".
26781         * doc/posix-functions/access.texi: Likewise. Mention a related security
26782         problem.
26783         * doc/glibc-functions/euidaccess.texi: Mention security problems.
26784         * lib/euidaccess.c: Add comments about platforms.
26785         * lib/unistd.in.h (access, euidaccess): Add warnings.
26786
26787 2010-03-07  Bruno Haible  <bruno@clisp.org>
26788
26789         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
26790         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
26791         (POSIX_SPAWN_SETSCHEDULER): Likewise.
26792         (POSIX_SPAWN_USEVFORK): Define in a way that works when
26793         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
26794         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
26795         declare when POSIX_SPAWN_SETSCHEDULER is zero.
26796         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
26797         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
26798         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
26799         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
26800         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
26801         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
26802         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
26803         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
26804         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
26805         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
26806         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
26807         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
26808         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
26809         Likewise.
26810         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
26811         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
26812         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
26813         Likewise.
26814         * tests/test-spawn.c (main): Make it work when
26815         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
26816
26817 2010-03-07  Bruno Haible  <bruno@clisp.org>
26818
26819         Fix incorrect Makefile.am generation in German locale.
26820         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
26821         Execute sed command with character range in C locale.
26822
26823 2010-03-06  Bruno Haible  <bruno@clisp.org>
26824
26825         Tests for module 'iconv-h'.
26826         * modules/iconv-h-tests: New file.
26827         * tests/test-iconv-h.c: New file.
26828
26829         New module 'iconv-h'.
26830         * modules/iconv-h: New file.
26831         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
26832         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
26833         (configure.ac): Remove gl_ICONV_H.
26834         (Makefile.am): Remove rule for iconv.h.
26835
26836 2010-03-06  Bruno Haible  <bruno@clisp.org>
26837
26838         More consistent naming of *.m4 files.
26839         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
26840         * modules/wctype (Files): Update.
26841
26842         More consistent naming of *.m4 files.
26843         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
26844         * modules/wchar (Files): Update.
26845
26846 2010-03-06  Jim Meyering  <meyering@redhat.com>
26847
26848         euidaccess: relax license to LGPLv2+
26849         * modules/euidaccess (License): Relax to LGPLv2+.
26850
26851 2010-03-06  Bruno Haible  <bruno@clisp.org>
26852
26853         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
26854         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
26855         (Makefile.am): Augment lib_SOURCES instead.
26856
26857 2010-03-04  Jim Meyering  <meyering@redhat.com>
26858
26859         utime: remove obsolete module
26860         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
26861         unnecessary for years, and has been marked as obsolete for 10 months.
26862         * modules/utime: Remove file.
26863         * lib/utime.c: Remove file.
26864         * m4/utime.m4: Remove file.
26865         * m4/utimes-null.m4: Remove file.
26866         * doc/posix-functions/utime.texi (utime): Remove reference to
26867         the module.  Move the sole "fixed by gnulib" item into the
26868         "problems not fixed by Gnulib" list.
26869         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
26870
26871 2010-03-05  Simon Josefsson  <simon@josefsson.org>
26872
26873         * modules/exit (License): Relax license to LGPLv2+.
26874         (Status): Mark as obsolete.
26875         * NEWS: Mention deprecated 'exit' module.
26876         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
26877         of now obsolete 'exit'.
26878
26879 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26880
26881         fts-lgpl: remove unused module
26882         * modules/fts-lgpl: Remove.
26883         * MODULES.html.sh (func_all_modules): Adjust.
26884         * check-module (find_included_lib_files): Adjust.
26885         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
26886
26887 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
26888
26889         copy-acl: enhance Solaris ACL error handling
26890         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
26891         * lib/set-mode-acl.c (qset_acl): Likewise.
26892
26893 2010-03-02  Bruno Haible  <bruno@clisp.org>
26894
26895         spawn: Don't override the system defined values on FreeBSD 8.
26896         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
26897         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
26898         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
26899         if HAVE_POSIX_SPAWN is 1.
26900         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
26901
26902 2010-03-01  Bruno Haible  <bruno@clisp.org>
26903
26904         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
26905         regarding Automake.
26906
26907 2010-02-25  Bruno Haible  <bruno@clisp.org>
26908
26909         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
26910         * gnulib-tool: Define 'echo' as a function only before the ksh alias
26911         setting, not afterwards.
26912         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
26913
26914 2010-02-24  Eric Blake  <eblake@redhat.com>
26915
26916         bootstrap, git-version-gen: use timestamp
26917         * build-aux/git-version-gen (scriptversion): Force UTC.
26918         * build-aux/bootstrap (scriptversion): New variable.
26919
26920         bootstrap: allow older git
26921         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
26922         older than 1.6.4.  Requested by the libvirt project.
26923
26924 2010-02-23  Eric Blake  <eblake@redhat.com>
26925
26926         warn-on-use: work with old autoconf
26927         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
26928         AS_VAR semantics of autoconf 2.60.
26929         Reported by Bruno Haible.
26930
26931         bootstrap: improve some comments
26932         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
26933         clarification comments.
26934
26935         gettimeofday: provide correct function
26936         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
26937         when replacement is declared, otherwise provide gettimeofday.
26938         Reported by Michael Goffioul.
26939
26940 2010-02-23  Jim Meyering  <meyering@redhat.com>
26941
26942         lib-ignore: relax license to "unlimited", not LGPLv2+
26943         * modules/lib-ignore (License): Relax to "unlimited".
26944
26945 2010-02-23  Jim Meyering  <meyering@redhat.com>
26946
26947         lib-ignore: relax license to LGPLv2+
26948         * modules/lib-ignore (License): Relax to LGPLv2+.
26949
26950 2010-02-22  Eric Blake  <eblake@redhat.com>
26951
26952         lseek: avoid bash 3.2 broken pipe bug
26953         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
26954         warning from bash 3.2.
26955         Reported by Ben Pfaff, with analysis from Bruno Haible.
26956
26957         bootstrap: support non-FSF copyright holder
26958         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
26959         bootstrap.conf override of COPYRIGHT_HOLDER.
26960         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
26961
26962         bootstrap: interoperate with gettext 0.14.1
26963         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
26964
26965         bootstrap: allow for alternate submodule location
26966         * build-aux/bootstrap (gnulib_path): New variable; use instead of
26967         hardcoding submodule location.
26968         (gnulib_mk): Allow direct use of Makefile.am.
26969
26970         bootstrap: use GNULIB_SRCDIR to reduce disk usage
26971         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
26972         rather than reconfiguring where the submodule points.
26973
26974         gettimeofday: restore support for platforms that lack function
26975         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
26976         replacement if function is missing.
26977         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
26978         * modules/sys_time (Makefile.am): Substitute it.
26979         * lib/sys_time.in.h (gettimeofday): Check it.
26980         Reported by Michael Goffioul.
26981
26982 2010-02-21  Bruno Haible  <bruno@clisp.org>
26983
26984         * lib/stdio.in.h (obstack_printf): Fix typo.
26985
26986 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
26987
26988         vc-list-files: use bzr ls's -R option
26989         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
26990         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
26991
26992 2010-02-21  Jim Meyering  <meyering@redhat.com>
26993
26994         init.sh: fix EXEEXT shims to work also for names like test-prog
26995         * tests/init.sh: Re-exec a better shell, when needed.
26996         If the current shell lacks support for posix $(...), an init.sh-using
26997         test will now try to find a shell that supports that.  If EXEEXT is
26998         nonempty, we also require support for hyphen-in-alias-name and shell
26999         substitutions like ${var#glob}.  Failure to find such a shell results
27000         in a skipped test.
27001
27002 2010-02-21  Bruno Haible  <bruno@clisp.org>
27003
27004         Really work around around "broken pipe" error message from bash 3.2.
27005         * gnulib-tool (func_reset_sigpipe): Remove function.
27006         (echo): In bash 3.2, define to a function that uses printf.
27007         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
27008
27009 2010-02-20  Bruno Haible  <bruno@clisp.org>
27010
27011         Restore support for automake 1.9.6 with autoconf 2.61.
27012         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
27013         Reported by James Youngman <jay@gnu.org>.
27014
27015 2010-02-20  Bruno Haible  <bruno@clisp.org>
27016
27017         Improve *printf warning condition.
27018         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
27019         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
27020         and the function is overridden due to SIGPIPE emulation.
27021
27022 2010-02-20  Bruno Haible  <bruno@clisp.org>
27023
27024         * lib/stdio.in.h: Tweak comments.
27025
27026 2010-02-19  Bruno Haible  <bruno@clisp.org>
27027
27028         Make it easier to find modules. New gnulib-tool option '--find'.
27029         * gnulib-tool: New option --find.
27030         (func_usage): Document it.
27031         (func_sanitize_modulelist): New function, extracted from
27032         func_all_modules.
27033         (func_all_modules): Invoke it.
27034         * doc/gnulib-tool.texi (Which modules?): New node.
27035
27036 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
27037
27038         * lib/sys_select.in.h: Provide select replacement even if
27039         sys/select.h exists on a system, for Interix.
27040
27041 2010-02-18  Jim Meyering  <meyering@redhat.com>
27042
27043         init.sh: don't use $(...) just yet
27044         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
27045         to accommodate e.g., Solaris' /bin/sh.
27046
27047 2010-02-17  Bruno Haible  <bruno@clisp.org>
27048
27049         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
27050         Reported by Ludovic Courtès <ludo@gnu.org>.
27051
27052 2010-02-16  Simon Josefsson  <simon@josefsson.org>
27053
27054         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
27055         linking with -lintl.
27056
27057 2010-02-17  Simon Josefsson  <simon@josefsson.org>
27058
27059         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
27060         if not provided by the system's netdb.h.  Reported by
27061         ludo@gnu.org (Ludovic Courtès).
27062
27063 2010-02-15  Jim Meyering  <meyering@redhat.com>
27064
27065         init.sh: improve portability and efficiency
27066         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
27067         "dummy" in a for loop.
27068         Use '!', not '^' to select the complement of a character set used
27069         in a "case" statement.
27070         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
27071         Suggestions from Eric Blake.
27072
27073         init.sh: automatically accommodate programs with the .exe suffix
27074         Automatically arrange for an invocation of "prog" to execute the
27075         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
27076         may use the simpler "prog", yet still work when built on a system
27077         that requires specifying the added suffix.
27078         Do this by constructing a function named "prog" that invokes
27079         "prog.exe" for each .exe file in selected directories.
27080         * tests/init.sh (find_exe_basenames_): New function.
27081         (create_exe_shim_functions_): New function.
27082         (path_prepend_): Use it.
27083
27084         maint.mk: mark syntax-check sc_*.m rules as .PHONY
27085         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
27086         "make -t syntax-check" doesn't create a ton of sc_*.m files.
27087
27088 2010-02-14  Jim Meyering  <meyering@redhat.com>
27089
27090         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
27091         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
27092         (sc_prohibit_hash_pjw_without_use): New rule.
27093
27094         maint.mk: allow the default upload destination dir to be overridden
27095         * top/maint.mk (upload_dest_dir_): Define with a default that
27096         preserves the status quo.
27097         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
27098         Reported by Peter Simons.
27099
27100         maint.mk: prohibit inclusion of "hash.h" without_use
27101         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
27102
27103 2010-02-10  Jim Meyering  <meyering@redhat.com>
27104
27105         maint.mk: prohibit inclusion of "ignore-value.h" without_use
27106         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
27107
27108 2010-02-09  Eric Blake  <ebb9@byu.net>
27109         and Bruno Haible  <bruno@clisp.org>
27110
27111         obstack-printf-posix: ensure declaration
27112         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
27113         extracted from gl_FUNC_OBSTACK_PRINTF.
27114         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
27115         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
27116         Likewise.
27117         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
27118         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
27119         0.
27120
27121 2010-02-08  Bruno Haible  <bruno@clisp.org>
27122
27123         gnulib-tool: Fix typo in 2010-02-07 commit.
27124         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
27125         Reported by Eric Blake.
27126
27127 2010-02-07  Bruno Haible  <bruno@clisp.org>
27128
27129         gnulib-tool: Fix up caching patches.
27130         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
27131         option --no-cache. Use associative arrays when supported by the shell.
27132         (sed_comments): New variable.
27133         (modcache): Renamed from do_cache.
27134         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
27135         abbreviate unnecessarily.
27136         (have_associative): New variable.
27137         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
27138         way also for ksh and zsh.
27139         (func_init_sed_convert_to_cache_statements): New function, extracted
27140         from func_cache_lookup_module. Add support for associative arrays.
27141         Don't set the c_MODULE_cached variable here. Ignore all lines before
27142         the first field header. Remove only the final newline, not all trailing
27143         newlines. Support empty fields correctly. Limit the use of 'eval' to
27144         assignments.
27145         (func_get_description, func_get_status, func_get_notice,
27146         func_get_applicability, func_get_filelist, func_get_dependencies,
27147         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
27148         func_get_automake_snippet, func_get_include_directive,
27149         func_get_link_directive, func_get_license, func_get_maintainer):
27150         Update documentation. List the unoptimized code first. Add support for
27151         associative arrays. Limit the use of 'eval' to assignments.
27152         (func_get_applicability): Undo stylistic pessimisations.
27153         (func_get_automake_snippet, func_get_include_directive): Reduce code
27154         duplication.
27155         (func_modules_transitive_closure, func_modules_add_dummy,
27156         func_modules_notice, func_modules_to_filelist, func_add_file,
27157         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
27158         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
27159         func_create_testdir, func_create_megatestdir): Update documentation.
27160
27161 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27162
27163         * gnulib-tool (func_cache_lookup_module): Store the module name
27164         belonging to the cache variable; error out if two different
27165         module names map to the same cache variable name.
27166
27167 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27168
27169         gnulib-tool: Make caching optional.
27170         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
27171         Update matching short versions of --no-changelog.
27172         (func_usage): Update.
27173         (sed_extract_cache_prog): Renamed from ...
27174         (sed_extract_prog): ... this; revert to old extraction script.
27175         (func_get_description, func_get_status)
27176         (func_get_notice, func_get_applicability, func_get_filelist)
27177         (func_get_dependencies, func_get_autoconf_early_snippet)
27178         (func_get_autoconf_snippet, func_get_automake_snippet)
27179         (func_get_include_directive, func_get_link_directive)
27180         (func_get_license, func_get_maintainer): If $do_cache is false,
27181         use old, non-caching extraction scripts.
27182         Suggestion by Bruno Haible.
27183
27184 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27185
27186         gnulib-tool: cache module metainformation.
27187         * gnulib-tool (sed_extract_prog): Match newline before each
27188         header, and rewrite header to a shell variable suffix.
27189         (func_cache_var, func_cache_lookup_module): New functions,
27190         to turn a module name into a cache variable prefix, and to
27191         look up and cache module metainformation.
27192         (func_get_description, func_get_status)
27193         (func_get_notice, func_get_applicability, func_get_filelist)
27194         (func_get_dependencies, func_get_autoconf_early_snippet)
27195         (func_get_autoconf_snippet, func_get_automake_snippet)
27196         (func_get_include_directive, func_get_link_directive)
27197         (func_get_license, func_get_maintainer): Use
27198         func_cache_lookup_module.
27199
27200 2010-02-07  Bruno Haible  <bruno@clisp.org>
27201
27202         fnctl: Fix missing dependency.
27203         * modules/fcntl (Depends-on): Add getdtablesize.
27204         Reported by John W. Eaton <jwe@gnu.org>.
27205
27206 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
27207
27208         Argp: fix recognition of short alias options.
27209
27210         * lib/argp-parse.c (convert_options): Fix improper use of
27211         `|' between character values.
27212         * tests/test-argp.c (group1_option): New alias option
27213         --read (-r).
27214         (group1_parser): Special handling for 'r'.
27215         (test15): New test case.
27216         (test_fun): Add test15.
27217         * tests/test-argp-2.sh: Update expected --help and --usage
27218         outputs.
27219
27220 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
27221
27222         * tests/test-argp.c: Fix indentation.
27223
27224 2010-02-04  Eric Blake  <ebb9@byu.net>
27225
27226         gettimeofday: expose type of second argument
27227         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
27228         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
27229         * tests/test-gettimeofday.c: Use it to silence warning.
27230         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
27231         the issue.
27232
27233 2010-02-03  Jim Meyering  <meyering@redhat.com>
27234
27235         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
27236         * lib/regcomp.c (TYPE_SIGNED): Define.
27237         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
27238
27239         regcomp.c: avoid a new -Wshadow warning
27240         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
27241
27242 2010-02-01  Jim Meyering  <meyering@redhat.com>
27243
27244         removing useless parentheses in cpp #define directives
27245         For motivation, see commit c0221df4, "define STREQ(a,b)
27246         consistently, removing useless parentheses"
27247         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
27248         * lib/mountlist.c (MNT_IGNORE): Likewise.
27249         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
27250
27251 2010-02-01  Eric Blake  <ebb9@byu.net>
27252
27253         sys_time: use link-warning
27254         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
27255         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
27256         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
27257         * modules/sys_time (Depends-on): Add warn-on-use.
27258         (Makefile.am): Always build replacement.
27259         (configure.ac): Update substitutions.
27260         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
27261         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
27262         bother with SYS_TIME_H.
27263         * modules/gettimeofday (configure.ac): Declare indicator.
27264         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
27265         in use.
27266
27267         closein-tests: silence compiler warning
27268         * tests/test-closein.c (main): Ignore fread result.
27269         * modules/closein-tests (Depends-on): Add ignore-value.
27270
27271         tests: silence warning about system return
27272         * tests/test-areadlink-with-size.c (main): Ignore system result.
27273         * tests/test-areadlink.c (main): Likewise.
27274         * tests/test-areadlinkat-with-size.c (main): Likewise.
27275         * tests/test-areadlinkat.c (main): Likewise.
27276         * tests/test-canonicalize-lgpl.c (main): Likewise.
27277         * tests/test-canonicalize.c (main): Likewise.
27278         * tests/test-chown.c (main): Likewise.
27279         * tests/test-fchownat.c (main): Likewise.
27280         * tests/test-fdutimensat.c (main): Likewise.
27281         * tests/test-fstatat.c (main): Likewise.
27282         * tests/test-futimens.c (main): Likewise.
27283         * tests/test-lchown.c (main): Likewise.
27284         * tests/test-link.c (main): Likewise.
27285         * tests/test-linkat.c (main): Likewise.
27286         * tests/test-lstat.c (main): Likewise.
27287         * tests/test-mkdir.c (main): Likewise.
27288         * tests/test-mkdirat.c (main): Likewise.
27289         * tests/test-mkfifo.c (main): Likewise.
27290         * tests/test-mkfifoat.c (main): Likewise.
27291         * tests/test-mknod.c (main): Likewise.
27292         * tests/test-readlink.c (main): Likewise.
27293         * tests/test-remove.c (main): Likewise.
27294         * tests/test-rename.c (main): Likewise.
27295         * tests/test-renameat.c (main): Likewise.
27296         * tests/test-rmdir.c (main): Likewise.
27297         * tests/test-symlink.c (main): Likewise.
27298         * tests/test-symlinkat.c (main): Likewise.
27299         * tests/test-unlink.c (main): Likewise.
27300         * tests/test-unlinkat.c (main): Likewise.
27301         * tests/test-utimens.c (main): Likewise.
27302         * tests/test-utimensat.c (main): Likewise.
27303         * modules/areadlink-tests (Depends-on): Add ignore-value.
27304         * modules/areadlink-with-size-tests (Depends-on): Likewise.
27305         * modules/areadlinkat-tests (Depends-on): Likewise.
27306         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
27307         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
27308         * modules/canonicalize-tests (Depends-on): Likewise.
27309         * modules/chown-tests (Depends-on): Likewise.
27310         * modules/fdutimensat-tests (Depends-on): Likewise.
27311         * modules/futimens-tests (Depends-on): Likewise.
27312         * modules/lchown-tests (Depends-on): Likewise.
27313         * modules/link-tests (Depends-on): Likewise.
27314         * modules/linkat-tests (Depends-on): Likewise.
27315         * modules/lstat-tests (Depends-on): Likewise.
27316         * modules/mkdir-tests (Depends-on): Likewise.
27317         * modules/mkfifo-tests (Depends-on): Likewise.
27318         * modules/mkfifoat-tests (Depends-on): Likewise.
27319         * modules/mknod-tests (Depends-on): Likewise.
27320         * modules/openat-tests (Depends-on): Likewise.
27321         * modules/readlink-tests (Depends-on): Likewise.
27322         * modules/remove-tests (Depends-on): Likewise.
27323         * modules/rename-tests (Depends-on): Likewise.
27324         * modules/renameat-tests (Depends-on): Likewise.
27325         * modules/rmdir-tests (Depends-on): Likewise.
27326         * modules/symlink-tests (Depends-on): Likewise.
27327         * modules/symlinkat-tests (Depends-on): Likewise.
27328         * modules/unlink-tests (Depends-on): Likewise.
27329         * modules/utimens-tests (Depends-on): Likewise.
27330         * modules/utimensat-tests (Depends-on): Likewise.
27331
27332 2010-01-31  Bruno Haible  <bruno@clisp.org>
27333
27334         Perform the same test for many <math.h> functions.
27335         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
27336         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
27337         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
27338         of gl_MATHFUNC.
27339         * modules/acos (configure.ac): Likewise.
27340         * modules/asin (configure.ac): Likewise.
27341         * modules/atan (configure.ac): Likewise.
27342         * modules/atan2 (configure.ac): Likewise.
27343         * modules/cbrt (configure.ac): Likewise.
27344         * modules/copysign (configure.ac): Likewise.
27345         * modules/cos (configure.ac): Likewise.
27346         * modules/cosh (configure.ac): Likewise.
27347         * modules/erf (configure.ac): Likewise.
27348         * modules/erfc (configure.ac): Likewise.
27349         * modules/exp (configure.ac): Likewise.
27350         * modules/fmod (configure.ac): Likewise.
27351         * modules/hypot (configure.ac): Likewise.
27352         * modules/j0 (configure.ac): Likewise.
27353         * modules/j1 (configure.ac): Likewise.
27354         * modules/jn (configure.ac): Likewise.
27355         * modules/lgamma (configure.ac): Likewise.
27356         * modules/log (configure.ac): Likewise.
27357         * modules/log10 (configure.ac): Likewise.
27358         * modules/log1p (configure.ac): Likewise.
27359         * modules/pow (configure.ac): Likewise.
27360         * modules/remainder (configure.ac): Likewise.
27361         * modules/sin (configure.ac): Likewise.
27362         * modules/sinh (configure.ac): Likewise.
27363         * modules/tan (configure.ac): Likewise.
27364         * modules/tanh (configure.ac): Likewise.
27365         * modules/y0 (configure.ac): Likewise.
27366         * modules/y1 (configure.ac): Likewise.
27367         * modules/yn (configure.ac): Likewise.
27368         Suggested by Paolo Bonzini.
27369
27370 2010-01-31  Bruno Haible  <bruno@clisp.org>
27371
27372         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
27373
27374 2010-01-31  Bruno Haible  <bruno@clisp.org>
27375
27376         Work around getdelim() bug on FreeBSD 8.0.
27377         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
27378         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
27379         not work.
27380         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
27381         is 1.
27382         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
27383         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
27384         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
27385         a non-zero size.
27386         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
27387
27388 2010-01-31  Bruno Haible  <bruno@clisp.org>
27389
27390         Work around getline() bug on FreeBSD 8.0.
27391         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
27392         and a non-zero size.
27393         * tests/test-getline.c (main): Likewise.
27394         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
27395         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
27396
27397 2010-01-28  Eric Blake  <ebb9@byu.net>
27398
27399         regex: fix build failure
27400         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
27401         platforms.
27402
27403 2010-01-28  Jim Meyering  <meyering@redhat.com>
27404
27405         regex: do not ignore memory allocation failure
27406         * lib/regex_internal.c (create_cd_newstate): Detect
27407         re_node_set_init_copy failure.   Extracted from glibc commit
27408         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
27409
27410         regex: sync more white-space changes from libc
27411         * lib/regex_internal.c: White-space only changes.
27412         * lib/regexec.c: Likewise.
27413
27414         regex: add many uses of __attribute_warn_unused_result__
27415         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
27416         * lib/regexec.c: Likewise.
27417         Extracted from a messy glibc commit.
27418
27419         regcomp.c: spelling and merge-artifact from glibc
27420         * lib/regcomp.c: Merge remainder of glibc's
27421         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
27422
27423         regcomp.c: sync white-space changes from glibc
27424         * lib/regcomp.c: Merge to accommodate white space
27425         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
27426
27427         regcomp.c: do not ignore internal return values
27428         * lib/regcomp.c: Do not ignore internal return values.
27429         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
27430         but without its white-space changes and spelling fixes.
27431
27432         regex_internal.h: define __attribute_warn_unused_result__
27433         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
27434
27435         maint: add a syntax-check rule to check for vulnerable Makefile.in
27436         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
27437
27438 2010-01-27  Jim Meyering  <meyering@redhat.com>
27439
27440         ncftpput-ftp: clean up spaces
27441         * build-aux/ncftpput-ftp: Make Copyright line consistent.
27442         Remove trailing blanks.
27443
27444 2010-01-27  Simon Josefsson  <simon@josefsson.org>
27445
27446         * build-aux/git-version-gen: Fix copyright statement.
27447         * build-aux/gnupload: Likewise.
27448         * tests/test-arcfour.c: Likewise.
27449         * tests/test-arctwo.c: Likewise.
27450         * tests/test-count-one-bits.c: Likewise.
27451         * tests/test-crc.c: Likewise.
27452         * tests/test-des.c: Likewise.
27453         * tests/test-gc-arcfour.c: Likewise.
27454         * tests/test-gc-arctwo.c: Likewise.
27455         * tests/test-gc-des.c: Likewise.
27456         * tests/test-gc-hmac-md5.c: Likewise.
27457         * tests/test-gc-hmac-sha1.c: Likewise.
27458         * tests/test-gc-md2.c: Likewise.
27459         * tests/test-gc-md4.c: Likewise.
27460         * tests/test-gc-md5.c: Likewise.
27461         * tests/test-gc-pbkdf2-sha1.c: Likewise.
27462         * tests/test-gc-rijndael.c: Likewise.
27463         * tests/test-gc-sha1.c: Likewise.
27464         * tests/test-gc.c: Likewise.
27465         * tests/test-gethostname.c: Likewise.
27466         * tests/test-gettimeofday.c: Likewise.
27467         * tests/test-hash.c: Likewise.
27468         * tests/test-hmac-md5.c: Likewise.
27469         * tests/test-hmac-sha1.c: Likewise.
27470         * tests/test-md2.c: Likewise.
27471         * tests/test-md4.c: Likewise.
27472         * tests/test-md5.c: Likewise.
27473         * tests/test-memchr.c: Likewise.
27474         * tests/test-memchr2.c: Likewise.
27475         * tests/test-memcmp.c: Likewise.
27476         * tests/test-memmem.c: Likewise.
27477         * tests/test-memrchr.c: Likewise.
27478         * tests/test-rawmemchr.c: Likewise.
27479         * tests/test-read-file.c: Likewise.
27480         * tests/test-rijndael.c: Likewise.
27481         * tests/test-sockets.c: Likewise.
27482         * tests/test-strchrnul.c: Likewise.
27483         * tests/test-strstr.c: Likewise.
27484         * tests/test-strtod.c: Likewise.
27485         * build-aux/ncftpput-ftp: Likewise.
27486
27487 2010-01-26  Eric Blake  <ebb9@byu.net>
27488
27489         ignore-value: update recommended header name
27490         * modules/ignore-value (Include): Only use <> for headers that
27491         exist in glibc.
27492
27493 2010-01-26  Jim Meyering  <meyering@redhat.com>
27494
27495         test-userspec.c: avoid compiler warnings
27496         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
27497         and "initialization discards qualifiers..." warnings.
27498         Put the first "uid" in its own scope, and make char* members "const".
27499
27500 2010-01-25  Bruno Haible  <bruno@clisp.org>
27501
27502         gnulib-tool: Make warning diagnostics consistent.
27503         * gnulib-tool (func_warning): New function.
27504         Use it everywhere where gnulib-tool produces output to stderr and it is
27505         not a fatal error.
27506
27507 2010-01-25  Bruno Haible  <bruno@clisp.org>
27508
27509         Fix test dependencies.
27510         * modules/xstrtol-tests (Depends-on): Add inttypes.
27511         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
27512
27513 2010-01-25 Pádraig Brady <P@draigBrady.com>
27514
27515         syntax-check: detect incorrect boolean macro values in config.h
27516         * modules/maintainer-makefile (configure.ac): Parameterize the location
27517         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
27518         The logic is from Eric Blake and the location indicated by Jim Meyering.
27519         Note the more natural CONFIG_HEADER name is prohibited by automake
27520         for backwards compatibility reasons.
27521         * top/maint.mk (sc_Wundef_boolean): New rule.
27522
27523 2010-01-25  Jim Meyering  <meyering@redhat.com>
27524
27525         bootstrap: detect MacOS 10.6's shasum, too
27526         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
27527         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
27528
27529 2010-01-23  Jim Meyering  <meyering@redhat.com>
27530
27531         xstrtoll: new module
27532         * modules/xstrtoll: New file.
27533         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
27534         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
27535         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
27536         ./configure fails if you use this module and lack "long long".
27537         * modules/xstrtoll-tests: New module.
27538         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
27539         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
27540         new init.sh-based test framework.
27541
27542 2010-01-24  Bruno Haible  <bruno@clisp.org>
27543
27544         Tests for module 'yn'.
27545         * modules/yn-tests: New file.
27546         * tests/test-yn.c: New file.
27547
27548         Tests for module 'y1'.
27549         * modules/y1-tests: New file.
27550         * tests/test-y1.c: New file.
27551
27552         Tests for module 'y0'.
27553         * modules/y0-tests: New file.
27554         * tests/test-y0.c: New file.
27555
27556         Tests for module 'tanh'.
27557         * modules/tanh-tests: New file.
27558         * tests/test-tanh.c: New file.
27559
27560         Tests for module 'tan'.
27561         * modules/tan-tests: New file.
27562         * tests/test-tan.c: New file.
27563
27564         Tests for module 'sqrt'.
27565         * modules/sqrt-tests: New file.
27566         * tests/test-sqrt.c: New file.
27567
27568         Tests for module 'sinh'.
27569         * modules/sinh-tests: New file.
27570         * tests/test-sinh.c: New file.
27571
27572         Tests for module 'sin'.
27573         * modules/sin-tests: New file.
27574         * tests/test-sin.c: New file.
27575
27576         Tests for module 'rint'.
27577         * modules/rint-tests: New file.
27578         * tests/test-rint.c: New file.
27579
27580         Tests for module 'remainder'.
27581         * modules/remainder-tests: New file.
27582         * tests/test-remainder.c: New file.
27583
27584         Tests for module 'pow'.
27585         * modules/pow-tests: New file.
27586         * tests/test-pow.c: New file.
27587
27588         Tests for module 'nextafter'.
27589         * modules/nextafter-tests: New file.
27590         * tests/test-nextafter.c: New file.
27591
27592         Tests for module 'modf'.
27593         * modules/modf-tests: New file.
27594         * tests/test-modf.c: New file.
27595
27596         Tests for module 'logb'.
27597         * modules/logb-tests: New file.
27598         * tests/test-logb.c: New file.
27599
27600         Tests for module 'log1p'.
27601         * modules/log1p-tests: New file.
27602         * tests/test-log1p.c: New file.
27603
27604         Tests for module 'log10'.
27605         * modules/log10-tests: New file.
27606         * tests/test-log10.c: New file.
27607
27608         Tests for module 'log'.
27609         * modules/log-tests: New file.
27610         * tests/test-log.c: New file.
27611
27612         Tests for module 'lgamma'.
27613         * modules/lgamma-tests: New file.
27614         * tests/test-lgamma.c: New file.
27615
27616         Tests for module 'ldexp'.
27617         * modules/ldexp-tests: New file.
27618         * tests/test-ldexp.c: New file.
27619
27620         Tests for module 'jn'.
27621         * modules/jn-tests: New file.
27622         * tests/test-jn.c: New file.
27623
27624         Tests for module 'j1'.
27625         * modules/j1-tests: New file.
27626         * tests/test-j1.c: New file.
27627
27628         Tests for module 'j0'.
27629         * modules/j0-tests: New file.
27630         * tests/test-j0.c: New file.
27631
27632         Tests for module 'hypot'.
27633         * modules/hypot-tests: New file.
27634         * tests/test-hypot.c: New file.
27635
27636         Tests for module 'fmod'.
27637         * modules/fmod-tests: New file.
27638         * tests/test-fmod.c: New file.
27639
27640         Tests for module 'fabs'.
27641         * modules/fabs-tests: New file.
27642         * tests/test-fabs.c: New file.
27643
27644         Tests for module 'exp'.
27645         * modules/exp-tests: New file.
27646         * tests/test-exp.c: New file.
27647
27648         Tests for module 'erfc'.
27649         * modules/erfc-tests: New file.
27650         * tests/test-erfc.c: New file.
27651
27652         Tests for module 'erf'.
27653         * modules/erf-tests: New file.
27654         * tests/test-erf.c: New file.
27655
27656         Tests for module 'cosh'.
27657         * modules/cosh-tests: New file.
27658         * tests/test-cosh.c: New file.
27659
27660         Tests for module 'cos'.
27661         * modules/cos-tests: New file.
27662         * tests/test-cos.c: New file.
27663
27664         Tests for module 'copysign'.
27665         * modules/copysign-tests: New file.
27666         * tests/test-copysign.c: New file.
27667
27668         Tests for module 'cbrt'.
27669         * modules/cbrt-tests: New file.
27670         * tests/test-cbrt.c: New file.
27671
27672         Tests for module 'atan2'.
27673         * modules/atan2-tests: New file.
27674         * tests/test-atan2.c: New file.
27675
27676         Tests for module 'atan'.
27677         * modules/atan-tests: New file.
27678         * tests/test-atan.c: New file.
27679
27680         Tests for module 'asin'.
27681         * modules/asin-tests: New file.
27682         * tests/test-asin.c: New file.
27683
27684         Tests for module 'acos'.
27685         * modules/acos-tests: New file.
27686         * tests/test-acos.c: New file.
27687
27688 2010-01-24  Bruno Haible  <bruno@clisp.org>
27689
27690         Fix tests for common <math.h> functions.
27691         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
27692         code snippet that references the function pointer, rather than merely
27693         calling the function. Substitute the FUNC_LIBM variable.
27694         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
27695         * modules/acos (configure.ac): Likewise.
27696         * modules/asin (configure.ac): Likewise.
27697         * modules/atan (configure.ac): Likewise.
27698         * modules/atan2 (configure.ac): Likewise.
27699         * modules/cbrt (configure.ac): Likewise.
27700         * modules/copysign (configure.ac): Likewise.
27701         * modules/cos (configure.ac): Likewise.
27702         * modules/cosh (configure.ac): Likewise.
27703         * modules/erf (configure.ac): Likewise.
27704         * modules/erfc (configure.ac): Likewise.
27705         * modules/exp (configure.ac): Likewise.
27706         * modules/fabs (configure.ac): Likewise.
27707         * modules/fmod (configure.ac): Likewise.
27708         * modules/hypot (configure.ac): Likewise.
27709         * modules/j0 (configure.ac): Likewise.
27710         * modules/j1 (configure.ac): Likewise.
27711         * modules/jn (configure.ac): Likewise.
27712         * modules/ldexp (configure.ac): Likewise.
27713         * modules/lgamma (configure.ac): Likewise.
27714         * modules/log (configure.ac): Likewise.
27715         * modules/log10 (configure.ac): Likewise.
27716         * modules/log1p (configure.ac): Likewise.
27717         * modules/logb (configure.ac): Likewise.
27718         * modules/modf (configure.ac): Likewise.
27719         * modules/nextafter (configure.ac): Likewise.
27720         * modules/pow (configure.ac): Likewise.
27721         * modules/remainder (configure.ac): Likewise.
27722         * modules/rint (configure.ac): Likewise.
27723         * modules/sin (configure.ac): Likewise.
27724         * modules/sinh (configure.ac): Likewise.
27725         * modules/tan (configure.ac): Likewise.
27726         * modules/tanh (configure.ac): Likewise.
27727         * modules/y0 (configure.ac): Likewise.
27728         * modules/y1 (configure.ac): Likewise.
27729         * modules/yn (configure.ac): Likewise.
27730
27731 2010-01-24  Bruno Haible  <bruno@clisp.org>
27732
27733         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
27734         * tests/test-acosl.c (x): New variable.
27735         (main): Store argument in x and fetch it from x.
27736         * tests/test-asinl.c (x): New variable.
27737         (main): Store argument in x and fetch it from x.
27738         * tests/test-atanl.c (x): New variable.
27739         (main): Store argument in x and fetch it from x.
27740         * tests/test-cosl.c (x): New variable.
27741         (main): Store argument in x and fetch it from x.
27742         * tests/test-expl.c (x): New variable.
27743         (main): Store argument in x and fetch it from x.
27744         * tests/test-logl.c (x): New variable.
27745         (main): Store argument in x and fetch it from x.
27746         * tests/test-sinl.c (x): New variable.
27747         (main): Store argument in x and fetch it from x.
27748         * tests/test-sqrtl.c (x): New variable.
27749         (main): Store argument in x and fetch it from x.
27750         * tests/test-tanl.c (x): New variable.
27751         (main): Store argument in x and fetch it from x.
27752
27753 2010-01-24  Bruno Haible  <bruno@clisp.org>
27754
27755         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
27756         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
27757         assignments to the initial TESTS_ENVIRONMENT.
27758         * doc/gnulib.texi (Unit test modules): Document it.
27759         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
27760         TESTS_ENVIRONMENT.
27761         * modules/btowc-tests (Makefile.am): Likewise.
27762         * modules/c-stack-tests (Makefile.am): Likewise.
27763         * modules/c-strcase-tests (Makefile.am): Likewise.
27764         * modules/copy-file-tests (Makefile.am): Likewise.
27765         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
27766         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
27767         * modules/mbrtowc-tests (Makefile.am): Likewise.
27768         * modules/mbscasecmp-tests (Makefile.am): Likewise.
27769         * modules/mbscasestr-tests (Makefile.am): Likewise.
27770         * modules/mbschr-tests (Makefile.am): Likewise.
27771         * modules/mbscspn-tests (Makefile.am): Likewise.
27772         * modules/mbsinit-tests (Makefile.am): Likewise.
27773         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
27774         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
27775         * modules/mbspbrk-tests (Makefile.am): Likewise.
27776         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
27777         * modules/mbsrchr-tests (Makefile.am): Likewise.
27778         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
27779         * modules/mbsspn-tests (Makefile.am): Likewise.
27780         * modules/mbsstr-tests (Makefile.am): Likewise.
27781         * modules/nl_langinfo-tests (Makefile.am): Likewise.
27782         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
27783         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
27784         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
27785         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
27786         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
27787         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
27788         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
27789         * modules/wcrtomb-tests (Makefile.am): Likewise.
27790         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
27791         * modules/wcsrtombs-tests (Makefile.am): Likewise.
27792         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
27793         assignments from TESTS_ENVIRONMENT.
27794         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
27795         augmentation.
27796         * modules/argp-version-etc-tests (Makefile.am): Likewise.
27797         * modules/atexit-tests (Makefile.am): Likewise.
27798         * modules/binary-io-tests (Makefile.am): Likewise.
27799         * modules/closein-tests (Makefile.am): Likewise.
27800         * modules/dprintf-posix-tests (Makefile.am): Likewise.
27801         * modules/exclude-tests (Makefile.am): Likewise.
27802         * modules/fflush-tests (Makefile.am): Likewise.
27803         * modules/fpending-tests (Makefile.am): Likewise.
27804         * modules/fprintf-posix-tests (Makefile.am): Likewise.
27805         * modules/freadahead-tests (Makefile.am): Likewise.
27806         * modules/freadptr-tests (Makefile.am): Likewise.
27807         * modules/freadseek-tests (Makefile.am): Likewise.
27808         * modules/fseek-tests (Makefile.am): Likewise.
27809         * modules/fseeko-tests (Makefile.am): Likewise.
27810         * modules/ftell-tests (Makefile.am): Likewise.
27811         * modules/ftello-tests (Makefile.am): Likewise.
27812         * modules/idpriv-drop-tests (Makefile.am): Likewise.
27813         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
27814         * modules/lseek-tests (Makefile.am): Likewise.
27815         * modules/parse-duration-tests (Makefile.am): Likewise.
27816         * modules/perror-tests (Makefile.am): Likewise.
27817         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
27818         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
27819         * modules/pipe-tests (Makefile.am): Likewise.
27820         * modules/pread-tests (Makefile.am): Likewise.
27821         * modules/printf-posix-tests (Makefile.am): Likewise.
27822         * modules/select-tests (Makefile.am): Likewise.
27823         * modules/sigpipe-tests (Makefile.am): Likewise.
27824         * modules/tsearch-tests (Makefile.am): Likewise.
27825         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
27826         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
27827         * modules/uniname/uniname-tests (Makefile.am): Likewise.
27828         * modules/uniwidth/width-tests (Makefile.am): Likewise.
27829         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
27830         * modules/version-etc-tests (Makefile.am): Likewise.
27831         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
27832         * modules/vprintf-posix-tests (Makefile.am): Likewise.
27833         * modules/xalloc-die-tests (Makefile.am): Likewise.
27834         * modules/xprintf-posix-tests (Makefile.am): Likewise.
27835         * modules/xstrtoimax-tests (Makefile.am): Likewise.
27836         * modules/xstrtol-tests (Makefile.am): Likewise.
27837         * modules/xstrtoumax-tests (Makefile.am): Likewise.
27838         * modules/yesno-tests (Makefile.am): Likewise.
27839         Suggested by Jim Meyering.
27840
27841 2010-01-24  Bruno Haible  <bruno@clisp.org>
27842
27843         More documentation.
27844         * doc/gnulib.texi (Writing modules): New chapter.
27845         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
27846         the new chapter.
27847
27848 2010-01-24  Jim Meyering  <meyering@redhat.com>
27849
27850         maint.mk: do not prepend "./" after filtering
27851         * top/maint.mk (_prepend_srcdir_prefix): New variable
27852         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
27853         "./" when $(srcdir) is ".".
27854
27855         define STREQ(a,b) consistently, removing useless parentheses
27856         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
27857         since the only risk is that "a" or "b" contains an unparenthesized
27858         comma, but if either did that, STREQ would have 3 or more arguments.
27859         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
27860         * lib/fts.c (STREQ): Remove unnecessary parentheses.
27861         * lib/hash-triple.c (STREQ): Likewise.
27862         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
27863         * lib/getugroups.c (STREQ): Likewise.
27864
27865 2010-01-23  Jim Meyering  <meyering@redhat.com>
27866
27867         maint.mk: fix syntax-check in a non-srcdir build directory
27868         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
27869         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
27870
27871 2010-01-22  Jim Meyering  <meyering@redhat.com>
27872
27873         userspec: add unit tests
27874         * tests/test-userspec.c: New file.
27875         * modules/userspec-tests: Likewise.
27876
27877 2010-01-21  Jim Meyering  <meyering@redhat.com>
27878
27879         maint.mk: handle source file names containing "." robustly
27880         * top/maint.mk (_dot_escaped_srcdir): Define.
27881         (VC_LIST): Use it in LHS of sed substitution.
27882
27883 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
27884
27885         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
27886         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
27887         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
27888         from a non-srcdir build.
27889
27890 2010-01-20  Eric Blake  <ebb9@byu.net>
27891
27892         warn-on-use: use instead of link-warning
27893         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
27894         * modules/unistd (Depends-on, Makefile.am): Likewise.
27895         * modules/arpa_inet (Depends-on): Replace link-warning with
27896         warn-on-use.
27897         (Makefile.am): Update rules accordingly.
27898         * modules/ctype (Depends-on, Makefile.am): Likewise.
27899         * modules/dirent (Depends-on, Makefile.am): Likewise.
27900         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
27901         * modules/inttypes (Depends-on, Makefile.am): Likewise.
27902         * modules/langinfo (Depends-on, Makefile.am): Likewise.
27903         * modules/locale (Depends-on, Makefile.am): Likewise.
27904         * modules/math (Depends-on, Makefile.am): Likewise.
27905         * modules/search (Depends-on, Makefile.am): Likewise.
27906         * modules/signal (Depends-on, Makefile.am): Likewise.
27907         * modules/spawn (Depends-on, Makefile.am): Likewise.
27908         * modules/stdlib (Depends-on, Makefile.am): Likewise.
27909         * modules/string (Depends-on, Makefile.am): Likewise.
27910         * modules/strings (Depends-on, Makefile.am): Likewise.
27911         * modules/sys_file (Depends-on, Makefile.am): Likewise.
27912         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
27913         * modules/sys_select (Depends-on, Makefile.am): Likewise.
27914         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
27915         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
27916         * modules/sys_times (Depends-on, Makefile.am): Likewise.
27917         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
27918         * modules/wchar (Depends-on, Makefile.am): Likewise.
27919         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
27920         should be poisoned.
27921         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
27922         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
27923         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
27924         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
27925         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
27926         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
27927         * m4/math_h.m4 (gl_MATH_H): Likewise.
27928         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
27929         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
27930         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
27931         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
27932         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
27933         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
27934         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
27935         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
27936         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
27937         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
27938         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
27939         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
27940         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
27941         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
27942         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
27943         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
27944         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
27945         GL_LINK_WARNING.
27946         * lib/ctype.in.h: Likewise.
27947         * lib/dirent.in.h: Likewise.
27948         * lib/fcntl.in.h: Likewise.
27949         * lib/inttypes.in.h: Likewise.
27950         * lib/langinfo.in.h: Likewise.
27951         * lib/locale.in.h: Likewise.
27952         * lib/math.in.h: Likewise.
27953         * lib/search.in.h: Likewise.
27954         * lib/signal.in.h: Likewise.
27955         * lib/spawn.in.h: Likewise.
27956         * lib/stdio.in.h: Likewise.
27957         * lib/stdlib.in.h: Likewise.
27958         * lib/string.in.h: Likewise.
27959         * lib/strings.in.h: Likewise.
27960         * lib/sys_file.in.h: Likewise.
27961         * lib/sys_ioctl.in.h: Likewise.
27962         * lib/sys_select.in.h: Likewise.
27963         * lib/sys_socket.in.h: Likewise.
27964         * lib/sys_stat.in.h: Likewise.
27965         * lib/sys_times.in.h: Likewise.
27966         * lib/sys_utsname.in.h: Likewise.
27967         * lib/unistd.in.h: Likewise.
27968         * lib/wchar.in.h: Likewise.
27969
27970 2010-01-20  Bruno Haible  <bruno@clisp.org>
27971
27972         Avoid duplicate -lm.
27973         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
27974         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
27975         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
27976         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
27977         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
27978         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
27979         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
27980         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
27981         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
27982         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
27983         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
27984         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
27985         Reported by Paolo Bonzini.
27986
27987 2010-01-19  Bruno Haible  <bruno@clisp.org>
27988
27989         langinfo, nl_langinfo: Relicense under LGPLv2+.
27990         * modules/langinfo (License): Change to LGPLv2+.
27991         * modules/nl_langinfo (License): Likewise.
27992         Patch by David Lutterkort <lutter@redhat.com>.
27993
27994 2010-01-19  Bruno Haible  <bruno@clisp.org>
27995
27996         Avoid compilation error with cc on OSF/1 5.1.
27997         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
27998         statement, not before.
27999         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
28000
28001 2010-01-18  Bruno Haible  <bruno@clisp.org>
28002
28003         Avoid a link error due to the __printf__ symbol.
28004         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
28005         and 2.6.x.
28006         (__format__, __printf__): Remove definitions.
28007         * lib/argp-fmtstream.h: Likewise.
28008         * lib/argp.h: Likewise.
28009         * lib/error.h: Likewise.
28010         * lib/vasnprintf.h: Likewise.
28011         * lib/xprintf.h: Likewise.
28012         * lib/xvasprintf.h: Likewise.
28013         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
28014
28015 2010-01-18  Bruno Haible  <bruno@clisp.org>
28016
28017         Tests for module 'tanl'.
28018         * modules/tanl-tests: New file.
28019         * tests/test-tanl.c: New file.
28020
28021         Tests for module 'sqrtl'.
28022         * modules/sqrtl-tests: New file.
28023         * tests/test-sqrtl.c: New file.
28024
28025         Tests for module 'sinl'.
28026         * modules/sinl-tests: New file.
28027         * tests/test-sinl.c: New file.
28028
28029         Tests for module 'logl'.
28030         * modules/logl-tests: New file.
28031         * tests/test-logl.c: New file.
28032
28033         Tests for module 'expl'.
28034         * modules/expl-tests: New file.
28035         * tests/test-expl.c: New file.
28036
28037         Tests for module 'cosl'.
28038         * modules/cosl-tests: New file.
28039         * tests/test-cosl.c: New file.
28040
28041         Tests for module 'atanl'.
28042         * modules/atanl-tests: New file.
28043         * tests/test-atanl.c: New file.
28044
28045         Tests for module 'asinl'.
28046         * modules/asinl-tests: New file.
28047         * tests/test-asinl.c: New file.
28048
28049         Tests for module 'acosl'.
28050         * modules/acosl-tests: New file.
28051         * tests/test-acosl.c: New file.
28052
28053         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
28054         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
28055         tanl): Use the standard gnulib idiom.
28056         * lib/cosl.c: Don't include trigl.c and sincosl.c.
28057         * lib/sinl.c: Likewise.
28058         * lib/tanl.c: Don't include trigl.c.
28059         (kernel_tanl): Make static.
28060         * lib/sincosl.c: Include trigl.h first.
28061         * lib/trigl.c: Likewise.
28062         * m4/acosl.m4: New file.
28063         * m4/asinl.m4: New file.
28064         * m4/atanl.m4: New file.
28065         * m4/cosl.m4: New file.
28066         * m4/expl.m4: New file.
28067         * m4/logl.m4: New file.
28068         * m4/sinl.m4: New file.
28069         * m4/sqrtl.m4: New file.
28070         * m4/tanl.m4: New file.
28071         * m4/mathl.m4: Remove file.
28072         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
28073         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
28074         Don't initialize GNULIB_MATHL.
28075         * modules/acosl: New file.
28076         * modules/asinl: New file.
28077         * modules/atanl: New file.
28078         * modules/cosl: New file.
28079         * modules/expl: New file.
28080         * modules/logl: New file.
28081         * modules/sinl: New file.
28082         * modules/sqrtl: New file.
28083         * modules/tanl: New file.
28084         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
28085         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
28086         substitute GNULIB_MATHL.
28087         * modules/mathl: Rewritten.
28088         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
28089         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
28090         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
28091         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
28092         * doc/posix-functions/expl.texi: Mention the 'expl' module.
28093         * doc/posix-functions/logl.texi: Mention the 'logl' module.
28094         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
28095         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
28096         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
28097
28098 2010-01-18  Bruno Haible  <bruno@clisp.org>
28099
28100         sqrt: Make gl_FUNC_SQRT requirable.
28101         * m4/sqrt.m4: New file.
28102         * modules/sqrt (Files): Add it.
28103         (configure.ac): Invoke gl_FUNC_SQRT.
28104
28105 2010-01-18  Bruno Haible  <bruno@clisp.org>
28106
28107         New modules for common <math.h> functions.
28108         * m4/mathfunc.m4: New file.
28109         * modules/acos: New file.
28110         * modules/asin: New file.
28111         * modules/atan: New file.
28112         * modules/atan2: New file.
28113         * modules/cbrt: New file.
28114         * modules/copysign: New file.
28115         * modules/cos: New file.
28116         * modules/cosh: New file.
28117         * modules/erf: New file.
28118         * modules/erfc: New file.
28119         * modules/exp: New file.
28120         * modules/fabs: New file.
28121         * modules/fmod: New file.
28122         * modules/hypot: New file.
28123         * modules/j0: New file.
28124         * modules/j1: New file.
28125         * modules/jn: New file.
28126         * modules/ldexp: New file.
28127         * modules/lgamma: New file.
28128         * modules/log: New file.
28129         * modules/log10: New file.
28130         * modules/log1p: New file.
28131         * modules/logb: New file.
28132         * modules/modf: New file.
28133         * modules/nextafter: New file.
28134         * modules/pow: New file.
28135         * modules/remainder: New file.
28136         * modules/rint: New file.
28137         * modules/sin: New file.
28138         * modules/sinh: New file.
28139         * modules/sqrt: New file.
28140         * modules/tan: New file.
28141         * modules/tanh: New file.
28142         * modules/y0: New file.
28143         * modules/y1: New file.
28144         * modules/yn: New file.
28145         * doc/posix-functions/acos.texi: Mention the 'acos' module.
28146         * doc/posix-functions/asin.texi: Mention the 'asin' module.
28147         * doc/posix-functions/atan.texi: Mention the 'atan' module.
28148         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
28149         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
28150         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
28151         * doc/posix-functions/cos.texi: Mention the 'cos' module.
28152         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
28153         * doc/posix-functions/erf.texi: Mention the 'erf' module.
28154         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
28155         * doc/posix-functions/exp.texi: Mention the 'exp' module.
28156         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
28157         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
28158         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
28159         * doc/posix-functions/j0.texi: Mention the 'j0' module.
28160         * doc/posix-functions/j1.texi: Mention the 'j1' module.
28161         * doc/posix-functions/jn.texi: Mention the 'jn' module.
28162         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
28163         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
28164         * doc/posix-functions/log.texi: Mention the 'log' module.
28165         * doc/posix-functions/log10.texi: Mention the 'log10' module.
28166         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
28167         * doc/posix-functions/logb.texi: Mention the 'logb' module.
28168         * doc/posix-functions/modf.texi: Mention the 'modf' module.
28169         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
28170         * doc/posix-functions/pow.texi: Mention the 'pow' module.
28171         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
28172         * doc/posix-functions/rint.texi: Mention the 'rint' module.
28173         * doc/posix-functions/sin.texi: Mention the 'sin' module.
28174         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
28175         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
28176         * doc/posix-functions/tan.texi: Mention the 'tan' module.
28177         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
28178         * doc/posix-functions/y0.texi: Mention the 'y0' module.
28179         * doc/posix-functions/y1.texi: Mention the 'y1' module.
28180         * doc/posix-functions/yn.texi: Mention the 'yn' module.
28181
28182 2010-01-18  Jim Meyering  <meyering@redhat.com>
28183
28184         ignore-value: relax license to LGPLv2+
28185         * modules/ignore-value (License): Relax to LGPLv2+.
28186
28187         getdate: don't leak when TZ contains two or more '"'s
28188         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
28189         double quote in TZ after the first one.
28190
28191         readtokens: do not leak internal token_lengths buffer
28192         * lib/readtokens.c (readtokens): Free the local, lengths,
28193         when the supplied "token_lengths" parameter is NULL.
28194
28195 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28196
28197         Fix a couple of missing LIBTHREAD link failures on AIX.
28198         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
28199         $(LIBTHREAD).
28200         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
28201
28202         Link test-poll against INET_PTON_LIB.
28203         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
28204         for inet_pton on Solaris 10.
28205
28206 2010-01-17  Bruno Haible  <bruno@clisp.org>
28207
28208         unistdio/*-sprintf: Fix typo in module description.
28209         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
28210         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
28211         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
28212         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
28213         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
28214         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
28215         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
28216         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
28217
28218 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28219
28220         gnulib-tool: fix filelist for AIX, HP-UX ksh.
28221         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
28222         variables in shell case patterns, for AIX and HP-UX ksh.
28223
28224         Split large sed scripts, for HP-UX sed.
28225         * modules/stdio: Split sed scripts around 50 sed commands,
28226         to avoid HP-UX limit of 99 commands, in the near future.
28227         * modules/string: Likewise.
28228         * modules/unistd: Likewise.
28229
28230         gnulib-tool: avoid writing in the current directory.
28231         * gnulib-tool (func_emit_lib_Makefile_am)
28232         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
28233         not in the current directory, so concurrent gnulib-tool
28234         instances do not interfere.
28235
28236 2010-01-16  Jim Meyering  <meyering@redhat.com>
28237
28238         doc: update users.txt
28239         * users.txt: Add grep.
28240         (diffutils, gzip): Update URLs.
28241
28242 2010-01-12  Bruno Haible  <bruno@clisp.org>
28243
28244         posix_spawn: Avoid test failure on Cygwin.
28245         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
28246         characters.
28247         Reported by Simon Josefsson.
28248
28249 2010-01-12  Bruno Haible  <bruno@clisp.org>
28250
28251         * tests/test-cond.c (main): When skipping the test, show the reason.
28252
28253 2010-01-12  Simon Josefsson  <simon@josefsson.org>
28254
28255         * lib/striconv.c (str_cd_iconv): Avoid if before free.
28256
28257 2010-01-12  Simon Josefsson  <simon@josefsson.org>
28258
28259         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
28260         VC_LIST_ALWAYS_EXCLUDE_REGEX.
28261
28262 2010-01-12  Eric Blake  <ebb9@byu.net>
28263
28264         build: guarantee AS_VAR_IF
28265         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
28266         (gl_AS_VAR_IF): Move...
28267         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
28268         Reported by Simon Josefsson.
28269
28270 2010-01-12  Simon Josefsson  <simon@josefsson.org>
28271
28272         * lib/stdio.in.h: Fix typo.
28273
28274 2010-01-12  Simon Josefsson  <simon@josefsson.org>
28275
28276         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
28277         libgpg-error.
28278
28279 2010-01-12  Simon Josefsson  <simon@josefsson.org>
28280
28281         * tests/test-xalloc-die.sh: Use $EXEEXT.
28282
28283 2010-01-12  Simon Josefsson  <simon@josefsson.org>
28284             Bruno Haible  <bruno@clisp.org>
28285
28286         getlogin, getlogin_r: Avoid test failure.
28287         * tests/test-getlogin.c: Include <stdio.h>.
28288         (main): Skip the test when the function fails because stdin is not a
28289         tty.
28290         * tests/test-getlogin_r.c: Include <stdio.h>.
28291         (main): Skip the test when the function fails because stdin is not a
28292         tty.
28293
28294 2010-01-11  Eric Blake  <ebb9@byu.net>
28295
28296         tests: avoid more large file warnings
28297         * tests/test-fflush.c: Avoid warning about ftell use.
28298         * tests/test-fseek.c: Avoid warning about fseek use.
28299
28300 2010-01-10  Bruno Haible  <bruno@clisp.org>
28301
28302         nproc: Work better on Linux when /proc and /sys are not mounted.
28303         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
28304         as lower bound when, on glibc/Linux systems,
28305         sysconf (_SC_NPROCESSORS_CONF) returns 1.
28306         Suggested by Pádraig Brady <P@draigbrady.com>.
28307         Reported by Dmitry V. Levin <ldv@altlinux.org>.
28308
28309         nproc: Refactor.
28310         * lib/nproc.c (num_processors_via_affinity_mask): New function,
28311         extracted from num_processors.
28312         (num_processors): Call it.
28313
28314 2010-01-11  Jim Meyering  <meyering@redhat.com>
28315
28316         utimecmp: avoid new warning from upcoming gcc-4.5.0
28317         * lib/utimecmp.c (BILLION): Define using #define rather than an
28318         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
28319
28320 2010-01-11  Eric Blake  <ebb9@byu.net>
28321
28322         math: add portability warnings for classification macros
28323         * modules/math (Depends-on): Add warn-on-use.
28324         (Makefile.am): Provide new substitutions.
28325         * m4/math_h.m4 (gl_MATH_H): Require inline.
28326         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
28327         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
28328         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
28329         implement warnings.
28330
28331         unistd: warn on use of environ without module
28332         * modules/unistd (Depends-on): Add warn-on-use.
28333         (Makefile.am): Provide new substitutions.
28334         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
28335         * lib/unistd.in.h (environ): Wrap with a warning helper function.
28336
28337         stdio: warn on suspicious uses
28338         * modules/stdio (Depends-on): Add warn-on-use.
28339         (Makefile.am): Provide new substitutions.
28340         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
28341         fseeko.
28342         * lib/stdio.in.h (gets): Always warn on use.
28343         (fseek, ftell): Adjust when warnings are issued, and honor
28344         _GL_NO_LARGE_FILES as a way to silence the warning.
28345         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
28346         any warning about large file offsets.
28347         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
28348         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
28349         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
28350         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
28351         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
28352         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
28353         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
28354         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
28355
28356         warn-on-use: new module
28357         * modules/warn-on-use: New file.
28358         * build-aux/warn-on-use.h: Likewise.
28359         * m4/warn-on-use.m4: Likewise.
28360         * MODULES.html.sh (Support for building): Mention it.
28361
28362 2010-01-10  Bruno Haible  <bruno@clisp.org>
28363
28364         Tests for module 'unistr/u32-strdup'.
28365         * modules/unistr/u32-strdup-tests: New file.
28366         * tests/unistr/test-u32-strdup.c: New file.
28367
28368         Tests for module 'unistr/u16-strdup'.
28369         * modules/unistr/u16-strdup-tests: New file.
28370         * tests/unistr/test-u16-strdup.c: New file.
28371
28372         Tests for module 'unistr/u8-strdup'.
28373         * modules/unistr/u8-strdup-tests: New file.
28374         * tests/unistr/test-u8-strdup.c: New file.
28375         * tests/unistr/test-strdup.h: New file.
28376
28377         Tests for module 'unistr/u32-strncmp'.
28378         * modules/unistr/u32-strncmp-tests: New file.
28379         * tests/unistr/test-u32-strncmp.c: New file.
28380
28381         Tests for module 'unistr/u16-strncmp'.
28382         * modules/unistr/u16-strncmp-tests: New file.
28383         * tests/unistr/test-u16-strncmp.c: New file.
28384
28385         Tests for module 'unistr/u8-strncmp'.
28386         * modules/unistr/u8-strncmp-tests: New file.
28387         * tests/unistr/test-u8-strncmp.c: New file.
28388         * tests/unistr/test-strncmp.h: New file.
28389
28390         Tests for module 'unistr/u32-strcoll'.
28391         * modules/unistr/u32-strcoll-tests: New file.
28392         * tests/unistr/test-u32-strcoll.c: New file.
28393
28394         Tests for module 'unistr/u16-strcoll'.
28395         * modules/unistr/u16-strcoll-tests: New file.
28396         * tests/unistr/test-u16-strcoll.c: New file.
28397
28398         Tests for module 'unistr/u8-strcoll'.
28399         * modules/unistr/u8-strcoll-tests: New file.
28400         * tests/unistr/test-u8-strcoll.c: New file.
28401
28402         Tests for module 'unistr/u32-strcmp'.
28403         * modules/unistr/u32-strcmp-tests: New file.
28404         * tests/unistr/test-u32-strcmp.c: New file.
28405         * tests/unistr/test-u32-strcmp.h: New file.
28406
28407         Tests for module 'unistr/u16-strcmp'.
28408         * modules/unistr/u16-strcmp-tests: New file.
28409         * tests/unistr/test-u16-strcmp.c: New file.
28410         * tests/unistr/test-u16-strcmp.h: New file.
28411
28412         Tests for module 'unistr/u8-strcmp'.
28413         * modules/unistr/u8-strcmp-tests: New file.
28414         * tests/unistr/test-u8-strcmp.c: New file.
28415         * tests/unistr/test-u8-strcmp.h: New file.
28416         * tests/unistr/test-strcmp.h: New file.
28417
28418         Tests for module 'unistr/u32-strncat'.
28419         * modules/unistr/u32-strncat-tests: New file.
28420         * tests/unistr/test-u32-strncat.c: New file.
28421
28422         Tests for module 'unistr/u16-strncat'.
28423         * modules/unistr/u16-strncat-tests: New file.
28424         * tests/unistr/test-u16-strncat.c: New file.
28425
28426         Tests for module 'unistr/u8-strncat'.
28427         * modules/unistr/u8-strncat-tests: New file.
28428         * tests/unistr/test-u8-strncat.c: New file.
28429         * tests/unistr/test-strncat.h: New file.
28430
28431         Tests for module 'unistr/u32-strcat'.
28432         * modules/unistr/u32-strcat-tests: New file.
28433         * tests/unistr/test-u32-strcat.c: New file.
28434
28435         Tests for module 'unistr/u16-strcat'.
28436         * modules/unistr/u16-strcat-tests: New file.
28437         * tests/unistr/test-u16-strcat.c: New file.
28438
28439         Tests for module 'unistr/u8-strcat'.
28440         * modules/unistr/u8-strcat-tests: New file.
28441         * tests/unistr/test-u8-strcat.c: New file.
28442         * tests/unistr/test-strcat.h: New file.
28443
28444         Tests for module 'unistr/u32-stpncpy'.
28445         * modules/unistr/u32-stpncpy-tests: New file.
28446         * tests/unistr/test-u32-stpncpy.c: New file.
28447
28448         Tests for module 'unistr/u16-stpncpy'.
28449         * modules/unistr/u16-stpncpy-tests: New file.
28450         * tests/unistr/test-u16-stpncpy.c: New file.
28451
28452         Tests for module 'unistr/u8-stpncpy'.
28453         * modules/unistr/u8-stpncpy-tests: New file.
28454         * tests/unistr/test-u8-stpncpy.c: New file.
28455         * tests/unistr/test-stpncpy.h: New file.
28456
28457         Tests for module 'unistr/u32-strncpy'.
28458         * modules/unistr/u32-strncpy-tests: New file.
28459         * tests/unistr/test-u32-strncpy.c: New file.
28460
28461         Tests for module 'unistr/u16-strncpy'.
28462         * modules/unistr/u16-strncpy-tests: New file.
28463         * tests/unistr/test-u16-strncpy.c: New file.
28464
28465         Tests for module 'unistr/u8-strncpy'.
28466         * modules/unistr/u8-strncpy-tests: New file.
28467         * tests/unistr/test-u8-strncpy.c: New file.
28468         * tests/unistr/test-strncpy.h: New file.
28469
28470         Tests for module 'unistr/u32-stpcpy'.
28471         * modules/unistr/u32-stpcpy-tests: New file.
28472         * tests/unistr/test-u32-stpcpy.c: New file.
28473
28474         Tests for module 'unistr/u16-stpcpy'.
28475         * modules/unistr/u16-stpcpy-tests: New file.
28476         * tests/unistr/test-u16-stpcpy.c: New file.
28477
28478         Tests for module 'unistr/u8-stpcpy'.
28479         * modules/unistr/u8-stpcpy-tests: New file.
28480         * tests/unistr/test-u8-stpcpy.c: New file.
28481         * tests/unistr/test-stpcpy.h: New file.
28482
28483         Tests for module 'unistr/u32-strcpy'.
28484         * modules/unistr/u32-strcpy-tests: New file.
28485         * tests/unistr/test-u32-strcpy.c: New file.
28486
28487         Tests for module 'unistr/u16-strcpy'.
28488         * modules/unistr/u16-strcpy-tests: New file.
28489         * tests/unistr/test-u16-strcpy.c: New file.
28490
28491         Tests for module 'unistr/u8-strcpy'.
28492         * modules/unistr/u8-strcpy-tests: New file.
28493         * tests/unistr/test-u8-strcpy.c: New file.
28494         * tests/unistr/test-strcpy.h: New file.
28495
28496         Tests for module 'unistr/u32-strnlen'.
28497         * modules/unistr/u32-strnlen-tests: New file.
28498         * tests/unistr/test-u32-strnlen.c: New file.
28499
28500         Tests for module 'unistr/u16-strnlen'.
28501         * modules/unistr/u16-strnlen-tests: New file.
28502         * tests/unistr/test-u16-strnlen.c: New file.
28503
28504         Tests for module 'unistr/u8-strnlen'.
28505         * modules/unistr/u8-strnlen-tests: New file.
28506         * tests/unistr/test-u8-strnlen.c: New file.
28507         * tests/unistr/test-strnlen.h: New file.
28508
28509         Tests for module 'unistr/u32-strlen'.
28510         * modules/unistr/u32-strlen-tests: New file.
28511         * tests/unistr/test-u32-strlen.c: New file.
28512
28513         Tests for module 'unistr/u16-strlen'.
28514         * modules/unistr/u16-strlen-tests: New file.
28515         * tests/unistr/test-u16-strlen.c: New file.
28516
28517         Tests for module 'unistr/u8-strlen'.
28518         * modules/unistr/u8-strlen-tests: New file.
28519         * tests/unistr/test-u8-strlen.c: New file.
28520
28521         Tests for module 'unistr/u32-prev'.
28522         * modules/unistr/u32-prev-tests: New file.
28523         * tests/unistr/test-u32-prev.c: New file.
28524
28525         Tests for module 'unistr/u16-prev'.
28526         * modules/unistr/u16-prev-tests: New file.
28527         * tests/unistr/test-u16-prev.c: New file.
28528
28529         Tests for module 'unistr/u8-prev'.
28530         * modules/unistr/u8-prev-tests: New file.
28531         * tests/unistr/test-u8-prev.c: New file.
28532
28533         Tests for module 'unistr/u32-next'.
28534         * modules/unistr/u32-next-tests: New file.
28535         * tests/unistr/test-u32-next.c: New file.
28536
28537         Tests for module 'unistr/u16-next'.
28538         * modules/unistr/u16-next-tests: New file.
28539         * tests/unistr/test-u16-next.c: New file.
28540
28541         Tests for module 'unistr/u8-next'.
28542         * modules/unistr/u8-next-tests: New file.
28543         * tests/unistr/test-u8-next.c: New file.
28544
28545         Tests for module 'unistr/u32-strmbtouc'.
28546         * modules/unistr/u32-strmbtouc-tests: New file.
28547         * tests/unistr/test-u32-strmbtouc.c: New file.
28548
28549         Tests for module 'unistr/u16-strmbtouc'.
28550         * modules/unistr/u16-strmbtouc-tests: New file.
28551         * tests/unistr/test-u16-strmbtouc.c: New file.
28552
28553         Tests for module 'unistr/u8-strmbtouc'.
28554         * modules/unistr/u8-strmbtouc-tests: New file.
28555         * tests/unistr/test-u8-strmbtouc.c: New file.
28556
28557         Tests for module 'unistr/u32-strmblen'.
28558         * modules/unistr/u32-strmblen-tests: New file.
28559         * tests/unistr/test-u32-strmblen.c: New file.
28560
28561         Tests for module 'unistr/u16-strmblen'.
28562         * modules/unistr/u16-strmblen-tests: New file.
28563         * tests/unistr/test-u16-strmblen.c: New file.
28564
28565         Tests for module 'unistr/u8-strmblen'.
28566         * modules/unistr/u8-strmblen-tests: New file.
28567         * tests/unistr/test-u8-strmblen.c: New file.
28568
28569         Tests for module 'unistr/u32-cpy-alloc'.
28570         * modules/unistr/u32-cpy-alloc-tests: New file.
28571         * tests/unistr/test-u32-cpy-alloc.c: New file.
28572
28573         Tests for module 'unistr/u16-cpy-alloc'.
28574         * modules/unistr/u16-cpy-alloc-tests: New file.
28575         * tests/unistr/test-u16-cpy-alloc.c: New file.
28576
28577         Tests for module 'unistr/u8-cpy-alloc'.
28578         * modules/unistr/u8-cpy-alloc-tests: New file.
28579         * tests/unistr/test-u8-cpy-alloc.c: New file.
28580         * tests/unistr/test-cpy-alloc.h: New file.
28581
28582         Tests for module 'unistr/u32-mbsnlen'.
28583         * modules/unistr/u32-mbsnlen-tests: New file.
28584         * tests/unistr/test-u32-mbsnlen.c: New file.
28585
28586         Tests for module 'unistr/u16-mbsnlen'.
28587         * modules/unistr/u16-mbsnlen-tests: New file.
28588         * tests/unistr/test-u16-mbsnlen.c: New file.
28589
28590         Tests for module 'unistr/u8-mbsnlen'.
28591         * modules/unistr/u8-mbsnlen-tests: New file.
28592         * tests/unistr/test-u8-mbsnlen.c: New file.
28593
28594         Tests for module 'unistr/u32-chr'.
28595         * modules/unistr/u32-chr-tests: New file.
28596         * tests/unistr/test-u32-chr.c: New file.
28597
28598         Tests for module 'unistr/u16-chr'.
28599         * modules/unistr/u16-chr-tests: New file.
28600         * tests/unistr/test-u16-chr.c: New file.
28601
28602         Tests for module 'unistr/u8-chr'.
28603         * modules/unistr/u8-chr-tests: New file.
28604         * tests/unistr/test-u8-chr.c: New file.
28605         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
28606
28607         Tests for module 'unistr/u32-cmp2'.
28608         * modules/unistr/u32-cmp2-tests: New file.
28609         * tests/unistr/test-u32-cmp2.c: New file.
28610
28611         Tests for module 'unistr/u16-cmp2'.
28612         * modules/unistr/u16-cmp2-tests: New file.
28613         * tests/unistr/test-u16-cmp2.c: New file.
28614
28615         Tests for module 'unistr/u8-cmp2'.
28616         * modules/unistr/u8-cmp2-tests: New file.
28617         * tests/unistr/test-u8-cmp2.c: New file.
28618         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
28619
28620         Tests for module 'unistr/u32-cmp'.
28621         * modules/unistr/u32-cmp-tests: New file.
28622         * tests/unistr/test-u32-cmp.c: New file.
28623
28624         Tests for module 'unistr/u16-cmp'.
28625         * modules/unistr/u16-cmp-tests: New file.
28626         * tests/unistr/test-u16-cmp.c: New file.
28627
28628         Tests for module 'unistr/u8-cmp'.
28629         * modules/unistr/u8-cmp-tests: New file.
28630         * tests/unistr/test-u8-cmp.c: New file.
28631         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
28632
28633         Tests for module 'unistr/u32-set'.
28634         * modules/unistr/u32-set-tests: New file.
28635         * tests/unistr/test-u32-set.c: New file.
28636
28637         Tests for module 'unistr/u16-set'.
28638         * modules/unistr/u16-set-tests: New file.
28639         * tests/unistr/test-u16-set.c: New file.
28640
28641         Tests for module 'unistr/u8-set'.
28642         * modules/unistr/u8-set-tests: New file.
28643         * tests/unistr/test-u8-set.c: New file.
28644         * tests/unistr/test-set.h: New file.
28645
28646         Tests for module 'unistr/u32-move'.
28647         * modules/unistr/u32-move-tests: New file.
28648         * tests/unistr/test-u32-move.c: New file.
28649
28650         Tests for module 'unistr/u16-move'.
28651         * modules/unistr/u16-move-tests: New file.
28652         * tests/unistr/test-u16-move.c: New file.
28653
28654         Tests for module 'unistr/u8-move'.
28655         * modules/unistr/u8-move-tests: New file.
28656         * tests/unistr/test-u8-move.c: New file.
28657         * tests/unistr/test-move.h: New file.
28658
28659         Tests for module 'unistr/u32-cpy'.
28660         * modules/unistr/u32-cpy-tests: New file.
28661         * tests/unistr/test-u32-cpy.c: New file.
28662
28663         Tests for module 'unistr/u16-cpy'.
28664         * modules/unistr/u16-cpy-tests: New file.
28665         * tests/unistr/test-u16-cpy.c: New file.
28666
28667         Tests for module 'unistr/u8-cpy'.
28668         * modules/unistr/u8-cpy-tests: New file.
28669         * tests/unistr/test-u8-cpy.c: New file.
28670         * tests/unistr/test-cpy.h: New file.
28671
28672 2010-01-09  Bruno Haible  <bruno@clisp.org>
28673
28674         Tests for module 'unistr/u32-uctomb'.
28675         * modules/unistr/u32-uctomb-tests: New file.
28676         * tests/unistr/test-u32-uctomb.c: New file.
28677
28678         Tests for module 'unistr/u16-uctomb'.
28679         * modules/unistr/u16-uctomb-tests: New file.
28680         * tests/unistr/test-u16-uctomb.c: New file.
28681
28682         Tests for module 'unistr/u8-uctomb'.
28683         * modules/unistr/u8-uctomb-tests: New file.
28684         * tests/unistr/test-u8-uctomb.c: New file.
28685
28686         Tests for module 'unistr/u32-mbtoucr'.
28687         * modules/unistr/u32-mbtoucr-tests: New file.
28688         * tests/unistr/test-u32-mbtoucr.c: New file.
28689
28690         Tests for module 'unistr/u16-mbtoucr'.
28691         * modules/unistr/u16-mbtoucr-tests: New file.
28692         * tests/unistr/test-u16-mbtoucr.c: New file.
28693
28694         Tests for module 'unistr/u8-mbtoucr'.
28695         * modules/unistr/u8-mbtoucr-tests: New file.
28696         * tests/unistr/test-u8-mbtoucr.c: New file.
28697
28698         Tests for module 'unistr/u32-mbtouc'.
28699         * modules/unistr/u32-mbtouc-tests: New file.
28700         * tests/unistr/test-u32-mbtouc.c: New file.
28701
28702         Tests for module 'unistr/u16-mbtouc'.
28703         * modules/unistr/u16-mbtouc-tests: New file.
28704         * tests/unistr/test-u16-mbtouc.c: New file.
28705
28706         Tests for module 'unistr/u8-mbtouc'.
28707         * modules/unistr/u8-mbtouc-tests: New file.
28708         * tests/unistr/test-u8-mbtouc.c: New file.
28709
28710         Tests for module 'unistr/u32-mbtouc-unsafe'.
28711         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
28712         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
28713         * tests/unistr/test-u32-mbtouc.h: New file.
28714
28715         Tests for module 'unistr/u16-mbtouc-unsafe'.
28716         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
28717         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
28718         * tests/unistr/test-u16-mbtouc.h: New file.
28719
28720         Tests for module 'unistr/u8-mbtouc-unsafe'.
28721         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
28722         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
28723         * tests/unistr/test-u8-mbtouc.h: New file.
28724
28725         Tests for module 'unistr/u32-mblen'.
28726         * modules/unistr/u32-mblen-tests: New file.
28727         * tests/unistr/test-u32-mblen.c: New file.
28728
28729         Tests for module 'unistr/u16-mblen'.
28730         * modules/unistr/u16-mblen-tests: New file.
28731         * tests/unistr/test-u16-mblen.c: New file.
28732
28733         Tests for module 'unistr/u8-mblen'.
28734         * modules/unistr/u8-mblen-tests: New file.
28735         * tests/unistr/test-u8-mblen.c: New file.
28736
28737         Tests for module 'unistr/u32-to-u16'.
28738         * modules/unistr/u32-to-u16-tests: New file.
28739         * tests/unistr/test-u32-to-u16.c: New file.
28740
28741         Tests for module 'unistr/u32-to-u8'.
28742         * modules/unistr/u32-to-u8-tests: New file.
28743         * tests/unistr/test-u32-to-u8.c: New file.
28744
28745         Tests for module 'unistr/u16-to-u32'.
28746         * modules/unistr/u16-to-u32-tests: New file.
28747         * tests/unistr/test-u16-to-u32.c: New file.
28748
28749         Tests for module 'unistr/u16-to-u8'.
28750         * modules/unistr/u16-to-u8-tests: New file.
28751         * tests/unistr/test-u16-to-u8.c: New file.
28752
28753         Tests for module 'unistr/u8-to-u32'.
28754         * modules/unistr/u8-to-u32-tests: New file.
28755         * tests/unistr/test-u8-to-u32.c: New file.
28756
28757         Tests for module 'unistr/u8-to-u16'.
28758         * modules/unistr/u8-to-u16-tests: New file.
28759         * tests/unistr/test-u8-to-u16.c: New file.
28760
28761         Tests for module 'unistr/u32-check'.
28762         * modules/unistr/u32-check-tests: New file.
28763         * tests/unistr/test-u32-check.c: New file.
28764
28765         Tests for module 'unistr/u16-check'.
28766         * modules/unistr/u16-check-tests: New file.
28767         * tests/unistr/test-u16-check.c: New file.
28768
28769         Tests for module 'unistr/u8-check'.
28770         * modules/unistr/u8-check-tests: New file.
28771         * tests/unistr/test-u8-check.c: New file.
28772
28773         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
28774         (category_equals): New function.
28775         (main): Add more tests.
28776         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
28777
28778         * tests/unictype/test-bidi_byname.c (main): Add more tests.
28779
28780 2010-01-10  Bruno Haible  <bruno@clisp.org>
28781
28782         unistr/u*-strcoll: Try harder to distinguish different strings.
28783         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
28784         compare s1 and s2 to see if they are different.
28785
28786 2010-01-10  Bruno Haible  <bruno@clisp.org>
28787
28788         unistr/u*-stpncpy: Fix the return value.
28789         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
28790         description of the return value consistent with stpncpy in glibc.
28791         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
28792         written non-NUL unit.
28793
28794 2010-01-10  Bruno Haible  <bruno@clisp.org>
28795
28796         unistr/u*-next: Add missing dependencies.
28797         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
28798         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
28799         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
28800
28801 2010-01-10  Bruno Haible  <bruno@clisp.org>
28802
28803         unistr/u8-mbsnlen: Fix return value for incomplete character.
28804         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
28805         u8_mblen.
28806         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
28807         Remove unistr/u8-mblen.
28808         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
28809         u16_mblen.
28810         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
28811         Remove unistr/u16-mblen.
28812
28813 2010-01-10  Bruno Haible  <bruno@clisp.org>
28814
28815         wchar: Fix compilation error when <wchar.h> is used from coreutils.
28816         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
28817         Reported by Brian Gough <bjg@gnu.org> and
28818         Chris Clayton <chris2553@googlemail.com> via
28819         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
28820
28821 2010-01-09  Bruno Haible  <bruno@clisp.org>
28822
28823         unistr/u16-to-u32: Reject invalid input.
28824         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
28825         u16_mbtouc.
28826         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
28827         Remove unistr/u16-mbtouc.
28828
28829         unistr/u16-to-u8: Reject invalid input.
28830         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
28831         u16_mbtouc.
28832         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
28833         Remove unistr/u16-mbtouc.
28834
28835         unistr/u8-to-u32: Reject invalid input.
28836         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
28837         u8_mbtouc.
28838         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
28839         Remove unistr/u8-mbtouc.
28840
28841         unistr/u8-to-u16: Reject invalid input.
28842         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
28843         u8_mbtouc.
28844         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
28845         Remove unistr/u8-mbtouc.
28846
28847 2010-01-09  Bruno Haible  <bruno@clisp.org>
28848
28849         Tests for module 'getlogin'.
28850         * modules/getlogin-tests: New file.
28851         * tests/test-getlogin.c: New file.
28852
28853         New module 'getlogin'.
28854         * lib/unistd.in.h (getlogin): New declaration.
28855         * lib/getlogin.c: New file.
28856         * m4/getlogin.m4: New file.
28857         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
28858         HAVE_GETLOGIN.
28859         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
28860         HAVE_GETLOGIN.
28861         * modules/getlogin: New file.
28862         * doc/posix-functions/getlogin.texi: Mention the new module.
28863         Reported by John W. Eaton <jwe@gnu.org>.
28864
28865 2010-01-09  Bruno Haible  <bruno@clisp.org>
28866
28867         getlogin_r: Support for native Windows.
28868         * lib/getlogin_r.c: Include <windows.h>
28869         (getlogin_r): Implement for native Windows.
28870         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
28871         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
28872         via John W. Eaton <jwe@gnu.org>.
28873
28874 2010-01-09  Bruno Haible  <bruno@clisp.org>
28875
28876         getlogin_r: Small fixes.
28877         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
28878         succeeds.
28879         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
28880         before testing whether getlogin_r is declared. No need to set
28881         HAVE_DECL_GETLOGIN_R to 1.
28882         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
28883
28884 2010-01-09  Bruno Haible  <bruno@clisp.org>
28885
28886         * lib/unistd.in.h (getlogin_r): Add comment.
28887
28888 2010-01-09  Bruno Haible  <bruno@clisp.org>
28889
28890         Tests for module 'getlogin_r'.
28891         * modules/getlogin_r-tests: New file.
28892         * tests/test-getlogin_r.c: New file.
28893
28894 2010-01-09  Jim Meyering  <meyering@redhat.com>
28895
28896         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
28897         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
28898         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
28899
28900 2010-01-08  Simon Josefsson  <simon@josefsson.org>
28901
28902         * lib/dup2.c (rpl_dup2): Improve comment.
28903
28904 2010-01-08  Eric Blake  <ebb9@byu.net>
28905
28906         maint.mk: allow packages to add makefile @@ exceptions
28907         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
28908         (sc_makefile_check): Rename...
28909         (sc_makefile_at_at_check): ...to this, and use hook.
28910
28911         dup2: work around mingw bug
28912         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
28913         Reported by Simon Josefsson.
28914
28915 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
28916
28917         glob: Fix C++ compilation.
28918         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
28919         C++.
28920
28921 2010-01-07  Bruno Haible  <bruno@clisp.org>
28922
28923         Fix indentation of wctype.in.h, broken since 2007-01-06.
28924         * lib/wctype.in.h: Fix indentation of preprocessor directives.
28925
28926 2010-01-07  Bruno Haible  <bruno@clisp.org>
28927
28928         mbslen: Avoid collision with system function.
28929         * lib/string.in.h [MirBSD]: Include <wchar.h>.
28930         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
28931         * m4/mbslen.m4: New file.
28932         * modules/mbslen (Files): Add it.
28933         (configure.ac): Invoke gl_MBSLEN.
28934         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
28935         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
28936         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
28937         via Ian Beckwith <ianb@erislabs.net>.
28938
28939 2010-01-07  Bruno Haible  <bruno@clisp.org>
28940
28941         dirent: Document the last fix.
28942         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
28943
28944 2010-01-07  Bruno Haible  <bruno@clisp.org>
28945
28946         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
28947         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
28948         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
28949         va_list are defined.
28950         * doc/posix-headers/stdio.texi: Document the bug of missing types.
28951         Reported by Eric Blake.
28952
28953 2010-01-07  Bruno Haible  <bruno@clisp.org>
28954
28955         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
28956         * modules/xlist (Depends-on): Add 'list',
28957         * modules/xoset (Depends-on): Add 'oset'.
28958         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
28959
28960 2010-01-07  Bruno Haible  <bruno@clisp.org>
28961
28962         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
28963         * doc/posix-functions/strncasecmp.texi: Likewise.
28964
28965 2010-01-07  Bruno Haible  <bruno@clisp.org>
28966
28967         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
28968
28969 2010-01-07  John W. Eaton  <jwe@octave.org>
28970
28971         wctype: allow C++ use
28972         * lib/wctype.in.h: Add extern "C" block for C++.
28973
28974 2010-01-06  Eric Blake  <ebb9@byu.net>
28975
28976         maint.mk: detect incorrect GFDL usage
28977         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
28978
28979 2010-01-06  Jim Meyering  <meyering@redhat.com>
28980         and Eric Blake  <ebb9@byu.net>
28981
28982         maint.mk: ignore multi-line copyright in NEWS
28983         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
28984
28985 2010-01-06  Eric Blake  <ebb9@byu.net>
28986
28987         select: add missing dependency
28988         * modules/select-tests (Depends-on): Move sockets dependency...
28989         * modules/select (Depends-on): ...here.
28990         Reported by Ian Beckwith.
28991
28992         doc: regenerate INSTALL
28993         * doc/INSTALL: Reflect recent autoconf update.
28994         * doc/INSTALL.ISO: Likewise.
28995         * doc/INSTALL.UTF-8: Likewise.
28996
28997         pread: fix compilation on glibc
28998         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
28999         Reported by Ralf Wildenhues.
29000
29001         dirent: fix test failure
29002         * lib/dirent.in.h (includes): Guarantee ino_t.
29003         Reported by Ralf Wildenhues.
29004
29005 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
29006
29007         linkat, renameat: avoid bad free
29008         * lib/at-func2.c (at_func2): Fix typo.
29009         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
29010
29011 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29012
29013         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
29014         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
29015         to avoid failure of symlink test later.
29016
29017 2010-01-06  Eric Blake  <ebb9@byu.net>
29018
29019         stdio, unistd: guarantee ssize_t
29020         * lib/unistd.in.h (includes): Ensure that types required by POSIX
29021         2008 are exposed when needed.
29022         * lib/stdio.in.h (includes): Likewise.
29023         Reported by Ralf Wildenhues.
29024
29025 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
29026
29027         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
29028         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
29029         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
29030
29031 2010-01-06  Jim Meyering  <meyering@redhat.com>
29032
29033         readtokens: this module *does* require xalloc.h
29034         It uses only functions that were omitted by the old syntax-check rule.
29035         * lib/readtokens.c: Include "xalloc.h" once again.
29036         * modules/readtokens (Depends-on): Add xalloc.
29037         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
29038
29039 2010-01-05  Eric Blake  <ebb9@byu.net>
29040
29041         maint: support 'make announcement' from a VPATH build
29042         * top/maint.mk (announcement): Look for correct NEWS file.
29043
29044 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
29045
29046         utimens (fdutimens): ignore a negative FD, per contract
29047         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
29048         when we have a valid file descriptor.  Otherwise, using a brand
29049         new glibc (with just-patched futimens that now fails with EBADF)
29050         would cause this function to fail with ENOSYS.
29051         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
29052         See also http://bugzilla.redhat.com/552320.
29053
29054 2010-01-05  Eric Blake  <ebb9@byu.net>
29055
29056         strcase: document what it provides
29057         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
29058         gnulib module.
29059         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
29060         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
29061
29062 2010-01-05  Jim Meyering  <meyering@redhat.com>
29063
29064         maint: remove useless inclusions of "xalloc.h"
29065         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
29066         * lib/readtokens.c: Likewise.
29067         * lib/same.c: Likewise.
29068         * modules/getloadavg (Depends-on): Remove xalloc.
29069         * modules/readtokens: Likewise.
29070         * modules/same: Likewise.
29071
29072         maint.mk: include 4 more function names in alloca.h-checking regexp
29073         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
29074         regexp.  Before, we would give a false-positive (saying alloca.h
29075         is included unnecessarily) when the only uses involved omitted symbols.
29076
29077         xalloc.h: use consistent formatting
29078         * lib/xalloc.h: Move declarations to start in the first column.
29079
29080 2010-01-05  Eric Blake  <ebb9@byu.net>
29081
29082         mkdir: avoid xalloc
29083         * lib/mkdir.c (includes): Drop unused header.
29084         Reported by John W. Eaton.
29085
29086 2010-01-04  Jim Meyering  <meyering@redhat.com>
29087
29088         nl_langinfo: avoid configure-time syntax error
29089         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
29090         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
29091         the empty string.  Don't let that provoke a shell syntax error.
29092
29093         regcomp, regexec, fnmatch: avoid array bounds read error
29094         * lib/regcomp.c (build_equiv_class): From glibc:
29095         Use only the low 24 bits of a findidx return value as an index
29096         into the weights array.  Patch by Ulrich Drepper:
29097         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
29098         * lib/regexec.c (check_node_accept_bytes): Likewise.
29099         * lib/fnmatch_loop.c (FCT): Likewise.
29100
29101         regcomp: skip collseq lookup when there are no rules
29102         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
29103         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
29104
29105         regcomp: recognize ill-formed { } expressions
29106         * lib/regcomp.c (parse_dup_op): From glibc:
29107         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
29108
29109         regcomp: fix typo in comment
29110         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
29111         s/satisfy/satisfies/.
29112
29113         regcomp: sync from glibc: remove dead store
29114         * lib/regcomp.c (duplicate_node_closure): Remove useless
29115         search_duplicated_node call and dead store.
29116
29117         regcomp: sync from glibc; always use nl_langinfo
29118         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
29119         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
29120         * modules/regex (Depends-on): Add nl_langinfo.
29121
29122 2010-01-04  Eric Blake  <ebb9@byu.net>
29123
29124         fdopendir: fix configure test
29125         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
29126
29127 2010-01-01  Bruno Haible  <bruno@clisp.org>
29128
29129         wchar: Remove unused configure check.
29130         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
29131
29132 2010-01-01  Eric Blake  <ebb9@byu.net>
29133
29134         headers: make check of system header explicit
29135         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
29136         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
29137         ourselves.
29138         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
29139         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
29140         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
29141         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
29142         internals.
29143         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
29144         missing.
29145         Suggested by Bruno Haible.
29146
29147 2010-01-01  Jim Meyering  <meyering@redhat.com>
29148
29149         ChangeLog: tweak to eliminate unnecessary copyright line
29150         * ChangeLog: Remove a copyright line that was mistakenly updated
29151         by today's update-copyright run.  Reported by Eric Blake.
29152
29153         test-update-copyright: don't let envvar setting cause test failure
29154         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
29155
29156 2010-01-01  Bruno Haible  <bruno@clisp.org>
29157
29158         localename: Avoid gcc warning.
29159         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
29160         function if it is not used.
29161
29162 2010-01-01  Jim Meyering  <meyering@redhat.com>
29163
29164         update nearly all FSF copyright year lists to include 2010
29165         Use the same procedure as for 2009, outlined in
29166         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
29167
29168         version-etc: set COPYRIGHT_YEAR to 2010
29169         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
29170
29171 2009-12-31  Eric Blake  <ebb9@byu.net>
29172
29173         doc: correct availability of cygwin 1.5.x getopt
29174         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
29175         variables.
29176         * doc/posix-functions/opterr.texi (opterr): Likewise.
29177         * doc/posix-functions/optind.texi (optind): Likewise.
29178         * doc/posix-functions/optopt.texi (optopt): Likewise.
29179         * doc/posix-functions/tzname.texi (tzname): Likewise.
29180
29181         openat: update maintainer
29182         * modules/openat (Maintainer): Add myself.
29183
29184         utimens: avoid shadowing warning
29185         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
29186         buffers into one, to avoid shadowing, as well as avoiding a
29187         redundant stat.
29188         Reported by Jim Meyering.
29189
29190         test-dup2: avoid compiler warning
29191         * tests/test-dup2.c (is_inheritable): Only define if used.
29192
29193 2010-01-01  Bruno Haible  <bruno@clisp.org>
29194
29195         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
29196         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
29197         defined, use wctomb instead of wcrtomb.
29198
29199 2010-01-01  Bruno Haible  <bruno@clisp.org>
29200
29201         iconv: Reject native Solaris iconv.
29202         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
29203         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
29204
29205 2009-12-31  Bruno Haible  <bruno@clisp.org>
29206
29207         * tests/test-signal.c (main): Remove test of 'SIG'.
29208
29209 2009-12-31  Bruno Haible  <bruno@clisp.org>
29210
29211         spawn: Fix incomplete fix.
29212         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
29213         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
29214         warnings for GNULIB_POSIXCHECK again.
29215         Reported by Eric Blake.
29216
29217 2009-12-31  Bruno Haible  <bruno@clisp.org>
29218
29219         Avoid namespace pollution on glibc systems.
29220         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
29221         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
29222         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
29223         glibc systems.
29224
29225 2009-12-31  Bruno Haible  <bruno@clisp.org>
29226
29227         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
29228         (gl_REPLACE_WCHAR_H): Turn into a no-op.
29229         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
29230         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
29231         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
29232         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
29233         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
29234
29235 2009-12-31  Bruno Haible  <bruno@clisp.org>
29236
29237         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
29238         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
29239         afterwards.
29240
29241 2009-12-31  Bruno Haible  <bruno@clisp.org>
29242
29243         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
29244         SYS_UTSNAME_H.
29245
29246 2009-12-31  Bruno Haible  <bruno@clisp.org>
29247
29248         spawn: Fix misapplied patch.
29249         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
29250         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
29251         warnings for GNULIB_POSIXCHECK.
29252
29253 2009-12-31  Bruno Haible  <bruno@clisp.org>
29254
29255         times: Update after sys_times changed.
29256         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
29257         * modules/times (Files): Add it.
29258         (configure.ac): Invoke gl_FUNC_TIMES.
29259
29260 2009-12-31  Bruno Haible  <bruno@clisp.org>
29261
29262         Use AC_C_INLINE where necessary.
29263         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
29264         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
29265         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
29266         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
29267         * m4/mbfile.m4 (gl_MBFILE): Likewise.
29268         * m4/mbiter.m4 (gl_MBITER): Likewise.
29269         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
29270         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
29271         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
29272         * modules/u64 (configure.ac): Likewise.
29273
29274 2009-12-31  Bruno Haible  <bruno@clisp.org>
29275
29276         Use AC_C_INLINE instead of module 'inline' where possible.
29277         * modules/inline (Description): Clarify purpose.
29278         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
29279         * modules/count-one-bits (Depends-on): Remove inline.
29280         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
29281         * modules/openat (Depends-on): Remove inline.
29282         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
29283         instead of depending on module 'inline'.
29284         * modules/filevercmp (Depends-on, configure.ac): Likewise.
29285         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
29286         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
29287         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
29288         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
29289         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
29290         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
29291         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
29292         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
29293         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
29294         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
29295         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
29296         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
29297         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
29298         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
29299         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
29300         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
29301         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
29302         Likewise.
29303         * modules/unictype/property-ascii-hex-digit (Depends-on,
29304         configure.ac): Likewise.
29305         * modules/unictype/property-bidi-arabic-digit (Depends-on,
29306         configure.ac): Likewise.
29307         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
29308         configure.ac): Likewise.
29309         * modules/unictype/property-bidi-block-separator (Depends-on,
29310         configure.ac): Likewise.
29311         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
29312         configure.ac): Likewise.
29313         * modules/unictype/property-bidi-common-separator (Depends-on,
29314         configure.ac): Likewise.
29315         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
29316         Likewise.
29317         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
29318         configure.ac): Likewise.
29319         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
29320         configure.ac): Likewise.
29321         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
29322         configure.ac): Likewise.
29323         * modules/unictype/property-bidi-european-digit (Depends-on,
29324         configure.ac): Likewise.
29325         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
29326         configure.ac): Likewise.
29327         * modules/unictype/property-bidi-left-to-right (Depends-on,
29328         configure.ac): Likewise.
29329         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
29330         configure.ac): Likewise.
29331         * modules/unictype/property-bidi-other-neutral (Depends-on,
29332         configure.ac): Likewise.
29333         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
29334         Likewise.
29335         * modules/unictype/property-bidi-segment-separator (Depends-on,
29336         configure.ac): Likewise.
29337         * modules/unictype/property-bidi-whitespace (Depends-on,
29338         configure.ac): Likewise.
29339         * modules/unictype/property-combining (Depends-on, configure.ac):
29340         Likewise.
29341         * modules/unictype/property-composite (Depends-on, configure.ac):
29342         Likewise.
29343         * modules/unictype/property-currency-symbol (Depends-on,
29344         configure.ac): Likewise.
29345         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
29346         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
29347         Likewise.
29348         * modules/unictype/property-default-ignorable-code-point (Depends-on,
29349         configure.ac): Likewise.
29350         * modules/unictype/property-deprecated (Depends-on, configure.ac):
29351         Likewise.
29352         * modules/unictype/property-diacritic (Depends-on, configure.ac):
29353         Likewise.
29354         * modules/unictype/property-extender (Depends-on, configure.ac):
29355         Likewise.
29356         * modules/unictype/property-format-control (Depends-on, configure.ac):
29357         Likewise.
29358         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
29359         Likewise.
29360         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
29361         Likewise.
29362         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
29363         Likewise.
29364         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
29365         Likewise.
29366         * modules/unictype/property-hyphen (Depends-on, configure.ac):
29367         Likewise.
29368         * modules/unictype/property-id-continue (Depends-on, configure.ac):
29369         Likewise.
29370         * modules/unictype/property-id-start (Depends-on, configure.ac):
29371         Likewise.
29372         * modules/unictype/property-ideographic (Depends-on, configure.ac):
29373         Likewise.
29374         * modules/unictype/property-ids-binary-operator (Depends-on,
29375         configure.ac): Likewise.
29376         * modules/unictype/property-ids-trinary-operator (Depends-on,
29377         configure.ac): Likewise.
29378         * modules/unictype/property-ignorable-control (Depends-on,
29379         configure.ac): Likewise.
29380         * modules/unictype/property-iso-control (Depends-on, configure.ac):
29381         Likewise.
29382         * modules/unictype/property-join-control (Depends-on, configure.ac):
29383         Likewise.
29384         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
29385         Likewise.
29386         * modules/unictype/property-line-separator (Depends-on, configure.ac):
29387         Likewise.
29388         * modules/unictype/property-logical-order-exception (Depends-on,
29389         configure.ac): Likewise.
29390         * modules/unictype/property-lowercase (Depends-on, configure.ac):
29391         Likewise.
29392         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
29393         * modules/unictype/property-non-break (Depends-on, configure.ac):
29394         Likewise.
29395         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
29396         Likewise.
29397         * modules/unictype/property-numeric (Depends-on, configure.ac):
29398         Likewise.
29399         * modules/unictype/property-other-alphabetic (Depends-on,
29400         configure.ac): Likewise.
29401         * modules/unictype/property-other-default-ignorable-code-point
29402         (Depends-on, configure.ac): Likewise.
29403         * modules/unictype/property-other-grapheme-extend (Depends-on,
29404         configure.ac): Likewise.
29405         * modules/unictype/property-other-id-continue (Depends-on,
29406         configure.ac): Likewise.
29407         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
29408         Likewise.
29409         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
29410         Likewise.
29411         * modules/unictype/property-other-math (Depends-on, configure.ac):
29412         Likewise.
29413         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
29414         Likewise.
29415         * modules/unictype/property-paired-punctuation (Depends-on,
29416         configure.ac): Likewise.
29417         * modules/unictype/property-paragraph-separator (Depends-on,
29418         configure.ac): Likewise.
29419         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
29420         Likewise.
29421         * modules/unictype/property-pattern-white-space (Depends-on,
29422         configure.ac): Likewise.
29423         * modules/unictype/property-private-use (Depends-on, configure.ac):
29424         Likewise.
29425         * modules/unictype/property-punctuation (Depends-on, configure.ac):
29426         Likewise.
29427         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
29428         Likewise.
29429         * modules/unictype/property-radical (Depends-on, configure.ac):
29430         Likewise.
29431         * modules/unictype/property-sentence-terminal (Depends-on,
29432         configure.ac): Likewise.
29433         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
29434         Likewise.
29435         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
29436         * modules/unictype/property-terminal-punctuation (Depends-on,
29437         configure.ac): Likewise.
29438         * modules/unictype/property-titlecase (Depends-on, configure.ac):
29439         Likewise.
29440         * modules/unictype/property-unassigned-code-value (Depends-on,
29441         configure.ac): Likewise.
29442         * modules/unictype/property-unified-ideograph (Depends-on,
29443         configure.ac): Likewise.
29444         * modules/unictype/property-uppercase (Depends-on, configure.ac):
29445         Likewise.
29446         * modules/unictype/property-variation-selector (Depends-on,
29447         configure.ac): Likewise.
29448         * modules/unictype/property-white-space (Depends-on, configure.ac):
29449         Likewise.
29450         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
29451         Likewise.
29452         * modules/unictype/property-xid-start (Depends-on, configure.ac):
29453         Likewise.
29454         * modules/unictype/property-zero-width (Depends-on, configure.ac):
29455         Likewise.
29456         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
29457         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
29458         Likewise.
29459
29460 2009-12-31  Bruno Haible  <bruno@clisp.org>
29461
29462         Remove unnecessary AC_C_INLINE invocation.
29463         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
29464         since 2009-08-21.
29465
29466 2009-12-31  Jim Meyering  <meyering@redhat.com>
29467
29468         maint.mk: don't require explicit gpg_key_ID in cfg.mk
29469         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
29470         With this change, we can all remove the gpg_key_ID = ... definition
29471         from our respective cfg.mk files.
29472
29473         maint.mk: create announcement template in ~/, not in /tmp
29474         * top/maint.mk (emit_upload_commands): Adjust.
29475         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
29476         Remove temporary file, .ci-msg.
29477
29478 2009-12-31  Eric Blake  <ebb9@byu.net>
29479
29480         link-warning: always build headers with link warnings
29481         * modules/arpa_inet (Makefile.am): Always build replacement
29482         header.
29483         * modules/ctype (Makefile.am): Likewise.
29484         * modules/dirent (Makefile.am): Likewise.
29485         * modules/inttypes (Makefile.am): Likewise.
29486         * modules/langinfo (Makefile.am): Likewise.
29487         * modules/locale (Makefile.am): Likewise.
29488         * modules/spawn (Makefile.am): Likewise.
29489         * modules/sys_file (Makefile.am): Likewise.
29490         * modules/sys_ioctl (Makefile.am): Likewise.
29491         * modules/sys_select (Makefile.am): Likewise.
29492         * modules/sys_socket (Makefile.am): Likewise.
29493         * modules/sys_times (Makefile.am): Likewise.
29494         * modules/sys_utsname (Makefile.am): Likewise.
29495         * modules/sys_wait (Makefile.am): Likewise.
29496         * modules/wchar (Makefile.am): Likewise.
29497         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
29498         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
29499         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
29500         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
29501         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
29502         Likewise.
29503         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
29504         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
29505         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
29506         Likewise.
29507         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
29508         Likewise.
29509         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
29510         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
29511         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
29512         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
29513         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
29514         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
29515         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
29516         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
29517         (gl_WCHAR_H_DEFAULTS): Likewise.
29518
29519 2009-12-31  Eric Blake  <ebb9@byu.net>
29520
29521         signal, spawn: use link warnings
29522         * lib/signal.in.h (sigset_t): Make unconditional.
29523         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
29524         (sigpending, sigprocmask, sigaction): Add link warnings.
29525         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
29526         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
29527         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
29528         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
29529         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
29530         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
29531         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
29532         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
29533         (posix_spawn_file_actions_destroy)
29534         (posix_spawn_file_actions_addopen)
29535         (posix_spawn_file_actions_addclose)
29536         (posix_spawn_file_actions_adddup2): Likewise.
29537         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
29538         * tests/test-signal.c (main): Enhance test.
29539
29540         spawn: improve wrapper support
29541         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
29542         (gl_SPAWN_H_DEFAULTS): New defaults.
29543         * modules/spawn (Makefile.am): Substitute them.
29544         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
29545         Only declare if missing or broken.
29546
29547         sys_times, sys_utsname: use include_next
29548         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
29549         header.
29550         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
29551         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
29552         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
29553         * modules/sys_times (Depends-on): Add include_next.
29554         (Makefile.am): Substitute additional values.
29555         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
29556         * lib/sys_times.in.h (includes): Include native header, if
29557         available.
29558         * lib/sys_utsname.in.h (includes): Likewise.
29559         * tests/test-sys_times.c (main): Enhance test.
29560
29561         fdutimensat: revert prior patch
29562         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
29563         utimens.h.
29564         Reported by Bruno Haible.
29565
29566 2009-12-30  Eric Blake  <ebb9@byu.net>
29567
29568         sys_wait: drop link-warning dependency
29569         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
29570         link-warning efforts.
29571         * lib/sys_wait.in.h: Likewise.
29572
29573         fdutimensat: remove bogus dependency
29574         * modules/fdutimensat (Depends-on): Drop inline.
29575
29576         unistd: fix typo
29577         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
29578
29579 2009-12-30  Bruno Haible  <bruno@clisp.org>
29580
29581         Fix compilation error with Solaris cc.
29582         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
29583         * lib/unicase/u16-is-invariant.c: Likewise.
29584         * lib/unicase/u32-is-invariant.c: Likewise.
29585         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
29586
29587 2009-12-30  Bruno Haible  <bruno@clisp.org>
29588
29589         Fix test crash.
29590         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
29591         locales.
29592         Reported by Simon Josefsson <simon@josefsson.org>.
29593
29594 2009-12-30  Bruno Haible  <bruno@clisp.org>
29595
29596         Fix compilation error on most platforms.
29597         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
29598         Reported by Simon Josefsson <simon@josefsson.org>
29599         and Nelson H. F. Beebe <beebe@math.utah.edu>.
29600
29601 2009-12-30  Eric Blake  <ebb9@byu.net>
29602
29603         futimens, utimensat: work around ntfs-3g bug
29604         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
29605         a ctime bug is present, and expand workaround to cover ntfs-3g.
29606         * lib/utimens.c (fdutimens, lutimens): Likewise.
29607         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
29608         (validate_timespec): Adjust return value.
29609         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
29610         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
29611         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
29612
29613 2009-12-29  Eric Blake  <ebb9@byu.net>
29614
29615         link-warning: make usage consistent
29616         * modules/ctype (Depends-on): Add link-warning.
29617         (Makefile.am): Update rules accordingly.
29618         * modules/langinfo (Depends-on, Makefile.am): Likewise.
29619         * modules/locale (Depends-on, Makefile.am): Likewise.
29620         * modules/sys_file (Makefile.am): Likewise.
29621         * modules/getopt-posix (Makefile.am): Delete unused link warning
29622         efforts.
29623         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
29624         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
29625         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
29626         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
29627
29628         stdio: remove unused variables
29629         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
29630         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
29631         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
29632
29633         tests: test more substitute headers
29634         * modules/ctype-tests: New file.
29635         * modules/dirent-tests: Likewise.
29636         * modules/spawn-tests: Likewise.
29637         * modules/sys_file-tests: Likewise.
29638         * modules/sys_ioctl-tests: Likewise.
29639         * modules/sys_wait-tests: Likewise.
29640         * tests/test-ctype.c: Likewise.
29641         * tests/test-dirent.c: Likewise.
29642         * tests/test-spawn.c: Likewise.
29643         * tests/test-sys_file.c: Likewise.
29644         * tests/test-sys_ioctl.c: Likewise.
29645         * tests/test-sys_wait.c: Likewise.
29646         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
29647         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
29648         whether or not flock is in use.
29649
29650         tests: remove License section from module
29651         * modules/arpa_inet-tests: Remove unneeded section.
29652         * modules/byteswap-tests: Likewise.
29653         * modules/ceilf-tests: Likewise.
29654         * modules/ceill-tests: Likewise.
29655         * modules/crypto/des-tests: Likewise.
29656         * modules/crypto/gc-arcfour-tests: Likewise.
29657         * modules/crypto/gc-arctwo-tests: Likewise.
29658         * modules/crypto/gc-des-tests: Likewise.
29659         * modules/crypto/gc-hmac-md5-tests: Likewise.
29660         * modules/crypto/gc-hmac-sha1-tests: Likewise.
29661         * modules/crypto/gc-md2-tests: Likewise.
29662         * modules/crypto/gc-md4-tests: Likewise.
29663         * modules/crypto/gc-md5-tests: Likewise.
29664         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
29665         * modules/crypto/gc-rijndael-tests: Likewise.
29666         * modules/crypto/gc-sha1-tests: Likewise.
29667         * modules/crypto/gc-tests: Likewise.
29668         * modules/crypto/md2-tests: Likewise.
29669         * modules/crypto/md4-tests: Likewise.
29670         * modules/fcntl-h-tests: Likewise.
29671         * modules/floorf-tests: Likewise.
29672         * modules/floorl-tests: Likewise.
29673         * modules/frexp-nolibm-tests: Likewise.
29674         * modules/frexp-tests: Likewise.
29675         * modules/frexpl-nolibm-tests: Likewise.
29676         * modules/frexpl-tests: Likewise.
29677         * modules/getaddrinfo-tests: Likewise.
29678         * modules/inttypes-tests: Likewise.
29679         * modules/isfinite-tests: Likewise.
29680         * modules/isinf-tests: Likewise.
29681         * modules/ldexpl-tests: Likewise.
29682         * modules/locale-tests: Likewise.
29683         * modules/math-tests: Likewise.
29684         * modules/netdb-tests: Likewise.
29685         * modules/netinet_in-tests: Likewise.
29686         * modules/printf-frexp-tests: Likewise.
29687         * modules/printf-frexpl-tests: Likewise.
29688         * modules/priv-set-tests: Likewise.
29689         * modules/random_r-tests: Likewise.
29690         * modules/round-tests: Likewise.
29691         * modules/roundf-tests: Likewise.
29692         * modules/roundl-tests: Likewise.
29693         * modules/search-tests: Likewise.
29694         * modules/select-tests: Likewise.
29695         * modules/signal-tests: Likewise.
29696         * modules/stdbool-tests: Likewise.
29697         * modules/stddef-tests: Likewise.
29698         * modules/stdint-tests: Likewise.
29699         * modules/stdio-tests: Likewise.
29700         * modules/stdlib-tests: Likewise.
29701         * modules/string-tests: Likewise.
29702         * modules/strings-tests: Likewise.
29703         * modules/sys_select-tests: Likewise.
29704         * modules/sys_socket-tests: Likewise.
29705         * modules/sys_stat-tests: Likewise.
29706         * modules/sys_time-tests: Likewise.
29707         * modules/sys_utsname-tests: Likewise.
29708         * modules/sysexits-tests: Likewise.
29709         * modules/time-tests: Likewise.
29710         * modules/trunc-tests: Likewise.
29711         * modules/truncf-tests: Likewise.
29712         * modules/truncl-tests: Likewise.
29713         * modules/tsearch-tests: Likewise.
29714         * modules/unistd-tests: Likewise.
29715         * modules/wchar-tests: Likewise.
29716         * modules/wctype-tests: Likewise.
29717
29718         tests: fix license on several tests
29719         * tests/test-des.c: Update to GPLv3+.
29720         * tests/test-flock.c: Likewise.
29721         * tests/test-fsync.c: Likewise.
29722         * tests/test-futimens.h: Likewise.
29723         * tests/test-gc-arcfour.c: Likewise.
29724         * tests/test-gc-arctwo.c: Likewise.
29725         * tests/test-gc-des.c: Likewise.
29726         * tests/test-gc-hmac-md5.c: Likewise.
29727         * tests/test-gc-hmac-sha1.c: Likewise.
29728         * tests/test-gc-md2.c: Likewise.
29729         * tests/test-gc-md4.c: Likewise.
29730         * tests/test-gc-md5.c: Likewise.
29731         * tests/test-gc-pbkdf2-sha1.c: Likewise.
29732         * tests/test-gc-rijndael.c: Likewise.
29733         * tests/test-gc-sha1.c: Likewise.
29734         * tests/test-gc.c: Likewise.
29735         * tests/test-getcwd.c: Likewise.
29736         * tests/test-link.c: Likewise.
29737         * tests/test-link.h: Likewise.
29738         * tests/test-lutimens.h: Likewise.
29739         * tests/test-md2.c: Likewise.
29740         * tests/test-md4.c: Likewise.
29741         * tests/test-mkdir.h: Likewise.
29742         * tests/test-rename.c: Likewise.
29743         * tests/test-rename.h: Likewise.
29744         * tests/test-safe-alloc.c: Likewise.
29745         * tests/test-utimens-common.h: Likewise.
29746         * tests/test-utimens.h: Likewise.
29747
29748         maint: sync license texts
29749         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
29750         * doc/gpl-3.0.texi: Revert copyright year update.
29751         * doc/lgpl-3.0.texi: Likewise.
29752
29753 2009-12-29  Jim Meyering  <meyering@redhat.com>
29754
29755         update nearly all FSF copyright year lists to include 2009
29756         The files named by the following are exempted:
29757             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
29758               test -f "$dst" && { echo "$dst"; continue; }
29759               test -d "$dst" || continue
29760               echo "$dst"/$(basename "$src")
29761             done > exempt
29762             git ls-files tests/unictype >> exempt
29763         In the remaining files, convert to all-interval notation if
29764         - there is already at least one year interval like 2000-2003
29765         - the file is maintained by me
29766         - the file is in lib/uni*/, where that style already prevails
29767         Otherwise, use update-copyright's default.
29768
29769 2009-12-29  Simon Josefsson  <simon@josefsson.org>
29770         and Eric Blake  <ebb9@byu.net>
29771
29772         tests: don't require debug system() to pass
29773         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
29774         * tests/test-rmdir.h (test_rmdir_func): Likewise.
29775         * tests/test-unlink.h (test_unlink_func): Likewise.
29776         * tests/test-fstatat.c (main): ...into callers.
29777         * tests/test-lstat.c (main): Likewise.
29778         * tests/test-rmdir.c (main): Likewise.
29779         * tests/test-unlink.c (main): Likewise.
29780         * tests/test-unlinkat.c (main): Likewise.
29781         * tests/test-areadlink-with-size.c (main): Don't require a
29782         debug-only system call to pass, aiding cross-testing to mingw.
29783         * tests/test-areadlink.c (main): Likewise.
29784         * tests/test-areadlinkat-with-size.c (main): Likewise.
29785         * tests/test-areadlinkat.c (main): Likewise.
29786         * tests/test-canonicalize-lgpl.c (main): Likewise.
29787         * tests/test-canonicalize.c (main): Likewise.
29788         * tests/test-chown.c (main): Likewise.
29789         * tests/test-fchownat.c (main): Likewise.
29790         * tests/test-lchown.c (main): Likewise.
29791         * tests/test-fdutimensat.c (main): Likewise.
29792         * tests/test-futimens.c (main): Likewise.
29793         * tests/test-link.c (main): Likewise.
29794         * tests/test-linkat.c (main): Likewise.
29795         * tests/test-mkdir.c (main): Likewise.
29796         * tests/test-mkdirat.c (main): Likewise.
29797         * tests/test-mkfifo.c (main): Likewise.
29798         * tests/test-mkfifoat.c (main): Likewise.
29799         * tests/test-mknod.c (main): Likewise.
29800         * tests/test-readlink.c (main): Likewise.
29801         * tests/test-remove.c (main): Likewise.
29802         * tests/test-rename.c (main): Likewise.
29803         * tests/test-renameat.c (main): Likewise.
29804         * tests/test-symlink.c (main): Likewise.
29805         * tests/test-symlinkat.c (main): Likewise.
29806         * tests/test-utimens.c (main): Likewise.
29807         * tests/test-utimensat.c (main): Likewise.
29808
29809 2009-12-29  Simon Josefsson  <simon@josefsson.org>
29810
29811         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
29812         on $(UNUSED_PARAMETER_H) to avoid build failure.
29813
29814 2009-12-28  Jim Meyering  <meyering@redhat.com>
29815
29816         update-copyright: you may specify a max. line length other than 72
29817         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
29818
29819         maint: use consistent FSF copyright line syntax
29820         * lib/posixtm.c: Add missing comma in FSF copyright line.
29821         * lib/posixtm.h: Likewise.
29822         * lib/getugroups.c: Add missing ", Inc.".
29823
29824         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
29825         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
29826         FSF copyright line.  Remove trailing blanks.
29827
29828 2009-12-28  Eric Blake  <ebb9@byu.net>
29829
29830         test-dup2: reduce dependencies
29831         * modules/cloexec (Configure.ac): Set witness.
29832         * modules/dup2-tests (Depends-on): Drop cloexec.
29833         * tests/test-dup2.c (main): Skip portion of test if cloexec module
29834         not present.
29835         Suggested by Bruno Haible.
29836
29837 2009-12-26  Bruno Haible  <bruno@clisp.org>
29838
29839         Remove an unneeded dependency.
29840         * modules/fseterr (Depends-on): Remove dup2.
29841
29842 2009-12-26  Eric Blake  <ebb9@byu.net>
29843
29844         tests: use macros.h in more places
29845         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
29846         (ASSERT_STREAM): Provide default of stderr.
29847         * tests/test-dirent-safer.c: Include macros.h, using alternate
29848         stream for assertions.
29849         * tests/test-dup-safer.c: Likewise.
29850         * tests/test-freopen-safer.c: Likewise.
29851         * tests/test-getopt.c: Likewise.
29852         * tests/test-openat-safer.c: Likewise.
29853         * tests/test-pipe.c: Likewise.
29854         * tests/test-popen-safer.c: Likewise.
29855         * modules/dirent-safer-tests (Files): Include macros.h.
29856         * modules/unistd-safer-tests (Files): Likewise.
29857         * modules/freopen-safer-tests (Files): Likewise.
29858         * modules/getopt-posix-tests (Files): Likewise.
29859         * modules/openat-safer-tests (Files): Likewise.
29860         * modules/pipe-tests (Files): Likewise.
29861
29862 2009-12-26  Bruno Haible  <bruno@clisp.org>
29863
29864         javacomp: Portability fix.
29865         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
29866         that it also works on Solaris.
29867
29868 2009-12-26  Bruno Haible  <bruno@clisp.org>
29869
29870         localename: Fix storage allocation of gl_locale_name_thread's result.
29871         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
29872         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
29873         all platforms that have 'uselocale'.
29874         (gl_locale_name_thread_unsafe): New function, extracted from
29875         gl_locale_name_thread.
29876         (gl_locale_name_thread): Call struniq on all platforms that have
29877         'uselocale'.
29878         * tests/test-localename.c (test_locale_name_thread): Check that the
29879         resulting strings are permanently allocated.
29880         * modules/localename-tests (Depends-on): Add strdup.
29881
29882 2009-12-26  Bruno Haible  <bruno@clisp.org>
29883
29884         * tests/test-localename.c (categories): Fill in the strings.
29885
29886 2009-12-26  Jim Meyering  <meyering@redhat.com>
29887
29888         isdir: complete the removal of m4/isdir.m4
29889         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
29890
29891         isdir: clean up, since at least grep still uses it
29892         * lib/isdir.c: Include "isdir.h".
29893         (S_ISDIR): Remove now-unneeded definition.
29894         * modules/isdir (Files): Add lib/isdir.h.
29895         * lib/isdir.h: New file, with declaration.
29896         * m4/isdir.m4: Remove file -- unneeded.
29897
29898 2009-12-25  Bruno Haible  <bruno@clisp.org>
29899
29900         selinux-h: Make generated .h files standalone.
29901         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
29902         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
29903         * lib/se-selinux.in.h: Likewise.
29904         * modules/selinux-h (Depends-on): Add unused-parameter.
29905         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
29906         selinux/selinux.h and selinux/context.h.
29907         Suggested by Eric Blake.
29908
29909 2009-12-25  Bruno Haible  <bruno@clisp.org>
29910
29911         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
29912         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
29913         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
29914         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
29915         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
29916
29917 2009-12-24  Bruno Haible  <bruno@clisp.org>
29918
29919         openat: Fix warning.
29920         * lib/openat-proc.c: Include <unistd.h>.
29921
29922 2009-12-24  Bruno Haible  <bruno@clisp.org>
29923
29924         New module 'unused-parameter'.
29925         * build-aux/unused-parameter.h: New file, extracted from earlier
29926         gnulib-common.m4.
29927         * modules/unused-parameter: New file.
29928         * lib/unistr.h: Include unused-parameter.h.
29929         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
29930         _GL_UNUSED.
29931         * modules/unistr/base (Depends-on): Add unused-parameter.
29932
29933 2009-12-24  Bruno Haible  <bruno@clisp.org>
29934
29935         Add missing dependencies to 'extensions' module.
29936         * m4/extensions.m4: Add comment.
29937         * modules/accept4 (Depends-on): Add extensions.
29938         * modules/dup3 (Depends-on): Likewise.
29939         * modules/fcntl (Depends-on): Likewise.
29940         * modules/futimens (Depends-on): Likewise.
29941         * modules/mknod (Depends-on): Likewise.
29942         * modules/pipe2 (Depends-on): Likewise.
29943         * modules/stat-time (Depends-on): Likewise.
29944         * modules/strcasestr-simple (Depends-on): Likewise.
29945         * modules/strsignal (Depends-on): Likewise.
29946         * modules/utimensat (Depends-on): Likewise.
29947         * modules/localcharset (Depends-on): Likewise. Needed because of
29948         gl_FCNTL_O_FLAGS.
29949         * modules/wcrtomb (Depends-on): Likewise. Needed because of
29950         AC_TYPE_MBSTATE_T.
29951         * modules/wcsnrtombs (Depends-on): Likewise.
29952         * modules/wcsrtombs (Depends-on): Likewise.
29953
29954 2009-12-24  Bruno Haible  <bruno@clisp.org>
29955
29956         binary-io: Avoid gcc warning due to SET_BINARY.
29957         * lib/binary-io.h (SET_BINARY): Cast the result to void.
29958         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
29959
29960 2009-12-24  Bruno Haible  <bruno@clisp.org>
29961
29962         Avoid future namespace pollution on glibc systems.
29963         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
29964         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
29965         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
29966         glibc systems.
29967
29968 2009-12-24  Bruno Haible  <bruno@clisp.org>
29969
29970         Refactor common macros used in tests.
29971         * tests/macros.h: New file.
29972         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
29973         and/or <stdlib.h>, if appropriate.
29974         (ASSERT, SIZEOF): Remove macros.
29975         * tests/test-areadlink-with-size.c: Likewise.
29976         * tests/test-areadlinkat.c: Likewise.
29977         * tests/test-areadlinkat-with-size.c: Likewise.
29978         * tests/test-argmatch.c: Likewise.
29979         * tests/test-argv-iter.c: Likewise.
29980         * tests/test-array-mergesort.c: Likewise.
29981         * tests/test-array_list.c: Likewise.
29982         * tests/test-array_oset.c: Likewise.
29983         * tests/test-avltree_list.c: Likewise.
29984         * tests/test-avltree_oset.c: Likewise.
29985         * tests/test-avltreehash_list.c: Likewise.
29986         * tests/test-base64.c: Likewise.
29987         * tests/test-binary-io.c: Likewise.
29988         * tests/test-bitrotate.c: Likewise.
29989         * tests/test-btowc.c: Likewise.
29990         * tests/test-byteswap.c: Likewise.
29991         * tests/test-c-ctype.c: Likewise.
29992         * tests/test-c-stack.c: Likewise.
29993         * tests/test-c-strcasecmp.c: Likewise.
29994         * tests/test-c-strcasestr.c: Likewise.
29995         * tests/test-c-strncasecmp.c: Likewise.
29996         * tests/test-c-strstr.c: Likewise.
29997         * tests/test-canonicalize-lgpl.c: Likewise.
29998         * tests/test-canonicalize.c: Likewise.
29999         * tests/test-carray_list.c: Likewise.
30000         * tests/test-ceilf1.c: Likewise.
30001         * tests/test-ceilf2.c: Likewise.
30002         * tests/test-ceill.c: Likewise.
30003         * tests/test-chown.c: Likewise.
30004         * tests/test-cloexec.c: Likewise.
30005         * tests/test-copy-acl.c: Likewise.
30006         * tests/test-copy-file.c: Likewise.
30007         * tests/test-count-one-bits.c: Likewise.
30008         * tests/test-dprintf-posix.c: Likewise.
30009         * tests/test-dup2.c: Likewise.
30010         * tests/test-dup3.c: Likewise.
30011         * tests/test-duplocale.c: Likewise.
30012         * tests/test-fbufmode.c: Likewise.
30013         * tests/test-fchdir.c: Likewise.
30014         * tests/test-fchownat.c: Likewise.
30015         * tests/test-fcntl-safer.c: Likewise.
30016         * tests/test-fcntl.c: Likewise.
30017         * tests/test-fdopendir.c: Likewise.
30018         * tests/test-fdutimensat.c: Likewise.
30019         * tests/test-fflush2.c: Likewise.
30020         * tests/test-file-has-acl.c: Likewise.
30021         * tests/test-filevercmp.c: Likewise.
30022         * tests/test-flock.c: Likewise.
30023         * tests/test-floorf1.c: Likewise.
30024         * tests/test-floorf2.c: Likewise.
30025         * tests/test-floorl.c: Likewise.
30026         * tests/test-fnmatch.c: Likewise.
30027         * tests/test-fopen.h: Likewise.
30028         * tests/test-fpending.c: Likewise.
30029         * tests/test-fprintf-posix.c: Likewise.
30030         * tests/test-fpurge.c: Likewise.
30031         * tests/test-freadable.c: Likewise.
30032         * tests/test-freadahead.c: Likewise.
30033         * tests/test-freading.c: Likewise.
30034         * tests/test-freadptr.c: Likewise.
30035         * tests/test-freadptr2.c: Likewise.
30036         * tests/test-freadseek.c: Likewise.
30037         * tests/test-freopen.c: Likewise.
30038         * tests/test-frexp.c: Likewise.
30039         * tests/test-frexpl.c: Likewise.
30040         * tests/test-fseek.c: Likewise.
30041         * tests/test-fseeko.c: Likewise.
30042         * tests/test-fstatat.c: Likewise.
30043         * tests/test-fstrcmp.c: Likewise.
30044         * tests/test-fsync.c: Likewise.
30045         * tests/test-ftell.c: Likewise.
30046         * tests/test-ftello.c: Likewise.
30047         * tests/test-func.c: Likewise.
30048         * tests/test-futimens.c: Likewise.
30049         * tests/test-fwritable.c: Likewise.
30050         * tests/test-fwriting.c: Likewise.
30051         * tests/test-getcwd.c: Likewise.
30052         * tests/test-getdate.c: Likewise.
30053         * tests/test-getdelim.c: Likewise.
30054         * tests/test-getdtablesize.c: Likewise.
30055         * tests/test-getgroups.c: Likewise.
30056         * tests/test-getline.c: Likewise.
30057         * tests/test-getndelim2.c: Likewise.
30058         * tests/test-glob.c: Likewise.
30059         * tests/test-hash.c: Likewise.
30060         * tests/test-i-ring.c: Likewise.
30061         * tests/test-iconv-utf.c: Likewise.
30062         * tests/test-iconv.c: Likewise.
30063         * tests/test-idpriv-drop.c: Likewise.
30064         * tests/test-idpriv-droptemp.c: Likewise.
30065         * tests/test-inet_ntop.c: Likewise.
30066         * tests/test-inet_pton.c: Likewise.
30067         * tests/test-isblank.c: Likewise.
30068         * tests/test-isfinite.c: Likewise.
30069         * tests/test-isinf.c: Likewise.
30070         * tests/test-isnan.c: Likewise.
30071         * tests/test-isnand.h: Likewise.
30072         * tests/test-isnanf.h: Likewise.
30073         * tests/test-isnanl.h: Likewise.
30074         * tests/test-lchown.c: Likewise.
30075         * tests/test-ldexpl.c: Likewise.
30076         * tests/test-link.c: Likewise.
30077         * tests/test-linkat.c: Likewise.
30078         * tests/test-linked_list.c: Likewise.
30079         * tests/test-linkedhash_list.c: Likewise.
30080         * tests/test-localename.c: Likewise.
30081         * tests/test-lseek.c: Likewise.
30082         * tests/test-lstat.c: Likewise.
30083         * tests/test-mbmemcasecmp.c: Likewise.
30084         * tests/test-mbmemcasecoll.c: Likewise.
30085         * tests/test-mbrtowc.c: Likewise.
30086         * tests/test-mbscasecmp.c: Likewise.
30087         * tests/test-mbscasestr1.c: Likewise.
30088         * tests/test-mbscasestr2.c: Likewise.
30089         * tests/test-mbscasestr3.c: Likewise.
30090         * tests/test-mbscasestr4.c: Likewise.
30091         * tests/test-mbschr.c: Likewise.
30092         * tests/test-mbscspn.c: Likewise.
30093         * tests/test-mbsinit.c: Likewise.
30094         * tests/test-mbsncasecmp.c: Likewise.
30095         * tests/test-mbsnrtowcs.c: Likewise.
30096         * tests/test-mbspbrk.c: Likewise.
30097         * tests/test-mbspcasecmp.c: Likewise.
30098         * tests/test-mbsrchr.c: Likewise.
30099         * tests/test-mbsrtowcs.c: Likewise.
30100         * tests/test-mbsspn.c: Likewise.
30101         * tests/test-mbsstr1.c: Likewise.
30102         * tests/test-mbsstr2.c: Likewise.
30103         * tests/test-mbsstr3.c: Likewise.
30104         * tests/test-memchr.c: Likewise.
30105         * tests/test-memchr2.c: Likewise.
30106         * tests/test-memcmp.c: Likewise.
30107         * tests/test-memmem.c: Likewise.
30108         * tests/test-memrchr.c: Likewise.
30109         * tests/test-mkdir.c: Likewise.
30110         * tests/test-mkdirat.c: Likewise.
30111         * tests/test-mkfifo.c: Likewise.
30112         * tests/test-mkfifoat.c: Likewise.
30113         * tests/test-mknod.c: Likewise.
30114         * tests/test-nanosleep.c: Likewise.
30115         * tests/test-nl_langinfo.c: Likewise.
30116         * tests/test-obstack-printf.c: Likewise.
30117         * tests/test-open.c: Likewise.
30118         * tests/test-openat.c: Likewise.
30119         * tests/test-pipe-filter-gi1.c: Likewise.
30120         * tests/test-pipe-filter-gi2-main.c: Likewise.
30121         * tests/test-pipe-filter-ii1.c: Likewise.
30122         * tests/test-pipe-filter-ii2-main.c: Likewise.
30123         * tests/test-pipe2.c: Likewise.
30124         * tests/test-popen.h: Likewise.
30125         * tests/test-posixtm.c: Likewise.
30126         * tests/test-pread.c: Likewise.
30127         * tests/test-printf-frexp.c: Likewise.
30128         * tests/test-printf-frexpl.c: Likewise.
30129         * tests/test-printf-posix.c: Likewise.
30130         * tests/test-priv-set.c: Likewise.
30131         * tests/test-quotearg.c: Likewise.
30132         * tests/test-random_r.c: Likewise.
30133         * tests/test-rawmemchr.c: Likewise.
30134         * tests/test-rbtree_list.c: Likewise.
30135         * tests/test-rbtree_oset.c: Likewise.
30136         * tests/test-rbtreehash_list.c: Likewise.
30137         * tests/test-readlink.c: Likewise.
30138         * tests/test-remove.c: Likewise.
30139         * tests/test-rename.c: Likewise.
30140         * tests/test-renameat.c: Likewise.
30141         * tests/test-rmdir.c: Likewise.
30142         * tests/test-round1.c: Likewise.
30143         * tests/test-roundf1.c: Likewise.
30144         * tests/test-roundl.c: Likewise.
30145         * tests/test-safe-alloc.c: Likewise.
30146         * tests/test-sameacls.c: Likewise.
30147         * tests/test-set-mode-acl.c: Likewise.
30148         * tests/test-setenv.c: Likewise.
30149         * tests/test-sigaction.c: Likewise.
30150         * tests/test-signbit.c: Likewise.
30151         * tests/test-sleep.c: Likewise.
30152         * tests/test-snprintf-posix.c: Likewise.
30153         * tests/test-snprintf.c: Likewise.
30154         * tests/test-sprintf-posix.c: Likewise.
30155         * tests/test-stat-time.c: Likewise.
30156         * tests/test-stat.c: Likewise.
30157         * tests/test-strcasestr.c: Likewise.
30158         * tests/test-strchrnul.c: Likewise.
30159         * tests/test-strerror.c: Likewise.
30160         * tests/test-striconv.c: Likewise.
30161         * tests/test-striconveh.c: Likewise.
30162         * tests/test-striconveha.c: Likewise.
30163         * tests/test-strsignal.c: Likewise.
30164         * tests/test-strstr.c: Likewise.
30165         * tests/test-strtod.c: Likewise.
30166         * tests/test-strverscmp.c: Likewise.
30167         * tests/test-symlink.c: Likewise.
30168         * tests/test-symlinkat.c: Likewise.
30169         * tests/test-trunc1.c: Likewise.
30170         * tests/test-trunc2.c: Likewise.
30171         * tests/test-truncf1.c: Likewise.
30172         * tests/test-truncf2.c: Likewise.
30173         * tests/test-truncl.c: Likewise.
30174         * tests/test-uname.c: Likewise.
30175         * tests/test-unlink.c: Likewise.
30176         * tests/test-unlinkat.c: Likewise.
30177         * tests/test-unsetenv.c: Likewise.
30178         * tests/test-usleep.c: Likewise.
30179         * tests/test-utimens.c: Likewise.
30180         * tests/test-utimensat.c: Likewise.
30181         * tests/test-vasnprintf-posix.c: Likewise.
30182         * tests/test-vasnprintf-posix2.c: Likewise.
30183         * tests/test-vasnprintf.c: Likewise.
30184         * tests/test-vasprintf-posix.c: Likewise.
30185         * tests/test-vasprintf.c: Likewise.
30186         * tests/test-vdprintf-posix.c: Likewise.
30187         * tests/test-vfprintf-posix.c: Likewise.
30188         * tests/test-vprintf-posix.c: Likewise.
30189         * tests/test-vsnprintf-posix.c: Likewise.
30190         * tests/test-vsnprintf.c: Likewise.
30191         * tests/test-vsprintf-posix.c: Likewise.
30192         * tests/test-wcrtomb.c: Likewise.
30193         * tests/test-wcsnrtombs.c: Likewise.
30194         * tests/test-wcsrtombs.c: Likewise.
30195         * tests/test-wctype.c: Likewise.
30196         * tests/test-wcwidth.c: Likewise.
30197         * tests/test-xfprintf-posix.c: Likewise.
30198         * tests/test-xmemdup0.c: Likewise.
30199         * tests/test-xprintf-posix.c: Likewise.
30200         * tests/test-xvasprintf.c: Likewise.
30201         * tests/unicase/test-locale-language.c: Likewise.
30202         * tests/unicase/test-mapping-part1.h: Likewise.
30203         * tests/unicase/test-predicate-part1.h: Likewise.
30204         * tests/unicase/test-u8-casecmp.c: Likewise.
30205         * tests/unicase/test-u8-casecoll.c: Likewise.
30206         * tests/unicase/test-u8-casefold.c: Likewise.
30207         * tests/unicase/test-u8-is-cased.c: Likewise.
30208         * tests/unicase/test-u8-is-casefolded.c: Likewise.
30209         * tests/unicase/test-u8-is-lowercase.c: Likewise.
30210         * tests/unicase/test-u8-is-titlecase.c: Likewise.
30211         * tests/unicase/test-u8-is-uppercase.c: Likewise.
30212         * tests/unicase/test-u8-tolower.c: Likewise.
30213         * tests/unicase/test-u8-totitle.c: Likewise.
30214         * tests/unicase/test-u8-toupper.c: Likewise.
30215         * tests/unicase/test-u16-casecmp.c: Likewise.
30216         * tests/unicase/test-u16-casecoll.c: Likewise.
30217         * tests/unicase/test-u16-casefold.c: Likewise.
30218         * tests/unicase/test-u16-is-cased.c: Likewise.
30219         * tests/unicase/test-u16-is-casefolded.c: Likewise.
30220         * tests/unicase/test-u16-is-lowercase.c: Likewise.
30221         * tests/unicase/test-u16-is-titlecase.c: Likewise.
30222         * tests/unicase/test-u16-is-uppercase.c: Likewise.
30223         * tests/unicase/test-u16-tolower.c: Likewise.
30224         * tests/unicase/test-u16-totitle.c: Likewise.
30225         * tests/unicase/test-u16-toupper.c: Likewise.
30226         * tests/unicase/test-u32-casecmp.c: Likewise.
30227         * tests/unicase/test-u32-casecoll.c: Likewise.
30228         * tests/unicase/test-u32-casefold.c: Likewise.
30229         * tests/unicase/test-u32-is-cased.c: Likewise.
30230         * tests/unicase/test-u32-is-casefolded.c: Likewise.
30231         * tests/unicase/test-u32-is-lowercase.c: Likewise.
30232         * tests/unicase/test-u32-is-titlecase.c: Likewise.
30233         * tests/unicase/test-u32-is-uppercase.c: Likewise.
30234         * tests/unicase/test-u32-tolower.c: Likewise.
30235         * tests/unicase/test-u32-totitle.c: Likewise.
30236         * tests/unicase/test-u32-toupper.c: Likewise.
30237         * tests/unicase/test-ulc-casecmp.c: Likewise.
30238         * tests/unicase/test-ulc-casecoll.c: Likewise.
30239         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
30240         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
30241         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
30242         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
30243         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
30244         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
30245         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
30246         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
30247         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
30248         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
30249         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
30250         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
30251         * tests/unictype/test-bidi_byname.c: Likewise.
30252         * tests/unictype/test-bidi_name.c: Likewise.
30253         * tests/unictype/test-bidi_of.c: Likewise.
30254         * tests/unictype/test-bidi_test.c: Likewise.
30255         * tests/unictype/test-block_list.c: Likewise.
30256         * tests/unictype/test-block_of.c: Likewise.
30257         * tests/unictype/test-block_test.c: Likewise.
30258         * tests/unictype/test-categ_and.c: Likewise.
30259         * tests/unictype/test-categ_and_not.c: Likewise.
30260         * tests/unictype/test-categ_byname.c: Likewise.
30261         * tests/unictype/test-categ_name.c: Likewise.
30262         * tests/unictype/test-categ_none.c: Likewise.
30263         * tests/unictype/test-categ_of.c: Likewise.
30264         * tests/unictype/test-categ_or.c: Likewise.
30265         * tests/unictype/test-categ_test_withtable.c: Likewise.
30266         * tests/unictype/test-combining.c: Likewise.
30267         * tests/unictype/test-decdigit.c: Likewise.
30268         * tests/unictype/test-digit.c: Likewise.
30269         * tests/unictype/test-mirror.c: Likewise.
30270         * tests/unictype/test-numeric.c: Likewise.
30271         * tests/unictype/test-pr_byname.c: Likewise.
30272         * tests/unictype/test-pr_test.c: Likewise.
30273         * tests/unictype/test-predicate-part1.h: Likewise.
30274         * tests/unictype/test-scripts.c: Likewise.
30275         * tests/unictype/test-sy_c_ident.c: Likewise.
30276         * tests/unictype/test-sy_java_ident.c: Likewise.
30277         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
30278         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
30279         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
30280         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
30281         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
30282         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
30283         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
30284         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
30285         * tests/uninorm/test-canonical-decomposition.c: Likewise.
30286         * tests/uninorm/test-compat-decomposition.c: Likewise.
30287         * tests/uninorm/test-composition.c: Likewise.
30288         * tests/uninorm/test-decomposing-form.c: Likewise.
30289         * tests/uninorm/test-decomposition.c: Likewise.
30290         * tests/uninorm/test-u8-nfc.c: Likewise.
30291         * tests/uninorm/test-u8-nfd.c: Likewise.
30292         * tests/uninorm/test-u8-nfkc.c: Likewise.
30293         * tests/uninorm/test-u8-nfkd.c: Likewise.
30294         * tests/uninorm/test-u8-normcmp.c: Likewise.
30295         * tests/uninorm/test-u8-normcoll.c: Likewise.
30296         * tests/uninorm/test-u16-nfc.c: Likewise.
30297         * tests/uninorm/test-u16-nfd.c: Likewise.
30298         * tests/uninorm/test-u16-nfkc.c: Likewise.
30299         * tests/uninorm/test-u16-nfkd.c: Likewise.
30300         * tests/uninorm/test-u16-normcmp.c: Likewise.
30301         * tests/uninorm/test-u16-normcoll.c: Likewise.
30302         * tests/uninorm/test-u32-nfc.c: Likewise.
30303         * tests/uninorm/test-u32-nfd.c: Likewise.
30304         * tests/uninorm/test-u32-nfkc.c: Likewise.
30305         * tests/uninorm/test-u32-nfkd.c: Likewise.
30306         * tests/uninorm/test-u32-normalize-big.c: Likewise.
30307         * tests/uninorm/test-u32-normcmp.c: Likewise.
30308         * tests/uninorm/test-u32-normcoll.c: Likewise.
30309         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
30310         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
30311         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
30312         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
30313         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
30314         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
30315         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
30316         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
30317         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
30318         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
30319         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
30320         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
30321         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
30322         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
30323         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
30324         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
30325         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
30326         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
30327         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
30328         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
30329         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
30330         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
30331         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
30332         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
30333         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
30334         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
30335         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
30336         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
30337         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
30338         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
30339         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
30340         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
30341         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
30342         * tests/uniwidth/test-u8-strwidth.c: Likewise.
30343         * tests/uniwidth/test-u8-width.c: Likewise.
30344         * tests/uniwidth/test-u16-strwidth.c: Likewise.
30345         * tests/uniwidth/test-u16-width.c: Likewise.
30346         * tests/uniwidth/test-u32-strwidth.c: Likewise.
30347         * tests/uniwidth/test-u32-width.c: Likewise.
30348         * tests/uniwidth/test-uc_width.c: Likewise.
30349         * tests/uniwidth/test-uc_width2.c: Likewise.
30350         * modules/acl-tests (Files): Add tests/macros.h.
30351         * modules/areadlink-tests (Files): Likewise.
30352         * modules/areadlink-with-size-tests (Files): Likewise.
30353         * modules/areadlinkat-tests (Files): Likewise.
30354         * modules/areadlinkat-with-size-tests (Files): Likewise.
30355         * modules/argmatch-tests (Files): Likewise.
30356         * modules/argv-iter-tests (Files): Likewise.
30357         * modules/array-list-tests (Files): Likewise.
30358         * modules/array-mergesort-tests (Files): Likewise.
30359         * modules/array-oset-tests (Files): Likewise.
30360         * modules/avltree-list-tests (Files): Likewise.
30361         * modules/avltree-oset-tests (Files): Likewise.
30362         * modules/avltreehash-list-tests (Files): Likewise.
30363         * modules/base64-tests (Files): Likewise.
30364         * modules/binary-io-tests (Files): Likewise.
30365         * modules/bitrotate-tests (Files): Likewise.
30366         * modules/btowc-tests (Files): Likewise.
30367         * modules/byteswap-tests (Files): Likewise.
30368         * modules/c-ctype-tests (Files): Likewise.
30369         * modules/c-stack-tests (Files): Likewise.
30370         * modules/c-strcase-tests (Files): Likewise.
30371         * modules/c-strcasestr-tests (Files): Likewise.
30372         * modules/c-strstr-tests (Files): Likewise.
30373         * modules/canonicalize-lgpl-tests (Files): Likewise.
30374         * modules/canonicalize-tests (Files): Likewise.
30375         * modules/carray-list-tests (Files): Likewise.
30376         * modules/ceilf-tests (Files): Likewise.
30377         * modules/ceill-tests (Files): Likewise.
30378         * modules/chown-tests (Files): Likewise.
30379         * modules/cloexec-tests (Files): Likewise.
30380         * modules/copy-file-tests (Files): Likewise.
30381         * modules/count-one-bits-tests (Files): Likewise.
30382         * modules/dprintf-posix-tests (Files): Likewise.
30383         * modules/dup2-tests (Files): Likewise.
30384         * modules/dup3-tests (Files): Likewise.
30385         * modules/duplocale-tests (Files): Likewise.
30386         * modules/fbufmode-tests (Files): Likewise.
30387         * modules/fchdir-tests (Files): Likewise.
30388         * modules/fcntl-safer-tests (Files): Likewise.
30389         * modules/fcntl-tests (Files): Likewise.
30390         * modules/fdopendir-tests (Files): Likewise.
30391         * modules/fdutimensat-tests (Files): Likewise.
30392         * modules/fflush-tests (Files): Likewise.
30393         * modules/filevercmp-tests (Files): Likewise.
30394         * modules/flock-tests (Files): Likewise.
30395         * modules/floorf-tests (Files): Likewise.
30396         * modules/floorl-tests (Files): Likewise.
30397         * modules/fnmatch-tests (Files): Likewise.
30398         * modules/fopen-safer-tests (Files): Likewise.
30399         * modules/fopen-tests (Files): Likewise.
30400         * modules/fpending-tests (Files): Likewise.
30401         * modules/fprintf-posix-tests (Files): Likewise.
30402         * modules/fpurge-tests (Files): Likewise.
30403         * modules/freadable-tests (Files): Likewise.
30404         * modules/freadahead-tests (Files): Likewise.
30405         * modules/freading-tests (Files): Likewise.
30406         * modules/freadptr-tests (Files): Likewise.
30407         * modules/freadseek-tests (Files): Likewise.
30408         * modules/freopen-tests (Files): Likewise.
30409         * modules/frexp-nolibm-tests (Files): Likewise.
30410         * modules/frexp-tests (Files): Likewise.
30411         * modules/frexpl-nolibm-tests (Files): Likewise.
30412         * modules/frexpl-tests (Files): Likewise.
30413         * modules/fseek-tests (Files): Likewise.
30414         * modules/fseeko-tests (Files): Likewise.
30415         * modules/fstrcmp-tests (Files): Likewise.
30416         * modules/fsync-tests (Files): Likewise.
30417         * modules/ftell-tests (Files): Likewise.
30418         * modules/ftello-tests (Files): Likewise.
30419         * modules/func-tests (Files): Likewise.
30420         * modules/futimens-tests (Files): Likewise.
30421         * modules/fwritable-tests (Files): Likewise.
30422         * modules/fwriting-tests (Files): Likewise.
30423         * modules/getcwd-tests (Files): Likewise.
30424         * modules/getdate-tests (Files): Likewise.
30425         * modules/getdelim-tests (Files): Likewise.
30426         * modules/getdtablesize-tests (Files): Likewise.
30427         * modules/getgroups-tests (Files): Likewise.
30428         * modules/getline-tests (Files): Likewise.
30429         * modules/getndelim2-tests (Files): Likewise.
30430         * modules/glob-tests (Files): Likewise.
30431         * modules/hash-tests (Files): Likewise.
30432         * modules/i-ring-tests (Files): Likewise.
30433         * modules/iconv-tests (Files): Likewise.
30434         * modules/iconv_open-utf-tests (Files): Likewise.
30435         * modules/idpriv-drop-tests (Files): Likewise.
30436         * modules/idpriv-droptemp-tests (Files): Likewise.
30437         * modules/inet_ntop-tests (Files): Likewise.
30438         * modules/inet_pton-tests (Files): Likewise.
30439         * modules/isblank-tests (Files): Likewise.
30440         * modules/isfinite-tests (Files): Likewise.
30441         * modules/isinf-tests (Files): Likewise.
30442         * modules/isnan-tests (Files): Likewise.
30443         * modules/isnand-nolibm-tests (Files): Likewise.
30444         * modules/isnand-tests (Files): Likewise.
30445         * modules/isnanf-nolibm-tests (Files): Likewise.
30446         * modules/isnanf-tests (Files): Likewise.
30447         * modules/isnanl-nolibm-tests (Files): Likewise.
30448         * modules/isnanl-tests (Files): Likewise.
30449         * modules/lchown-tests (Files): Likewise.
30450         * modules/ldexpl-tests (Files): Likewise.
30451         * modules/link-tests (Files): Likewise.
30452         * modules/linkat-tests (Files): Likewise.
30453         * modules/linked-list-tests (Files): Likewise.
30454         * modules/linkedhash-list-tests (Files): Likewise.
30455         * modules/localename-tests (Files): Likewise.
30456         * modules/lseek-tests (Files): Likewise.
30457         * modules/lstat-tests (Files): Likewise.
30458         * modules/mbmemcasecmp-tests (Files): Likewise.
30459         * modules/mbmemcasecoll-tests (Files): Likewise.
30460         * modules/mbrtowc-tests (Files): Likewise.
30461         * modules/mbscasecmp-tests (Files): Likewise.
30462         * modules/mbscasestr-tests (Files): Likewise.
30463         * modules/mbschr-tests (Files): Likewise.
30464         * modules/mbscspn-tests (Files): Likewise.
30465         * modules/mbsinit-tests (Files): Likewise.
30466         * modules/mbsncasecmp-tests (Files): Likewise.
30467         * modules/mbsnrtowcs-tests (Files): Likewise.
30468         * modules/mbspbrk-tests (Files): Likewise.
30469         * modules/mbspcasecmp-tests (Files): Likewise.
30470         * modules/mbsrchr-tests (Files): Likewise.
30471         * modules/mbsrtowcs-tests (Files): Likewise.
30472         * modules/mbsspn-tests (Files): Likewise.
30473         * modules/mbsstr-tests (Files): Likewise.
30474         * modules/memchr-tests (Files): Likewise.
30475         * modules/memchr2-tests (Files): Likewise.
30476         * modules/memcmp-tests (Files): Likewise.
30477         * modules/memmem-tests (Files): Likewise.
30478         * modules/memrchr-tests (Files): Likewise.
30479         * modules/mkdir-tests (Files): Likewise.
30480         * modules/mkfifo-tests (Files): Likewise.
30481         * modules/mkfifoat-tests (Files): Likewise.
30482         * modules/mknod-tests (Files): Likewise.
30483         * modules/nanosleep-tests (Files): Likewise.
30484         * modules/nl_langinfo-tests (Files): Likewise.
30485         * modules/obstack-printf-tests (Files): Likewise.
30486         * modules/open-tests (Files): Likewise.
30487         * modules/openat-tests (Files): Likewise.
30488         * modules/pipe-filter-gi-tests (Files): Likewise.
30489         * modules/pipe-filter-ii-tests (Files): Likewise.
30490         * modules/pipe2-tests (Files): Likewise.
30491         * modules/popen-safer-tests (Files): Likewise.
30492         * modules/popen-tests (Files): Likewise.
30493         * modules/posixtm-tests (Files): Likewise.
30494         * modules/pread-tests (Files): Likewise.
30495         * modules/printf-frexp-tests (Files): Likewise.
30496         * modules/printf-frexpl-tests (Files): Likewise.
30497         * modules/printf-posix-tests (Files): Likewise.
30498         * modules/priv-set-tests (Files): Likewise.
30499         * modules/quotearg-tests (Files): Likewise.
30500         * modules/random_r-tests (Files): Likewise.
30501         * modules/rawmemchr-tests (Files): Likewise.
30502         * modules/rbtree-list-tests (Files): Likewise.
30503         * modules/rbtree-oset-tests (Files): Likewise.
30504         * modules/rbtreehash-list-tests (Files): Likewise.
30505         * modules/readlink-tests (Files): Likewise.
30506         * modules/remove-tests (Files): Likewise.
30507         * modules/rename-tests (Files): Likewise.
30508         * modules/renameat-tests (Files): Likewise.
30509         * modules/rmdir-tests (Files): Likewise.
30510         * modules/round-tests (Files): Likewise.
30511         * modules/roundf-tests (Files): Likewise.
30512         * modules/roundl-tests (Files): Likewise.
30513         * modules/safe-alloc-tests (Files): Likewise.
30514         * modules/setenv-tests (Files): Likewise.
30515         * modules/sigaction-tests (Files): Likewise.
30516         * modules/signbit-tests (Files): Likewise.
30517         * modules/sleep-tests (Files): Likewise.
30518         * modules/snprintf-posix-tests (Files): Likewise.
30519         * modules/snprintf-tests (Files): Likewise.
30520         * modules/sprintf-posix-tests (Files): Likewise.
30521         * modules/stat-tests (Files): Likewise.
30522         * modules/stat-time-tests (Files): Likewise.
30523         * modules/strcasestr-tests (Files): Likewise.
30524         * modules/strchrnul-tests (Files): Likewise.
30525         * modules/strerror-tests (Files): Likewise.
30526         * modules/striconv-tests (Files): Likewise.
30527         * modules/striconveh-tests (Files): Likewise.
30528         * modules/striconveha-tests (Files): Likewise.
30529         * modules/strsignal-tests (Files): Likewise.
30530         * modules/strstr-tests (Files): Likewise.
30531         * modules/strtod-tests (Files): Likewise.
30532         * modules/strverscmp-tests (Files): Likewise.
30533         * modules/symlink-tests (Files): Likewise.
30534         * modules/symlinkat-tests (Files): Likewise.
30535         * modules/trunc-tests (Files): Likewise.
30536         * modules/truncf-tests (Files): Likewise.
30537         * modules/truncl-tests (Files): Likewise.
30538         * modules/uname-tests (Files): Likewise.
30539         * modules/unicase/cased-tests (Files): Likewise.
30540         * modules/unicase/ignorable-tests (Files): Likewise.
30541         * modules/unicase/locale-language-tests (Files): Likewise.
30542         * modules/unicase/tolower-tests (Files): Likewise.
30543         * modules/unicase/totitle-tests (Files): Likewise.
30544         * modules/unicase/toupper-tests (Files): Likewise.
30545         * modules/unicase/u8-casecmp-tests (Files): Likewise.
30546         * modules/unicase/u8-casecoll-tests (Files): Likewise.
30547         * modules/unicase/u8-casefold-tests (Files): Likewise.
30548         * modules/unicase/u8-is-cased-tests (Files): Likewise.
30549         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
30550         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
30551         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
30552         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
30553         * modules/unicase/u8-tolower-tests (Files): Likewise.
30554         * modules/unicase/u8-totitle-tests (Files): Likewise.
30555         * modules/unicase/u8-toupper-tests (Files): Likewise.
30556         * modules/unicase/u16-casecmp-tests (Files): Likewise.
30557         * modules/unicase/u16-casecoll-tests (Files): Likewise.
30558         * modules/unicase/u16-casefold-tests (Files): Likewise.
30559         * modules/unicase/u16-is-cased-tests (Files): Likewise.
30560         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
30561         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
30562         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
30563         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
30564         * modules/unicase/u16-tolower-tests (Files): Likewise.
30565         * modules/unicase/u16-totitle-tests (Files): Likewise.
30566         * modules/unicase/u16-toupper-tests (Files): Likewise.
30567         * modules/unicase/u32-casecmp-tests (Files): Likewise.
30568         * modules/unicase/u32-casecoll-tests (Files): Likewise.
30569         * modules/unicase/u32-casefold-tests (Files): Likewise.
30570         * modules/unicase/u32-is-cased-tests (Files): Likewise.
30571         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
30572         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
30573         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
30574         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
30575         * modules/unicase/u32-tolower-tests (Files): Likewise.
30576         * modules/unicase/u32-totitle-tests (Files): Likewise.
30577         * modules/unicase/u32-toupper-tests (Files): Likewise.
30578         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
30579         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
30580         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
30581         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
30582         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
30583         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
30584         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
30585         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
30586         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
30587         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
30588         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
30589         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
30590         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
30591         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
30592         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
30593         * modules/unictype/bidicategory-name-tests (Files): Likewise.
30594         * modules/unictype/bidicategory-of-tests (Files): Likewise.
30595         * modules/unictype/bidicategory-test-tests (Files): Likewise.
30596         * modules/unictype/block-list-tests (Files): Likewise.
30597         * modules/unictype/block-of-tests (Files): Likewise.
30598         * modules/unictype/block-test-tests (Files): Likewise.
30599         * modules/unictype/category-C-tests (Files): Likewise.
30600         * modules/unictype/category-Cc-tests (Files): Likewise.
30601         * modules/unictype/category-Cf-tests (Files): Likewise.
30602         * modules/unictype/category-Cn-tests (Files): Likewise.
30603         * modules/unictype/category-Co-tests (Files): Likewise.
30604         * modules/unictype/category-Cs-tests (Files): Likewise.
30605         * modules/unictype/category-L-tests (Files): Likewise.
30606         * modules/unictype/category-Ll-tests (Files): Likewise.
30607         * modules/unictype/category-Lm-tests (Files): Likewise.
30608         * modules/unictype/category-Lo-tests (Files): Likewise.
30609         * modules/unictype/category-Lt-tests (Files): Likewise.
30610         * modules/unictype/category-Lu-tests (Files): Likewise.
30611         * modules/unictype/category-M-tests (Files): Likewise.
30612         * modules/unictype/category-Mc-tests (Files): Likewise.
30613         * modules/unictype/category-Me-tests (Files): Likewise.
30614         * modules/unictype/category-Mn-tests (Files): Likewise.
30615         * modules/unictype/category-N-tests (Files): Likewise.
30616         * modules/unictype/category-Nd-tests (Files): Likewise.
30617         * modules/unictype/category-Nl-tests (Files): Likewise.
30618         * modules/unictype/category-No-tests (Files): Likewise.
30619         * modules/unictype/category-P-tests (Files): Likewise.
30620         * modules/unictype/category-Pc-tests (Files): Likewise.
30621         * modules/unictype/category-Pd-tests (Files): Likewise.
30622         * modules/unictype/category-Pe-tests (Files): Likewise.
30623         * modules/unictype/category-Pf-tests (Files): Likewise.
30624         * modules/unictype/category-Pi-tests (Files): Likewise.
30625         * modules/unictype/category-Po-tests (Files): Likewise.
30626         * modules/unictype/category-Ps-tests (Files): Likewise.
30627         * modules/unictype/category-S-tests (Files): Likewise.
30628         * modules/unictype/category-Sc-tests (Files): Likewise.
30629         * modules/unictype/category-Sk-tests (Files): Likewise.
30630         * modules/unictype/category-Sm-tests (Files): Likewise.
30631         * modules/unictype/category-So-tests (Files): Likewise.
30632         * modules/unictype/category-Z-tests (Files): Likewise.
30633         * modules/unictype/category-Zl-tests (Files): Likewise.
30634         * modules/unictype/category-Zp-tests (Files): Likewise.
30635         * modules/unictype/category-Zs-tests (Files): Likewise.
30636         * modules/unictype/category-and-not-tests (Files): Likewise.
30637         * modules/unictype/category-and-tests (Files): Likewise.
30638         * modules/unictype/category-byname-tests (Files): Likewise.
30639         * modules/unictype/category-name-tests (Files): Likewise.
30640         * modules/unictype/category-none-tests (Files): Likewise.
30641         * modules/unictype/category-of-tests (Files): Likewise.
30642         * modules/unictype/category-or-tests (Files): Likewise.
30643         * modules/unictype/category-test-withtable-tests (Files): Likewise.
30644         * modules/unictype/combining-class-tests (Files): Likewise.
30645         * modules/unictype/ctype-alnum-tests (Files): Likewise.
30646         * modules/unictype/ctype-alpha-tests (Files): Likewise.
30647         * modules/unictype/ctype-blank-tests (Files): Likewise.
30648         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
30649         * modules/unictype/ctype-digit-tests (Files): Likewise.
30650         * modules/unictype/ctype-graph-tests (Files): Likewise.
30651         * modules/unictype/ctype-lower-tests (Files): Likewise.
30652         * modules/unictype/ctype-print-tests (Files): Likewise.
30653         * modules/unictype/ctype-punct-tests (Files): Likewise.
30654         * modules/unictype/ctype-space-tests (Files): Likewise.
30655         * modules/unictype/ctype-upper-tests (Files): Likewise.
30656         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
30657         * modules/unictype/decimal-digit-tests (Files): Likewise.
30658         * modules/unictype/digit-tests (Files): Likewise.
30659         * modules/unictype/mirror-tests (Files): Likewise.
30660         * modules/unictype/numeric-tests (Files): Likewise.
30661         * modules/unictype/property-alphabetic-tests (Files): Likewise.
30662         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
30663         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
30664         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
30665         Likewise.
30666         * modules/unictype/property-bidi-block-separator-tests (Files):
30667         Likewise.
30668         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
30669         Likewise.
30670         * modules/unictype/property-bidi-common-separator-tests (Files):
30671         Likewise.
30672         * modules/unictype/property-bidi-control-tests (Files): Likewise.
30673         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
30674         Likewise.
30675         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
30676         Likewise.
30677         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
30678         Likewise.
30679         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
30680         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
30681         Likewise.
30682         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
30683         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
30684         Likewise.
30685         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
30686         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
30687         * modules/unictype/property-bidi-segment-separator-tests (Files):
30688         Likewise.
30689         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
30690         * modules/unictype/property-byname-tests (Files): Likewise.
30691         * modules/unictype/property-combining-tests (Files): Likewise.
30692         * modules/unictype/property-composite-tests (Files): Likewise.
30693         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
30694         * modules/unictype/property-dash-tests (Files): Likewise.
30695         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
30696         * modules/unictype/property-default-ignorable-code-point-tests (Files):
30697         Likewise.
30698         * modules/unictype/property-deprecated-tests (Files): Likewise.
30699         * modules/unictype/property-diacritic-tests (Files): Likewise.
30700         * modules/unictype/property-extender-tests (Files): Likewise.
30701         * modules/unictype/property-format-control-tests (Files): Likewise.
30702         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
30703         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
30704         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
30705         * modules/unictype/property-hex-digit-tests (Files): Likewise.
30706         * modules/unictype/property-hyphen-tests (Files): Likewise.
30707         * modules/unictype/property-id-continue-tests (Files): Likewise.
30708         * modules/unictype/property-id-start-tests (Files): Likewise.
30709         * modules/unictype/property-ideographic-tests (Files): Likewise.
30710         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
30711         * modules/unictype/property-ids-trinary-operator-tests (Files):
30712         Likewise.
30713         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
30714         * modules/unictype/property-iso-control-tests (Files): Likewise.
30715         * modules/unictype/property-join-control-tests (Files): Likewise.
30716         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
30717         * modules/unictype/property-line-separator-tests (Files): Likewise.
30718         * modules/unictype/property-logical-order-exception-tests (Files):
30719         Likewise.
30720         * modules/unictype/property-lowercase-tests (Files): Likewise.
30721         * modules/unictype/property-math-tests (Files): Likewise.
30722         * modules/unictype/property-non-break-tests (Files): Likewise.
30723         * modules/unictype/property-not-a-character-tests (Files): Likewise.
30724         * modules/unictype/property-numeric-tests (Files): Likewise.
30725         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
30726         * modules/unictype/property-other-default-ignorable-code-point-tests
30727         (Files): Likewise.
30728         * modules/unictype/property-other-grapheme-extend-tests (Files):
30729         Likewise.
30730         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
30731         * modules/unictype/property-other-id-start-tests (Files): Likewise.
30732         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
30733         * modules/unictype/property-other-math-tests (Files): Likewise.
30734         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
30735         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
30736         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
30737         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
30738         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
30739         * modules/unictype/property-private-use-tests (Files): Likewise.
30740         * modules/unictype/property-punctuation-tests (Files): Likewise.
30741         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
30742         * modules/unictype/property-radical-tests (Files): Likewise.
30743         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
30744         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
30745         * modules/unictype/property-space-tests (Files): Likewise.
30746         * modules/unictype/property-terminal-punctuation-tests (Files):
30747         Likewise.
30748         * modules/unictype/property-test-tests (Files): Likewise.
30749         * modules/unictype/property-titlecase-tests (Files): Likewise.
30750         * modules/unictype/property-unassigned-code-value-tests (Files):
30751         Likewise.
30752         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
30753         * modules/unictype/property-uppercase-tests (Files): Likewise.
30754         * modules/unictype/property-variation-selector-tests (Files): Likewise.
30755         * modules/unictype/property-white-space-tests (Files): Likewise.
30756         * modules/unictype/property-xid-continue-tests (Files): Likewise.
30757         * modules/unictype/property-xid-start-tests (Files): Likewise.
30758         * modules/unictype/property-zero-width-tests (Files): Likewise.
30759         * modules/unictype/scripts-tests (Files): Likewise.
30760         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
30761         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
30762         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
30763         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
30764         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
30765         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
30766         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
30767         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
30768         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
30769         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
30770         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
30771         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
30772         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
30773         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
30774         * modules/uninorm/composition-tests (Files): Likewise.
30775         * modules/uninorm/decomposing-form-tests (Files): Likewise.
30776         * modules/uninorm/decomposition-tests (Files): Likewise.
30777         * modules/uninorm/filter-tests (Files): Likewise.
30778         * modules/uninorm/nfc-tests (Files): Likewise.
30779         * modules/uninorm/nfd-tests (Files): Likewise.
30780         * modules/uninorm/nfkc-tests (Files): Likewise.
30781         * modules/uninorm/nfkd-tests (Files): Likewise.
30782         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
30783         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
30784         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
30785         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
30786         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
30787         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
30788         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
30789         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
30790         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
30791         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
30792         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
30793         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
30794         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
30795         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
30796         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
30797         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
30798         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
30799         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
30800         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
30801         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
30802         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
30803         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
30804         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
30805         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
30806         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
30807         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
30808         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
30809         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
30810         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
30811         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
30812         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
30813         * modules/uniwidth/u8-width-tests (Files): Likewise.
30814         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
30815         * modules/uniwidth/u16-width-tests (Files): Likewise.
30816         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
30817         * modules/uniwidth/u32-width-tests (Files): Likewise.
30818         * modules/uniwidth/width-tests (Files): Likewise.
30819         * modules/unlink-tests (Files): Likewise.
30820         * modules/unsetenv-tests (Files): Likewise.
30821         * modules/usleep-tests (Files): Likewise.
30822         * modules/utimens-tests (Files): Likewise.
30823         * modules/utimensat-tests (Files): Likewise.
30824         * modules/vasnprintf-posix-tests (Files): Likewise.
30825         * modules/vasnprintf-tests (Files): Likewise.
30826         * modules/vasprintf-posix-tests (Files): Likewise.
30827         * modules/vasprintf-tests (Files): Likewise.
30828         * modules/vdprintf-posix-tests (Files): Likewise.
30829         * modules/vfprintf-posix-tests (Files): Likewise.
30830         * modules/vprintf-posix-tests (Files): Likewise.
30831         * modules/vsnprintf-posix-tests (Files): Likewise.
30832         * modules/vsnprintf-tests (Files): Likewise.
30833         * modules/vsprintf-posix-tests (Files): Likewise.
30834         * modules/wcrtomb-tests (Files): Likewise.
30835         * modules/wcsnrtombs-tests (Files): Likewise.
30836         * modules/wcsrtombs-tests (Files): Likewise.
30837         * modules/wctype-tests (Files): Likewise.
30838         * modules/wcwidth-tests (Files): Likewise.
30839         * modules/xmemdup0-tests (Files): Likewise.
30840         * modules/xprintf-posix-tests (Files): Likewise.
30841         * modules/xvasprintf-tests (Files): Likewise.
30842
30843 2009-12-24  Eric Blake  <ebb9@byu.net>
30844
30845         test-nanosleep: fix typo
30846         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
30847         patch.
30848         Reported by Bruno Haible.
30849
30850 2009-12-24  Bruno Haible  <bruno@clisp.org>
30851
30852         Reduce namespace pollution on glibc systems.
30853         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
30854         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
30855         systems.
30856         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
30857         <getopt.h> on glibc systems.
30858         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
30859         systems.
30860         * lib/fcntl.c: Include <unistd.h> here instead.
30861
30862 2009-12-24  Bruno Haible  <bruno@clisp.org>
30863
30864         * lib/stdlib.in.h (includes): Fix typo in today's commit.
30865
30866 2009-12-24  Eric Blake  <ebb9@byu.net>
30867
30868         tests: add signature checks
30869         * tests/signature.h (SIGNATURE_CHECK): New file.
30870         * modules/atexit-tests (Files): Use it.
30871         * modules/btowc-tests (Files): Likewise.
30872         * modules/canonicalize-lgpl-tests (Files): Likewise.
30873         * modules/ceilf-tests (Files): Likewise.
30874         * modules/ceill-tests (Files): Likewise.
30875         * modules/chown-tests (Files): Likewise.
30876         * modules/dprintf-posix-tests (Files): Likewise.
30877         * modules/dup2-tests (Files): Likewise.
30878         * modules/dup3-tests (Files): Likewise.
30879         * modules/duplocale-tests (Files): Likewise.
30880         * modules/fchdir-tests (Files): Likewise.
30881         * modules/fcntl-tests (Files): Likewise.
30882         * modules/fdopendir-tests (Files): Likewise.
30883         * modules/fflush-tests (Files): Likewise.
30884         * modules/flock-tests (Files): Likewise.
30885         * modules/floorf-tests (Files): Likewise.
30886         * modules/floorl-tests (Files): Likewise.
30887         * modules/fnmatch-tests (Files): Likewise.
30888         * modules/fopen-tests (Files): Likewise.
30889         * modules/fprintf-posix-tests (Files): Likewise.
30890         * modules/freopen-tests (Files): Likewise.
30891         * modules/frexp-nolibm-tests (Files): Likewise.
30892         * modules/frexp-tests (Files): Likewise.
30893         * modules/frexpl-nolibm-tests (Files): Likewise.
30894         * modules/frexpl-tests (Files): Likewise.
30895         * modules/fseek-tests (Files): Likewise.
30896         * modules/fseeko-tests (Files): Likewise.
30897         * modules/fsync-tests (Files): Likewise.
30898         * modules/ftell-tests (Files): Likewise.
30899         * modules/ftello-tests (Files): Likewise.
30900         * modules/futimens-tests (Files): Likewise.
30901         * modules/getaddrinfo-tests (Files): Likewise.
30902         * modules/getcwd-tests (Files): Likewise.
30903         * modules/getdelim-tests (Files): Likewise.
30904         * modules/getdtablesize-tests (Files): Likewise.
30905         * modules/getgroups-tests (Files): Likewise.
30906         * modules/gethostname-tests (Files): Likewise.
30907         * modules/getline-tests (Files): Likewise.
30908         * modules/getopt-posix-tests (Files): Likewise.
30909         * modules/gettimeofday-tests (Files): Likewise.
30910         * modules/glob-tests (Files): Likewise.
30911         * modules/iconv-tests (Files): Likewise.
30912         * modules/inet_ntop-tests (Files): Likewise.
30913         * modules/inet_pton-tests (Files): Likewise.
30914         * modules/isblank-tests (Files): Likewise.
30915         * modules/lchown-tests (Files): Likewise.
30916         * modules/ldexpl-tests (Files): Likewise.
30917         * modules/link-tests (Files): Likewise.
30918         * modules/linkat-tests (Files): Likewise.
30919         * modules/lseek-tests (Files): Likewise.
30920         * modules/lstat-tests (Files): Likewise.
30921         * modules/mbrtowc-tests (Files): Likewise.
30922         * modules/mbsinit-tests (Files): Likewise.
30923         * modules/mbsnrtowcs-tests (Files): Likewise.
30924         * modules/mbsrtowcs-tests (Files): Likewise.
30925         * modules/memchr-tests (Files): Likewise.
30926         * modules/memcmp-tests (Files): Likewise.
30927         * modules/memmem-tests (Files): Likewise.
30928         * modules/memrchr-tests (Files): Likewise.
30929         * modules/mkdir-tests (Files): Likewise.
30930         * modules/mkfifo-tests (Files): Likewise.
30931         * modules/mkfifoat-tests (Files): Likewise.
30932         * modules/mknod-tests (Files): Likewise.
30933         * modules/nanosleep-tests (Files): Likewise.
30934         * modules/nl_langinfo-tests (Files): Likewise.
30935         * modules/obstack-printf-tests (Files): Likewise.
30936         * modules/open-tests (Files): Likewise.
30937         * modules/openat-tests (Files): Likewise.
30938         * modules/perror-tests (Files): Likewise.
30939         * modules/pipe2-tests (Files): Likewise.
30940         * modules/poll-tests (Files): Likewise.
30941         * modules/popen-tests (Files): Likewise.
30942         * modules/posix_spawn-tests (Files): Likewise.
30943         * modules/posix_spawnp-tests (Files): Likewise.
30944         * modules/pread-tests (Files): Likewise.
30945         * modules/printf-posix-tests (Files): Likewise.
30946         * modules/pty-tests (Files): Likewise.
30947         * modules/random_r-tests (Files): Likewise.
30948         * modules/rawmemchr-tests (Files): Likewise.
30949         * modules/readlink-tests (Files): Likewise.
30950         * modules/remove-tests (Files): Likewise.
30951         * modules/rename-tests (Files): Likewise.
30952         * modules/renameat-tests (Files): Likewise.
30953         * modules/rmdir-tests (Files): Likewise.
30954         * modules/round-tests (Files): Likewise.
30955         * modules/roundf-tests (Files): Likewise.
30956         * modules/roundl-tests (Files): Likewise.
30957         * modules/select-tests (Files): Likewise.
30958         * modules/setenv-tests (Files): Likewise.
30959         * modules/sigaction-tests (Files): Likewise.
30960         * modules/sleep-tests (Files): Likewise.
30961         * modules/snprintf-posix-tests (Files): Likewise.
30962         * modules/snprintf-tests (Files): Likewise.
30963         * modules/sprintf-posix-tests (Files): Likewise.
30964         * modules/stat-tests (Files): Likewise.
30965         * modules/strcasestr-tests (Files): Likewise.
30966         * modules/strchrnul-tests (Files): Likewise.
30967         * modules/strerror-tests (Files): Likewise.
30968         * modules/strsignal-tests (Files): Likewise.
30969         * modules/strstr-tests (Files): Likewise.
30970         * modules/strtod-tests (Files): Likewise.
30971         * modules/strverscmp-tests (Files): Likewise.
30972         * modules/symlink-tests (Files): Likewise.
30973         * modules/symlinkat-tests (Files): Likewise.
30974         * modules/times-tests (Files): Likewise.
30975         * modules/trunc-tests (Files): Likewise.
30976         * modules/truncf-tests (Files): Likewise.
30977         * modules/truncl-tests (Files): Likewise.
30978         * modules/tsearch-tests (Files): Likewise.
30979         * modules/uname-tests (Files): Likewise.
30980         * modules/unlink-tests (Files): Likewise.
30981         * modules/unsetenv-tests (Files): Likewise.
30982         * modules/usleep-tests (Files): Likewise.
30983         * modules/utimensat-tests (Files): Likewise.
30984         * modules/vasprintf-tests (Files): Likewise.
30985         * modules/vdprintf-posix-tests (Files): Likewise.
30986         * modules/vfprintf-posix-tests (Files): Likewise.
30987         * modules/vprintf-posix-tests (Files): Likewise.
30988         * modules/vsnprintf-posix-tests (Files): Likewise.
30989         * modules/vsnprintf-tests (Files): Likewise.
30990         * modules/vsprintf-posix-tests (Files): Likewise.
30991         * modules/wcrtomb-tests (Files): Likewise.
30992         * modules/wcsnrtombs-tests (Files): Likewise.
30993         * modules/wcsrtombs-tests (Files): Likewise.
30994         * modules/wcwidth-tests (Files): Likewise.
30995         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
30996         * tests/test-isinf.c (isinf): Likewise.
30997         * tests/test-isnan.c (isnan): Likewise.
30998         * tests/test-signbit.c (signbit): Likewise.
30999         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
31000         declaration, either as macro or with correct signature.
31001         (select): Ensure function under test is declared with correct
31002         signature in correct header.
31003         * tests/test-atexit.c (atexit): Likewise.
31004         * tests/test-btowc.c (btowc): Likewise.
31005         * tests/test-canonicalize-lgpl.c (realpath)
31006         (canonicalize_file_name): Likewise.
31007         * tests/test-ceilf1.c (ceilf): Likewise.
31008         * tests/test-ceill.c (ceill): Likewise.
31009         * tests/test-chown.c (chown): Likewise.
31010         * tests/test-dprintf-posix.c (dprintf): Likewise.
31011         * tests/test-dup2.c (dup2): Likewise.
31012         * tests/test-dup3.c (dup3): Likewise.
31013         * tests/test-duplocale.c (duplocale): Likewise.
31014         * tests/test-fchdir.c (fchdir): Likewise.
31015         * tests/test-fchownat.c (fchownat): Likewise.
31016         * tests/test-fcntl.c (fcntl): Likewise.
31017         * tests/test-fdopendir.c (fdopendir): Likewise.
31018         * tests/test-fflush.c (fflush): Likewise.
31019         * tests/test-flock.c (flock): Likewise.
31020         * tests/test-floorf1.c (floorf): Likewise.
31021         * tests/test-floorl.c (floorl): Likewise.
31022         * tests/test-fnmatch.c (fnmatch): Likewise.
31023         * tests/test-fopen.c (fopen): Likewise.
31024         * tests/test-fprintf-posix.c (fprintf): Likewise.
31025         * tests/test-freopen.c (freopen): Likewise.
31026         * tests/test-frexp.c (frexp): Likewise.
31027         * tests/test-frexpl.c (frexpl): Likewise.
31028         * tests/test-fseek.c (fseek): Likewise.
31029         * tests/test-fseeko.c (fseeko): Likewise.
31030         * tests/test-fstatat.c (fstatat): Likewise.
31031         * tests/test-fsync.c (fsync): Likewise.
31032         * tests/test-ftell.c (ftell): Likewise.
31033         * tests/test-ftello.c (ftello): Likewise.
31034         * tests/test-futimens.c (futimens): Likewise.
31035         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
31036         (gai_strerror): Likewise.
31037         * tests/test-getcwd.c (getcwd): Likewise.
31038         * tests/test-getdelim.c (getdelim): Likewise.
31039         * tests/test-getdtablesize.c (getdtablesize): Likewise.
31040         * tests/test-getgroups.c (getgroups): Likewise.
31041         * tests/test-gethostname.c (gethostname): Likewise.
31042         * tests/test-getline.c (getline): Likewise.
31043         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
31044         Likewise.
31045         * tests/test-gettimeofday.c (gettimeofday): Likewise.
31046         * tests/test-glob.c (glob, globfree): Likewise.
31047         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
31048         * tests/test-inet_ntop.c (inet_ntop): Likewise.
31049         * tests/test-inet_pton.c (inet_pton): Likewise.
31050         * tests/test-isblank.c (isblank): Likewise.
31051         * tests/test-lchown.c (lchown): Likewise.
31052         * tests/test-ldexpl.c (ldexpl): Likewise.
31053         * tests/test-link.c (link): Likewise.
31054         * tests/test-linkat.c (linkat): Likewise.
31055         * tests/test-lseek.c (lseek): Likewise.
31056         * tests/test-lstat.c (lstat): Likewise.
31057         * tests/test-mbrtowc.c (mbrtowc): Likewise.
31058         * tests/test-mbsinit.c (mbsinit): Likewise.
31059         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
31060         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
31061         * tests/test-memchr.c (memchr): Likewise.
31062         * tests/test-memcmp.c (memcmp): Likewise.
31063         * tests/test-memmem.c (memmem): Likewise.
31064         * tests/test-memrchr.c (memrchr): Likewise.
31065         * tests/test-mkdir.c (mkdir): Likewise.
31066         * tests/test-mkdirat.c (mkdirat): Likewise.
31067         * tests/test-mkfifo.c (mkfifo): Likewise.
31068         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
31069         * tests/test-mknod.c (mknod): Likewise.
31070         * tests/test-nanosleep.c (nanosleep): Likewise.
31071         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
31072         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
31073         Likewise.
31074         * tests/test-open.c (open): Likewise.
31075         * tests/test-openat.c (openat): Likewise.
31076         * tests/test-perror.c (perror): Likewise.
31077         * tests/test-pipe2.c (pipe2): Likewise.
31078         * tests/test-poll.c (poll): Likewise.
31079         * tests/test-popen.c (popen, pclose): Likewise.
31080         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
31081         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
31082         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
31083         (posix_spawn_file_actions_destroy)
31084         (posix_spawn_file_actions_addclose)
31085         (posix_spawn_file_actions_addopen)
31086         (posix_spawn_file_actions_adddup2): Likewise.
31087         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
31088         * tests/test-pread.c (pread): Likewise.
31089         * tests/test-printf-posix.c (printf): Likewise.
31090         * tests/test-pty.c (openpty, forkpty): Likewise.
31091         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
31092         (random_r): Likewise.
31093         * tests/test-rawmemchr.c (rawmemchr): Likewise.
31094         * tests/test-readlink.c (readlink): Likewise.
31095         * tests/test-remove.c (remove): Likewise.
31096         * tests/test-rename.c (rename): Likewise.
31097         * tests/test-renameat.c (renameat): Likewise.
31098         * tests/test-rmdir.c (rmdir): Likewise.
31099         * tests/test-round1.c (round): Likewise.
31100         * tests/test-roundf1.c (roundf): Likewise.
31101         * tests/test-roundl.c (roundl): Likewise.
31102         * tests/test-setenv.c (setenv): Likewise.
31103         * tests/test-sigaction.c (sigaction): Likewise.
31104         * tests/test-sleep.c (sleep): Likewise.
31105         * tests/test-snprintf.c (snprintf): Likewise.
31106         * tests/test-sprintf-posix.c (sprintf): Likewise.
31107         * tests/test-stat.c (stat): Likewise.
31108         * tests/test-stpncpy.c (stpncpy): Likewise.
31109         * tests/test-strcasestr.c (strcasestr): Likewise.
31110         * tests/test-strchrnul.c (strchrnul): Likewise.
31111         * tests/test-strerror.c (strerror): Likewise.
31112         * tests/test-strsignal.c (strsignal): Likewise.
31113         * tests/test-strstr.c (strstr): Likewise.
31114         * tests/test-strtod.c (strtod): Likewise.
31115         * tests/test-strverscmp.c (strverscmp): Likewise.
31116         * tests/test-symlink.c (symlink): Likewise.
31117         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
31118         * tests/test-times.c (times): Likewise.
31119         * tests/test-trunc1.c (trunc): Likewise.
31120         * tests/test-truncf1.c (truncf): Likewise.
31121         * tests/test-truncl.c (truncl): Likewise.
31122         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
31123         Likewise.
31124         * tests/test-uname.c (uname): Likewise.
31125         * tests/test-unlink.c (unlink): Likewise.
31126         * tests/test-unlinkat.c (unlinkat): Likewise.
31127         * tests/test-unsetenv.c (unsetenv): Likewise.
31128         * tests/test-usleep.c (usleep): Likewise.
31129         * tests/test-utimensat.c (utimensat): Likewise.
31130         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
31131         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
31132         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
31133         * tests/test-vprintf-posix.c (vprintf): Likewise.
31134         * tests/test-vsnprintf.c (vsnprintf): Likewise.
31135         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
31136         * tests/test-wcrtomb.c (wcrtomb): Likewise.
31137         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
31138         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
31139         * tests/test-wcwidth.c (wcwidth): Likewise.
31140
31141         build: pull in conditional headers during GNULIB_POSIXCHECK
31142         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
31143         definitions from any conditionally-included headers.
31144         * lib/stdlib.in.h (includes): Likewise.
31145         * lib/unistd.in.h (includes): Likewise.
31146
31147 2009-12-24  Bruno Haible  <bruno@clisp.org>
31148
31149         * tests/test-argv-iter.c: Include header file being tested immediately
31150         after config.h.
31151         * tests/test-base64.c: Likewise.
31152         * tests/test-flock.c: Likewise.
31153         * tests/test-fsync.c: Likewise.
31154         * tests/test-getdate.c: Likewise.
31155         * tests/test-getndelim2.c: Likewise.
31156         * tests/test-isfinite.c: Likewise.
31157         * tests/test-isinf.c: Likewise.
31158         * tests/test-strerror.c: Likewise.
31159         * tests/test-strsignal.c: Likewise.
31160
31161 2009-12-23  Eric Blake  <ebb9@byu.net>
31162
31163         unistd: work around cygwin bug
31164         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
31165         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
31166         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
31167
31168 2009-12-23  Bruno Haible  <bruno@clisp.org>
31169
31170         localename: More tests.
31171         * tests/test-localename.c (SIZEOF): New macro.
31172         (categories): New variable.
31173         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
31174         test_locale_name_default): Add test w.r.t. thread locale.
31175         (test_locale_name_thread): New function.
31176         (main): Invoke it.
31177
31178         localename: Make aware of thread locale.
31179         * lib/localename.h (gl_locale_name_thread): New declaration.
31180         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
31181         behaviour with respect to thread locale.
31182         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
31183         <langinfo.h>, glthread/lock.h.
31184         (SIZE_BITS): New macro.
31185         (string_hash): New function.
31186         (struct hash_node): New type.
31187         (HASH_TABLE_SIZE): New macro.
31188         (struniq_hash_table, struniq_lock): New variables.
31189         (struniq): New function.
31190         (gl_locale_name_thread): New function.
31191         (gl_locale_name): Invoke it.
31192         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
31193         * modules/localename (Depends-on): Add lock.
31194         Reported by Mike Gran <spk121@yahoo.com>.
31195
31196 2009-12-23  Eric Blake  <ebb9@byu.net>
31197
31198         va-args: new module
31199         * modules/va-args: New file.
31200         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
31201         * MODULES.html.sh (Core language properties): Mention it.
31202
31203         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
31204         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
31205         named alias for __attribute__((__unused__)).
31206         * lib/chown.c: Update client.
31207         * lib/fchmodat.c: Likewise.
31208         * lib/fts.c: Likewise.
31209         * lib/getdate.y: Likewise.
31210         * lib/getgroups.c: Likewise.
31211         * lib/getopt.c: Likewise.
31212         * lib/getugroups.c: Likewise.
31213         * lib/mkdir.c: Likewise.
31214         * lib/mkfifo.c: Likewise.
31215         * lib/mkfifoat.c: Likewise.
31216         * lib/mknod.c: Likewise.
31217         * lib/mknodat.c: Likewise.
31218         * lib/readlink.c: Likewise.
31219         * lib/se-context.in.h: Likewise.
31220         * lib/se-selinux.in.h: Likewise.
31221         * lib/sockets.c: Likewise.
31222         * lib/symlink.c: Likewise.
31223         * lib/symlinkat.c: Likewise.
31224         * lib/unicodeio.c: Likewise.
31225         * lib/unistr.h: Likewise.
31226         * tests/test-areadlink.c: Likewise.
31227         * tests/test-areadlinkat.c: Likewise.
31228         * tests/test-filenamecat.c: Likewise.
31229         * tests/test-fseeko.c: Likewise.
31230         * tests/test-ftello.c: Likewise.
31231         * tests/test-getdate.c: Likewise.
31232         * tests/test-getgroups.c: Likewise.
31233         * tests/test-gethostname.c: Likewise.
31234         * tests/test-quotearg.c: Likewise.
31235         * tests/test-version-etc.c: Likewise.
31236         * tests/test-xalloc-die.c: Likewise.
31237         * tests/test-xfprintf-posix.c: Likewise.
31238         * tests/test-xprintf-posix.c: Likewise.
31239         * tests/test-xvasprintf.c: Likewise.
31240
31241         tests: avoid compiler warnings
31242         * tests/test-fcntl.c (main): Delete unused parameters.
31243         * tests/test-freopen-safer.c (main): Likewise.
31244         * tests/test-xalloc-die.c (main): Mark unused parameters.
31245         * tests/test-fseeko.c (main): Likewise.
31246         * tests/test-ftello.c (main): Likewise.
31247         * tests/test-nanosleep.c (main): Avoid declaration warning.
31248         * tests/test-sleep.c (main): Likewise.
31249         * tests/test-unsetenv.c (main): Silence warning about string
31250         literal.
31251         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
31252
31253 2009-12-23  Bruno Haible  <bruno@clisp.org>
31254
31255         * tests/test-localename.c (test_locale_name): New function, extracted
31256         from main. Also test mixed situations.
31257         (test_locale_name_posix, test_locale_name_environ,
31258         test_locale_name_default): New functions.
31259         (main): Invoke them all.
31260         * modules/localename-tests (configure.ac): Test for newlocale.
31261
31262 2009-12-23  Bruno Haible  <bruno@clisp.org>
31263
31264         unistd: Ensure getcwd gets declared before being overridden.
31265         * lib/unistd.in.h: Conditionally include <io.h>.
31266
31267 2009-12-22  Bruno Haible  <bruno@clisp.org>
31268
31269         wchar: Diagnose broken combination of glibc and gcc versions and flags.
31270         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
31271         (gl_WCHAR_H): Invoke it.
31272         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
31273         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
31274         Reported by Karl Berry <karl@freefriends.org>.
31275
31276 2009-12-22  Eric Blake  <ebb9@byu.net>
31277
31278         math, unistd: avoid redundant includes
31279         * lib/math.in.h (isnan): No need to re-include <math.h>.
31280         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
31281
31282         getsubopt: work around cygwin bug
31283         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
31284         avoid conflicting with system getsubopt.
31285         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
31286         bug.
31287
31288         getopt: synchronize from glibc
31289         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
31290         parameter order.  Adjust all callers.
31291         (_getopt_internal_r, main): Adjust quoting in error messages.
31292         Drop considerations for outdated POSIX 1003.2 error message.
31293         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
31294         callers.
31295         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
31296
31297         test-getopt: test stderr behavior
31298         * modules/getopt-posix-tests (Depends-on): Add dup2.
31299         * tests/test-getopt.c (ASSERT): Avoid stderr.
31300         (main): Move stderr to a temporary file.
31301         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
31302         Instead, add parameter to inform caller if output occurred.
31303         (test_getopt): Adjust all existing tests to expect silence, and
31304         add new tests of leading ":".
31305         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
31306         glibc shortcomings with leading "-:" or "+:" in optstring.
31307         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
31308         Likewise.
31309         * doc/posix-functions/getopt.texi (getopt): Likewise.
31310
31311         test-getopt: enhance test
31312         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
31313         supports optind=0.
31314         * tests/test-getopt.c (OPTIND_MIN): Move...
31315         * tests/test-getopt.h (OPTIND_MIN): ...here.
31316         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
31317         Require that optind=0 works, since modern BSD supports it in
31318         addition to optreset, and since coreutils expects it.
31319         (test_getopt_long_only): New test.
31320         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
31321         glibc shortcomings with 'W;', and enforcement of optind=0.
31322         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
31323         Likewise.
31324
31325 2009-12-21  Bruno Haible  <bruno@clisp.org>
31326
31327         localename: Improvements for MacOS X and Cygwin.
31328         * lib/localename.h (gl_locale_name_environ): New declaration.
31329         * lib/localename.c (gl_locale_name_environ): New function, extracted from
31330         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
31331         (gl_locale_name_posix): Invoke it.
31332         (gl_locale_name_default): Add comments. Use Windows native API also on
31333         Cygwin.
31334
31335 2009-12-21  Bruno Haible  <bruno@clisp.org>
31336
31337         Update list of Win32 locale ids.
31338         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
31339         (LANG_SAMI): Renamed from LANG_SAAMI.
31340         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
31341         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
31342         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
31343         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
31344         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
31345         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
31346         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
31347         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
31348         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
31349         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
31350         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
31351         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
31352         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
31353         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
31354         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
31355         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
31356         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
31357         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
31358         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
31359         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
31360         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
31361         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
31362         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
31363         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
31364         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
31365         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
31366         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
31367         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
31368         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
31369         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
31370         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
31371         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
31372         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
31373         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
31374         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
31375         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
31376         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
31377         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
31378         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
31379         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
31380         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
31381         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
31382         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
31383         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
31384         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
31385         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
31386         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
31387         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
31388         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
31389         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
31390         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
31391         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
31392         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
31393         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
31394         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
31395         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
31396         Add more languages and countries for Sami, Sorbian. Add more countries
31397         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
31398         for Pashto. Change country for Syriac, Tswana.
31399
31400 2009-12-21  Eric Blake  <ebb9@byu.net>
31401
31402         test-utimens: avoid spurious failure
31403         * tests/test-chown.h (nap): Factor...
31404         * tests/nap.h: ...into new file.
31405         * tests/test-lchown.h (nap): Avoid duplication.
31406         * tests/test-utimens-common.h (nap): Use shared implementation,
31407         necessary on file systems with 1-second resolution.
31408         * modules/chown-tests (Files): Include new file.
31409         * modules/fdutimensat-tests (Files): Likewise.
31410         * modules/futimens-tests (Files): Likewise.
31411         * modules/lchown-tests (Files): Likewise.
31412         * modules/openat-tests (Files): Likewise.
31413         * modules/utimens-tests (Files): Likewise.
31414         * modules/utimensat-tests (Files): Likewise.
31415
31416 2009-12-19  Eric Blake  <ebb9@byu.net>
31417
31418         futimens, utimensat: work around Linux bug
31419         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
31420         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
31421         * lib/utimensat.c (rpl_utimensat): Work around it.
31422         * lib/futimens.c (rpl_futimens): Adjust comment.
31423
31424         utimens: work around Linux ctime bug
31425         * lib/utimens.c (detect_ctime_bug): New helper function.
31426         (update_timespec): Differentiate between workaround needed for
31427         this bug vs. what is needed for systems that lack utimensat.
31428         (fdutimens, lutimens): Work around bug.
31429
31430         utimens: check for ctime update
31431         * tests/test-utimens-common.h (check_ctime): Define.
31432         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
31433         * tests/test-futimens.h (test_futimens): Likewise.
31434         * tests/test-lutimens.h (test_lutimens): Likewise.
31435         * doc/posix-functions/futimens.texi (futimens): Document the bug.
31436         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
31437
31438 2009-12-19  Bruno Haible  <bruno@clisp.org>
31439
31440         dprintf-posix: Check against memory leak fixed on 2009-12-15.
31441         * tests/test-dprintf-posix2.sh: New file.
31442         * tests/test-dprintf-posix2.c: New file.
31443         * modules/dprintf-posix-tests (Files): Add them.
31444         (configure.ac): Check for getrlimit and setrlimit.
31445         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
31446
31447 2009-12-19  Bruno Haible  <bruno@clisp.org>
31448
31449         fprintf-posix: Check against memory leak fixed on 2009-12-15.
31450         * tests/test-fprintf-posix3.sh: New file.
31451         * tests/test-fprintf-posix3.c: New file.
31452         * modules/fprintf-posix-tests (Files): Add them.
31453         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
31454
31455 2009-12-19  Eric Blake  <ebb9@byu.net>
31456
31457         dirfd: fix prototype
31458         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
31459         * lib/dirfd.c (dirfd): Likewise.
31460
31461         canonicalize: reduce memory usage
31462         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
31463         allocation to size.
31464         Reported by Solar Designer <solar@openwall.com>.
31465
31466 2009-12-19  Bruno Haible  <bruno@clisp.org>
31467
31468         New module attribute 'Applicability'.
31469         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
31470         * gnulib-tool: New option --extract-applicability.
31471         (func_usage): Document it.
31472         (sed_extract_prog): Recognize it.
31473         (func_get_applicability): New function.
31474         (func_import): Generalize handling of 'link-warning' module.
31475         * modules/link-warning (Applicability): New section.
31476         * modules/arg-nonnull (Applicability): New section.
31477         Repoted by Simon Josefsson <simon@josefsson.org>.
31478
31479 2009-12-19  Bruno Haible  <bruno@clisp.org>
31480
31481         fflush: tweak
31482         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
31483         * lib/fseeko.c (rpl_fseeko): Likewise.
31484
31485 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
31486
31487         * lib/gl_list.h: Fix typo in comment.
31488
31489 2009-12-16  Eric Blake  <ebb9@byu.net>
31490
31491         fcntl: use to simplify other modules
31492         * modules/cloexec (Depends-on): Add fcntl.
31493         * modules/fchdir (Depends-on): Likewise.
31494         * modules/fd-safer-flag (Depends-on): Likewise.
31495         * modules/unistd-safer (Depends-on): Likewise.
31496         * modules/dup3 (configure.ac): Set module indicator.
31497         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
31498         missing.
31499         * lib/fchdir.c (_gl_register_dup): Fix comment.
31500         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
31501         * lib/dup-safer.c (dup_safer): Likewise.
31502         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
31503         * lib/dup3.c (dup3): Likewise.
31504         * tests/test-fchdir.c (main): Enhance test.
31505         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
31506
31507         fcntl: port portions of fcntl to mingw
31508         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
31509         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
31510         replacement for mingw.
31511         * modules/fcntl (Description): Update.
31512         (Depends-on): Add dup2.
31513         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
31514         * modules/fcntl-h (Makefile.am): Substitute it.
31515         * lib/fcntl.in.h (fcntl): Update declaration.
31516         (F_DUPFD, F_GETFD): New macros, when needed.
31517         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
31518         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
31519         * tests/test-fcntl.c (check_flags, main): Enhance test for items
31520         we now guarantee.
31521
31522         fcntl: work around cygwin bug in F_DUPFD
31523         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
31524         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
31525         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
31526         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
31527         * doc/posix-functions/fcntl.texi (fcntl): Document it.
31528
31529         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
31530         * modules/fcntl (Files): List new files.
31531         (configure.ac): Run a test.
31532         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
31533         * lib/fcntl.c (rpl_fcntl): Likewise.
31534         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
31535         (gl_FCNTL_H): Always replace fcntl.h.
31536         * modules/fcntl-h (Makefile.am): Substitute witnesses.
31537         * lib/fcntl.in.h (fcntl): Declare replacement.
31538         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
31539         needed, plus a witness.
31540         * doc/posix-functions/fcntl.texi (fcntl): Document this.
31541         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
31542         * tests/test-fcntl.c: New file.
31543         * modules/fcntl-tests: Likewise.
31544
31545         binary-io: avoid potential compilation warning
31546         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
31547         directives.
31548
31549         fflush: avoid compilation error on NetBSD
31550         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
31551         between off_t and fpos_t, since the latter is sometimes a struct.
31552         * lib/fseeko.c (rpl_fseeko): Likewise.
31553         Reported by Alexander Nasonov <alnsn@yandex.ru>.
31554
31555 2009-12-15  Eric Blake  <ebb9@byu.net>
31556
31557         fcntl-h, stdio, sys_ioctl: fix declarations
31558         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
31559         function must not take arguments.
31560         * lib/sys_ioctl.in.h (ioctl): Likewise.
31561         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
31562         (open): Add a link warning.
31563
31564 2009-12-15  Jim Meyering  <meyering@redhat.com>
31565
31566         areadlink, areadlink-with-size: relax license to LGPLv2+
31567         * modules/areadlink (License): Relax to LGPLv2+.
31568         * modules/areadlink-with-size (License): Likewise.
31569
31570 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
31571             Bruno Haible  <bruno@clisp.org>
31572
31573         *printf: Fix memory leak.
31574         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
31575         * lib/vfprintf.c (vfprintf): Likewise.
31576         * lib/dprintf.c (dprintf): Likewise.
31577         * lib/vdprintf.c (vdprintf): Likewise.
31578
31579 2009-12-14  Eric Blake  <ebb9@byu.net>
31580
31581         accept4: adjust module dependencies
31582         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
31583
31584         utimens: one more try at avoiding compiler warning
31585         * lib/utimens.c (lutimens): Lower scope of result.
31586
31587 2009-12-13  Bruno Haible  <bruno@clisp.org>
31588
31589         Move the malloc checking from module 'list' to new module 'xlist'.
31590         * modules/xlist: New file.
31591         * lib/gl_xlist.h: New file.
31592         * lib/gl_xlist.c: New file.
31593         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
31594         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
31595         gl_list_add_last, gl_list_add_before, gl_list_add_after,
31596         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
31597         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
31598         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
31599         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
31600         gl_sortedlist_nx_add): New declarations.
31601         (struct gl_list_implementation): Rename and change methods accordingly.
31602         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
31603         (gl_list_nx_create): Renamed from gl_list_create.
31604         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
31605         (gl_list_nx_set_at): Renamed from gl_list_set_at.
31606         (gl_list_nx_add_first): Renamed from gl_list_add_first.
31607         (gl_list_nx_add_last): Renamed from gl_list_add_last.
31608         (gl_list_nx_add_before): Renamed from gl_list_add_before.
31609         (gl_list_nx_add_after): Renamed from gl_list_add_after.
31610         (gl_list_nx_add_at): Renamed from gl_list_add_at.
31611         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
31612         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
31613         gl_list_create_empty.
31614         (gl_list_nx_create): Renamed from gl_list_create.
31615         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
31616         (gl_list_nx_set_at): Renamed from gl_list_set_at.
31617         (gl_list_nx_add_first): Renamed from gl_list_add_first.
31618         (gl_list_nx_add_last): Renamed from gl_list_add_last.
31619         (gl_list_nx_add_before): Renamed from gl_list_add_before.
31620         (gl_list_nx_add_after): Renamed from gl_list_add_after.
31621         (gl_list_nx_add_at): Renamed from gl_list_add_at.
31622         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
31623         * lib/gl_array_list.c: Don't include xalloc.h.
31624         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
31625         NULL upon out-of-memory.
31626         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
31627         out-of-memory.
31628         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
31629         Change return type to 'int'.
31630         (gl_array_nx_set_at): Renamed from gl_array_set_at.
31631         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
31632         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
31633         upon out-of-memory.
31634         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
31635         upon out-of-memory.
31636         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
31637         upon out-of-memory.
31638         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
31639         upon out-of-memory.
31640         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
31641         out-of-memory.
31642         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
31643         Update.
31644         (gl_array_list_implementation): Update.
31645         * lib/gl_carray_list.c: Don't include xalloc.h.
31646         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
31647         Return NULL upon out-of-memory.
31648         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
31649         out-of-memory.
31650         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
31651         Change return type to 'int'.
31652         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
31653         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
31654         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
31655         upon out-of-memory.
31656         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
31657         upon out-of-memory.
31658         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
31659         out-of-memory.
31660         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
31661         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
31662         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
31663         Update.
31664         (gl_carray_list_implementation): Update.
31665         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
31666         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
31667         gl_linked_create_empty. Return NULL upon out-of-memory.
31668         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
31669         out-of-memory.
31670         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
31671         Change return type to 'int'. Return -1 upon out-of-memory.
31672         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
31673         out-of-memory.
31674         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
31675         upon out-of-memory.
31676         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
31677         upon out-of-memory.
31678         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
31679         NULL upon out-of-memory.
31680         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
31681         upon out-of-memory.
31682         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
31683         out-of-memory.
31684         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
31685         Update.
31686         * lib/gl_linked_list.c: Don't include xalloc.h.
31687         (gl_linked_list_implementation): Update.
31688         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
31689         (add_to_bucket): Change return type to 'int'.
31690         (gl_linkedhash_list_implementation): Update.
31691         * lib/gl_anytree_list1.h (free_subtree): New function.
31692         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
31693         gl_tree_create_empty. Return NULL upon out-of-memory.
31694         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
31695         Change return type to 'int'. Return -1 upon out-of-memory.
31696         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
31697         out-of-memory.
31698         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
31699         (gl_tree_remove_node): New function, moved here from
31700         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
31701         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
31702         Update.
31703         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
31704         malloc, not xmalloc. Return NULL upon out-of-memory.
31705         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
31706         out-of-memory.
31707         (gl_tree_remove_node_from_tree): New function, extracted from
31708         gl_tree_remove_node.
31709         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
31710         upon out-of-memory.
31711         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
31712         out-of-memory.
31713         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
31714         upon out-of-memory.
31715         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
31716         upon out-of-memory.
31717         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
31718         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
31719         not xmalloc. Return NULL upon out-of-memory.
31720         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
31721         out-of-memory.
31722         (gl_tree_remove_node_from_tree): New function, extracted from
31723         gl_tree_remove_node.
31724         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
31725         upon out-of-memory.
31726         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
31727         out-of-memory.
31728         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
31729         upon out-of-memory.
31730         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
31731         upon out-of-memory.
31732         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
31733         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
31734         gl_anytree_list1.h before gl_anyavltree_list2.h.
31735         (gl_avltree_list_implementation): Update.
31736         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
31737         gl_anytree_list1.h before gl_anyavltree_list2.h.
31738         (gl_rbtree_list_implementation): Update.
31739         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
31740         Change return type to 'int'. Return -1 upon out-of-memory. Use
31741         __builtin_expect.
31742         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
31743         (gl_avltreehash_list_implementation): Update.
31744         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
31745         (gl_rbtreehash_list_implementation): Update.
31746         * modules/array-list (Depends-on): Remove xalloc.
31747         * modules/carray-list (Depends-on): Likewise.
31748         * modules/linked-list (Depends-on): Likewise.
31749         * modules/linkedhash-list (Depends-on): Likewise.
31750         * modules/avltree-list (Depends-on): Likewise.
31751         * modules/rbtree-list (Depends-on): Likewise.
31752         * modules/avltreehash-list (Depends-on): Likewise.
31753         * modules/rbtreehash-list (Depends-on): Likewise.
31754
31755         * modules/xsublist: New file.
31756         * lib/gl_xsublist.h: New file.
31757         * lib/gl_xsublist.c: New file.
31758         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
31759         (gl_sublist_nx_create): New declaration.
31760         * lib/gl_sublist.c: Don't include xalloc.h.
31761         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
31762         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
31763         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
31764         Change return type to 'int'. Return -1 upon out-of-memory.
31765         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
31766         upon out-of-memory.
31767         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
31768         NULL upon out-of-memory.
31769         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
31770         upon out-of-memory.
31771         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
31772         NULL upon out-of-memory.
31773         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
31774         NULL upon out-of-memory.
31775         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
31776         upon out-of-memory.
31777         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
31778         (gl_sublist_list_implementation): Update.
31779         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
31780         upon out-of-memory.
31781         * modules/sublist (Depends-on): Remove xalloc.
31782
31783         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
31784         * tests/test-carray_list.c: Likewise.
31785         * tests/test-linked_list.c: Likewise.
31786         * tests/test-linkedhash_list.c: Likewise.
31787         * tests/test-avltree_list.c: Likewise.
31788         * tests/test-rbtree_list.c: Likewise.
31789         * tests/test-avltreehash_list.c: Likewise.
31790         * tests/test-rbtreehash_list.c: Likewise.
31791         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
31792         * modules/carray-list-tests (Makefile.am): Likewise.
31793         * modules/linked-list-tests (Makefile.am): Likewise.
31794         * modules/linkedhash-list-tests (Makefile.am): Likewise.
31795         * modules/avltree-list-tests (Makefile.am): Likewise.
31796         * modules/rbtree-list-tests (Makefile.am): Likewise.
31797         * modules/avltreehash-list-tests (Makefile.am): Likewise.
31798         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
31799
31800         * NEWS: Mention the changes.
31801
31802         * lib/clean-temp.c: Include gl_xlist.h.
31803         * modules/clean-temp (Depends-on): Add xlist.
31804
31805         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
31806         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
31807
31808         * tests/test-array_oset.c: Include gl_xlist.h.
31809         * modules/array-oset-tests (Depends-on): Add xlist.
31810
31811         Reported by José E. Marchesi <jemarch@gnu.org>.
31812
31813 2009-12-13  Bruno Haible  <bruno@clisp.org>
31814
31815         Move the malloc checking from module 'oset' to new module 'xoset'.
31816         * modules/xoset: New file.
31817         * lib/gl_xoset.h: New file.
31818         * lib/gl_xoset.c: New file.
31819         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
31820         declarations.
31821         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
31822         (struct gl_oset_implementation): Rename and change methods accordingly.
31823         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
31824         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
31825         'int'. Mark as __warn_unused_result__.
31826         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
31827         gl_oset_create_empty.
31828         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
31829         'int'.
31830         * lib/gl_array_oset.c: Don't include xalloc.h.
31831         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
31832         malloc, not xmalloc.
31833         (grow): Change return type to 'int'. Don't call xalloc_die.
31834         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
31835         to 'int'.
31836         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
31837         'int'.
31838         (gl_array_oset_implementation): Update.
31839         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
31840         gl_tree_create_empty.
31841         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
31842         'int'.
31843         * lib/gl_avltree_oset.c: Don't include xalloc.h.
31844         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
31845         xmalloc.
31846         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
31847         not xmalloc.
31848         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
31849         xmalloc.
31850         (gl_avltree_oset_implementation): Update.
31851         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
31852         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
31853         xmalloc.
31854         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
31855         not xmalloc.
31856         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
31857         xmalloc.
31858         (gl_rbtree_oset_implementation): Update.
31859         * modules/array-oset (Depends-on): Remove xalloc.
31860         * modules/avltree-oset (Depends-on): Likewise.
31861         * modules/rbtree-oset (Depends-on): Likewise.
31862         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
31863         * tests/test-avltree_oset.c: Likewise.
31864         * tests/test-rbtree_oset.c: Likewise.
31865         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
31866         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
31867         * modules/rbtree-oset-tests (Makefile.am): Likewise.
31868         * NEWS: Mention the change.
31869
31870 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
31871
31872         maint.mk: allow a project to override release-prep commands
31873         * top/maint.mk (alpha, beta, stable): Move release-preparatory
31874         commands into a new rule.
31875         (release-prep): New rule.
31876         (release-prep-hook): New overridable variable.
31877
31878 2009-12-13  Bruno Haible  <bruno@clisp.org>
31879
31880         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
31881
31882 2009-12-13  Jim Meyering  <meyering@redhat.com>
31883
31884         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
31885         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
31886
31887 2009-12-12  Bruno Haible  <bruno@clisp.org>
31888
31889         duplocale: Tweak.
31890         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
31891
31892 2009-12-12  Karl Berry  <karl@gnu.org>
31893
31894         * config/srclist.txt (strtoll.c): tab changes, no more sync.
31895
31896 2009-12-12  Bruno Haible  <bruno@clisp.org>
31897
31898         * m4/po.m4: Undo incorrect untabification.
31899
31900 2009-12-12  Bruno Haible  <bruno@clisp.org>
31901
31902         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
31903         * modules/c-strtod (Depends-on): Add locale.
31904         * modules/c-strtold (Depends-on): Likewise.
31905
31906 2009-12-12  Bruno Haible  <bruno@clisp.org>
31907
31908         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
31909
31910 2009-12-11  Eric Blake  <ebb9@byu.net>
31911
31912         setenv: relax requirement in light of POSIX ruling
31913         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
31914         not NULL.
31915         * tests/test-setenv.c (main): Relax test.
31916         * tests/test-unsetenv.c (main): Likewise.
31917         * doc/posix-functions/setenv.texi (setenv): Document this.
31918         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
31919
31920 2009-12-11  Bruno Haible  <bruno@clisp.org>
31921
31922         New module 'fd-safer-flag'.
31923         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
31924         * lib/dup-safer.c (dup_safer_flag): Remove function.
31925         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
31926         * lib/fd-safer.c (fd_safer_flag): Remove function.
31927         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
31928         * modules/cloexec (configure.ac): Drop indicator macro.
31929         * modules/fd-safer-flag: New file.
31930         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
31931         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
31932         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
31933
31934 2009-12-11  Bruno Haible  <bruno@clisp.org>
31935
31936         Tests for module 'nl_langinfo'.
31937         * modules/nl_langinfo-tests: New file.
31938         * tests/test-nl_langinfo.sh: New file.
31939         * tests/test-nl_langinfo.c: New file.
31940
31941         New module 'nl_langinfo'.
31942         * lib/nl_langinfo.c: New file.
31943         * m4/nl_langinfo.m4: New file.
31944         * modules/nl_langinfo: New file.
31945         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
31946
31947 2009-12-11  Bruno Haible  <bruno@clisp.org>
31948
31949         Tests for module 'langinfo'.
31950         * modules/langinfo-tests: New file.
31951         * tests/test-langinfo.c: New file.
31952
31953         New module 'langinfo'.
31954         * lib/langinfo.in.h: New file.
31955         * m4/langinfo_h.m4: New file.
31956         * modules/langinfo: New file.
31957         * doc/posix-headers/langinfo.texi: Mention the new module.
31958
31959 2009-12-11  Bruno Haible  <bruno@clisp.org>
31960
31961         * lib/config.charset: Untabify.
31962
31963 2009-12-11  Bruno Haible  <bruno@clisp.org>
31964
31965         * modules/unistd-safer (configure.ac): Drop indicator macro.
31966
31967 2009-12-11  Bruno Haible  <bruno@clisp.org>
31968
31969         Move pipe2-safer code to its own file.
31970         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
31971         * lib/pipe-safer.c (pipe2_safer): Remove function.
31972         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
31973         (Makefile.am): Add it to lib_SOURCES.
31974
31975 2009-12-10  Bruno Haible  <bruno@clisp.org>
31976
31977         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
31978
31979 2009-12-10  Bruno Haible  <bruno@clisp.org>
31980
31981         Declare which arguments expect non-NULL values, for GCC and clang.
31982         * build-aux/arg-nonnull.h: New file.
31983         * modules/arg-nonnull: New file.
31984         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
31985         (inet_ntop, inet_pton): Use it.
31986         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
31987         (closedir, dirfd, opendir, scandir, alphasort): Use it.
31988         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
31989         (open, openat): Use it.
31990         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
31991         (fnmatch): Use it.
31992         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
31993         (getopt, getopt_long, getopt_long_only): Use it.
31994         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
31995         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
31996         Use it.
31997         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
31998         (iconv_open): Use it.
31999         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
32000         (strtoimax, strtoumax): Use it.
32001         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
32002         (duplocale): Use it.
32003         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
32004         (frexp, frexpl): Use it.
32005         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
32006         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
32007         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
32008         (tsearch, tfind, tdelete, twalk): Use it.
32009         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
32010         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
32011         sigpending): Use it.
32012         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
32013         (posix_spawn, posix_spawnp, posix_spawnattr_init,
32014         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
32015         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
32016         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
32017         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
32018         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
32019         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
32020         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
32021         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
32022         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
32023         Use it.
32024         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
32025         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
32026         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
32027         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
32028         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
32029         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
32030         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
32031         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
32032         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
32033         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
32034         strtoull, unsetenv): Use it.
32035         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
32036         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
32037         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
32038         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
32039         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
32040         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
32041         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
32042         (strcasecmp, strncasecmp): Use it.
32043         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
32044         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
32045         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
32046         rpl_setsockopt): Use it.
32047         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
32048         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
32049         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
32050         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
32051         (gettimeofday): Use it.
32052         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
32053         (times): Use it.
32054         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
32055         (uname): Use it.
32056         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
32057         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
32058         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
32059         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
32060         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
32061         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
32062         unlinkat, write): Use it.
32063         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
32064         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
32065         * lib/argv-iter.h: Include arg-nonnull.h.
32066         (_ATTRIBUTE_NONNULL_): Remove macro.
32067         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
32068         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
32069         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
32070         optimization.
32071         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
32072         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
32073         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
32074         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
32075         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
32076         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
32077         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
32078         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
32079         * modules/arpa_inet (Depends-on): Add arg-nonnull.
32080         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
32081         * modules/dirent (Depends-on): Add arg-nonnull.
32082         (Makefile.am): Insert arg-nonnull.h into dirent.h.
32083         * modules/fcntl-h (Depends-on): Add arg-nonnull.
32084         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
32085         * modules/fnmatch (Depends-on): Add arg-nonnull.
32086         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
32087         * modules/getopt-posix (Depends-on): Add arg-nonnull.
32088         (Makefile.am): Insert arg-nonnull.h into getopt.h.
32089         * modules/glob (Depends-on): Add arg-nonnull.
32090         (Makefile.am): Insert arg-nonnull.h into glob.h.
32091         * modules/iconv_open (Depends-on): Add arg-nonnull.
32092         (Makefile.am): Insert arg-nonnull.h into iconv.h.
32093         * modules/inttypes (Depends-on): Add arg-nonnull.
32094         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
32095         * modules/locale (Depends-on): Add arg-nonnull.
32096         (Makefile.am): Insert arg-nonnull.h into locale.h.
32097         * modules/math (Depends-on): Add arg-nonnull.
32098         (Makefile.am): Insert arg-nonnull.h into math.h.
32099         * modules/netdb (Depends-on): Add arg-nonnull.
32100         (Makefile.am): Insert arg-nonnull.h into netdb.h.
32101         * modules/search (Depends-on): Add arg-nonnull.
32102         (Makefile.am): Insert arg-nonnull.h into search.h.
32103         * modules/signal (Depends-on): Add arg-nonnull.
32104         (Makefile.am): Insert arg-nonnull.h into signal.h.
32105         * modules/spawn (Depends-on): Add arg-nonnull.
32106         (Makefile.am): Insert arg-nonnull.h into spawn.h.
32107         * modules/stdio (Depends-on): Add arg-nonnull.
32108         (Makefile.am): Insert arg-nonnull.h into stdio.h.
32109         * modules/stdlib (Depends-on): Add arg-nonnull.
32110         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
32111         * modules/string (Depends-on): Add arg-nonnull.
32112         (Makefile.am): Insert arg-nonnull.h into string.h.
32113         * modules/strings (Depends-on): Add arg-nonnull.
32114         (Makefile.am): Insert arg-nonnull.h into strings.h.
32115         * modules/sys_socket (Depends-on): Add arg-nonnull.
32116         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
32117         * modules/sys_stat (Depends-on): Add arg-nonnull.
32118         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
32119         * modules/sys_time (Depends-on): Add arg-nonnull.
32120         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
32121         * modules/sys_times (Depends-on): Add arg-nonnull.
32122         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
32123         * modules/sys_utsname (Depends-on): Add arg-nonnull.
32124         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
32125         * modules/time (Depends-on): Add arg-nonnull.
32126         (Makefile.am): Insert arg-nonnull.h into time.h.
32127         * modules/unistd (Depends-on): Add arg-nonnull.
32128         (Makefile.am): Insert arg-nonnull.h into unistd.h.
32129         * modules/wchar (Depends-on): Add arg-nonnull.
32130         (Makefile.am): Insert arg-nonnull.h into wchar.h.
32131         * modules/argv-iter (Depends-on): Add arg-nonnull.
32132         * tests/test-canonicalize.c (null_ptr): New function.
32133         (main): Use it.
32134         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
32135         (main): Use it.
32136         * tests/test-memmem.c (null_ptr): New function.
32137         (main): Use it.
32138         Reported by Jim Meyering.
32139
32140 2009-12-10  Bruno Haible  <bruno@clisp.org>
32141
32142         Use spaces for indentation, not tabs.
32143         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
32144         * m4/*.m4: Untabify.
32145         * build-aux/*.h: Untabify.
32146         * tests/**/*.[hc]: Untabify.
32147         * README: New section "Indent with spaces, not TABs", based on
32148         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
32149         * NEWS: Mention the change.
32150
32151 2009-12-10  Bruno Haible  <bruno@clisp.org>
32152
32153         pty test: Fix link error.
32154         * modules/pty-tests (Makefile.am): Add the default LDADD value to
32155         test_pty_LDADD.
32156
32157 2009-12-07  Simon Josefsson  <simon@josefsson.org>
32158
32159         * modules/pty: New file.
32160         * modules/pty-tests: New file.
32161         * m4/pty.m4: New file.
32162         * tests/test-pty.c: New file.
32163         * doc/glibc-headers/pty.texi: Modified.
32164         * doc/glibc-functions/forkpty.texi: Modified.
32165         * doc/glibc-functions/openpty.texi: Modified.
32166
32167 2009-12-10  Bruno Haible  <bruno@clisp.org>
32168
32169         Avoid syntax error in C++ mode.
32170         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
32171
32172 2009-12-10  Bruno Haible  <bruno@clisp.org>
32173
32174         Use sed with option -e.
32175         * gnulib-tool (func_version, func_emit_copyright_notice,
32176         func_emit_initmacro_end, func_import, func_create_testdir): Pass
32177         option -e to sed.
32178         * modules/link-warning (Makefile.am): Likewise.
32179
32180 2009-12-10  Jim Meyering  <meyering@redhat.com>
32181
32182         mgetgroups: do not write bytes beyond end of malloc'd buffer
32183         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
32184         username, we call getgroups with a one-element-shorter buffer,
32185         but still told it the length was original, max_n_groups.
32186
32187 2009-12-09  Eric Blake  <ebb9@byu.net>
32188
32189         cloexec: relax license
32190         * modules/cloexec (Maintainer): Add myself.
32191         (License): Use LGPL, not GPL.
32192
32193         link-warning: optimize generation
32194         * modules/link-warning (Makefile.am): Reduce process usage.
32195
32196 2009-12-09  Bruno Haible  <bruno@clisp.org>
32197
32198         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
32199         workaround was added on 2009-11-17.
32200
32201 2009-12-09  Jim Meyering  <meyering@redhat.com>
32202             Bruno Haible  <bruno@clisp.org>
32203
32204         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
32205         * modules/link-warning (Makefile.am): Make the comment-removing sed
32206         command more robust in the face of bootstrap-prepended comment lines.
32207
32208 2009-12-09  Bruno Haible  <bruno@clisp.org>
32209
32210         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
32211         most one group.
32212
32213 2009-12-09  Simon Josefsson <simon@josefsson.org>
32214             Bruno Haible  <bruno@clisp.org>
32215
32216         * build-aux/link-warning.h: Add copyright notice.
32217         * modules/link-warning (Makefile.am): Generate link-warning.h from
32218         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
32219         * NEWS: Mention change in link-warning module.
32220         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
32221         * modules/dirent (Makefile.am): Add dependency to dirent.h.
32222         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
32223         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
32224         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
32225         * modules/math (Makefile.am): Add dependency to math.h.
32226         * modules/search (Makefile.am): Add dependency to search.h.
32227         * modules/signal (Makefile.am): Add dependency to signal.h.
32228         * modules/spawn (Makefile.am): Add dependency to spawn.h.
32229         * modules/stdio (Makefile.am): Add dependency to stdio.h.
32230         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
32231         * modules/string (Makefile.am): Add dependency to string.h.
32232         * modules/strings (Makefile.am): Add dependency to strings.h.
32233         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
32234         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
32235         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
32236         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
32237         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
32238         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
32239         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
32240         * modules/unistd (Makefile.am): Add dependency to unistd.h.
32241         * modules/wchar (Makefile.am): Add dependency to wchar.h.
32242
32243 2009-12-09  Bruno Haible  <bruno@clisp.org>
32244
32245         fchdir: Optimize away rpl_fstat when possible.
32246         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
32247         REPLACE_OPEN_DIRECTORY.
32248         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
32249
32250 2009-12-09  Bruno Haible  <bruno@clisp.org>
32251
32252         * lib/fchdir.c: Update comment.
32253
32254 2009-12-09  Bruno Haible  <bruno@clisp.org>
32255
32256         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
32257
32258 2009-12-08  Eric Blake  <ebb9@byu.net>
32259
32260         fchdir: avoid memory leak on re-registration.
32261         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
32262
32263 2009-12-08  Jim Meyering  <meyering@redhat.com>
32264
32265         init.sh: avoid Solaris 10 /bin/sh portability problem
32266         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
32267         sourced script:
32268           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
32269           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
32270           bar
32271         tests/init.sh relied on that, accepting a --set-path=DIR argument,
32272         and two tests used that idiom.
32273         * tests/init.sh: Update suggested usage comments.
32274         (path_prepend_): New function, to be used in place
32275         of the --src-path=DIR option.
32276         (setup_): Move PATH-prepending code into path_prepend_.
32277         * tests/test-pread.sh: Adapt to new usage.
32278         * tests/test-xalloc-die.sh: Likewise.
32279
32280 2009-12-08  Simon Josefsson  <simon@josefsson.org>
32281
32282         * doc/gnulib.texi (Glibc pty.h): Add.
32283         * doc/glibc-functions/forkpty.texi: Add.
32284         * doc/glibc-functions/openpty.texi: Add.
32285         Suggested by Bruno Haible.
32286
32287 2009-12-08  Eric Blake  <ebb9@byu.net>
32288
32289         fchdir: fix logic bugs
32290         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
32291         * tests/test-fchdir.c (main): Enhance test.
32292         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
32293         is in use.
32294
32295         dup2: fix logic bugs
32296         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
32297         REPLACE_DUP2 to decide when rpl_dup2 is needed.
32298         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
32299         exists.
32300         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
32301
32302 2009-12-07  Eric Blake  <ebb9@byu.net>
32303
32304         unlink: fix m4 detection
32305         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
32306
32307         unistd-safer: add unit test
32308         * modules/unistd-safer-tests: New file.
32309         * tests/test-dup-safer.c: Likewise.
32310         * tests/test-cloexec.c (setmode): Avoid compiler warning.
32311         * tests/test-dup2.c (setmode): Likewise.
32312         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
32313
32314         cloexec: preserve text vs. binary across dup_cloexec
32315         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
32316         mode.
32317         * modules/dup2-tests (Depends-on): Add binary-io.
32318         * modules/cloexec-tests (Depends-on): Likewise.
32319         * tests/test-dup2.c (setmode, is_mode): New helpers.
32320         (main): Add tests that translation mode is preserved.
32321         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
32322         Reported by Bruno Haible.
32323
32324         mgetgroups: reduce duplicate listings
32325         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
32326         resulting array.
32327         * tests/test-chown.h (test_chown): Simplify client.
32328         * tests/test-lchown.h (test_lchown): Likewise.
32329
32330 2009-12-06  Bruno Haible  <bruno@clisp.org>
32331
32332         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
32333         value.
32334
32335 2009-12-06  Bruno Haible  <bruno@clisp.org>
32336
32337         * lib/progname.c: Include stdio.h, stdlib.h.
32338         (set_program_name): Reject a NULL argument.
32339
32340 2009-12-05  Eric Blake  <ebb9@byu.net>
32341
32342         pipe2-safer: new module
32343         * modules/pipe2-safer: New file.
32344         * lib/unistd-safer.h (pipe2_safer): New prototype.
32345         * lib/unistd--.h (pipe2): New wrapper.
32346         * lib/pipe-safer.c (pipe2_safer): New function.
32347         * modules/pipe (Depends-on): Add pipe2-safer.
32348         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
32349
32350         stdlib-safer: preserve cloexec flag for mkostemp[s]
32351         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
32352         fd_safer_flag.
32353
32354         unistd-safer: allow preservation of cloexec status via flag
32355         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
32356         prototypes.
32357         * lib/dup-safer.c (dup_safer_flag): New function.
32358         * lib/fd-safer.c (fd_safer_flag): Likewise.
32359         * modules/cloexec (configure.ac): Set witness.
32360
32361         test-dup2: enhance test
32362         * modules/dup2-tests (Depends-on): Add cloexec.
32363         * tests/test-dup2.c (main): Enhance test.
32364
32365         cloexec: add dup_cloexec
32366         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
32367         header and comments.
32368         * lib/cloexec.c (set_cloexec_flag): Add comments.
32369         (dup_cloexec): New function, with mingw implementation borrowed
32370         from...
32371         * lib/w32spawn.h (dup_noinherit): ...here.
32372         * modules/execute (Depends-on): Add cloexec.
32373         * modules/pipe (Depends-on): Likewise.
32374         * modules/cloexec (Depends-on): Add dup2.
32375         * modules/cloexec-tests (Files): New file.
32376         * tests/test-cloexec.c: Likewise.
32377
32378         test-xalloc-die: fix test for mingw
32379         * modules/xalloc-die-tests (Files): Add tests/init.sh.
32380         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
32381         directory and .exe suffix off argv[0] output.
32382
32383         test-fseeko: fix test for mingw
32384         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
32385         than undefining fseek, so test will pass on mingw.
32386
32387 2009-12-05  Bruno Haible  <bruno@clisp.org>
32388
32389         * lib/progname.h (set_program_name): Clarify specification.
32390         * lib/progname.c (set_program_name): Likewise.
32391         Reported by Jim Meyering.
32392
32393 2009-12-05  Jim Meyering  <meyering@redhat.com>
32394
32395         maint.mk: backslash-escape parens in default regexp
32396         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
32397         backslash-escape the literal parentheses.
32398
32399         maint.mk: news-date-check: use grep -E
32400         * top/maint.mk (today): Define a Make variable, not a...
32401         (news-date-check): ...shell variable.
32402         (news-date-regexp): Use the Make variable.
32403         Use grep's -E option.  Change the failing diagnostic to mention
32404         the variable, $(news-date-regexp).
32405
32406 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
32407
32408         maintainer-makefile: allow customization of NEWS entry format
32409         * top/maint.mk (news-date-regexp): New overridable variable.
32410         (news-date-check): Use it.
32411
32412 2009-12-04  Eric Blake  <ebb9@byu.net>
32413
32414         mgetgroups: add xgetgroups, and avoid ENOSYS failures
32415         * lib/mgetgroups.h (xgetgroups): New prototype.
32416         * lib/mgetgroups.c (xgetgroups): New wrapper.
32417         (mgetgroups): Handle ENOSYS.
32418         * modules/mgetgroups (Depends-on): Add realloc.
32419         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
32420
32421         mgetgroups: avoid argument promotion issues with -1
32422         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
32423         for invalid gid_t.
32424         * tests/test-chown.h (getegid, test_chown): Likewise.
32425         * tests/test-lchown.h (getegid, test_lchown): Likewise.
32426
32427 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
32428
32429         exclude: Fix header file problems.
32430         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
32431
32432 2009-12-01  Jim Meyering  <meyering@redhat.com>
32433
32434         fts: fts_open: do not let an empty string cause immediate failure
32435         This is required in support of GNU rm, for which the command
32436         "rm A '' B" must process and remove both A and B, in spite of
32437         the empty string argument.
32438         * lib/fts.c (fts_open): Do not let the presence of an empty string
32439         cause fts_open to fail immediately.  Most fts-using tools must be
32440         able to process all arguments, in order, and can be expected to
32441         diagnose such arguments themselves.
32442
32443 2009-11-30  Eric Blake  <ebb9@byu.net>
32444
32445         utimens: fix compilation error
32446         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
32447         Declare variable at right scope.
32448
32449 2009-11-29  Jim Meyering  <meyering@redhat.com>
32450
32451         bootstrap: handle perl-5.11's changed --version output
32452         * build-aux/bootstrap (get_version): Handle perl separately,
32453         since perl-5.11's --version output is different.
32454
32455 2009-11-28  Jim Meyering  <meyering@redhat.com>
32456
32457         userspec: depend on the inttostr module, too
32458         * modules/userspec (Depends-on): Add inttostr.
32459
32460         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
32461         * lib/userspec.c (parse_with_separator): Do not accept a user ID
32462         number of MAXUID when it evaluates to (uid_t) -1.
32463         Likewise for group ID.  Reported by Matt McCutchen in
32464         <http://savannah.gnu.org/bugs/?28113>
32465
32466         userspec: reformat to use spaces, not TABs
32467         * lib/userspec.c: Expand TABs to spaces.
32468         Add Emacs' "indent-tabs-mode: nil" hint.
32469
32470 2009-11-27  Eric Blake  <ebb9@byu.net>
32471
32472         getopt-gnu: flush out another BSD bug
32473         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
32474         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
32475         flush out BSD bug.
32476         * tests/test-getopt.h (test_getopt): End lists with NULL.
32477         * tests/test-getopt_long.h (test_getopt_long): Likewise.
32478         (test_getopt_long_posix): Enhance test.
32479         * modules/getopt-posix-tests (Depends-on): Add stdbool.
32480         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
32481         getopt-gnu.
32482         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
32483         Likewise.
32484
32485 2009-11-27  Simon Josefsson  <simon@josefsson.org>
32486
32487         * modules/idpriv-droptemp-tests (Notice): Fix text.
32488
32489 2009-11-27  Jim Meyering  <meyering@redhat.com>
32490
32491         test-xalloc-die: avoid spurious failure due to libtool argv difference
32492         In a libtool-enabled project, this test would fail due to a difference
32493         in the emitted program name, e.g.,
32494         -test-xalloc-die: memory exhausted
32495         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
32496         Use program to avoid that.
32497         * modules/xalloc-die-tests (Depends-on): Add progname.
32498         * tests/test-xalloc-die.c: Include progname.h".
32499         (program_name): Remove decl.
32500         (main): Call set_program_name.
32501         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
32502
32503 2009-11-26  Richard Jones  <rjones@redhat.com>
32504
32505         w32sock: leave win32 error in place.
32506         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
32507
32508 2009-11-26  Eric Blake  <ebb9@byu.net>
32509
32510         init.sh: suggest to use skip_ and fail_ functions in comments
32511         * tests/init.sh: Add a sentence.
32512
32513 2009-11-25  Bruno Haible  <bruno@clisp.org>
32514
32515         init.sh: add documentation in comments
32516         * tests/init.sh: Add some developer and user documentation.
32517
32518 2009-11-26  Jim Meyering  <meyering@redhat.com>
32519
32520         init.sh: accommodate even those who specify bogus srcdir manually
32521         * tests/init.sh: Normally, srcdir is guaranteed by automake and
32522         configure-time tests to be sanitized, so that there is no need to
32523         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
32524         (with no double quotes) suffices.  However, since tests may be
32525         invoked manually, and since you may explicitly set srcdir to the
32526         name of a directory containing spaces, do quote its uses here.
32527         * tests/test-pread.sh: Likewise.
32528         Suggested by Bruno Haible.
32529
32530         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
32531         * tests/test-pread.sh: Write no data into the pipe, because
32532         test-pread actually reads none.  This avoids a diagnostic,
32533         "bash: echo: write error: Broken pipe", that arises in the unusual
32534         event something is ignoring SIGPIPE, and might be interpreted
32535         as some sort of failure.  Reported by Bruno Haible.
32536
32537 2009-11-25  Jim Meyering  <meyering@redhat.com>
32538
32539         test-pread: cover failure with ESPIPE and EINVAL
32540         * tests/test-pread.c (main): Test for failure, too.
32541         * tests/test-pread.sh: Invoke with stdin on a pipe.
32542         Suggested by Eric Blake.
32543
32544         pread: improvement and fix
32545         * modules/pread (Depends-on): Depend on lseek, for portability to
32546         e.g., mingw.  Suggested by Eric Blake.
32547         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
32548
32549         unistd.in.h: correct declaration of pread
32550         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
32551         Reported by Richard W.M. Jones.
32552
32553         test-pread.sh: distribute the test script
32554         * modules/pread-tests (Files): Include test-pread.sh.
32555
32556         test-pread.sh: clean up
32557         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
32558         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
32559         That is unnecessary, since it's always ".".
32560         Suggestion from Eric Blake.
32561
32562         test-pread.sh: make executable
32563         * tests/test-pread.sh: Set executable bit.
32564         Reported by Eric Blake.
32565
32566         correct typo in test-pread.sh
32567         * tests/test-pread.sh: Add #! line.
32568
32569         test pread
32570         * tests/test-pread.c: New file.
32571         * tests/test-pread.sh: Likewise.
32572         * modules/pread-tests: Likewise.
32573
32574         pread: new module
32575         * modules/pread: New file.
32576         * lib/unistd.in.h (pread): Define/declare.
32577         * lib/pread.c (pread): New file.
32578         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
32579         * modules/unistd (Makefile.am): Substitute witnesses.
32580         * doc/posix-functions/pread.texi (pread): Update.
32581         * MODULES.html.sh: Add pread.
32582
32583 2009-11-25  Jim Meyering  <meyering@redhat.com>
32584
32585         tests/init.sh: new file to be used via most *.sh tests
32586         * tests/init.sh: New file.
32587
32588 2009-11-25  Eric Blake  <ebb9@byu.net>
32589
32590         utimens: work around older Linux failure with symlinks
32591         * lib/utimens.c (lutimensat_works_really): New variable.
32592         (fdutimens, lutimens): Use it to manage kernels that support
32593         nanosecond times on files, but not on symlinks.
32594         Reported by OndÅ™ej Vašík.
32595
32596         utimes: fix configure grammar
32597         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
32598
32599 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
32600
32601         regex: Fix fastmap for multibyte character ranges.
32602         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
32603         characters when a multibyte character range is included.
32604
32605 2009-11-22  Andy Wingo  <wingo@pobox.com>
32606
32607         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
32608         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
32609
32610 2009-11-24  Bruno Haible  <bruno@clisp.org>
32611
32612         doc: Most *_l functions exist in MacOS X 10.5.
32613         * doc/posix-functions/duplocale.texi: Update platforms list.
32614         * doc/posix-functions/freelocale.texi: Likewise.
32615         * doc/posix-functions/newlocale.texi: Likewise.
32616         * doc/posix-functions/uselocale.texi: Likewise.
32617         * doc/posix-functions/isalnum_l.texi: Likewise.
32618         * doc/posix-functions/isalpha_l.texi: Likewise.
32619         * doc/posix-functions/isblank_l.texi: Likewise.
32620         * doc/posix-functions/iscntrl_l.texi: Likewise.
32621         * doc/posix-functions/isdigit_l.texi: Likewise.
32622         * doc/posix-functions/isgraph_l.texi: Likewise.
32623         * doc/posix-functions/islower_l.texi: Likewise.
32624         * doc/posix-functions/isprint_l.texi: Likewise.
32625         * doc/posix-functions/ispunct_l.texi: Likewise.
32626         * doc/posix-functions/isspace_l.texi: Likewise.
32627         * doc/posix-functions/isupper_l.texi: Likewise.
32628         * doc/posix-functions/iswalnum_l.texi: Likewise.
32629         * doc/posix-functions/iswalpha_l.texi: Likewise.
32630         * doc/posix-functions/iswblank_l.texi: Likewise.
32631         * doc/posix-functions/iswcntrl_l.texi: Likewise.
32632         * doc/posix-functions/iswctype_l.texi: Likewise.
32633         * doc/posix-functions/iswdigit_l.texi: Likewise.
32634         * doc/posix-functions/iswgraph_l.texi: Likewise.
32635         * doc/posix-functions/iswlower_l.texi: Likewise.
32636         * doc/posix-functions/iswprint_l.texi: Likewise.
32637         * doc/posix-functions/iswpunct_l.texi: Likewise.
32638         * doc/posix-functions/iswspace_l.texi: Likewise.
32639         * doc/posix-functions/iswupper_l.texi: Likewise.
32640         * doc/posix-functions/iswxdigit_l.texi: Likewise.
32641         * doc/posix-functions/isxdigit_l.texi: Likewise.
32642         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
32643         * doc/posix-functions/strcasecmp_l.texi: Likewise.
32644         * doc/posix-functions/strcoll_l.texi: Likewise.
32645         * doc/posix-functions/strfmon_l.texi: Likewise.
32646         * doc/posix-functions/strftime_l.texi: Likewise.
32647         * doc/posix-functions/strncasecmp_l.texi: Likewise.
32648         * doc/posix-functions/strxfrm_l.texi: Likewise.
32649         * doc/posix-functions/tolower_l.texi: Likewise.
32650         * doc/posix-functions/toupper_l.texi: Likewise.
32651         * doc/posix-functions/towctrans_l.texi: Likewise.
32652         * doc/posix-functions/towlower_l.texi: Likewise.
32653         * doc/posix-functions/towupper_l.texi: Likewise.
32654         * doc/posix-functions/wcscoll_l.texi: Likewise.
32655         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
32656         * doc/posix-functions/wctrans_l.texi: Likewise.
32657         * doc/posix-functions/wctype_l.texi: Likewise.
32658         * doc/glibc-functions/strptime_l.texi: Likewise.
32659         * doc/glibc-functions/strtod_l.texi: Likewise.
32660         * doc/glibc-functions/strtof_l.texi: Likewise.
32661         * doc/glibc-functions/strtol_l.texi: Likewise.
32662         * doc/glibc-functions/strtold_l.texi: Likewise.
32663         * doc/glibc-functions/strtoll_l.texi: Likewise.
32664         * doc/glibc-functions/strtoul_l.texi: Likewise.
32665         * doc/glibc-functions/strtoull_l.texi: Likewise.
32666         * doc/glibc-functions/wcsftime_l.texi: Likewise.
32667         * doc/glibc-functions/wcstod_l.texi: Likewise.
32668         * doc/glibc-functions/wcstof_l.texi: Likewise.
32669         * doc/glibc-functions/wcstol_l.texi: Likewise.
32670         * doc/glibc-functions/wcstold_l.texi: Likewise.
32671         * doc/glibc-functions/wcstoll_l.texi: Likewise.
32672         * doc/glibc-functions/wcstoul_l.texi: Likewise.
32673         * doc/glibc-functions/wcstoull_l.texi: Likewise.
32674
32675 2009-11-24  Bruno Haible  <bruno@clisp.org>
32676
32677         duplocale: Fix logic bug.
32678         * lib/duplocale.c: Don't include <langinfo.h>.
32679         (_NL_LOCALE_NAME): Remove macro.
32680         (rpl_duplocale): Use setlocale instead of nl_langinfo.
32681         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
32682
32683 2009-11-23  Jim Meyering  <meyering@redhat.com>
32684
32685         test-update-copyright: don't hard-code /usr/bin/perl
32686         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
32687         perl to print the current year.  Gilles Espinasse reported that
32688         the replaced use of perl was hard-coded as /usr/bin/perl.
32689
32690 2009-11-23  Bruno Haible  <bruno@clisp.org>
32691
32692         duplocale: Add support for glibc 2.3.x.
32693         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
32694
32695 2009-11-22  Bruno Haible  <bruno@clisp.org>
32696
32697         vasnprintf: Tiny optimization.
32698         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
32699         MacOS X.
32700
32701 2009-11-22  Bruno Haible  <bruno@clisp.org>
32702
32703         Tests for module 'duplocale'.
32704         * modules/duplocale-tests: New file.
32705         * tests/test-duplocale.c: New file.
32706
32707         New module 'duplocale'.
32708         * m4/duplocale.m4: New file.
32709         * lib/locale.in.h (duplocale): New declaration.
32710         * lib/duplocale.c: New file.
32711         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
32712         gl_LOCALE_H_DEFAULTS): New macros.
32713         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
32714         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
32715         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
32716         REPLACE_DUPLOCALE.
32717         * modules/duplocale: New file.
32718         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
32719
32720 2009-11-22  Bruno Haible  <bruno@clisp.org>
32721
32722         * modules/locale-tests (configure.ac): Test for newlocale function.
32723         * tests/test-locale.c: When the system has extended locale functions,
32724         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
32725
32726         locale: Make locale_t available when possible.
32727         * lib/locale.in.h: Include <xlocale.h> when it exists.
32728         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
32729         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
32730         * modules/locale (Depends-on): Add extensions.
32731         (Makefile.am): Also substitute HAVE_XLOCALE_H.
32732         * doc/posix-headers/locale.texi: Document the problem with locale_t.
32733
32734 2009-11-22  Bruno Haible  <bruno@clisp.org>
32735
32736         Add comments.
32737         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
32738         invocation.
32739         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
32740         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
32741         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
32742
32743 2009-11-22  Bruno Haible  <bruno@clisp.org>
32744
32745         error: account for the possibility of freopen (stdout).
32746         * lib/error.c: Include <unistd.h>.
32747         (flush_stdout): New function, extracted from error and error_at_line.
32748         Determine stdout's fd dynamically.
32749         (error, error_at_line): Invoke flush_stdout.
32750         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
32751         * modules/error (Depends-on): Add unistd.
32752
32753 2009-11-22  Bruno Haible  <bruno@clisp.org>
32754
32755         diffseq: Add comment.
32756         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
32757
32758 2009-11-22  Jim Meyering  <meyering@redhat.com>
32759
32760         c-stack: avoid defining an unused static function
32761         * lib/c-stack.c (find_stack_direction): Do not define this function
32762         when it will not be used.
32763
32764         diffseq: avoid spurious gcc warnings
32765         * lib/diffseq.h (IF_LINT2): Define.
32766         (compareseq): Use it to initialize two members of "part".
32767         This avoids two used-uninitialized warnings.
32768
32769 2009-11-21  Jim Meyering  <meyering@redhat.com>
32770
32771         c-stack: avoid "ignoring return value of `write'" warning
32772         * lib/c-stack.c: Include "ignore-value.h".
32773         (die): Explicitly ignore each write return value.
32774         * modules/c-stack (Depends-on): Add ignore-value.
32775
32776 2009-11-21  Bruno Haible  <bruno@clisp.org>
32777
32778         diffseq: reduce scope of variable 'best'.
32779         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
32780         variable, earlier used for two different purposes.
32781
32782 2009-11-21  Jim Meyering  <meyering@redhat.com>
32783
32784         diffseq: remove useless assignment to "best"
32785         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
32786         assignment.  At that point "best" is already guaranteed to be zero.
32787
32788 2009-11-20  Eric Blake  <ebb9@byu.net>
32789
32790         build: mention ftp redirector in release announcements
32791         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
32792         values that used to come from cfg.mk; mention FTP redirect URL.
32793         * build-aux/announce-gen: Mention the mirror list.
32794         Suggested by Karl Berry.
32795
32796         nanosleep: improve port to mingw
32797         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
32798         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
32799         LIB_NANOSLEEP, but only when needed.
32800         * modules/select (Link): Document LIBSOCKET.
32801         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
32802         enough.
32803
32804         nanosleep: work around cygwin bug
32805         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
32806         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
32807         bug.
32808         (getnow): Delete, not needed.
32809         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
32810         LIB_CLOCK_GETTIME.
32811         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
32812         clock-time, gettime.
32813         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
32814         bug.
32815         * modules/nanosleep-tests: New test.
32816         * tests/test-nanosleep.c: New file.
32817
32818         sleep: work around cygwin bug
32819         * lib/sleep.c (rpl_sleep): Work around the bug.
32820         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
32821         (gl_PREREQ_SLEEP): Delete unused macro.
32822         * modules/sleep (Depends-on): Add verify.
32823         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
32824         * modules/unistd (Makefile.am): Substitute witness.
32825         * lib/unistd.in.h (sleep): Update prototype.
32826         * doc/posix-functions/sleep.texi (sleep): Document the bug.
32827         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
32828         * modules/sleep-tests (Depends-on): Check for alarm.
32829
32830 2009-11-20  Jim Meyering  <meyering@redhat.com>
32831
32832         maint.mk: improve sc_prohibit_magic_number_exit
32833         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
32834         so it does not match uses like System.exit(1).
32835         Add comments showing how to correct all offenders.
32836
32837 2009-11-19  Eric Blake  <ebb9@byu.net>
32838
32839         xalloc-die-tests: add missing library
32840         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
32841
32842         test-xvasprintf: silence compiler warnings
32843         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
32844         empty string from gcc.
32845
32846 2009-11-19  Jim Meyering  <meyering@redhat.com>
32847
32848         xfreopen: new module, from coreutils
32849         * modules/xfreopen: New module.
32850         * lib/xfreopen.c: New file.
32851         * lib/xfreopen.h: New file.
32852         * MODULES.html.sh (File stream based Input/Output"): Add it.
32853
32854 2009-11-19  Eric Blake  <ebb9@byu.net>
32855
32856         manywarnings: depend on warnings
32857         * modules/manywarnings (Depends-on): Add warnings.
32858
32859         build: avoid compiler warnings
32860         * lib/select.c (rpl_select): Delete unused variable.
32861         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
32862
32863 2009-11-18  Eric Blake  <ebb9@byu.net>
32864
32865         tests: avoid false negative with --with-packager
32866         * tests/test-version-etc.sh: Discard packager information.
32867         * tests/test-argp-version-etc-1.sh: Likewise.
32868         Reported by Mike Frysinger.
32869
32870         utimens: fix regression on Solaris
32871         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
32872         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
32873         can only change fd timestamps via futimesat.  Instead, use an
32874         additional witness macro to avoid BSD bug.
32875         Reported by Jim Meyering.
32876
32877 2009-11-17  Eric Blake  <ebb9@byu.net>
32878
32879         usleep: use it to simplify tests
32880         * modules/stat-time-tests (Depends-on): Add usleep.
32881         (configure.ac): Drop usleep check.
32882         * modules/chown-tests (Depends-on, configure.ac): Likewise.
32883         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
32884         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
32885         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
32886         * modules/openat-tests (Depends-on, configure.ac): Likewise.
32887         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
32888         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
32889         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
32890         Likewise.
32891         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
32892         * tests/test-lchown.h (nap): Likewise.
32893         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
32894         * tests/test-stat-time.c (nap): Likewise.
32895         * tests/test-utimens-common.h (nap): Update comments.
32896
32897         usleep: new module
32898         * modules/usleep: New file.
32899         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
32900         * lib/usleep.c (usleep): Likewise.
32901         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
32902         * modules/unistd (Makefile.am): Substitute witnesses.
32903         * lib/unistd.in.h (usleep): Add declaration.
32904         * doc/pastposix-functions/usleep.texi (usleep): Document this.
32905         * MODULES.html.sh (Date and time): Likewise.
32906         * modules/usleep-tests (Depends-on): New test.
32907         * tests/test-usleep.c: New file.
32908
32909         chown: work around OpenBSD bug
32910         * lib/chown.c (rpl_chown): Work around the bug.
32911         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
32912         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
32913         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
32914         * modules/chown (Depends-on): Add stdbool.
32915         * modules/lchown (Depends-on): Likewise.
32916         * doc/posix-functions/chown.texi (chown): Document the bug.
32917         * doc/posix-functions/lchown.texi (lchown): Likewise.
32918         * tests/test-lchown.h (test_chown): Relax test.
32919
32920         mkstemp: avoid conflict with C++ keyword template
32921         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
32922         * lib/mkostemp.c (mkostemp): Likewise.
32923         * lib/mkostemps.c (mkostemps): Likewise.
32924         * lib/mkstemp.c (mkstemp): Likewise.
32925         * lib/mkstemps.c (mkstemps): Likewise.
32926
32927         xalloc-die-tests: optimize
32928         * tests/test-xalloc-die.sh: Reduce number of processes.
32929
32930 2009-11-17  Simon Josefsson  <simon@josefsson.org>
32931
32932         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
32933         patch from ludo@gnu.org (Ludovic Courtès).
32934
32935 2009-11-17  Jim Meyering  <meyering@redhat.com>
32936
32937         version-etc: use proper license string
32938         * modules/version-etc (License): Use LGPL, not LGPLv3+.
32939         * modules/version-etc-fsf: Likewise.
32940
32941 2009-11-17  Simon Josefsson  <simon@josefsson.org>
32942
32943         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
32944         printed to stdout.  Deal with EOL differences.
32945
32946 2009-11-17  Eric Blake  <ebb9@byu.net>
32947
32948         unsetenv: work around Solaris bug
32949         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
32950         * lib/unsetenv.c (rpl_unsetenv): Work around it.
32951         Reported by Jim Meyering.
32952
32953         vasnprintf: avoid compiler warnings
32954         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
32955         variables.
32956         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
32957
32958 2009-11-17  Simon Josefsson  <simon@josefsson.org>
32959
32960         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
32961         settings since xalloc-die is no longer the self test,
32962         xalloc-die.sh is.
32963
32964 2009-11-17  Jim Meyering  <meyering@redhat.com>
32965
32966         test-xalloc-die.sh: make the code agree with the commit log
32967         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
32968         at the end, just in case you happen to have a test-xalloc-die
32969         program in some other PATH directory.
32970
32971         test-xalloc-die.sh: fix a portability bug
32972         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
32973         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
32974         Otherwise, argv[0] (as often seen in diagnostics) would be too
32975         system-dependent, sometimes with, and sometimes without the leading "./".
32976
32977         version-etc-fsf: relax license to LGPLv3+
32978         * modules/version-etc-fsf (License): Relax license.
32979
32980 2009-11-16  Eric Blake  <ebb9@byu.net>
32981
32982         xalloc-die-tests: avoid printing null pointer
32983         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
32984         shell script.
32985         * tests/test-xalloc-die.c (program_name): Declare.
32986         * tests/test-xalloc-die.sh (tmpfiles): New file.
32987
32988         setenv, unsetenv: work around various bugs
32989         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
32990         (setenv) [HAVE_SETENV]: Work around bugs.
32991         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
32992         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
32993         for bugs.
32994         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
32995         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
32996         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
32997         * modules/stdlib (Makefile.am): Update substitutions.
32998         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
32999         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
33000         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
33001         * modules/setenv-tests: New test.
33002         * modules/unsetenv-tests: Likewise.
33003         * tests/test-setenv.c: New file.
33004         * tests/test-unsetenv.c: Likewise.
33005
33006 2009-11-16  Jim Meyering  <meyering@redhat.com>
33007
33008         version-etc: relax license to LGPLv3+
33009         * modules/version-etc (License): Relax license.
33010
33011         better AC_REQUIRE expanded-before-required-warning avoidance
33012         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
33013         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
33014         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
33015         which is no longer needed.
33016
33017 2009-11-16  Eric Blake  <ebb9@byu.net>
33018
33019         test-freading: clean up temporary file
33020         * tests/test-freading.c (main): Remove file on success, and use
33021         ASSERT more liberally.
33022         Reported by Jim Meyering.
33023
33024 2009-11-16  Jim Meyering  <meyering@redhat.com>
33025
33026         avoid new AC_REQUIRE expanded-before-required warnings
33027         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
33028         merely using it.
33029         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
33030         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
33031
33032 2009-11-15  Simon Josefsson  <simon@josefsson.org>
33033
33034         * tests/test-xalloc-die.c: New file.
33035         * modules/xalloc-die-tests: New file.
33036         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
33037         XFAIL_TESTS so it can be appended by modules.
33038
33039 2009-11-15  Simon Josefsson  <simon@josefsson.org>
33040
33041         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
33042         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
33043
33044 2009-11-14  Eric Blake  <ebb9@byu.net>
33045
33046         fnmatch: avoid compiler warning
33047         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
33048         to silence compiler warning about mismatch signedness in ?:.
33049         Reported by Robert Millan.
33050
33051         intprops: add double-inclusion guard
33052         * lib/intprops.h: Allow idempotent includes.
33053         Suggested by Bruce Korb.
33054
33055         openat: detect Solaris fchownat bug
33056         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
33057         penalizing glibc chownat when only lchownat is broken.
33058         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
33059         trailing slash bugs.
33060         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
33061         * modules/openat-tests (Files): Include more files.
33062         (Depends-on): Add mgetgroups, sleep, stat-time.
33063         (configure.ac): Add additional checks.
33064         (Makefile.am): Build new test.
33065         * tests/test-fchownat.c: New file.
33066
33067         lchown: detect Solaris and FreeBSD bug
33068         * lib/lchown.c (rpl_lchown): Work around bug.
33069         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
33070         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
33071         * modules/unistd (Makefile.am): Populate it.
33072         * lib/unistd.in.h (lchown): Update declaration.
33073         * doc/posix-functions/lchown.texi (lchown): Document the bug.
33074         * modules/lchown-tests: New file.
33075         * tests/test-lchown.h (test_lchown): Likewise.
33076         * tests/test-lchown.c (main): Likewise.
33077
33078         chown: detect Solaris and FreeBSD bug
33079         * lib/chown.c (rpl_chown): Work around bug.
33080         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
33081         (gl_PREREQ_CHOWN): Delete.
33082         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
33083         * modules/unistd (Makefile.am): Populate it.
33084         * lib/unistd.in.h (chown): Update declaration.
33085         * lib/lchown.c (chown): Update client.
33086         * modules/lchown (Depends-on): Add lstat.
33087         * doc/posix-functions/chown.texi (chown): Document the bug.
33088         * doc/posix-functions/getgroups.texi (getgroups): Document
33089         getgroups pitfall.
33090         * modules/chown-tests: New file.
33091         * tests/test-chown.h (test_chown): Likewise.
33092         * tests/test-chown.c (main): Likewise.
33093
33094 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
33095
33096         gnulib-tool: correctly detect absence of m4 directories
33097         * gnulib-tool: Avoid extra newline on data passed to wc -l.
33098
33099 2009-11-14  Jim Meyering  <meyering@redhat.com>
33100
33101         maint.mk: Prohibit inclusion of "xalloc.h" without use.
33102         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
33103
33104 2009-11-14  John W. Eaton  <jwe@gnu.org>
33105
33106         strftime.h: wrap funtion declaration in extern "C" block
33107         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
33108
33109 2009-11-13  Eric Blake  <ebb9@byu.net>
33110
33111         getgroups: avoid compiler warning
33112         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
33113
33114         getgroups: work around FreeBSD bug
33115         * lib/getgroups.c (rpl_getgroups): Work around the bug.
33116         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
33117         * doc/posix-functions/getgroups.texi (getgroups): Document it.
33118         * tests/test-getgroups.c (main): Fix buffer overrun.
33119
33120         getgroups: avoid compilation failure
33121         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
33122         * modules/getgroups (Depends-on): Add stdint.
33123
33124 2009-11-13  Jim Meyering  <meyering@redhat.com>
33125
33126         test-getgroups: avoid compilation failure
33127         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
33128
33129 2009-11-13  Eric Blake  <ebb9@byu.net>
33130
33131         mgetgroups: new module, taken from coreutils
33132         * modules/mgetgroups: New file.
33133         * lib/mgetgroups.h: Likewise.
33134         * lib/mgetgroups.c (mgetgroups): Likewise.
33135         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
33136         * MODULES.html.sh (Users and groups): Mention it.
33137
33138         getgroups: don't expose GETGROUPS_T to user
33139         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
33140         an element at a time if GETGROUPS_T is wrong size.
33141         * lib/getugroups.h (getugroups): Change signature.
33142         * lib/unistd.in.h (getgroups): Likewise.
33143         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
33144         signature needs fixing.
33145         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
33146         AC_TYPE_GETGROUPS.
33147         * modules/group-member (Depends-on): Add getgroups.
33148         * lib/group-member.c (group_info, get_group_info): Use gid_t.
33149         (group_member): Rely on getgroups replacement.
33150         * lib/getugroups.c (getugroups): Use gid_t.
33151         * tests/test-getgroups.c (main): Likewise.
33152         * NEWS: Mention the signature change.
33153         * doc/posix-functions/getgroups.texi (getgroups): Mention the
33154         problem with signature.
33155         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
33156         GETGROUPS_T is still useful for setgroups.
33157
33158         getgroups, getugroups: provide stubs for mingw
33159         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
33160         * lib/getugroups.c (getugroups): Likewise.
33161         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
33162         function.  Modernize replacement scheme.
33163         (gl_PREREQ_GETGROUPS): Delete.
33164         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
33165         * modules/getgroups (configure.ac): Declare witness.
33166         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
33167         * modules/unistd (Depends-on): Substitute witness.
33168         * lib/unistd.in.h (getgroups): Declare replacement.
33169
33170         getgroups: avoid calling exit
33171         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
33172         drop xalloc.
33173         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
33174         dependencies.
33175         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
33176         exiting, in the rare case of malloc failure.
33177
33178         getgroups: fix logic error
33179         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
33180         has more than 20 groups.
33181         * modules/getgroups-tests: New test.
33182         * tests/test-getgroups.c: New file.
33183
33184 2009-11-13  Simon Josefsson  <simon@josefsson.org>
33185
33186         * tests/test-base64.c: Improve.
33187
33188 2009-11-13  Simon Josefsson  <simon@josefsson.org>
33189
33190         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
33191         Blake <ebb9@byu.net>.
33192
33193 2009-11-13  Simon Josefsson  <simon@josefsson.org>
33194
33195         * tests/test-xvasprintf.c: Add %s%s related checks.
33196
33197 2009-11-12  Eric Blake  <ebb9@byu.net>
33198
33199         version-etc: match standards.texi style
33200         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
33201         and use <> only for URLs.
33202
33203 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
33204
33205         fts: do not fail on a submount during traversal
33206         * lib/fts.c (fts_build): Read the stat info again after opening
33207         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
33208         Original report at http://bugzilla.redhat.com/501848.
33209
33210 2009-11-12  Jim Meyering  <meyering@redhat.com>
33211
33212         bootstrap: sync from coreutils
33213         * build-aux/bootstrap (bootstrap_epilogue): New function.
33214         Use git_modules_config in one more place.  This make bootstrap's
33215         --gnulib-srcdir option more useful for testing.
33216
33217         bootstrap: generalize autoheader check
33218         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
33219         AC_CONFIG_HEADERS.
33220
33221 2009-11-11  Eric Blake  <ebb9@byu.net>
33222
33223         mkfifoat: use new modules for Solaris and BSD bugs
33224         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
33225         * lib/mkfifoat.c (mknodat): Split...
33226         * lib/mknodat.c (mknodat): ...into new file.
33227         * modules/mkfifoat (Files): Ship new file.
33228         (Depends-on): Add mkfifo, mknod.
33229         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
33230         (Depends-on): Add symlink.
33231         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
33232         redundant with test_mkfifo.h.
33233         (do_mkfifoat, do_mknodat): New helpers.
33234
33235         mknod: new module
33236         * modules/mknod: New file.
33237         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
33238         * lib/mknod.c (mknod): Likewise.
33239         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
33240         defaults.
33241         * modules/sys_stat (Makefile.am): Substitute them.
33242         * lib/sys_stat.in.h (mknod): Declare replacement.
33243         * MODULES.html.sh (Support for systems lacking POSIX:2008):
33244         Document it.
33245         * doc/posix-functions/mknod.texi (mknod): Likewise.
33246         * modules/mknod-tests: New test.
33247         * tests/test-mknod.c: Likewise.
33248
33249         mkfifo: new module
33250         * modules/mkfifo: New file.
33251         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
33252         * lib/mkfifo.c (mkfifo): Likewise.
33253         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
33254         defaults.
33255         * modules/sys_stat (Makefile.am): Substitute them.
33256         * lib/sys_stat.in.h (mkfifo): Declare replacement.
33257         * MODULES.html.sh (Support for systems lacking POSIX:2008):
33258         Document it.
33259         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
33260         * modules/mkfifo-tests: New test.
33261         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
33262         from test-mkfifoat.c.
33263         * tests/test-mkfifo.c: New file.
33264
33265         readlink: detect FreeBSD bug
33266         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
33267         slash on symlink.
33268         * doc/posix-functions/readlink.texi (readlink): Document the bug.
33269         * tests/test-readlink.h (test_readlink): Enhance test.
33270
33271         symlink: detect FreeBSD bug
33272         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
33273         slash on symlink.
33274         * doc/posix-functions/symlink.texi (symlink): Document the bug.
33275         * tests/test-symlink.h (test_symlink): Enhance test.
33276
33277 2009-11-10  Eric Blake  <ebb9@byu.net>
33278
33279         link: detect FreeBSD bug
33280         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
33281         symlink.
33282         * doc/posix-functions/link.texi (link): Document the bug.
33283         * tests/test-link.h (test_link): Enhance test.
33284         * tests/test-linkat.c (main): Update caller.
33285
33286         unlink, remove: detect FreeBSD bug
33287         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
33288         slash on symlink.
33289         * doc/posix-functions/unlink.texi (unlink): Document the bug.
33290         * doc/posix-functions/remove.texi (remove): Likewise.
33291         * tests/test-unlink.h (test_unlink): Enhance test.
33292         * tests/test-remove.c (main): Likewise.
33293
33294 2009-11-09  Eric Blake  <ebb9@byu.net>
33295
33296         rename: detect FreeBSD bug
33297         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
33298         slash on symlink.
33299         * modules/renameat-tests (Depends-on): Add filenamecat.
33300         * tests/test-rename.h (test_rename): Allow one more errno.
33301         * tests/test-renameat.c (main): Likewise.
33302         * doc/posix-functions/rename.texi (rename): Document the bug.
33303
33304         open: detect FreeBSD bug
33305         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
33306         symlink.
33307         * doc/posix-functions/open.texi (open): Document the bug.
33308         * doc/posix-functions/utimes.texi (utimes): Likewise.
33309         * tests/test-open.h (test_open): Add parameters, and test symlink
33310         handling.
33311         * tests/test-open.c (main): Adjust caller.
33312         * tests/test-fcntl-safer.c (main): Likewise.
33313         * modules/open-tests (Depends-on): Add stdbool, symlink.
33314         * modules/fcntl-safer-tests (Depends-on): Likewise.
33315         * tests/test-openat.c (main): Add test-open tests.
33316
33317         stat: detect FreeBSD bug
33318         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
33319         symlink.
33320         * doc/posix-functions/stat.texi (stat): Document the bug.
33321         * tests/test-stat.h (test_stat_func): Add argument.
33322         * tests/test-stat.c (main): Adjust caller.
33323         * tests/test-fstatat.c (main): Likewise.
33324         * modules/stat-tests (Depends-on): Add stdbool, symlink.
33325         Reported by Jim Meyering.
33326
33327 2009-11-09  James Youngman  <jay@gnu.org>
33328
33329         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
33330         * lib/strftime.c: Correct placement of #include "ignore-value.h".
33331
33332 2009-11-08  Jim Meyering  <meyering@redhat.com>
33333
33334         utimens: remove invalid futimesat call
33335         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
33336         It used the file descriptor of the target file as the DIR_FD
33337         parameter and NULL as the file name.  That caused failure with
33338         errno == EFAULT on FreeBSD-8.0-rc2
33339
33340 2009-11-07  Eric Blake  <ebb9@byu.net>
33341
33342         fflush, freadseek: use fseeko, not fseek
33343         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
33344         (clear_ungetc_buffer): Avoid potential problems on large files.
33345         * lib/freadseek.c (freadseek): Likewise.
33346         * modules/freadseek (Depends-on): Add fseeko.
33347         * modules/fseek (configure.ac): Set a witness.
33348         * tests/test-fflush.c (main): Use fseeko.
33349         * tests/test-fpurge.c (fseek): Disable link warning.
33350         * tests/test-freadable.c (fseek): Likewise.
33351         * tests/test-freading.c (fseek): Likewise.
33352         * tests/test-fseeko.c (fseek): Likewise.
33353         * tests/test-ftell.c (fseek): Likewise.
33354         * tests/test-ftello.c (fseek): Likewise.
33355         * tests/test-fwritable.c (fseek): Likewise.
33356         * tests/test-fwriting.c (fseek): Likewise.
33357
33358 2009-11-06  Simon Josefsson  <simon@josefsson.org>
33359
33360         * modules/memchr (Depends-on): Drop getpagesize dependency.
33361
33362 2009-11-06  Simon Josefsson  <simon@josefsson.org>
33363
33364         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
33365         Reported by Ludovic Courtès.
33366         * build-aux/pmccabe2html: Improve example usage.
33367         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
33368
33369 2009-11-06  Jim Meyering  <meyering@redhat.com>
33370
33371         do-release-commit-and-tag: New module.
33372         Automate the release-commit and tag process.
33373         * build-aux/do-release-commit-and-tag: New script, from coreutils.
33374         * modules/do-release-commit-and-tag: New file.
33375         * MODULES.html.sh (Support for maintaining and releasing): Add it.
33376
33377 2009-11-06  Simon Josefsson  <simon@josefsson.org>
33378
33379         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
33380         because test-select.c uses inet_pton.
33381
33382 2009-11-06  Simon Josefsson  <simon@josefsson.org>
33383
33384         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
33385         GETADDRINFO_LIB.  Bump serial number.
33386         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
33387         Suggested by Eric Blake <ebb9@byu.net>.
33388
33389 2009-11-05  Eric Blake  <ebb9@byu.net>
33390
33391         strtod: detect darwin bug
33392         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
33393         Reported by Leo Davis.
33394
33395         freopen-safer: new module
33396         * modules/freopen-safer: New module.
33397         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
33398         * lib/freopen-safer.c (freopen_safer): New file.
33399         * lib/stdio-safer.h (freopen_safer): New declaration.
33400         * lib/stdio--.h (freopen): New override.
33401         * MODULES.html.sh (File stream based Input/Output): Mention it.
33402         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
33403         freopen-safer module.
33404         * doc/posix-functions/stderr.texi (stderr): Likewise.
33405         * doc/posix-functions/stdin.texi (stdin): Likewise.
33406         * doc/posix-functions/stdout.texi (stdout): Likewise.
33407         * modules/freopen-safer-tests: New test.
33408         * tests/test-reopen-safer.c: New file.
33409
33410 2009-11-05  Jim Meyering  <meyering@redhat.com>
33411
33412         maint.mk: Prohibit inclusion of "close-stream.h" without use.
33413         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
33414
33415 2009-11-05  Simon Josefsson  <simon@josefsson.org>
33416
33417         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
33418
33419 2009-11-05  Simon Josefsson  <simon@josefsson.org>
33420
33421         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
33422
33423 2009-11-05  Simon Josefsson  <simon@josefsson.org>
33424
33425         Fix link error.
33426         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
33427         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
33428
33429 2009-11-05  Simon Josefsson  <simon@josefsson.org>
33430
33431         * tests/test-func.c: Also test value of __func__.
33432
33433 2009-11-05  Simon Josefsson  <simon@josefsson.org>
33434
33435         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
33436         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
33437
33438 2009-11-05  Bruno Haible  <bruno@clisp.org>
33439
33440         Fix link error.
33441         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
33442         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
33443         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
33444
33445 2009-11-05  Bruno Haible  <bruno@clisp.org>
33446
33447         Tests for module 'inet_pton'.
33448         * modules/inet_pton-tests: New file.
33449         * tests/test-inet_pton.c: New file.
33450
33451 2009-11-05  Bruno Haible  <bruno@clisp.org>
33452
33453         Tests for module 'inet_ntop'.
33454         * modules/inet_ntop-tests: New file.
33455         * tests/test-inet_ntop.c: New file.
33456
33457 2009-11-04  Eric Blake  <ebb9@byu.net>
33458
33459         stdlib-safer: wrap all mkstemp variants
33460         * modules/mkostemp (configure.ac): Set witness.
33461         * modules/mkostemps (configure.ac): Likewise.
33462         * modules/mkstemps (configure.ac): Likewise.
33463         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
33464         (mkstemps_safer): Wrap more functions.
33465         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
33466         wrapping.
33467         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
33468         (mkstemps_safer): Implement the wrappers.
33469
33470         mkstemps, mkostemps: new modules
33471         * modules/mkostemps: New module.
33472         * modules/mkstemps: Likewise.
33473         * lib/mkostemps.c (mkostemps): New file.
33474         * lib/mkstemps.c (mkstemps): Likewise.
33475         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
33476         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
33477         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
33478         * modules/stdlib (Makefile.am): Substitute them.
33479         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
33480         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
33481         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
33482         * doc/gnulib.texi (Glibc stdlib.h): Include them.
33483         * MODULES.html.sh (File system functions): Mention them.
33484
33485         tempname: resync from glibc
33486         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
33487         same values for __GT_FILE as glibc.  Abort even when assertions
33488         are disabled.
33489         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
33490         match its value otherwise.  Allow idempotent inclusion.
33491         * lib/mkdtemp.c (mkdtemp): Adjust caller.
33492         * lib/mkostemp.c (mkostemp): Likewise.
33493         * lib/mkstemp.c (mkstemp): Likewise.
33494         * lib/tmpfile.c (tmpfile): Likewise.
33495         * NEWS: Document this.
33496
33497         utimens: fix use of futimens on older Linux
33498         * lib/utimens.c (fdutimens): Use updated, rather than original,
33499         timespec to avoid bug in older Linux kernel.
33500         Reported by Simon Josefsson.
33501
33502 2009-11-04  Bruno Haible  <bruno@clisp.org>
33503
33504         Make num_processors more flexible and consistent.
33505         * lib/nproc.h (enum nproc_query): New type.
33506         (num_processors): Add a 'query' argument.
33507         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
33508         (num_processors): Add a 'query' argument. Test the value of the
33509         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
33510         mingw, count the number of CPUs available for the current process.
33511         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
33512         Check for sched_getaffinity and sched_getaffinity_np.
33513         * modules/nproc (Depends-on): Add c-ctype, extensions.
33514         * NEWS: Mention the change.
33515
33516 2009-11-03  Bruno Haible  <bruno@clisp.org>
33517
33518         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
33519
33520 2009-11-03  Jim Meyering  <meyering@redhat.com>
33521
33522         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
33523         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
33524         if it is defined.
33525
33526 2009-11-02  Eric Blake  <ebb9@byu.net>
33527
33528         mktime, timegm: share common declaration
33529         * lib/mktime-internal.h: New file.
33530         * lib/mktime.c: Use it rather than open-coding a declaration.
33531         * lib/timegm.c: Likewise.
33532         * modules/mktime (Files): Ship it.
33533         * modules/timegm (Files): Likewise.
33534         Suggested by Bruno Haible.
33535
33536         test-update-copyright: update test to match script changes
33537         * tests/test-update-copyright.sh: Avoid hard-coding perl
33538         location.  Don't update *.bak created by earlier runs.
33539
33540 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
33541             Simon Josefsson  <simon@josefsson.org>
33542             Bruno Haible  <bruno@clisp.org>
33543
33544         Fix link error on Solaris 8.
33545         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
33546         also in libnsl. Define also INET_PTON_LIB.
33547         * modules/inet_pton (Link): New section.
33548
33549 2009-11-02  Simon Josefsson  <simon@josefsson.org>
33550             Bruno Haible  <bruno@clisp.org>
33551
33552         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
33553         * modules/inet_ntop (Link): New section.
33554         Reported by Boyan Kasarov <bkasarov@gmail.com>.
33555
33556 2009-11-02  Eric Blake  <ebb9@byu.net>
33557
33558         maint: avoid compiler warnings in m4 macros
33559         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
33560         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
33561
33562 2009-11-02  Simon Josefsson  <simon@josefsson.org>
33563
33564         * m4/pmccabe2html.m4: Remove file.
33565         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
33566         function.  Change maintainer.
33567         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
33568         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
33569         Courtès).
33570
33571 2009-10-31  Eric Blake  <ebb9@byu.net>
33572
33573         fseeko: fix m4 regression
33574         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
33575         regression from 2009-10-27.
33576         Reported by Ralf Wildenhues.
33577
33578 2009-10-31  Jim Meyering  <meyering@redhat.com>
33579
33580         inttostr: aesthetics and improved (compile-time) safety
33581         Define inttype_is_signed rather than inttype_is_unsigned,
33582         since the sole use is via "#if inttype_is_signed".
33583         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
33584         inttype_is_unsigned.
33585         * lib/offtostr.c (inttype_is_signed): Likewise.
33586         * lib/uinttostr.c (inttype_is_signed): Likewise.
33587         * lib/umaxtostr.c (inttype_is_signed): Likewise.
33588         * lib/inttostr.c (inttostr): Use verify to cross-check the
33589         inttype_is_signed value and the signedness of the actual type.
33590         * modules/inttostr (Depends-on): Add verify.
33591
33592 2009-10-30  Eric Blake  <ebb9@byu.net>
33593
33594         build: avoid compiler warnings
33595         * lib/fchmodat.c (lchmod): Mark unused variables.
33596         * lib/getopt.c (_getopt_initialize): Likewise.
33597         * lib/mktime.c (__mktime_internal): Provide prototype.
33598         * lib/inttostr.c (inttostr): Avoid compiler warning even with
33599         older gcc that do not understand #pragma GCC diagnostic.
33600         * lib/uinttostr.c (inttype_is_unsigned): Define.
33601         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
33602
33603 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
33604
33605         stat: fix compilation on AIX
33606         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
33607         only see struct stat64.
33608
33609 2009-10-30  Eric Blake  <ebb9@byu.net>
33610
33611         exclude: make more robust
33612         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
33613         rather than masking a coding bug.
33614         Suggested by Bruno Haible.
33615
33616 2009-10-30  Jim Meyering  <meyering@redhat.com>
33617
33618         perl scripts: remove #!/usr/bin/perl in favor of more portable...
33619         Rather than putting #!/usr/bin/perl on the first line,
33620         start with a variant of what's recommended by "man perlrun" that
33621         invokes the first "perl" program from your shell's search path.
33622         * build-aux/gitlog-to-changelog: Replace #!... as above.
33623         Add a "Local Variables" perl mode setting.
33624         Prompted by a patch from Ludovic Courtès.
33625         Improved by Eric Blake.
33626         * build-aux/useless-if-before-free: Likewise.
33627         * build-aux/announce-gen: Likewise.
33628         * build-aux/update-copyright: Likewise.
33629
33630 2009-10-29  Eric Blake  <ebb9@byu.net>
33631
33632         filenamecat-lgpl: adjust clients
33633         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
33634         filenamecat.
33635         * modules/renameat (Depends-on): Likewise.
33636
33637         filenamecat: split into filenamecat-lgpl
33638         * modules/filenamecat-lgpl: New module.
33639         * modules/filenamecat (Files): Move library-safe files into
33640         filenamecat-lgpl.
33641         (Depends-on): Add filenamecat-lgpl.
33642         (configure.ac): Declare witness.
33643         * lib/filenamecat.h (file_name_concat): Only declare when using
33644         GPL module.
33645         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
33646         Move...
33647         * lib/filenamecat-lgpl.c: ...into new file.
33648         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
33649         (gl_FILE_NAME_CONCAT): Use it.
33650         * MODULES.html.sh (File system functions): Mention new module.
33651
33652         argp: avoid memory leak
33653         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
33654         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
33655         base_name, since the latter malloc()s and can call exit().
33656         Leak introduced 2006-07-03.
33657
33658         dirname-lgpl: adjust clients that don't need full dirname
33659         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
33660         * modules/filenamecat (Depends-on): Likewise.
33661         * modules/linkat (Depends-on): Likewise.
33662         * modules/mkancesdirs (Depends-on): Likewise.
33663         * modules/mkdir (Depends-on): Likewise.
33664         * modules/openat (Depends-on): Likewise.
33665         * modules/savewd (Depends-on): Likewise.
33666         * modules/rename (Depends-on): Likewise.
33667         (License): Relax license.
33668         * modules/mkdir-tests (Depends-on): Drop progname.
33669         (Makefile.am): Delete unneeded LDADD.
33670         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
33671
33672         dirname: split into dirname-lgpl
33673         * modules/dirname-lgpl: New module.
33674         * modules/dirname (Files): Move library-safe files into
33675         dirname-lgpl.
33676         (Depends-on): Add dirname-lgpl.
33677         (configure.ac): Declare witness.
33678         * modules/double-slash-root (License): Relax license.
33679         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
33680         module.
33681         * lib/dirname.c (dir_len, mdir_name): Move...
33682         * lib/dirname-lgpl.c: ...into new file.
33683         * lib/basename.c (last_component, base_len): Move...
33684         * lib/basename-lgpl.c: ...into new file.
33685         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
33686         (gl_DIRNAME): Use it.
33687         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
33688         Mention new module.
33689         * modules/dirname-tests (Depends-on): Add progname.
33690         * tests/test-dirname.c (program_name): Delete.
33691
33692         mkdir: make safe for libraries
33693         * modules/mkdir (Depends-on): Drop xalloc.
33694         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
33695         exit.
33696
33697         tests: avoid some compiler warnings
33698         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
33699         literals.
33700         * tests/test-memchr.c (main): Avoid type mismatch.
33701         * tests/test-arpa_inet.c (main): Avoid unused parameters.
33702         * tests/test-base64.c (main): Likewise.
33703         * tests/test-getdelim.c (main): Likewise.
33704         * tests/test-gethostname.c (main): Likewise.
33705         * tests/test-getline.c (main): Likewise.
33706         * tests/test-netinet_in.c (main): Likewise.
33707         * tests/test-select.c (open_server_socket, main): Likewise.
33708         * tests/test-select-stdin.c (main): Likewise.
33709         * tests/test-sockets.c (main): Likewise.
33710         * tests/test-strsignal.c (main): Likewise.
33711         * tests/test-sys_select.c (main): Likewise.
33712         * tests/test-sys_socket.c (main): Likewise.
33713         * tests/test-u64.c (main): Likewise.
33714         * tests/test-xfprintf-posix.c (main): Likewise.
33715         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
33716
33717         sockets: avoid compiler warning
33718         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
33719
33720         maint: detect usage(1) and other suspicious exits
33721         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
33722
33723 2009-10-29  Jim Meyering  <meyering@redhat.com>
33724
33725         timespec: long-to-int truncation could make timespec_cmp malfunction
33726         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
33727         a multiple of 2^32 nanoseconds as no difference.
33728
33729 2009-10-28  Jim Meyering  <meyering@redhat.com>
33730
33731         fprintftime: wrap macro code argument in "do {...} while(0)"
33732         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
33733         cpy macro must be a statement that can be followed by a semicolon.
33734         Now that the else clause contains a comment and is hence longer
33735         than one line, I require curly braces.  That in turn requires
33736         that we wrap this code block in the standard do...while(0).
33737
33738         fprintftime: remove stray semicolon from previous change
33739         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
33740
33741         fprintftime: avoid a warning about ignored fwrite return value
33742         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
33743         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
33744         that is unsafe.
33745         * modules/fprintftime (Depends-on): Add ignore-value.
33746
33747         exclude: avoid an unwarranted warning
33748         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
33749
33750 2009-10-27  Eric Blake  <ebb9@byu.net>
33751
33752         fseek: avoid compilation failure when fflush is replaced
33753         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
33754         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
33755         module is in use.
33756         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
33757         module is not in use; since REPLACE_FSEEK worked otherwise.
33758         (GNULIB_FTELLO): Likewise for ftell.
33759         Reported by Ian Beckwith and others.
33760
33761 2009-10-27  Bruno Haible  <bruno@clisp.org>
33762
33763         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
33764         Reported by Jim Meyering.
33765
33766 2009-10-27  Jim Meyering  <jim@meyering.net>
33767             Bruno Haible  <bruno@clisp.org>
33768
33769         Avoid warning despite dropping the return value of fwrite.
33770         * lib/unicodeio.c: Include ignore-value.h.
33771         (fwrite_success_callback): Explicitly ignore fwrite's return value.
33772         * modules/unicodeio (Depends-on): Add ignore-value.
33773
33774 2009-10-26  Eric Blake  <ebb9@byu.net>
33775
33776         areadlinkat: fix fallback path
33777         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
33778         pointer and zero.
33779
33780 2009-10-22  Pádraig Brady  <P@draigBrady.com>
33781
33782         Use a better IO block size for modern systems
33783         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
33784         * lib/md2.c: Likewise.
33785         * lib/md4.c: Likewise.
33786         * lib/md5.c: Likewise.
33787         * lib/sha1.c: Likewise.
33788         * lib/sha256.c: Likewise.
33789         * lib/sha512.c: Likewise.
33790
33791 2009-10-22  Eric Blake  <ebb9@byu.net>
33792
33793         tests: avoid several compiler warnings
33794         * tests/test-getcwd.c (main): Avoid buffer underflow.
33795         * tests/test-getdate.c (main): String literals are not safe with
33796         putenv, so use setenv.  Declare unused argument.
33797         * modules/getdate-tests (Depends-on): Add setenv.
33798         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
33799         problems with string literals in char *.
33800         * tests/test-hash.c (main): Avoid shadowing declaration.
33801         (insert_new): Treat string literals as char const *.
33802         * tests/test-getopt.h (test_getopt): Likewise.
33803         (getopt_loop): Alter types to minimize casting elsewhere.
33804         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
33805         (test_getopt_long_posix): Likewise.
33806         (do_getopt_long): Add wrapper to minimize casting.
33807         * tests/test-atexit.c (clear_temp_file): Use void.
33808         * tests/test-areadlink-with-size.c (main): Declare unused
33809         arguments.
33810         * tests/test-areadlink.c (main): Likewise.
33811         * tests/test-areadlinkat-with-size.c (main): Likewise.
33812         * tests/test-areadlinkat.c (main): Likewise.
33813         * tests/test-canonicalize-lgpl.c (main): Likewise.
33814         * tests/test-canonicalize.c (main): Likewise.
33815         * tests/test-dirent-safer.c (main): Likewise.
33816         * tests/test-dirname.c (main): Likewise.
33817         * tests/test-dup2.c (main): Likewise.
33818         * tests/test-fchdir.c (main): Likewise.
33819         * tests/test-fcntl-h.c (main): Likewise.
33820         * tests/test-fcntl-safer.c (main): Likewise.
33821         * tests/test-fdopendir.c (main): Likewise.
33822         * tests/test-fdutimensat.c (main): Likewise.
33823         * tests/test-fflush.c (main): Likewise.
33824         * tests/test-filenamecat.c (main): Likewise.
33825         * tests/test-filevercmp.c (main): Likewise.
33826         * tests/test-fopen-safer.c (main): Likewise.
33827         * tests/test-fopen.c (main): Likewise.
33828         * tests/test-fpending.c (main): Likewise.
33829         * tests/test-fpurge.c (main): Likewise.
33830         * tests/test-freading.c (main): Likewise.
33831         * tests/test-fstatat.c (main): Likewise.
33832         * tests/test-fsync.c (main): Likewise.
33833         * tests/test-futimens.c (main): Likewise.
33834         * tests/test-getndelim2.c (main): Likewise.
33835         * tests/test-gettimeofday.c (main): Likewise.
33836         * tests/test-getopt.c (main): Likewise.
33837         * tests/test-i-ring.c (main): Likewise.
33838         * tests/test-inttypes.c (main): Likewise.
33839         * tests/test-link.c (main): Likewise.
33840         * tests/test-lstat.c (main): Likewise.
33841         * tests/test-math.c (main): Likewise.
33842         * tests/test-md5.c (main): Likewise.
33843         * tests/test-memchr2.c (main): Likewise.
33844         * tests/test-memrchr.c (main): Likewise.
33845         * tests/test-mkdir.c (main): Likewise.
33846         * tests/test-mkdirat.c (main): Likewise.
33847         * tests/test-mkfifoat.c (main): Likewise.
33848         * tests/test-open.c (main): Likewise.
33849         * tests/test-openat-safer.c (main): Likewise.
33850         * tests/test-openat.c (main): Likewise.
33851         * tests/test-quotearg.c (main): Likewise.
33852         * tests/test-rawmemchr.c (main): Likewise.
33853         * tests/test-readlink.c (main): Likewise.
33854         * tests/test-remove.c (main): Likewise.
33855         * tests/test-rename.c (main): Likewise.
33856         * tests/test-renameat.c (main): Likewise.
33857         * tests/test-rmdir.c (main): Likewise.
33858         * tests/test-sha1.c (main): Likewise.
33859         * tests/test-signal.c (main): Likewise.
33860         * tests/test-sigaction.c (main): Likewise.
33861         * tests/test-stat.c (main): Likewise.
33862         * tests/test-stat-time.c (main): Likewise.
33863         * tests/test-stddef.c (main): Likewise.
33864         * tests/test-stdint.c (main): Likewise.
33865         * tests/test-stdio.c (main): Likewise.
33866         * tests/test-stdlib.c (main): Likewise.
33867         * tests/test-strchrnul.c (main): Likewise.
33868         * tests/test-strerror.c (main): Likewise.
33869         * tests/test-string.c (main): Likewise.
33870         * tests/test-strtod.c (main): Likewise.
33871         * tests/test-strverscmp.c (main): Likewise.
33872         * tests/test-symlink.c (main): Likewise.
33873         * tests/test-symlinkat.c (main): Likewise.
33874         * tests/test-sys_stat.c (main): Likewise.
33875         * tests/test-sys_time.c (main): Likewise.
33876         * tests/test-time.c (main): Likewise.
33877         * tests/test-unistd.c (main): Likewise.
33878         * tests/test-unlink.c (main): Likewise.
33879         * tests/test-unlinkat.c (main): Likewise.
33880         * tests/test-utimens.c (main): Likewise.
33881         * tests/test-utimensat.c (main): Likewise.
33882         * tests/test-version-etc.c (main): Likewise.
33883         * tests/test-wchar.c (main): Likewise.
33884         * tests/test-wctype.c (main): Likewise.
33885         * tests/test-xprintf-posix.c (main): Likewise.
33886         * tests/test-posixtm.c (main): Likewise.
33887         (STREQ): Delete unused macro.
33888         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
33889         shadowed variables.
33890         * tests/test-memchr.c (main): Likewise.
33891
33892 2009-10-21  Eric Blake  <ebb9@byu.net>
33893
33894         areadlinkat: avoid failure on older glibc
33895         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
33896         rather than mis-comparing 0 against FUNC_RESULT of char*.
33897
33898 2009-10-21  Bruno Haible  <bruno@clisp.org>
33899
33900         * modules/stpncpy (License): Relicense under LGPLv2+.
33901         Reported by David Lutterkort <lutter@redhat.com>.
33902
33903 2009-10-20  Eric Blake  <ebb9@byu.net>
33904
33905         utimensat: work around Solaris 9 bug
33906         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
33907         has trailing slash bugs.
33908         * tests/test-lutimens.h (test_lutimens): Enhance test.
33909         * tests/test-utimens.h (test_utimens): Likewise.
33910         * doc/posix-functions/utime.texi (utime): Enhance documentation.
33911         * doc/posix-functions/utimes.texi (utimes): Likewise.
33912         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
33913         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
33914         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
33915         * doc/posix-functions/futimens.texi (futimens): Likewise.
33916
33917         fdutimensat: new module
33918         * modules/fdutimensat: New file.
33919         * lib/fdutimensat.c (fdutimensat): Likewise.
33920         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
33921         * MODULES.html.sh (File system functions): Mention module.
33922         * modules/fdutimensat-tests: New test.
33923         * tests/test-fdutimensat.c: Likewise.
33924
33925         doc: regenerate INSTALL
33926         * doc/INSTALL: Reflect recent autoconf update.
33927         * doc/INSTALL.ISO: Likewise.
33928         * doc/INSTALL.UTF-8: Likewise.
33929
33930 2009-10-20  Pádraig Brady  <P@draigBrady.com>
33931
33932         acl: warn if ACL support is not detected
33933         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
33934
33935 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
33936
33937         * lib/nproc.h: Add extern "C" block for C++.
33938
33939 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
33940             Bruno Haible  <bruno@clisp.org>
33941
33942         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
33943         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
33944         * doc/posix-functions/isalpha.texi: Likewise.
33945         * doc/posix-functions/isblank.texi: Likewise.
33946         * doc/posix-functions/iscntrl.texi: Likewise.
33947         * doc/posix-functions/isdigit.texi: Likewise.
33948         * doc/posix-functions/isgraph.texi: Likewise.
33949         * doc/posix-functions/islower.texi: Likewise.
33950         * doc/posix-functions/isprint.texi: Likewise.
33951         * doc/posix-functions/ispunct.texi: Likewise.
33952         * doc/posix-functions/isspace.texi: Likewise.
33953         * doc/posix-functions/isupper.texi: Likewise.
33954         * doc/posix-functions/isxdigit.texi: Likewise.
33955
33956 2009-10-18  Bruno Haible  <bruno@clisp.org>
33957
33958         Tests for module 'isblank'.
33959         * modules/isblank-tests: New file.
33960         * tests/test-isblank.c: New file.
33961
33962         New module 'isblank'.
33963         * lib/isblank.c: New file.
33964         * m4/isblank.m4: New file.
33965         * modules/isblank: New file.
33966         * doc/posix-functions/isblank.texi: Mention the new module.
33967
33968 2009-10-18  Bruno Haible  <bruno@clisp.org>
33969
33970         New module 'ctype'.
33971         * lib/ctype.in.h: New file.
33972         * m4/ctype.m4: New file.
33973         * modules/ctype: New file.
33974         * doc/posix-headers/ctype.texi: Mention the new module.
33975
33976 2009-10-18  Jim Meyering  <meyering@redhat.com>
33977
33978         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
33979         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
33980         right after its initialization, rather than farther down.
33981         Keeping these in close proximity makes it easier to ensure
33982         that each such variable is initialized.  E.g.,
33983
33984             LIB_CLOCK_GETTIME=
33985             AC_SUBST([LIB_CLOCK_GETTIME])
33986
33987         This change also increments these serial numbers.
33988         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
33989         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
33990         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
33991
33992 2009-10-18  Bruno Haible  <bruno@clisp.org>
33993
33994         Don't let environment variables perturb build.
33995         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
33996         (gl_PREREQ_GETHRXTIME): ... not here.
33997
33998 2009-10-18  Bruno Haible  <bruno@clisp.org>
33999
34000         Avoid symlink attack in localcharset module.
34001         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
34002         (O_NOFOLLOW): Define fallback.
34003         (get_charset_aliases): Don't open the file if it is a symbolic link.
34004         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
34005         gl_FCNTL_H.
34006         (gl_FCNTL_H): Require it.
34007         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
34008         * modules/localcharset (Files): Add m4/fcntl_h.m4.
34009         Reported by Fergal Glynn <fglynn@veracode.com>.
34010
34011 2009-10-18  Bruno Haible  <bruno@clisp.org>
34012
34013         Implement nproc for mingw.
34014         * lib/nproc.c: Include <windows.h>
34015         (num_processors): On native Windows platforms, try GetSystemInfo.
34016
34017 2009-10-18  Bruno Haible  <bruno@clisp.org>
34018
34019         Implement nproc for IRIX.
34020         * lib/nproc.c: Include <sys/sysmp.h>.
34021         (num_processors): On IRIX systems, try sysmp.
34022         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
34023
34024 2009-10-18  Bruno Haible  <bruno@clisp.org>
34025
34026         Implement nproc for HP-UX.
34027         * lib/nproc.c: Include <sys/pstat.h>
34028         (num_processors): On HP-UX systems, try pstat_getdynamic.
34029         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
34030         pstat_getdynamic.
34031
34032 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
34033             Bruno Haible  <bruno@clisp.org>
34034
34035         Implement nproc for NetBSD, OpenBSD.
34036         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
34037         (ARRAY_SIZE): New macro.
34038         (num_processors): On BSD systems, try sysctl of HW_NCPU.
34039         * m4/nproc.m4: New file.
34040         * modules/nproc (Files): Add m4/nproc.m4.
34041         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
34042         (Makefile.am): Instead, augment lib_SOURCES.
34043
34044 2009-10-18  Bruno Haible  <bruno@clisp.org>
34045
34046         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
34047         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
34048         sys/param.h.
34049
34050 2009-10-16  Eric Blake  <ebb9@byu.net>
34051
34052         utimensat: new module
34053         * modules/utimensat: New file.
34054         * lib/utimensat.c (utimensat): Likewise.
34055         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
34056         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
34057         so we can work around Linux bugs.
34058         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
34059         * modules/sys_stat (Makefile.am): Substitute them.
34060         * lib/sys_stat.in.h (utimensat): Declare it.
34061         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
34062         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
34063         * modules/utimensat-tests: New test.
34064         * tests/test-utimensat.c: Likewise.
34065
34066         utimens: let lutimens work on non-symlinks
34067         * lib/utimens.c (lutimens): Fall back to utimens rather than
34068         failing with ENOSYS, when file is not a symlink.
34069         (utimens): Reduce redirection.
34070         * tests/test-lutimens.h (test_lutimens): Update test to cover
34071         non-symlinks.
34072         * tests/test-utimens.h (test_utimens): Update test to cover
34073         symlinks.
34074         * tests/test-utimens.c (main): Update caller.
34075
34076         utimens: cache whether utimensat syscall works
34077         * lib/utimens.c (utimensat_works_really): New cache variable.
34078         (fdutimens, lutimens): Use it to avoid failing syscall.
34079
34080         test-stat-time, test-utimens: improve portability
34081         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
34082         ext4 on alpha, and for cygwin.
34083         * tests/test-utimens-common.h: New file.
34084         (nap): Factor delays into single function.
34085         * tests/test-lutimens.h (test_lutimens): Use new header.
34086         * tests/test-futimens.h (test_futimens): Likewise.
34087         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
34088         timestamps to occur from same machine, as was done previously for
34089         test_utimens.
34090         * modules/utimens-tests (Files): Ship new file.
34091         * modules/futimens-tests (Files): Likewise.
34092         Reported in part by Jim Meyering.
34093
34094         sys_stat: sort replacement declarations
34095         * lib/sys_stat.in.h: Sort declarations.
34096         * lib/futimens.c (futimens): Fix typo.
34097
34098 2009-10-15  Jim Meyering  <meyering@redhat.com>
34099
34100         don't let environment settings perturb build
34101         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
34102         could cause a configure-time and/or build-time malfunction.
34103         Typically, a configure-time function-in-library test is performed
34104         via code like this:
34105
34106           LIB_VAR=
34107           AC_SUBST([LIB_VAR])
34108           prefix_saved_LIBS=$LIBS
34109             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
34110                        [test "$ac_cv_search_FUNC" = "none required" ||
34111                         LIB_VAR=$ac_cv_search_FUNC])
34112           LIBS=$prefix_saved_LIBS
34113
34114         However, in each of the files affected by this change, the LIB_VAR=
34115         initialization was omitted.  Thus, when set in the environment, its
34116         value would propagate into generated Makefiles when FUNC is not found
34117         in LIB_NAME.
34118         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
34119         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
34120         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
34121
34122 2009-10-14  Eric Blake  <ebb9@byu.net>
34123
34124         fchdir: avoid infinite recursion in mingw
34125         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
34126         recursing.
34127
34128         test-stat-time: port to mingw
34129         * tests/test-stat-time.c (force_unlink): Return a value.
34130         (test_ctime) [W32]: Fix compilation error.
34131         (nap): Don't call usleep with too large an argument.  Use
34132         force_unlink.
34133         * doc/pastposix-functions/usleep.texi (usleep): Document the
34134         portability issue.
34135
34136 2009-10-13  Jim Meyering  <meyering@redhat.com>
34137
34138         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
34139         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
34140         * modules/pipe-filter-ii: Likewise.
34141         * modules/sys_socket-tests: Likewise.
34142         * modules/tsearch-tests: Likewise.
34143         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
34144         (check): Depend on it.
34145
34146 2009-10-12  Eric Blake  <ebb9@byu.net>
34147
34148         utimens-tests: port to NFS file systems
34149         * tests/test-utimens.h (test_utimens): Refactor utimecmp
34150         comparisons to avoid spurious failures from timestamp drift
34151         between NFS machines.
34152
34153 2009-10-12  Eric Blake  <ebb9@byu.net>
34154
34155         stat-time-tests: minor cleanups
34156         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
34157         * tests/test-stat-time.c (nap): Separate assignment from call.
34158         Suggested by Paolo Bonzini and Bruno Haible.
34159
34160         sys_stat: guarantee struct timespec
34161         * lib/sys_stat.in.h (includes): Always include <time.h>
34162         * modules/sys_stat (Depends-on): Add time.
34163         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
34164         mode_t permission values.
34165         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
34166         get at subsecond timestamps.
34167
34168 2009-10-10  Eric Blake  <ebb9@byu.net>
34169
34170         futimens: new module
34171         * modules/futimens: New file.
34172         * lib/futimens.c (futimens): Likewise.
34173         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
34174         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
34175         we can work around Linux bugs.
34176         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
34177         * modules/sys_stat (Makefile.am): Substitute them.
34178         * lib/sys_stat.in.h (futimens): Declare it.
34179         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
34180         * doc/posix-functions/futimens.texi (futimens): Likewise.
34181         * modules/futimens-tests: New test.
34182         * tests/test-futimens.c: Likewise.
34183
34184         utimens: introduce fdutimens
34185         * lib/utimens.h (fdutimens): New prototype.
34186         * lib/utimens.c (gl_futimens): Move guts...
34187         (fdutimens): ...to new interface.
34188         * tests/test-utimens.c (do_fdutimens): Use it.
34189
34190         utimens: add UTIME_NOW and UTIME_OMIT support
34191         * lib/utimens.c (validate_timespec, update_timespec): New helper
34192         functions.
34193         (gl_futimens, lutimens): Use them.
34194         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
34195         stdbool, sys_stat.
34196         (Link): Mention resulting library dependency.
34197         * modules/utimecmp (Link): Likewise.
34198         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
34199         (Makefile.am): Pick up library dependency.
34200         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
34201         definition.
34202         * tests/test-sys_stat.c: Test the definitions.
34203         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
34204         * NEWS: Document library dependency.
34205
34206         utimecmp: support symlink timestamps
34207         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
34208         hashing when possible.  Use pathconf when available.
34209         (SYSCALL_RESOLUTION): Recognize tighter resolution.
34210         * modules/utimecmp (Depends-on): Add lstat.
34211
34212         utimens: add lutimens interface
34213         * lib/utimens.c (lutimens): New function.
34214         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
34215         * lib/utimens.h (lutimens): Declare new interface.
34216         * tests/test-utimens.c (main): Enhance test.
34217         * tests/test-lutimens.h (test_lutimens): New file.
34218         * modules/utimens-tests (Files): Distribute it.
34219         (Depends-on): Add symlink.
34220         (configure.ac): Check for usleep.
34221
34222         utimens: validate futimens usage
34223         * lib/utimens.c (gl_futimens): Require valid fd up front, using
34224         fewer syscalls on failure later on.  Avoid compiler warning on
34225         mingw.
34226         * modules/utimens (Depends-on): Add dup2.
34227
34228         utimens: add test
34229         * modules/utimens-tests: New test.
34230         * tests/test-utimens.h: New file.
34231         * tests/test-futimens.h: Likewise.
34232         * tests/test-utimens.c: Likewise.
34233
34234         doc: mention timestamp portability issues
34235         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
34236         instead.
34237         * doc/posix-functions/utime.texi (utime): Likewise.
34238         * doc/posix-functions/utimes.texi (utimes): Likewise.
34239         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
34240         instead.
34241         * doc/posix-functions/futimens.texi (futimens): Mention utimens
34242         module.
34243         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
34244         Mention weakness with symlink timestamps.
34245         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
34246         to utimensat/futimens instead.
34247         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
34248
34249         test-dup2: enhance test
34250         * tests/test-dup2.c (main): Also check AT_FDCWD.
34251
34252         test-stat-time: avoid more spurious failures
34253         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
34254         xfs; and avoid race if the two timestamps cross quantization edge.
34255
34256         relocatable: prefer 'file system' over 'filesystem'
34257         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
34258         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
34259         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
34260         * doc/relocatable.texi (Enabling Relocatability): Likewise.
34261         * lib/relocatable.c (compute_curr_prefix): Likewise.
34262
34263 2009-10-10  Jim Meyering  <meyering@redhat.com>
34264
34265         stat-time-tests: check for the usleep function
34266         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
34267
34268 2009-10-10  Bruno Haible  <bruno@clisp.org>
34269
34270         * modules/xnanosleep: Put the Link section after the Include section.
34271
34272 2009-10-09  Eric Blake  <ebb9@byu.net>
34273
34274         dup2: work around FreeBSD 6.1 bug
34275         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
34276         * doc/posix-functions/dup2.texi (dup2): Document it.
34277         Reported by Nelson H. F. Beebe and Jim Meyering.
34278
34279         test-stat-time: port to buggy NFS clients
34280         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
34281         (test_ctime): Also skip test if mtime and ctime are skewed.
34282
34283         maint: prefer 'file system' over 'filesystem'
34284         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
34285         * doc/posix-functions/lstat.texi (lstat): Likewise.
34286         * lib/file-has-acl.c (file_has_acl): Likewise.
34287         * lib/fwriteerror.c [TEST]: Likewise.
34288         * tests/test-areadlink.h (test_areadlink): Likewise.
34289         * tests/test-areadlinkat-with-size.c (main): Likewise.
34290         * tests/test-areadlinkat.c (main): Likewise.
34291         * tests/test-canonicalize-lgpl.c (main): Likewise.
34292         * tests/test-canonicalize.c (main): Likewise.
34293         * tests/test-fstatat.c (main): Likewise.
34294         * tests/test-linkat.c (main): Likewise.
34295         * tests/test-lstat.h (test_lstat_func): Likewise.
34296         * tests/test-mkdir.h (test_mkdir): Likewise.
34297         * tests/test-readlink.h (test_readlink): Likewise.
34298         * tests/test-remove.c (main): Likewise.
34299         * tests/test-rename.h (test_rename): Likewise.
34300         * tests/test-renameat.c (main): Likewise.
34301         * tests/test-rmdir.h (test_rmdir_func): Likewise.
34302         * tests/test-symlink.h (test_symlink): Likewise.
34303         * tests/test-symlinkat.c (main): Likewise.
34304         * tests/test-unlink.h (test_unlink_func): Likewise.
34305         * tests/test-unlinkat.c (main): Likewise.
34306
34307         maint: make realtime library usage explicit
34308         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
34309         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
34310         * modules/settime (Link): Likewise.
34311         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
34312
34313         test-stat-time: speed up execution
34314         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
34315         warning on mingw.
34316         (nap): New helper function.
34317         (prepare_test): Use it to reduce sleep time.
34318         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
34319         execution.
34320         * modules/stat-time-tests (configure.ac): Check for usleep.
34321
34322 2009-10-09  Jim Meyering  <meyering@redhat.com>
34323
34324         selinux-h: always use getfilecon wrappers
34325         * lib/getfilecon.c: New file.
34326         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
34327         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
34328         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
34329         (fgetfilecon): Provide a stub.
34330         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
34331         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
34332         file unconditionally.
34333         When <selinux/selinux.h> is found, arrange to use wrappers.
34334         * modules/selinux-h (Files): Add getfilecon.c.
34335         (Makefile.am): Substitute include-next-related bits
34336         into the now-always-generated selinux/selinux.h file.
34337         * doc/glibc-functions/lgetfilecon.texi: New file.
34338         * doc/glibc-functions/fgetfilecon.texi: New file.
34339         * doc/glibc-functions/getfilecon.texi: New file.
34340         * doc/glibc-functions/getfilecon-desc.texi: New file.
34341         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
34342         which to pull in the new files.
34343         * MODULES.html.sh (Misc): Add selinux-h.
34344
34345 2009-10-08  Jim Meyering  <meyering@redhat.com>
34346
34347         unistd: fix comment typo
34348         * lib/unistd.in.h (euidaccess): Fix a comment typo.
34349
34350 2009-10-08  Eric Blake  <ebb9@byu.net>
34351
34352         areadlink: use SIZE_MAX consistently
34353         * modules/areadlink (Depends-on): Add stdint.
34354         * modules/areadlink-with-size (Depends-on): Likewise.
34355         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
34356         gives NULL; drop sys/types, since unistd gives size_t; and add
34357         stdint for SIZE_MAX.
34358         (SIZE_MAX): Rely on headers.
34359         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
34360         and add stdint.
34361         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
34362         (SIZE_MAX): Likewise.
34363         (INITIAL_BUF_SIZE): Turn into enum.
34364         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
34365
34366 2009-10-08  Jim Meyering  <meyering@redhat.com>
34367
34368         areadlinkat: avoid compilation failure
34369         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
34370         Fix typo in comment.
34371
34372 2009-10-07  Eric Blake  <ebb9@byu.net>
34373
34374         areadlinkat-with-size: new module
34375         * modules/areadlinkat-with-size: New module.
34376         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
34377         * lib/areadlink.h (areadlinkat): Declare it.
34378         * MODULES.html.sh (File system functions): Mention it.
34379         * modules/areadlinkat-with-size-tests: New test.
34380         * tests/test-areadlinkat-with-size.c: New file.
34381
34382         xreadlinkat: new module
34383         * modules/xreadlinkat: New module.
34384         * lib/xreadlinkat.c (xreadlinkat): New file.
34385         * lib/xreadlink.h (xreadlinkat): Declare it.
34386         * MODULES.html.sh (File system functions): Mention it.
34387
34388         areadlinkat: new module
34389         * lib/at-func.c (FUNC_FAIL): New define.
34390         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
34391         * modules/areadlinkat: New module.
34392         * lib/linkat.c (areadlinkat): Move...
34393         * lib/areadlinkat.c (areadlinkat): ...to new file.
34394         * lib/areadlink.h (areadlinkat): Declare it.
34395         * modules/linkat (Depends-on): Add areadlinkat.
34396         * MODULES.html.sh (File system functions): Mention it.
34397         * modules/areadlinkat-tests: New test.
34398         * tests/test-areadlinkat.c: New file.
34399
34400         areadlink, areadlink-with-size: add tests
34401         * modules/areadlink-tests: New test.
34402         * modules/areadlink-with-size-tests: Likewise.
34403         * tests/test-areadlink.h: New file.
34404         * tests/test-areadlink.c: Likewise.
34405         * tests/test-areadlink-with-size.c: Likewise.
34406
34407         maint: minor cleanups
34408         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
34409         _UNUSED_PARAMETER_ instead.
34410         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
34411         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
34412         * modules/linkat-tests (Files): Distribute test-link.h.
34413
34414         openat, utimens: whitespace cleanup
34415         * lib/openat.c: Prefer space throughout, rather than mix of 8
34416         spaces vs. tabs.
34417         * lib/at-func.c: Likewise.
34418         * lib/utimens.c: Likewise.
34419
34420         openat: avoid using wrong fd
34421         * lib/openat.c (openat_permissive): Reject user's fd if saving the
34422         working directory chooses same fd.
34423         * lib/at-func.c (AT_FUNC_NAME): Likewise.
34424
34425         mkdir, mkdirat: fix cygwin 1.5.x bug
34426         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
34427         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
34428         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
34429         bug.
34430         (gl_PREREQ_MKDIR): Delete unused macro.
34431         * modules/mkdir (Files): Track file rename.
34432         (configure.ac): Update macro name.
34433         * modules/openat (Depends-on): Add mkdir.
34434         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
34435
34436         mkdir, mkdirat: add tests
34437         * modules/mkdir-tests: New test.
34438         * tests/test-mkdir.h: New file.
34439         * tests/test-mkdir.c: Likewise.
34440         * tests/test-mkdirat.c: Likewise.
34441         * modules/openat-tests (Files): Add new files.
34442         (Makefile.am): Run new test.
34443
34444 2009-10-06  Eric Blake  <ebb9@byu.net>
34445
34446         doc: tweak *at function documentation
34447         * doc/posix-functions/faccessat.texi (faccessat): Mention
34448         known issue with replacement.
34449         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
34450         * doc/posix-functions/linkat.texi (linkat): Likewise.
34451         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
34452         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
34453         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
34454         * doc/posix-functions/renameat.texi (renameat): Likewise.
34455         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
34456
34457         openat: fix GNU/Hurd bug in unlinkat
34458         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
34459         broken.
34460         * doc/posix-functions/unlink.texi (unlink): Document this.
34461         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
34462
34463         fdopendir: fix GNU/Hurd bug
34464         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
34465         allowing non-directory fds.
34466         * lib/fdopendir.c (rpl_fdopendir): Work around it.
34467         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
34468         * modules/dirent (Makefile.am): Substitute it.
34469         * lib/dirent.in.h (fdopendir): Declare replacement.
34470         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
34471         * tests/test-fdopendir.c (main): Test something other than
34472         /dev/null, since on Hurd that behaves like a directory.
34473
34474         test-symlink: port to GNU/Hurd
34475         * tests/test-symlink.h (test_symlink): Relax expected errno.
34476
34477         doc: tweak more cygwin information
34478         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
34479         now compatible with glibc.
34480         * doc/posix-functions/getopt.texi (getopt): Likewise.
34481
34482         getopt-gnu: add another test
34483         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
34484         guarantee behavior relied on by m4.
34485         * tests/test-getopt.c (main): Use it.
34486         * modules/getopt-posix-tests (Depends-on): Add setenv.
34487         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
34488
34489         getopt: fix compilation on darwin
34490         * lib/getopt.in.h (includes): Leave breadcrumbs during system
34491         include.
34492         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
34493         Reported by Ludovic Courtès.
34494
34495 2009-10-06  Bruno Haible  <bruno@clisp.org>
34496
34497         * modules/size_max (Description): Discourage its use.
34498         Reported by Simon Josefsson.
34499
34500 2009-10-06  Jim Meyering  <meyering@redhat.com>
34501
34502         linkat: avoid compilation failure
34503         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
34504
34505 2009-10-05  Eric Blake  <ebb9@byu.net>
34506
34507         linkat: support Linux 2.6.17
34508         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
34509         linkat on Linux, but allow cache variable override.
34510         * lib/linkat.c (rpl_linkat): Define override.
34511         * modules/linkat (Depends-on): Add symlinkat.
34512         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
34513         * modules/unistd (Makefile.am): Substitute it.
34514         * lib/unistd.in.h (linkat): Declare replacement.
34515         Reported by Pádraig Brady.
34516
34517         quotearg: port test to systems with C.UTF-8 locale
34518         * tests/test-quotearg.c (struct result_strings): Add another
34519         member, differentiating between C.ASCII and C.UTF-8 handling.
34520         (compare_strings): Add parameter.
34521         (main): Adjust all callers.
34522
34523         getopt: avoid clash with FreeBSD _getopt_internal
34524         * lib/getopt.in.h (_getopt_internal): Override the name.
34525         * lib/getopt_int.h (includes): Pick up any overrides.
34526         Reported by Reuben Thomas.
34527
34528         hash: allow C89 compilation
34529         * lib/hash.c (check_tuning): Move declaration before statement.
34530         Reported by Reuben Thomas.
34531
34532 2009-10-05  Karl Berry  <karl@gnu.org>
34533
34534         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
34535
34536 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
34537             Bruno Haible  <bruno@clisp.org>
34538
34539         * lib/uname.c (uname): Use a table-driven algorithm to compute
34540         Windows NT versions.
34541
34542 2009-10-04  Bruno Haible  <bruno@clisp.org>
34543
34544         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
34545         program_invocation_short_name.
34546         * modules/progname (configure.ac): Test for presence of
34547         program_invocation_short_name.
34548         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
34549
34550 2009-10-04  Bruno Haible  <bruno@clisp.org>
34551
34552         * lib/progname.c (set_program_name): Fix comment.
34553         Reported by Jim Meyering.
34554
34555 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
34556             Bruno Haible  <bruno@clisp.org>
34557
34558         * lib/uname.c: Include <string.h>.
34559         (uname): Do only one call to GetVersionEx in the common case.
34560
34561 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
34562             Bruno Haible  <bruno@clisp.org>
34563
34564         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
34565         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
34566         (uname): Add support for Windows CE and various non-x86 CPU types.
34567
34568 2009-10-03  Bruno Haible  <bruno@clisp.org>
34569
34570         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
34571         invocation to tests/configure.ac.
34572         Reported by Ian Beckwith <ianb@erislabs.net>.
34573
34574 2009-10-02  Eric Blake  <ebb9@byu.net>
34575
34576         fchdir: avoid compiler warning
34577         * lib/fchdir.c (canonicalize_file_name)
34578         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
34579
34580         test-open: support mingw errno values
34581         * tests/test-open.h (test_open): Relax test.
34582         * tests/test-fopen.h (test_fopen): Likewise.
34583         * tests/test-openat-safer.c (main): Likewise.
34584
34585         open: fix opening directory on mingw
34586         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
34587
34588         test-open: on GNU/Hurd, /dev/null is a directory
34589         * tests/test-fopen.h (main): Rename...
34590         (test_fopen): ...to this.  Use a guaranteed non-directory when
34591         confirming open behavior on trailing slash.
34592         * tests/test-openat-safer.c (main): Likewise.
34593         * tests/test-open.h (main): Likewise....
34594         (test_open): ...to this.
34595         * tests/test-fopen.c (main): Adjust caller.
34596         * tests/test-fopen-safer.c (main): Likewise.
34597         * tests/test-open.c (main): Likewise.
34598         * tests/test-fcntl-safer.c (main): Likewise.
34599         Reported by Samuel Thibault.
34600
34601         rename, fchdir: don't ignore chdir failure
34602         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
34603         * lib/rename.c (rpl_rename) [W32]: Likewise.
34604         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
34605         an empty destination directory if source cannot be renamed,
34606         although there is still possibility for failure.
34607         * doc/posix-functions/rename.texi (rename): Document the race.
34608         Reported by Jim Meyering.
34609
34610         maint: cleanup whitespace in recent commits
34611         * lib/rename.c (rpl_rename): Remove tabs.
34612         * tests/test-link.h (test_link): Likewise.
34613         * lib/fchdir.c (get_name): Likewise.
34614         Reported by Jim Meyering.
34615
34616 2009-10-02  Ben Pfaff  <blp@gnu.org>
34617
34618         relocatable-prog-wrapper: Add missing dependency on
34619         double-slash-root.
34620         * modules/relocatable-prog-wrapper: Add dependency.
34621         Reported by Ian Beckwith <ianb@erislabs.net>.
34622
34623 2009-10-02  Eric Blake  <ebb9@byu.net>
34624
34625         renameat: fix Solaris bugs
34626         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
34627         needed fixing.
34628         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
34629         * modules/stdio (Makefile.am): Substitute it.
34630         * lib/stdio.in.h (renameat): Declare replacement.
34631         * lib/renameat.c (rpl_renameat): Implement fix.
34632
34633         renameat: new module
34634         * modules/renameat: New file.
34635         * lib/renameat.c (renameat): Likewise.
34636         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
34637         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
34638         * modules/stdio (Makefile.am): Substitute them.
34639         * lib/stdio.in.h (renameat): Declare it.
34640         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
34641         * doc/posix-functions/renameat.texi (renameat): Likewise.
34642         * modules/renameat-tests: New test.
34643         * tests/test-renameat.c: Likewise.
34644
34645         rename: fix mingw bugs
34646         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
34647         directory overwrite bugs.
34648
34649         rename: fix another cygwin 1.5 bug
34650         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
34651         checks.
34652         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
34653         unnecessary cygwin workarounds.  Also work around bug with moving
34654         full directory onto an empty one.
34655         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
34656
34657         rename-dest-slash: merge into rename module
34658         * modules/rename-dest-slash (Status): Mark obsolete.
34659         (Depends-on): Add rename.
34660         (Files): Let rename do it all.
34661         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
34662         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
34663         * m4/rename-dest-slash.m4: ...so this file can be deleted.
34664         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
34665         * lib/rename.c (rpl_rename): Update comments.
34666
34667         rename: fix cygwin 1.5.x bugs
34668         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
34669         * lib/rename.c (rpl_rename): Work around them.
34670         * modules/rename (Depends-on): Add same-inode.
34671
34672         rename: fix Solaris 10 bug
34673         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
34674         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
34675         was the only bug.
34676
34677         rename: fix Solaris 9 bug
34678         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
34679         on non-directory.  Avoid calling exit.
34680         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
34681         strdup.
34682         * modules/rename-tests (Depends-on): Drop lstat.
34683         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
34684         (gl_PREREQ_RENAME): Delete unused macro.
34685
34686         rename-dest-slash: fix NetBSD bug
34687         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
34688         links.
34689         * modules/rename-dest-slash (Depends-on): Add same-inode.
34690
34691         rename-tests: new test, exposes several platform bugs
34692         * modules/rename-tests: New file.
34693         * tests/test-rename.h: Likewise.
34694         * tests/test-rename.c: Likewise.
34695         * doc/posix-functions/rename.texi (rename): Improve documentation,
34696         including bugs that will eventually be fixed in gnulib.
34697
34698 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
34699
34700         * lib/uname.c: Include <stdlib.h>
34701         (uname): Assume version info is available.
34702
34703 2009-10-02  Jim Meyering  <meyering@redhat.com>
34704
34705         gnu-web-doc-update: correct --help output
34706         * build-aux/gnu-web-doc-update: Make --help output relevant.
34707
34708         gnu-web-doc-update: add standard options
34709         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
34710
34711         gnu-web-doc-update: New module.
34712         Use this script to automatically update the on-line web documentation
34713         for your GNU project at http://www.gnu.org/software/$pkg/manual/
34714         * modules/gnu-web-doc-update: New file, from coreutils.
34715         * build-aux/gnu-web-doc-update: New script.
34716
34717 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
34718
34719         link: LoadLibrary is not needed.
34720         * lib/link.c: Use GetModuleHandle.
34721
34722 2009-10-01  Eric Blake  <ebb9@byu.net>
34723
34724         getopt: bump serial number
34725         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
34726         change.
34727
34728         tests: tighten link, rmdir, and remove tests
34729         * tests/test-link.h (includes): No need to use <config.h> here.
34730         Clean up if directory hard link was created, otherwise test for
34731         trailing '.'.
34732         * tests/test-linkat.c (main): Simplify.
34733         * tests/test-remove.c (main): Enhance test for trailing '.'.
34734         * tests/test-rmdir.h (test_rmdir_func): Likewise.
34735
34736 2009-10-01  Jim Meyering  <meyering@redhat.com>
34737
34738         maint.mk: requiring "make major" was annoying, for a "minor" release.
34739         What is intended is "stable", to contrast with alpha and beta,
34740         so require "make stable", not "make major".
34741         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
34742         (get_tool_versions): Likewise.
34743         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
34744
34745 2009-09-30  Ben Pfaff  <blp@gnu.org>
34746
34747         Fix broken build of replacement for Windows tmpfile().
34748         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
34749         flags argument added along with the 'mkostemp' module.
34750
34751 2009-09-28  Bruno Haible  <bruno@clisp.org>
34752
34753         Avoid identifier clash with POSIX function 'remove' defined as a macro.
34754         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
34755         to 'remove_elt'.
34756         (gl_list_remove): Update.
34757         * lib/gl_list.c (gl_list_remove): Update.
34758         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
34759         to 'remove_elt'.
34760         (gl_oset_remove): Update.
34761         * lib/gl_list.c (gl_oset_remove): Update.
34762         Reported by Eric Blake.
34763
34764 2009-09-28  Eric Blake  <ebb9@byu.net>
34765
34766         doc: mention yet more cygwin 1.7 status
34767         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
34768         cygwin.
34769         * doc/glibc-functions/execvpe.texi (execvpe): New file.
34770         * doc/gnulib.texi (Glibc unistd.h): Mention it.
34771
34772         argp: fix test failure
34773         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
34774         that are not upper-case.  Pass correct range to tolower.
34775
34776 2009-09-27  Jim Meyering  <meyering@redhat.com>
34777
34778         test-yesno: work around sparc-dash here-document infelicity
34779         Without this change, the literal \177 byte in a here document
34780         would make dash 0.5.5.1-3 access uninitialized memory.
34781         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
34782         Instead, use a marker, "@", and filter through tr to create the desired
34783         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
34784
34785 2009-09-27  Bruno Haible  <bruno@clisp.org>
34786
34787         Disable untested support for new flavours of ACLs on AIX.
34788         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
34789         progress.
34790         * lib/set-mode-acl.c (qset_acl): Likewise.
34791
34792 2008-12-07  Bruno Haible  <bruno@clisp.org>
34793
34794         Add support for new flavours of ACLs on AIX. (Untested.)
34795         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
34796         (file_has_acl): Add support for newer AIX.
34797         * lib/set-mode-acl.c (qset_acl): Likewise.
34798         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
34799         Rainer Tammer <tammer@tammer.net>.
34800
34801 2009-09-26  Eric Blake  <ebb9@byu.net>
34802
34803         argp: fix compilation of getopt
34804         * lib/getopt.in.h (includes): Use different guard than glibc.
34805         Reported by Sergey Poznyakoff.
34806
34807         doc: mention more cygwin 1.7 status
34808         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
34809         bug.
34810         * doc/posix-functions/execl.texi (execl): Likewise.
34811         * doc/posix-functions/execle.texi (execle): Likewise.
34812         * doc/posix-functions/execlp.texi (execlp): Likewise.
34813         * doc/posix-functions/execv.texi (execv): Likewise.
34814         * doc/posix-functions/execve.texi (execve): Likewise.
34815         * doc/posix-functions/execvp.texi (execvp): Likewise.
34816         * doc/glibc-functions/canonicalize_file_name.texi
34817         (canonicalize_file_name): Cygwin 1.7 now provides this.
34818         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
34819         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
34820         on AT_SYMLINK_NOFOLLOW.
34821
34822 2009-09-24  Eric Blake  <ebb9@byu.net>
34823
34824         test-linkat: make test more robust
34825         * tests/test-linkat.c (main): Avoid collision with EEXIST.
34826
34827         getopt: fix inclusion guards for cygwin
34828         * modules/getopt-posix (Depends-on): Add include-next.
34829         (Makefile.am): Substitute more items in replacement header.
34830         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
34831         <getopt.h>.
34832         * lib/getopt.in.h (includes): Use split inclusion guard, and
34833         prefer <getopt.h> over include <unistd.h> when one is present.
34834         (option): Also override name of 'struct option'.
34835
34836         same-inode: revert prior change; it is not yet ready
34837         * NEWS: Undo mention of this change.
34838         * lib/same-inode.h (same-inode.h): Undo tri-state change.
34839         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
34840         * lib/cycle-check.c (cycle_check): Likewise.
34841         * lib/same.c (same_name): Likewise.
34842         * lib/at-func2.c (at_func2): Likewise.
34843
34844 2009-09-23  Eric Blake  <ebb9@byu.net>
34845
34846         linkat: new module
34847         * modules/linkat: New file.
34848         * lib/at-func2.c (at_func2): Likewise.
34849         * lib/linkat.c (linkat): Likewise.
34850         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
34851         * lib/openat-priv.h (at_func2): Add declaration.
34852         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
34853         * modules/unistd (Makefile.am): Substitute them.
34854         * lib/unistd.in.h (linkat): Declare it.
34855         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
34856         * doc/posix-functions/linkat.texi (linkat): Likewise.
34857         * doc/posix-functions/link.texi (link): Tweak wording.
34858         * tests/test-link.c (main): Move guts...
34859         * tests/test-link.h (test_link): ...into new file.
34860         * modules/linkat-tests: New test.
34861         * tests/test-linkat.c: Likewise.
34862         * modules/link-tests (Files): Ship new file.
34863         (Depends-on): Add stdbool.
34864
34865         dirname: add library-safe mdir_name
34866         * lib/dirname.h (mdir_name): New prototype.
34867         * lib/dirname.c (dir_name): Move guts...
34868         (mdir_name): ...to new function that avoids xalloc_die.
34869
34870         fchdir: another mingw fix
34871         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
34872         * lib/fchdir.c (get_name): New helper method; skips canonicalize
34873         on mingw (where it has not yet been ported), and make it optional
34874         elsewhere.
34875         (_gl_register_fd): Use it.
34876
34877         same-inode: make SAME_INODE tri-state, to port to mingw
34878         * NEWS: Mention this change.
34879         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
34880         st_ino always being 0.
34881         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
34882         * lib/cycle-check.c (cycle_check): Likewise.
34883         * lib/same.c (same_name): Likewise.
34884
34885         lstat: avoid mingw compilation error
34886         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
34887         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
34888         lstat ourselves.
34889         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
34890         was adequate.
34891         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
34892         the checks for lstat.
34893         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
34894
34895         link: fix test failure on Solaris 9
34896         * lib/link.c (rpl_link): Don't assume link will catch bogus
34897         trailing slash on source.
34898
34899         test-symlinkat: enhance test
34900         * tests/test-readlink.c (main): Move guts...
34901         * tests/test-readlink.h (test_readlink): ...into new file.
34902         * tests/test-symlink.c (main): Move guts...
34903         * tests/test-symlink.h (test_symlink): ...into new file.
34904         * tests/test-symlinkat.c (main): Use new files for further
34905         coverage.
34906         (do_symlink, do_readlink): New helper functions.
34907         * modules/symlink-tests (Files): Ship new file.
34908         (Depends-on): Add stdbool.
34909         * modules/readlink-tests (Files): Ship new file.
34910         (Depends-on): Add stdbool.
34911         * modules/symlinkat-tests (Files): Use new files.
34912
34913 2009-09-23  Eric Blake  <ebb9@byu.net>
34914
34915         readlink: document portability issue with symlink length
34916         * doc/posix-functions/lstat.texi (lstat): Mention that some file
34917         systems have bogus st_size on symlinks, and mention the
34918         areadlink-with-size module.
34919         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
34920         * doc/posix-functions/readlink.texi (readlink): Mention the
34921         areadlink module, and ERANGE failure.
34922         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
34923         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
34924
34925         readlink: fix Solaris 9 bug with trailing slash
34926         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
34927         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
34928         * doc/posix-functions/readlink.texi (readlink): Document this.
34929         * modules/readlink-tests: New test.
34930         * tests/test-readlink.c: Likewise.
34931
34932         readlink: fix cygwin 1.5.x bug with return type
34933         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
34934         * lib/unistd.in.h (readlink): Use ssize_t.
34935         * lib/readlink.c (readlink): Likewise.
34936         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
34937         * modules/unistd (Makefile.am): Substitute it.
34938         * lib/unistd.in.h (readlink): Declare replacement.
34939         * doc/posix-functions/readlink.texi (readlink): Document this.
34940
34941         symlink: use throughout gnulib
34942         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
34943         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
34944         symlink is not used.
34945         * modules/symlinkat (Depends-on): Add symlink.
34946         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
34947         * modules/canonicalize-tests (Depends-on): Likewise.
34948         * modules/lstat-tests (Depends-on): Likewise.
34949         * modules/openat-tests (Depends-on): Likewise.
34950         * modules/remove-tests (Depends-on): Likewise.
34951         * modules/rmdir-tests (Depends-on): Likewise.
34952         * modules/unlink-tests (Depends-on): Likewise.
34953         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
34954         * tests/test-canonicalize.c (symlink): Likewise.
34955         * tests/test-fstatat.c (symlink): Likewise.
34956         * tests/test-lstat.c (symlink): Likewise.
34957         * tests/test-remove.c (symlink): Likewise.
34958         * tests/test-rmdir.c (symlink): Likewise.
34959         * tests/test-unlink.c (symlink): Likewise.
34960         * tests/test-unlinkat.c (symlink): Likewise.
34961
34962         symlink: new module, for Solaris 9 bug
34963         * modules/symlink: New file.
34964         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
34965         * lib/symlink.c: Likewise.
34966         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
34967         * modules/unistd (Makefile.am): Substitute them.
34968         * lib/unistd.in.h (symlink): Declare replacement.
34969         * MODULES.html.sh (File system functions): Mention it.
34970         * doc/posix-functions/symlink.texi (symlink): Likewise.
34971         * modules/symlink-tests: New test.
34972         * tests/test-symlink.c: Likewise.
34973
34974 2009-09-23  Bruno Haible  <bruno@clisp.org>
34975
34976         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
34977         when needed.
34978         Test case: gnulib-tool --import --with-tests atexit inttypes.
34979         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
34980
34981 2009-09-23  Bruno Haible  <bruno@clisp.org>
34982
34983         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
34984         subcommand, not in a subshell.
34985
34986 2009-09-22  Eric Blake  <ebb9@byu.net>
34987
34988         unistd: sort replacement declarations
34989         * lib/unistd.in.h: Sort declarations.
34990
34991         open, openat: minor optimization
34992         * lib/open.c (open): If open succeeded, len is non-zero.
34993         * lib/openat.c (rpl_openat): Likewise.
34994
34995         link-follow: ensure correct result
34996         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
34997         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
34998         distinguish between possible failures.
34999
35000 2009-09-21  Eric Blake  <ebb9@byu.net>
35001
35002         fts: avoid compiler warning
35003         * lib/fts.c (dirent_inode_sort_may_be_useful)
35004         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
35005
35006 2009-09-19  Bruno Haible  <bruno@clisp.org>
35007
35008         * lib/progreloc.c (canonicalize_file_name): New declaration.
35009
35010 2009-09-19  Eric Blake  <ebb9@byu.net>
35011
35012         link: fix quoting
35013         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
35014
35015         openat: fix openat bugs on Solaris 9
35016         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
35017         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
35018         * modules/openat (Depends-on): Add open.
35019         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
35020         * modules/fcntl-h (Makefile.am): Substitute it.
35021         * lib/fcntl.in.h (openat): Declare replacement.
35022         * doc/posix-functions/openat.texi (openat): Document this.
35023
35024         openat: move fstatat and unlinkat into correct files
35025         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
35026         compiled.
35027         * lib/openat.c (fstatat, unlinkat): Move...
35028         * lib/fstatat.c (fstatat): ...into correct files.
35029         * lib/unlinkat.c (unlinkat): Likewise.
35030
35031         openat: fix unlinkat bugs on Solaris 9
35032         * lib/unlinkat.c (unlinkat): New file.
35033         * modules/openat (Depends-on): Add unlink.
35034         (Files): Distribute it.
35035         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
35036         trailing slash behavior is broken.
35037         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
35038         * modules/unistd (Makefile.am): Substitute it.
35039         * lib/unistd.in.h (unlinkat): Declare replacement.
35040         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
35041
35042         openat: fix fstatat bugs on Solaris 9
35043         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
35044         stat.
35045         * doc/posix-functions/fstatat.texi (fstatat): Document this.
35046
35047         test-unlinkat: enhance test, to expose Solaris 9 bug
35048         * tests/test-unlink.c (main): Factor guts...
35049         * tests/test-unlink.h (test_rmdir_func): ...into new file.
35050         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
35051         * tests/test-rmdir.c (main): Adjust caller.
35052         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
35053         (unlinker): New helper function.
35054         (rmdirat): Enhance check.
35055         * modules/rmdir-tests (Depends-on): Add stdbool.
35056         * modules/unlink-tests (Depends-on): Likewise.
35057         (Files): Add test-unlink.h.
35058         * modules/openat-tests (Files): Likewise.
35059         (Depends-on): Add unlinkdir.
35060
35061         test-fstatat: new test, to expose Solaris 9 bugs
35062         * tests/test-stat.c (main): Factor guts...
35063         * tests/test-stat.h (test_stat_func): ...into new file.
35064         * tests/test-lstat.c (main): Factor guts...
35065         * tests/test-lstat.h (test_lstat_func): ...into new file.
35066         * tests/test-fstatat.c: New file.
35067         * modules/stat-tests (Files): Add test-stat.h.
35068         * modules/lstat-tests (Files): Add test-lstat.h.
35069         (Depends-on): Add stdbool.
35070         * modules/openat-tests (Depends-on): Add pathmax.
35071         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
35072         (Makefile.am): Run new test.
35073
35074         remove: new module, for mingw and Solaris 9 bugs
35075         * modules/remove: New file.
35076         * lib/remove.c: Likewise.
35077         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
35078         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
35079         * modules/stdio (Makefile.am): Use them.
35080         * lib/stdio.in.h (remove): Declare replacement.
35081         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
35082         * doc/posix-functions/remove.texi (remove): Likewise.
35083         * modules/remove-tests: New test.
35084         * tests/test-remove.c: Likewise.
35085
35086         unlink: new module, for Solaris 9 bug
35087         * modules/unlink: New file.
35088         * lib/unlink.c: Likewise.
35089         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
35090         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
35091         * modules/unistd (Makefile.am): Use them.
35092         * lib/unistd.in.h (stat): Declare replacement.
35093         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
35094         * doc/posix-functions/unlink.texi (unlink): Likewise.
35095         * modules/unlink-tests: New test.
35096         * tests/test-unlink.c: Likewise.
35097
35098         lstat: fix Solaris 9 bug
35099         * lib/lstat.c (lstat): Also check for trailing slash on
35100         non-symlink, non-directories.  Use stat module to simplify logic.
35101         * doc/posix-functions/lstat.texi (lstat): Document it.
35102         * modules/lstat-tests (Depends-on): Add errno, same-inode.
35103         (configure.ac): Check for symlink.
35104         * tests/test-lstat.c (main): Add more tests.
35105
35106         stat: add as dependency to other modules
35107         * modules/chown (Depends-on): Add stat.
35108         * modules/euidaccess (Depends-on): Likewise.
35109         * modules/fchdir (Depends-on): Likewise.
35110         * modules/isdir (Depends-on): Likewise.
35111         * modules/link (Depends-on): Likewise.
35112         * modules/lstat (Depends-on): Likewise.
35113         * modules/mkdir-p (Depends-on): Likewise.
35114         * modules/modechange (Depends-on): Likewise.
35115         * modules/open (Depends-on): Likewise.
35116         * modules/readlink (Depends-on): Likewise.
35117         * modules/same (Depends-on): Likewise.
35118
35119         stat: fix Solaris 9 bug
35120         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
35121         slash.
35122         * lib/stat.c (rpl_stat): Work around it.
35123         * doc/posix-functions/stat.texi (stat): Update documentation.
35124
35125         stat: new module, for mingw bug
35126         * modules/stat: New file.
35127         * lib/stat.c: Likewise.
35128         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
35129         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
35130         * modules/sys_stat (Makefile.am): Use them.
35131         * lib/sys_stat.in.h (stat): Declare replacement.
35132         * lib/openat.c (fstatat): Deal with lstat and stat being function
35133         macros.
35134         * modules/openat (Depends-on): Add inline.
35135         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
35136         * doc/posix-functions/stat.texi (stat): Likewise.
35137         * modules/stat-tests: New test.
35138         * tests/test-stat.c: Likewise.
35139
35140 2009-09-19  Jim Meyering  <meyering@redhat.com>
35141
35142         syntax-check: detect unnecessary inclusion of canonicalize.h
35143         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
35144
35145 2009-09-19  Eric Blake  <ebb9@byu.net>
35146
35147         canonicalize-lgpl: adjust clients to use correct header
35148         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
35149         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
35150         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
35151         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
35152         * lib/progreloc.c (includes): Likewise.
35153
35154 2009-09-19  Jim Meyering  <meyering@redhat.com>
35155
35156         test-posixtm.c: correct a comment
35157         * tests/test-posixtm.c: Correct first-line comment.
35158         Spotted by Eric Blake.
35159
35160 2009-09-16  Jim Meyering  <meyering@redhat.com>
35161
35162         posixtm-tests: make T const-correct; add a test case
35163         * tests/test-posixtm.c (T): Declare const.
35164         Add a test for -(2^31+1).
35165         Remove useless can-succeed-only-in-2002 test.
35166
35167         posixtm-tests: adjust the sole failing test
35168         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
35169         expected output matches what mktime now produces.  Cross-checked via
35170         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
35171
35172         posixtm: move #ifdef'd tests into a new module
35173         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
35174         * tests/test-posixtm.c: ... this new file.
35175         * modules/posixtm-tests: New module.
35176
35177 2009-09-19  Eric Blake  <ebb9@byu.net>
35178
35179         openat: simplify use of at-func.c
35180         * lib/at-func.c (includes): Include prerequisites here, to
35181         simplify requirements on client files.
35182         * lib/openat-priv.h: Add double-inclusion guard.
35183         * lib/faccessat.c (includes): Simplify.
35184         * lib/fchmodat.c (includes): Likewise.
35185         * lib/fchownat.c (includes): Likewise.
35186         * lib/mkdirat.c (includes): Likewise.
35187         * lib/mkfifoat.c (includes): Likewise.
35188         * lib/symlinkat.c (includes): Likewise.
35189
35190         openat: allow return of fd 0
35191         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
35192         * modules/save-cwd (Depends-on): Replace fcntl-safer with
35193         unistd-safer.
35194         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
35195         <fcntl.h>; this module does not leak fds.
35196         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
35197         must be allowed to return 0, leaving openat_safer to add the
35198         safety.
35199         (openat_permissive): Avoid writing to just-opened fd 2 if
35200         restoring the current directory fails.
35201         * lib/openat-die.c (openat_restore_fail): Add comment.
35202         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
35203         (save_cwd): Guarantee safe fd, but without use of open_safer.
35204         * tests/test-openat.c: New test.
35205         * modules/openat-tests (Files, Makefile.am): Distribute and build
35206         new file.
35207
35208         relocatable-prog-wrapper: fix build
35209         * modules/relocatable-prog-wrapper (Files): Update name of
35210         canonicalize m4 file, broken on 2009-09-17.
35211         Reported by emad hajjar <aleppos@hotmail.com>.
35212
35213 2009-09-19  Bruno Haible  <bruno@clisp.org>
35214
35215         * lib/safe-alloc.h: Use the standard header with GPL copyright.
35216         * lib/safe-alloc.c: Likewise.
35217         Reported by Ian Beckwith <ianb@erislabs.net>.
35218
35219 2009-09-18  Bruno Haible  <bruno@clisp.org>
35220
35221         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
35222         Reported by <erobles@sensacd.com.mx>.
35223
35224 2009-09-17  Eric Blake  <ebb9@byu.net>
35225
35226         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
35227         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
35228         slashes when checking if last component is missing.
35229         * tests/test-canonicalize.c (main): Test this.
35230
35231         canonicalize, canonicalize-lgpl: honor // if distinct from /
35232         * modules/canonicalize (Files): Add double-slash-root.m4.
35233         * modules/canonicalize-lgpl (Files): Likewise.
35234         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
35235         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
35236         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
35237         fallback definition.
35238         (canonicalize_filename_mode): Use it to protect //.
35239         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
35240         (__realpath): Likewise.
35241         * tests/test-canonicalize.c (main): Test this.
35242         * tests/test-canonicalize-lgpl.c (main): Likewise.
35243         * modules/canonicalize-tests (Depends-on): Add same-inode.
35244         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
35245
35246         canonicalize-lgpl: fix glibc bug with trailing slash
35247         * m4/canonicalize-lgpl.m4: Move contents...
35248         * m4/canonicalize.m4: ...here.
35249         (gl_CANONICALIZE_LGPL): Factor realpath check...
35250         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
35251         glibc 2.3.5 bug, fixed 2005-04-27.
35252         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
35253         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
35254         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
35255         * modules/canonicalize-lgpl (Files): Manage file rename.
35256         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
35257         * modules/stdlib (Makefile.am): Substitute witness.
35258         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
35259         is needed.
35260         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
35261         replacement is required.
35262         * lib/canonicalize.c (canonicalize_file_name): Likewise.
35263         * doc/glibc-functions/canonicalize_file_name.texi
35264         (canonicalize_file_name): Document this.
35265         * doc/posix-functions/realpath.texi (realpath): Likewise.
35266
35267         canonicalize-lgpl: reject non-directory with trailing slash
35268         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
35269         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
35270         catches failures in glibc 2.3.5.
35271         * tests/test-canonicalize.c (main): Likewise.
35272
35273         canonicalize-lgpl: use native realpath if it works
35274         * lib/canonicalize-lgpl.c (realpath): Guard with
35275         FUNC_REALPATH_WORKS.
35276         * lib/stdlib.in.h (realpath): Make declaration optional based on
35277         HAVE_REALPATH.
35278         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
35279         native realpath works.
35280         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
35281         * modules/stdlib (Makefile.am): Substitute witness.
35282
35283         canonicalize, canonicalize-lgpl: use <stdlib.h>
35284         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
35285         (Include): Mention <stdlib.h>.
35286         (configure.ac): Mention functions we provide.
35287         * modules/canonicalize (configure.ac): Likewise.
35288         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
35289         realpath if canonicalize_file_name is missing.
35290         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
35291         * modules/stdlib (Makefile.am): Substitute witnesses.
35292         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
35293         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
35294         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
35295         * NEWS: Document this.
35296         * doc/glibc-functions/canonicalize_file_name.texi
35297         (canonicalize_file_name): Likewise.
35298         * doc/posix-functions/realpath.texi (realpath): Likewise.
35299         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
35300
35301         test-canonicalize: consolidate into single C program
35302         * tests/test-canonicalize.sh: Delete; move setup into...
35303         * tests/test-canonicalize.c (main): ...the program, making it
35304         easier to run in debugger.  Add some tests.
35305         * modules/canonicalize-tests (Files): Remove unused file.
35306         (Depends-on): Add progname.
35307         (configure.ac, Makefile.am): Simplify.
35308
35309         test-canonicalize-lgpl: consolidate into single C program
35310         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
35311         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
35312         easier to run in debugger.  Add some tests.
35313         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
35314         (configure.ac, Makefile.am): Simplify.
35315
35316         canonicalize: avoid resolvepath
35317         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
35318         unnecessary checks.
35319         * lib/canonicalize.c (includes): Simplify.
35320         (canonicalize_file_name): Drop resolvepath implementation.
35321         * modules/canonicalize (Depends-on): Drop filenamecat.
35322
35323         canonicalize: don't lose errno
35324         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
35325         over calls to free.
35326
35327         canonicalize: simplify errno handling
35328         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
35329         assignment.
35330
35331         canonicalize, canonicalize-lgpl: update module dependencies
35332         * modules/canonicalize (Depends-on): Add extensions, lstat,
35333         pathmax, stdlib.
35334         (Files): Drop pathmax.h.
35335         (configure.ac): Adjust macro name.
35336         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
35337         lstat, stdlib, sys_stat.
35338         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
35339         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
35340         extensions.
35341         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
35342         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
35343         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
35344         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
35345         declaration, if available.
35346         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
35347         we can rely on the readlink module.
35348         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
35349         (includes): Use <unistd.h> unconditionally.
35350
35351 2009-09-17  Eric Blake  <ebb9@byu.net>
35352
35353         maint: make Include sections of modules consistent
35354         * modules/alloca: Use only header name; no need to list #include.
35355         * modules/alloca-opt: Likewise.
35356         * modules/arpa_inet: Likewise.
35357         * modules/canon-host: Likewise.
35358         * modules/configmake: Likewise.
35359         * modules/dirent: Likewise.
35360         * modules/eealloc: Likewise.
35361         * modules/environ: Likewise.
35362         * modules/fchdir: Likewise.
35363         * modules/fcntl: Likewise.
35364         * modules/fcntl-h: Likewise.
35365         * modules/gethrxtime: Likewise.
35366         * modules/gettime: Likewise.
35367         * modules/ignore-value: Likewise.
35368         * modules/inet_ntop: Likewise.
35369         * modules/inet_pton: Likewise.
35370         * modules/inttypes: Likewise.
35371         * modules/isnand-nolibm: Likewise.
35372         * modules/isnanf-nolibm: Likewise.
35373         * modules/mbchar: Likewise.
35374         * modules/mbfile: Likewise.
35375         * modules/mbiter: Likewise.
35376         * modules/mbuiter: Likewise.
35377         * modules/netdb: Likewise.
35378         * modules/netinet_in: Likewise.
35379         * modules/nproc: Likewise.
35380         * modules/pagealign_alloc: Likewise.
35381         * modules/poll: Likewise.
35382         * modules/printf-frexp: Likewise.
35383         * modules/pthread: Likewise.
35384         * modules/putenv: Likewise.
35385         * modules/random_r: Likewise.
35386         * modules/relocatable-prog: Likewise.
35387         * modules/search: Likewise.
35388         * modules/select: Likewise.
35389         * modules/selinux-h: Likewise.
35390         * modules/settime: Likewise.
35391         * modules/signal: Likewise.
35392         * modules/size_max: Likewise.
35393         * modules/socklen: Likewise.
35394         * modules/ssize_t: Likewise.
35395         * modules/stdarg: Likewise.
35396         * modules/stdbool: Likewise.
35397         * modules/stddef: Likewise.
35398         * modules/stdint: Likewise.
35399         * modules/stdio: Likewise.
35400         * modules/stdlib: Likewise.
35401         * modules/string: Likewise.
35402         * modules/strings: Likewise.
35403         * modules/sys_file: Likewise.
35404         * modules/sys_ioctl: Likewise.
35405         * modules/sys_select: Likewise.
35406         * modules/sys_socket: Likewise.
35407         * modules/sys_stat: Likewise.
35408         * modules/sys_time: Likewise.
35409         * modules/sys_times: Likewise.
35410         * modules/sys_utsname: Likewise.
35411         * modules/sys_wait: Likewise.
35412         * modules/sysexits: Likewise.
35413         * modules/time: Likewise.
35414         * modules/times: Likewise.
35415         * modules/tmpfile: Likewise.
35416         * modules/trim: Likewise.
35417         * modules/unistd: Likewise.
35418         * modules/wchar: Likewise.
35419         * modules/wctype: Likewise.
35420
35421 2009-09-17  Bruno Haible  <bruno@clisp.org>
35422
35423         Make getdate.y compile on QNX and NetBSD 5 / i386.
35424         * m4/getdate.m4 (gl_GETDATE): Conditionally define
35425         TIME_T_FITS_IN_LONG_INT.
35426         * lib/getdate.y (long_time_t): New type.
35427         (relative_time): Change type of 'seconds' field to long_time_t.
35428         (get_date): Update types of local variables. Check against overflow
35429         during conversion from long_time_t to time_t.
35430         Reported by Matt Kraai <kraai@ftbfs.org>
35431         and Hasso Tepper <hasso@netbsd.org>.
35432
35433 2009-09-17  Bruno Haible  <bruno@clisp.org>
35434
35435         * modules/COPYING: Update copyright years.
35436         * modules/README: Likeiwse.
35437         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
35438         Reported by Ian Beckwith <ianb@erislabs.net>.
35439
35440 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
35441
35442         * users.txt: Update references for gnuit package.
35443
35444 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
35445
35446         * m4/getdelim.m4: Fix typo in copyright line.
35447
35448 2009-09-17  Bruno Haible  <bruno@clisp.org>
35449
35450         * lib/atoll.c: Use the standard header with GPL copyright.
35451         * lib/argz.in.h: Likewise.
35452         * lib/glob.c: Likewise.
35453         * lib/glob-libc.h: Likewise.
35454         * lib/random_r.c: Likewise.
35455         * lib/siglist.h: Likewise.
35456         * lib/strsignal.c: Likewise.
35457         Reported by Ian Beckwith <ianb@erislabs.net>.
35458
35459 2009-09-17  Eric Blake  <ebb9@byu.net>
35460
35461         rmdir: ensure correct dependency order
35462         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
35463
35464 2009-09-17  Bruno Haible  <bruno@clisp.org>
35465
35466         Disable assertion that fails on NetBSD 5 / i386.
35467         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
35468         Reported by Sam Steingold <sds@gnu.org>
35469         and Hasso Tepper <hasso@netbsd.org>.
35470
35471 2009-09-16  Eric Blake  <ebb9@byu.net>
35472
35473         unlinkdir: port to mingw
35474         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
35475         on which no one can unlink a directory.
35476
35477         stdlib: sort witness names
35478         * modules/stdlib (Makefile.am): Sort replacements.
35479         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
35480         * lib/stdlib.in.h: Likewise.
35481
35482         parse-duration-tests: avoid link failure
35483         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
35484         LIBINTL.
35485         Reported by Tom G. Christensen.
35486
35487         openat-tests: ensure unlinkat behaves like rmdir
35488         * tests/test-rmdir.c (main): Factor guts...
35489         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
35490         * modules/rmdir-tests (Files): Ship new file.
35491         * modules/openat-tests: New test.
35492         * tests/test-unlinkat.c: Likewise.
35493
35494         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
35495         * modules/rmdir-errno (Status, Notice): Now obsolete.
35496
35497         rmdir: work around cygwin 1.5.x and mingw bugs
35498         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
35499         * lib/rmdir.c (rmdir): Work around it.
35500         * modules/rmdir (Status, Notice): No longer obsolete.
35501         (Files): Add dos.m4.
35502         (Depends-on): Add unistd.
35503         (configure.ac): Set witnesses.
35504         (License): Relax to LGPLv2+.
35505         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
35506         * modules/unistd (Makefile.am): Substitute witnesses.
35507         * lib/unistd.in.h (rmdir): Declare replacement.
35508         * doc/posix-functions/rmdir.texi (rmdir): Document this.
35509         * modules/rmdir-tests: New tests.
35510         * tests/test-rmdir.c: Likewise.
35511
35512 2009-09-15  Eric Blake  <ebb9@byu.net>
35513
35514         fchdir: improve use of replacement functions
35515         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
35516         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
35517         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
35518         REPLACE_CLOSEDIR.
35519         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
35520         * modules/sys_stat (Makefile.am): Substitute correct witness.
35521         * modules/dirent (Makefile.am): Likewise.
35522         * modules/unistd (Makefile.am): Likewise.
35523         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
35524         * lib/unistd.in.h (dup): Likewise.
35525         * lib/sys_stat.in.h (fstat): Likewise.
35526
35527         maint: ignore gnulib-tool temp files
35528         * .gitignore: Ignore files created during gnulib-tool --test.
35529
35530 2009-09-13  Jim Meyering  <meyering@redhat.com>
35531
35532         posixtm: don't reject a time that specify "60" as the number of seconds
35533         * lib/posixtm.c (posixtime): The code to reject invalid dates
35534         would also reject a time specified with the .60 suffix.
35535         But POSIX allows that, in order to accommodate leap seconds.
35536         So don't reject it.
35537         (main): Adjust tests accordingly.
35538         * modules/posixtm (Depends-on): Add stpcpy.
35539
35540 2009-09-11  Jim Meyering  <meyering@redhat.com>
35541
35542         announce-gen: include [$release_type] in emitted Subject:
35543         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
35544         e.g., [stable] in the emitted Subject: line.
35545
35546 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35547
35548         Remove obsolete macros from several modules.
35549         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
35550         obsolete Autoconf macros with their modern counterparts.
35551         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
35552         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
35553         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
35554         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
35555         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
35556         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
35557         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
35558         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
35559         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
35560         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
35561         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
35562         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
35563         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
35564         * m4/sockets.m4 (gl_SOCKETS): Likewise.
35565         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
35566         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
35567         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
35568         * m4/time_r.m4 (gl_TIME_R): Likewise.
35569         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
35570         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
35571         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
35572
35573         Fix copyright header in build-aux scripts.
35574         * build-aux/git-version-gen: Fix copyright header to match GPLv3
35575         recommendation.
35576         * build-aux/ncftpput-ftp: Likewise.
35577         * build-aux/update-copyright: Likewise.
35578
35579 2009-09-09  Eric Blake  <ebb9@byu.net>
35580
35581         test-link: allow Linux choice of errno
35582         * tests/test-link.c (main): Relax test for alternate error.
35583
35584         strndup: fix improper m4 caching
35585         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
35586         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
35587         (gl_PREREQ_STRNDUP): Delete.
35588         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
35589         * modules/string (Makefile.am): Substitute it.
35590         * lib/string.in.h (strndup): Modernize prototype.
35591
35592         getcwd: port to mingw
35593         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
35594         different from the POSIX assumptions made throughout the getcwd
35595         module; fortunately, the mingw getcwd does not need replacement.
35596         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
35597         * modules/getcwd-tests: New test.
35598         * tests/test-getcwd.c: Likewise.
35599
35600         link: fix platform bugs
35601         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
35602         * lib/link.c (link): Work around them.  Fix related mingw bug.
35603         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
35604         * modules/unistd (Makefile.am): Substitute it.
35605         * lib/unistd.in.h (link): Declare replacement.
35606         * doc/posix-functions/link.texi (link): Document this.
35607         * modules/link (Depends-on): Add strdup-posix, sys_stat.
35608
35609         test-link: consolidate into single C program, test more cases
35610         * tests/test-link.sh: Delete.
35611         * tests/test-link.c: Test more error conditions.  Exposes bugs on
35612         at least Cygwin and Solaris.
35613         * modules/link-tests (Files): Remove unused file.
35614         (Depends-on): Add errno, sys_stat.
35615         (Makefile.am): Simplify.
35616
35617 2009-09-08  Bruno Haible  <bruno@clisp.org>
35618
35619         Work around towlower, towupper bug on mingw.
35620         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
35621         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
35622         * doc/posix-functions/towlower.texi: Mention the mingw bug.
35623         * doc/posix-functions/towupper.texi: Likewise.
35624         Reported by Eric Blake.
35625
35626 2009-09-08  Jim Meyering  <meyering@redhat.com>
35627
35628         build: don't try to run autoheader if we don't use it
35629         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
35630         is not used in configure.ac.
35631
35632 2009-09-08  Eric Blake  <ebb9@byu.net>
35633
35634         euidaccess: fix compilation error
35635         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
35636
35637         rawmemchr: relax license
35638         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
35639         okay.
35640         Reported by Jim Meyering.
35641
35642         mkfifoat: new module
35643         * modules/mkfifoat: New file.
35644         * lib/mkfifoat.c: Likewise.
35645         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
35646         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
35647         * modules/sys_stat (Makefile.am): Use them.
35648         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
35649         * MODULES.html.sh (File system functions): Mention module.
35650         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
35651         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
35652         * modules/mkfifoat-tests: New test.
35653         * tests/test-mkfifoat.c: Likewise.
35654
35655         strchrnul: relax license
35656         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
35657         okay.
35658         Reported by Jim Meyering.
35659
35660 2009-09-08  Eric Blake  <ebb9@byu.net>
35661
35662         fstatat: fix compilation on Solaris
35663         * lib/fstatat.c (includes): Add fcntl.h.
35664         Reported by Pádraig Brady.
35665
35666 2009-09-07  Eric Blake  <ebb9@byu.net>
35667
35668         rename: modernize replacement
35669         * modules/rename (Depends-on): Add stdio.
35670         (configure.ac): Declare witness.
35671         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
35672         stdio take care of replacement.
35673         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
35674         * modules/stdio (Makefile.am): Substitute them.
35675         * lib/stdio.in.h (rename): Declare replacement.
35676         * lib/rename.c (includes): Allow cross-compilation to non-windows
35677         machines.
35678         * doc/posix-functions/rename.texi (rename): Improve
35679         documentation.
35680
35681         stdio: sort witness names
35682         * modules/stdio (Makefile.am): Sort replacements.
35683         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
35684         * lib/stdio.in.h: Likewise.
35685
35686         getcwd: minor cleanups
35687         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
35688         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
35689
35690         openat: provide more convenience names
35691         * modules/faccessat (configure.ac): Add C witness.
35692         * lib/unistd.in.h (readlinkat): Fix typo.
35693         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
35694         convenience wrappers.
35695         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
35696         wrappers in syntax checks.
35697
35698 2009-09-06  Eric Blake  <ebb9@byu.net>
35699
35700         doc: fix comments in recent patches
35701         * lib/faccessat.c: Mention correct function.
35702         * lib/fchmodat.c: Likewise.
35703         * lib/fchownat.c: Likewise.
35704         * lib/symlinkat.c: Likewise.
35705         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
35706         constants.
35707
35708         faccessat, symlinkat: continue cleanup of previous patch
35709         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
35710         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
35711         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
35712         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
35713         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
35714         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
35715         set.
35716
35717 2009-09-06  Bruno Haible  <bruno@clisp.org>
35718
35719         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
35720         (fstatat): Declare if GNULIB_FSTATAT is set.
35721         (mkdirat): Declare if GNULIB_MKDIRAT is set.
35722         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
35723         (unlinkat): Declare if GNULIB_UNLINKAT is set.
35724         * modules/fcntl-h (Files): Remove m4/openat.m4.
35725         * modules/sys_stat (Files): Remove m4/openat.m4.
35726         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
35727         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
35728         * modules/unistd (Files): Remove m4/openat.m4.
35729         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
35730         GNULIB_OPENAT.
35731         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
35732         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
35733         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
35734         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
35735         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
35736         gl_OPENAT_DEFAULTS.
35737         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
35738         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
35739         Don't require gl_OPENAT_DEFAULTS.
35740         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
35741         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
35742         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
35743         (gl_OPENAT_DEFAULTS): Remove macro.
35744
35745 2009-09-06  Bruno Haible  <bruno@clisp.org>
35746
35747         * modules/openat (configure.ac): Remove unneeded witness.
35748
35749 2009-09-06  Bruno Haible  <bruno@clisp.org>
35750
35751         Set errno to ENOSYS when a function is entirely unsupported.
35752         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
35753         EOPNOTSUPP.
35754         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
35755         * modules/chown (Depends-on): Remove errno.
35756
35757 2009-09-06  Bruno Haible  <bruno@clisp.org>
35758
35759         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
35760
35761 2009-09-06  Bruno Haible  <bruno@clisp.org>
35762
35763         * lib/sys_stat.in.h: Fix preprocessor command indentation.
35764
35765 2009-09-06  Ben Pfaff  <blp@gnu.org>
35766             Bruno Haible  <bruno@clisp.org>
35767
35768         Work around a glibc bug in strtok_r.
35769         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
35770         Undefine if UNDEFINE_STRTOK_R is set.
35771         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
35772         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
35773         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
35774         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
35775         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
35776         UNDEFINE_STRTOK_R.
35777         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
35778
35779 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
35780
35781         exclude: minor fix
35782         * lib/exclude.c: Include wctype.h
35783
35784 2009-09-06  Akim Demaille  <demaille@gostai.com>
35785
35786         bootstrap: improve error message
35787         * build-aux/bootstrap (find_tool): Upon failure, report the list
35788         of candidates.
35789         Honor the initial value of the envvar.
35790
35791 2009-09-05  Eric Blake  <ebb9@byu.net>
35792
35793         symlinkat: new module
35794         * modules/symlinkat: New file.
35795         * lib/symlinkat.c: Likewise.
35796         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
35797         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
35798         * modules/unistd (Makefile.am): Use them.
35799         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
35800         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
35801         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
35802         * MODULES.html.sh (File system functions): Mention module.
35803         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
35804         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
35805         * modules/symlinkat-tests: New test.
35806         * tests/test-symlinkat.c: Likewise.
35807
35808         test-openat-safer: add more checks
35809         * tests/test-openat-safer.c (main): Check more code paths.
35810
35811 2009-09-05  Jim Meyering  <meyering@redhat.com>
35812
35813         syntax-check: detect unnecessary inclusion of openat.h
35814         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
35815
35816 2009-09-05  Bruno Haible  <bruno@clisp.org>
35817
35818         Support towlower, towupper.
35819         * doc/posix-functions/towlower.texi: Mention module wctype.
35820         * doc/posix-functions/towupper.texi: Likewise.
35821         * lib/wctype.in.h (towlower, towupper): New functions.
35822         * tests/test-wctype.c: Include stdio.h, stdlib.h.
35823         (ASSERT): New macro.
35824         (e): New variable.
35825         (main): Test also towlower, towupper. Test WEOF argument.
35826         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
35827
35828 2009-09-05  Bruno Haible  <bruno@clisp.org>
35829
35830         Fix conversion behaviour when the input is invalid.
35831         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
35832         mark occurring in first pass of indirect conversion.
35833         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
35834         input.
35835         Found by clang's static analyzer.
35836
35837 2009-09-05  Bruno Haible  <bruno@clisp.org>
35838
35839         * tests/test-striconveh.c (main): Test indirect conversion on platforms
35840         where direct conversion is possible.
35841
35842 2009-09-04  Eric Blake  <ebb9@byu.net>
35843
35844         openat: fail with ENOENT on empty name
35845         * lib/openat-proc.c (openat_proc_name): Special-case the empty
35846         buffer.
35847
35848         link-follow: fix logic bug in prior patch
35849         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
35850         reversed sense of yes and no in prior patch.  Avoid confusing
35851         compilation failure with desired semantics.
35852
35853         link-follow: accomodate mingw and cross-compilation
35854         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
35855         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
35856         cross-compilation results to -1, to make linkat easier to
35857         implement when cross-compiling.  Trivially support mingw.
35858         * modules/link-follow (configure.ac): Call new name.
35859         * NEWS: Mention this.
35860
35861 2009-09-03  Eric Blake  <ebb9@byu.net>
35862
35863         faccessat: compile replacement
35864         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
35865         needed.
35866
35867         fts: fix compilation error
35868         * lib/fts.c (includes): Re-add "openat.h", for
35869         openat_needs_fchdir.
35870
35871         faccessat: new module
35872         * modules/faccessat: New file.
35873         * lib/faccessat.c: Likewise.
35874         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
35875         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
35876         * modules/unistd (Makefile.am): Use it.
35877         * lib/unistd.in.h (faccessat): Declare it.
35878         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
35879         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
35880         * MODULES.html.sh (File system functions): Mention it.
35881         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
35882         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
35883
35884         euidaccess: prefer POSIX over non-standard implementation
35885         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
35886         * lib/euidaccess.c (euidaccess): Use it if available.
35887
35888         openat: make template easier to use
35889         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
35890         AT_FUNC_F2 to be undefined.
35891         (VALIDATE_FLAG): New macro; use it to reject bad flags.
35892         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
35893         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
35894         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
35895         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
35896         Likewise.
35897         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
35898         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
35899         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
35900         Likewise.
35901
35902         openat: declare in POSIX headers
35903         * NEWS: Mention this.
35904         * modules/openat (configure.ac): Declare witnesses.
35905         (Depends-on): Add fcntl-h, sys_stat, unistd.
35906         (Include): Mention correct headers.
35907         * modules/fcntl-h (Depends-on): Add link-warning.
35908         (Files): Add openat.m4.
35909         (Makefile.am): Substitute witnesses.
35910         * modules/sys_stat (Files, Makefile.am): Likewise.
35911         * modules/unistd (Files, Makefile.am): Likewise.
35912         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
35913         (gl_OPENAT_DEFAULTS): New macro.
35914         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
35915         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
35916         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
35917         (SYS_STAT_H): Remove unused variable.
35918         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
35919         * lib/fcntl--.h (includes): Remove unneeded header.
35920         * lib/openat-safer.c (includes): Likewise.
35921         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
35922         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
35923         appropriate headers.
35924         (__OPENAT_PREFIX): Delete.
35925         * lib/fcntl.in.h (openat): Provide declaration.
35926         (AT_FDCWD): Fix Solaris bug.
35927         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
35928         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
35929         * lib/fchmodat.c (includes):  Adjust to find declaration.
35930         * lib/fchownat.c (includes): Likewise.
35931         * lib/mkdirat.c (includes): Likewise.
35932         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
35933         still visible.
35934
35935 2009-09-02  Eric Blake  <ebb9@byu.net>
35936
35937         errno: use consistently
35938         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
35939         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
35940         * lib/canonicalize.c (ELOOP): Likewise.
35941         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
35942         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
35943         * lib/lchown.c (EOPNOTSUPP): Likewise.
35944         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
35945         * lib/savewd.c (ESTALE): Likewise.
35946         * lib/settime.c (ENOSYS): Likewise.
35947         * lib/utimens.c (ENOSYS): Likewise.
35948         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
35949         * lib/chdir-safer.c (ELOOP): Likewise.
35950         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
35951         * modules/c-stack (Depends-on): Add errno.
35952         * modules/canonicalize (Depends-on): Likewise.
35953         * modules/chdir-safer (Depends-on): Likewise.
35954         * modules/fdopendir (Depends-on): Likewise.
35955         * modules/inet_ntop (Depends-on): Likewise.
35956         * modules/inet_pton (Depends-on): Likewise.
35957         * modules/lchown (Depends-on): Likewise.
35958         * modules/openat (Depends-on): Likewise.
35959         * modules/savewd (Depends-on): Likewise.
35960         * modules/settime (Depends-on): Likewise.
35961         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
35962
35963         fts: avoid leaking fds
35964         * modules/fts (Depends-on): Add cloexec.
35965         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
35966         flag.
35967
35968         fts: make directory fds more robust
35969         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
35970         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
35971
35972         backupfile, chdir-long, fts, savedir: make safer
35973         * lib/backupfile.c (includes): Use "dirent--.h", since
35974         numbered_backup can write to stderr during readdir.
35975         * lib/savedir.c (includes): Likewise.
35976         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
35977         emulation can write to stderr on failure.
35978         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
35979         * lib/getcwd.c: Document why opendir_safer is unused.
35980         * lib/glob.c: Likewise.
35981         * lib/scandir.c: Likewise.
35982         * lib/openat-proc.c: Likewise, for open_safer.
35983         * modules/backupfile (Depends-on): Add dirent-safer.
35984         * modules/savedir (Depends-on): Likewise.
35985         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
35986         * modules/chdir-long (Depends-on): Add openat-safer.
35987
35988         openat-safer: new module
35989         * modules/openat-safer: New file.
35990         * lib/openat-safer.c: Likewise.
35991         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
35992         * lib/fcntl-safer.h (openat_safer): Declare.
35993         * lib/fcntl--.h (openat): Override.
35994         * MODULES.html.sh (File descriptor based I/O): Mention it.
35995         * lib/openat.h: Add double-inclusion guards.
35996         * lib/openat.c (includes): Only include "fcntl-safer.h", not
35997         "fcntl--.h", so we can implement openat.
35998         * modules/openat-safer-tests: New test.
35999         * tests/test-openat-safer.c: New file.
36000
36001         dirent-safer: new module
36002         * modules/dirent-safer: New file.
36003         * lib/dirent--.h: Likewise.
36004         * lib/dirent-safer.h: Likewise.
36005         * lib/opendir-safer.c: Likewise.
36006         * m4/dirent-safer.m4: Likewise.
36007         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
36008         * modules/dirent-safer-tests: New test.
36009         * tests/test-dirent-safer.c: New file.
36010         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
36011
36012         fdopendir: optimize on mingw
36013         * lib/unistd.in.h (_gl_directory_name): New prototype.
36014         * lib/fchdir.c (_gl_directory_name): Implement it.
36015         (fchdir): Use it to simplify implementation.
36016         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
36017         fchdir, when available, to avoid calling [f]chdir().
36018
36019         fdopendir: split into its own module
36020         * lib/openat.c (fdopendir): Move...
36021         * lib/fdopendir.c: ...into new file.
36022         * modules/fdopendir: New module.
36023         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
36024         * modules/openat (Depends-on): Add fdopendir.
36025         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
36026         fdopendir here.
36027         * modules/savedir (Depends-on): Only need fdopendir, not full
36028         openat.
36029         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
36030         * lib/openat.h (fdopendir): Drop prototype.
36031         * lib/dirent.in.h (fdopendir): Provide prototype.
36032         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
36033         * modules/dirent (Makefile.am): Substitute them.
36034         * MODULES.html.sh (File system functions): Mention it.
36035         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
36036         * modules/fdopendir-tests: New file.
36037         * tests/test-fdopendir.c: Likewise.
36038
36039         fchdir: use more consistent macro convention
36040         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
36041         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
36042         REPLACE_FCHDIR, rather than relying on config.h macros.
36043         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
36044         inside a single make-time REPLACE_FCHDIR block, rather than using
36045         the config.h FCHDIR_REPLACEMENT.
36046         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
36047         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
36048         Manage fstat replacement.
36049         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
36050         REPLACE_FCHDIR.
36051         * modules/sys_stat (Files): Add m4/unistd_h.m4.
36052         (Makefile.am): Substitute REPLACE_FCHDIR.
36053         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
36054         FCHDIR_REPLACEMENT.
36055         * lib/dup-safer.c (dup_safer): Likewise.
36056         * lib/dup2.c (rpl_dup2): Likewise.
36057         * lib/dup3.c (rpl_dup3): Likewise.
36058         * lib/open.c (rpl_open): Likewise.
36059
36060         fchdir: simplify error handling, and support dup3
36061         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
36062         stdbool, malloc-posix, realloc-posix.
36063         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
36064         (ensure_dirs_slot): Return false on allocation failure.
36065         (rpl_dup2): Delete.
36066         (_gl_register_dup): New function.
36067         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
36068         (_gl_register_fd): Close fd on allocation failure.
36069         * lib/fcntl.in.h (_gl_register_fd): Update signature.
36070         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
36071         prototype.
36072         (rpl_dup2_fchdir): Delete prototype.
36073         * lib/open.c (open): Update caller.
36074         * lib/dup2.c (dup2): Track fchdir metadata.
36075         * lib/dup3.c (dup3): Likewise.
36076         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
36077         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
36078
36079 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36080
36081         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
36082         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
36083         don't pass arguments to AC_OUTPUT.
36084
36085 2009-09-02  Bruno Haible  <bruno@clisp.org>
36086
36087         * modules/mkdtemp (License): Relicense under LGPLv2+.
36088         Reported by Paolo Bonzini.
36089
36090 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36091
36092         Replace uses of obsolete autoconf macros in Jim's modules.
36093         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
36094         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
36095         can evoke a warning from autoconf when run with -Wobsolete
36096         enabled.  They were declared obsolete for good reasons (see
36097         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
36098         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
36099         should not continue using the deprecated macros.
36100         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
36101         obsolete Autoconf macros with modern counterparts.
36102         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
36103         * m4/dos.m4 (gl_AC_DOS): Likewise.
36104         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
36105         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
36106         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
36107         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
36108         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
36109         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
36110         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
36111         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
36112         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
36113         Likewise.
36114         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
36115         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
36116         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
36117         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
36118         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
36119         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
36120
36121 2009-09-01  Eric Blake  <ebb9@byu.net>
36122
36123         fchdir: fix off-by-one bug in previous patch
36124         * lib/fchdir.c (rpl_fstat): Use correct bounds.
36125         (_gl_unregister_fd): Delete useless if.
36126
36127 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
36128
36129         maint.mk: sort the list of syntax-check rules
36130         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
36131         easier to get a sense of progress when the rules are run sequentially
36132         and take a long time.
36133
36134 2009-09-01  Simon Josefsson  <simon@josefsson.org>
36135
36136         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
36137         * modules/netinet_in: Likewise.
36138         * modules/sys_file: Likewise.
36139         * modules/sys_ioctl: Likewise.
36140         * modules/sys_select: Likewise.
36141         * modules/sys_socket: Likewise.
36142         * modules/sys_stat: Likewise.
36143         * modules/sys_time: Likewise.
36144         * modules/sys_times: Likewise.
36145         * modules/sys_utsname: Likewise.
36146         * modules/sys_wait: Likewise.
36147
36148 2009-09-01  Jim Meyering  <meyering@redhat.com>
36149
36150         fts: help ensure that return values are not ignored
36151         * lib/fts_.h (__GNUC_PREREQ): Define.
36152         (__attribute_warn_unused_result__): Define.
36153         (fts_children, fts_close, fts_open, fts_read): Declare with
36154         __attribute_warn_unused_result__.
36155
36156         fts: fts_close now fails also when closing a dir file descriptor fails
36157         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
36158         and propagate to caller, along with errno.
36159
36160         announce-gen: correct formatting in --help output
36161         * build-aux/announce-gen (usage): Move the one-line description in
36162         --help output "up", to where it belongs, just after Usage:.
36163
36164 2009-08-31  Eric Blake  <ebb9@byu.net>
36165
36166         fchdir: port to mingw
36167         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
36168         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
36169         opened, then use a substitute.
36170         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
36171         replacement.
36172         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
36173         (_gl_register_fd): No need to check stat if open already filters
36174         all directories.
36175         (fchdir): Fix error condition to match POSIX.
36176         * modules/fchdir (Depends-on): Add sys_stat.
36177         * doc/posix-functions/open.texi (open): Document the limitation.
36178         * modules/fchdir-tests: New file.
36179         * tests/test-fchdir.c: Likewise.
36180
36181         canonicalize: allow cross-testing from cygwin to mingw
36182         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
36183         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
36184         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
36185         Likewise.
36186         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
36187         target does not support symlinks.
36188         * tests/test-canonicalize-lgpl.sh: Likewise.
36189
36190         chown: avoid compilation warning on mingw
36191         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
36192         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
36193         mingw.
36194         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
36195         * modules/chown (Depends-on): Add errno.
36196
36197 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
36198
36199         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
36200         command.
36201
36202 2009-08-31  Jim Meyering  <meyering@redhat.com>
36203
36204         canonicalize: remove useless initialization
36205         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
36206         initialization of local, "end".
36207
36208 2009-08-30  Bruno Haible  <bruno@clisp.org>
36209
36210         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
36211         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
36212         ENOSYS.
36213
36214 2009-08-30  Bruno Haible  <bruno@clisp.org>
36215
36216         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
36217         /usr/xpg4/bin/tr when it exists.
36218         * tests/test-pipe-filter-gi1.sh: Likewise.
36219
36220 2009-08-30  Bruno Haible  <bruno@clisp.org>
36221
36222         Work around deficient /usr/bin/id program on Solaris.
36223         * tests/test-file-has-acl.sh (ID): New variable.
36224         * tests/test-set-mode-acl.sh (ID): Likewise.
36225         * tests/test-copy-acl.sh (ID): Likewise.
36226         * tests/test-copy-file.sh (ID): Likewise.
36227
36228 2009-08-30  Bruno Haible  <bruno@clisp.org>
36229
36230         New module 'xstriconveh'.
36231         * lib/xstriconveh.h: New file.
36232         * lib/xstriconveh.c: New file.
36233         * modules/xstriconveh: New file.
36234
36235 2009-08-30  Bruno Haible  <bruno@clisp.org>
36236
36237         Make it easier to use mem_cd_iconveh.
36238         * lib/striconveh.h (iconveh_t): New type.
36239         (iconveh_open, iconveh_close): New declarations.
36240         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
36241         with a single 'const iconveh_t *' argument.
36242         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
36243         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
36244         with a single 'const iconveh_t *' argument.
36245         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
36246         * tests/test-striconveh.c (main): Update.
36247         * NEWS: Mention the change.
36248
36249 2009-08-30  Bruno Haible  <bruno@clisp.org>
36250
36251         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
36252         problem.
36253
36254 2009-08-30  Bruno Haible  <bruno@clisp.org>
36255
36256         Work around iconv_open problem on Solaris.
36257         * lib/iconv_open-solaris.gperf: New file.
36258         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
36259         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
36260         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
36261         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
36262         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
36263         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
36264
36265 2009-08-29  Jim Meyering  <meyering@redhat.com>
36266
36267         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
36268         * top/maint.mk (cvs-check): Remove target; it was just an alias
36269         to the better-named vc-diff-check.
36270         (maintainer-distcheck): Remove rule.  It was used only from
36271         the (alpha/beta/major) target, and all of its commands but one
36272         were coreutils-specific.
36273         (vc-dist): Remove rule.
36274         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
36275         Run vc-diff-check, not vc-dist.
36276         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
36277
36278 2009-08-27  Bruno Haible  <bruno@clisp.org>
36279
36280         * tests/test-bitrotate.c (main): Remove test that uses a shift count
36281         of 0.
36282
36283 2009-08-27  Bruno Haible  <bruno@clisp.org>
36284
36285         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
36286         compilers.
36287         * doc/func.texi: Document the SunPRO C bug.
36288
36289 2009-08-27  Bruno Haible  <bruno@clisp.org>
36290
36291         Fix link error on Solaris.
36292         * tests/test-parse-duration.c (xstrdup): Remove function.
36293
36294 2009-08-26  Pádraig Brady  <P@draigbrady.com>
36295
36296         ignore-value: handle pointer types, too
36297         * lib/ignore-value.h (__attribute__): Remove definition.
36298         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
36299         of a more concise and more-often effective "(void) i" statement.
36300         (ignore_ptr): New function to suppress warnings from functions that
36301         return pointers, and to make it explicit that one function doesn't
36302         handle all cases.
36303
36304 2009-08-25  Bruno Haible  <bruno@clisp.org>
36305
36306         dup2: work around a Linux bug.
36307         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
36308         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
36309         * doc/posix-functions/dup2.texi: Mention the Linux bug.
36310         Reported by Simon Josefsson.
36311
36312 2009-08-25  Jim Meyering  <meyering@redhat.com>
36313
36314         libguestfs uses gnulib
36315         * users.txt: Add libguestfs.
36316
36317 2009-08-24  Eric Blake  <ebb9@byu.net>
36318
36319         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
36320         * lib/pipe2.c (includes): Add binary-io.h.
36321         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
36322
36323 2009-08-24  Bruno Haible  <bruno@clisp.org>
36324
36325         Tolerate declared but missing accept4 syscall.
36326         * lib/accept4.c (accept4): Invoke original accept4 function first, if
36327         available.
36328         * lib/sys_socket.in.h (accept4): If the function is already present,
36329         override it.
36330         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
36331         * modules/accept4 (Makefile.am): Compile accept4.c always.
36332         Reported by Paolo Bonzini and Eric Blake.
36333
36334 2009-08-23  Bruno Haible  <bruno@clisp.org>
36335
36336         New module 'accept4'.
36337         * lib/sys_socket.in.h (accept4): New declaration.
36338         * lib/accept4.c: New file.
36339         * m4/accept4.m4: New file.
36340         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
36341         GNULIB_ACCEPT4, HAVE_ACCEPT4.
36342         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
36343         HAVE_ACCEPT4.
36344         * modules/accept4: New file.
36345         * doc/glibc-functions/accept4.texi: Mention the new module.
36346
36347 2009-08-24  Jim Meyering  <meyering@redhat.com>
36348
36349         progname: also set global program_invocation_name, when possible
36350         Before this change, a libtool-enabled program that calls glibc's
36351         error function would report the program name as
36352         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
36353         * modules/progname (configure.ac): Check for a declaration of
36354         program_invocation_name.
36355         * lib/progname.c:  Include <errno.h>.
36356         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
36357         Set program_invocation_name.
36358
36359 2009-08-23  Bruno Haible  <bruno@clisp.org>
36360
36361         * lib/dup3.c: Include <string.h>.
36362
36363 2009-08-23  Bruno Haible  <bruno@clisp.org>
36364
36365         * lib/dup3.c (dup3): Test only once whether the system actually exists.
36366         * lib/pipe2.c (pipe2): Likewise.
36367         Suggested by Eric Blake.
36368
36369 2009-08-23  Bruno Haible  <bruno@clisp.org>
36370
36371         Tolerate declared but missing dup3 syscall.
36372         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
36373         * lib/unistd.in.h (dup3): If the function is already present,
36374         override it.
36375         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
36376         * modules/dup3 (Makefile.am): Compile dup3.c always.
36377         Reported by Paolo Bonzini.
36378
36379 2009-08-23  Bruno Haible  <bruno@clisp.org>
36380
36381         Tolerate declared but missing pipe2 syscall.
36382         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
36383         available.
36384         * lib/unistd.in.h (pipe2): If the function is already present,
36385         override it.
36386         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
36387         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
36388         Reported by Paolo Bonzini.
36389
36390 2009-08-23  Bruno Haible  <bruno@clisp.org>
36391
36392         * lib/pipe2.c (pipe2): Move #ifs inside function.
36393
36394 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
36395
36396         quotearg: document limitations of quote_these_too
36397         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
36398         those limitations are created.
36399         * lib/quotearg.h (set_char_quoting): Document that digits and
36400         letters that are special after backslash are not permitted.
36401         (quotearg_char): Cross-reference set_char_quoting documentation.
36402
36403 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
36404
36405         quotearg: implement custom_quoting_style
36406         * lib/quotearg.c: (struct quoting_options): Add left_quote and
36407         right_quote fields.
36408         (set_custom_quoting): New public function.
36409         (quotearg_buffer_restyled): Add left_quote and right_quote
36410         arguments, handle them very much like locale quoting, and update
36411         all uses.
36412         (quotearg_n_custom): New public function.
36413         (quotearg_n_custom_mem): New public function.
36414         (quotearg_custom): New public function.
36415         (quotearg_custom_mem): New public function.
36416         * lib/quotearg.h: Prototype and document new public functions.
36417         (enum quoting_style): For escape_quoting_style and
36418         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
36419         ignored even though they're otherwise like c_quoting_style.
36420         Add custom_quoting_style member and document with comparison to
36421         clocale_quoting_style.
36422         * tests/test-quotearg.c (custom_quotes): New array.
36423         (custom_results): New array.
36424         (main): Extend to test custom quoting.
36425
36426 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
36427
36428         quotearg: fix right quote escaping when it's in quote_these_too
36429         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
36430         quote, be sure to prepend only one backslash.
36431         * tests/test-quotearg.c (use_quote_double_quotes): New function.
36432         (main): Test it.
36433
36434 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
36435
36436         quotearg-tests: test escaping of embedded locale quotes
36437         * tests/test-quotearg.c (struct result_strings): Add member for
36438         new input.
36439         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
36440         (inputs): Add new input.
36441         (results_g): Add expected results.
36442         (flag_results): Likewise.
36443         (locale_results): Likewise.
36444         (compare_strings): Check those.
36445
36446 2009-08-23  Bruno Haible  <bruno@clisp.org>
36447
36448         Tests for module 'dup3'.
36449         * modules/dup3-tests: New file.
36450         * tests/test-dup3.c: New file.
36451
36452         New module 'dup3'.
36453         * lib/unistd.in.h (dup3): New declaration.
36454         * lib/dup3.c: New file.
36455         * m4/dup3.m4: New file.
36456         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
36457         HAVE_DUP3.
36458         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
36459         * modules/dup3: New file.
36460         * doc/glibc-functions/dup3.texi: Mention the new module.
36461
36462 2009-08-23  Bruno Haible  <bruno@clisp.org>
36463
36464         Tweak the dup2 test.
36465         * tests/test-dup2.c (main): Create the test file empty. Verify that an
36466         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
36467         the test file is still empty. Fix argument order of lseek.
36468
36469 2009-08-23  Bruno Haible  <bruno@clisp.org>
36470
36471         Avoid test link errors when the modules getopt-gnu, gettext are used.
36472         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
36473         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
36474
36475 2009-08-23  Bruno Haible  <bruno@clisp.org>
36476
36477         Fix getdtablesize() on mingw.
36478         * lib/getdtablesize.c (getdtablesize): Implement differently.
36479         * lib/unistd.in.h (getdtablesize): Improve comment.
36480
36481 2009-08-23  Bruno Haible  <bruno@clisp.org>
36482
36483         New module 'mkostemp'.
36484         Based on Ulrich Drepper's 2007-08-10 change in glibc.
36485         * lib/stdlib.in.h (mksotemp): New declaration.
36486         * lib/mkostemp.c: New file, from glibc with modifications.
36487         * lib/tempname.h (GT_FILE): Remove outdated comment.
36488         (gen_tempname): Add flags argument.
36489         * lib/tempname.c (__GT_BIGFILE): Remove macro.
36490         (__GT_FILE): Map to 1.
36491         (small_open, large_open): Remove macros.
36492         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
36493         * lib/mkstemp.c (mkstemp): Update.
36494         * lib/mkdtemp.c (mkdtemp): Likewise.
36495         * m4/mkostemp.m4: New file.
36496         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
36497         HAVE_MKOSTEMP.
36498         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
36499         HAVE_MKOSTEMP.
36500         * modules/mkostemp: New file, based on modules/mkstemp.
36501         * doc/glibc-functions/mkostemp.texi: Mention the new module.
36502         * NEWS: Mention the change.
36503
36504 2009-08-23  Bruno Haible  <bruno@clisp.org>
36505
36506         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
36507         Reported by Eric Blake.
36508
36509 2009-08-23  Bruno Haible  <bruno@clisp.org>
36510
36511         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
36512         Reported by Eric Blake.
36513
36514 2009-08-23  Bruno Haible  <bruno@clisp.org>
36515
36516         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
36517         * modules/pipe2 (Depends-on): Likewise.
36518
36519 2009-08-23  Eric Blake  <ebb9@byu.net>
36520
36521         fcntl-h: add O_TTY_INIT support
36522         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
36523         * tests/test-fcntl-h.c (o): Test it.
36524         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
36525
36526         fcntl-h: rename from fcntl, in preparation for fcntl(2)
36527         * modules/fcntl: Move <fcntl.h> header replacement...
36528         * modules/fcntl-h: ...to new name, so as not to collide with
36529         like-named function.
36530         * tests/test-fcntl.c: Rename...
36531         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
36532         * modules/fcntl-tests: Rename...
36533         * modules/fcntl-h-tests: ...to this.  Update test file name.
36534         * modules/chdir-long (Depends-on): Update clients.
36535         * modules/chdir-safer (Depends-on): Likewise.
36536         * modules/fcntl-safer (Depends-on): Likewise.
36537         * modules/fts (Depends-on): Likewise.
36538         * modules/mkancesdirs (Depends-on): Likewise.
36539         * modules/mkdir-p (Depends-on): Likewise.
36540         * modules/open (Depends-on): Likewise.
36541         * modules/savewd (Depends-on): Likewise.
36542         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
36543         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
36544
36545 2009-08-22  Bruno Haible  <bruno@clisp.org>
36546
36547         * modules/binary-io (License): Relicense under LGPL.
36548         * modules/pipe2 (License): Likewise.
36549
36550 2009-08-22  Bruno Haible  <bruno@clisp.org>
36551
36552         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
36553         return value.
36554         * lib/pipe-filter-gi.c (filter_init): Likewise.
36555         Reported by Eric Blake.
36556
36557 2009-08-22  Bruno Haible  <bruno@clisp.org>
36558
36559         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
36560         * modules/pipe (Depends-on): Add pipe2.
36561
36562 2009-08-22  Bruno Haible  <bruno@clisp.org>
36563
36564         Tests for module 'pipe2'.
36565         * modules/pipe2-tests: New file.
36566         * tests/test-pipe2.c: New file.
36567
36568         New module 'pipe2'.
36569         * lib/unistd.in.h (pipe2): New declaration.
36570         * lib/pipe2.c: New file.
36571         * m4/pipe2.m4: New file.
36572         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
36573         HAVE_PIPE2.
36574         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
36575         * modules/pipe2: New file.
36576         * doc/glibc-functions/pipe2.texi: Mention the new module.
36577
36578 2009-08-22  Bruno Haible  <bruno@clisp.org>
36579
36580         Reference some new glibc functions.
36581         * doc/glibc-functions/accept4.texi: New file.
36582         * doc/glibc-functions/dup3.texi: New file.
36583         * doc/glibc-functions/mkostemp.texi: New file.
36584         * doc/glibc-functions/pipe2.texi: New file.
36585         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
36586         (Glibc sys/socket.h): Refer to accept4.
36587         (Glibc unistd.h): Refer to dup3, pipe2.
36588         Reported by Eric Blake.
36589
36590 2009-08-22  Jim Meyering  <meyering@redhat.com>
36591             Bruno Haible  <bruno@clisp.org>
36592
36593         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
36594         This makes it so packages using automake-1.11's silent-rules option
36595         can print e.g., a single "GEN    configmake.h" line, rather than
36596         the 30+ statements that perform the job.  If you want to see the
36597         actual commands, you can still run "make V=1".
36598         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
36599         so that make output is abbreviated when those variables are defined
36600         appropriately.
36601         * modules/argz: Likewise.
36602         * modules/arpa_inet: Likewise.
36603         * modules/byteswap: Likewise.
36604         * modules/configmake: Likewise.
36605         * modules/dirent: Likewise.
36606         * modules/errno: Likewise.
36607         * modules/fcntl: Likewise.
36608         * modules/float: Likewise.
36609         * modules/fnmatch: Likewise.
36610         * modules/getopt-posix: Likewise.
36611         * modules/glob: Likewise.
36612         * modules/iconv_open: Likewise.
36613         * modules/inttypes: Likewise.
36614         * modules/localcharset: Likewise.
36615         * modules/locale: Likewise.
36616         * modules/math: Likewise.
36617         * modules/netdb: Likewise.
36618         * modules/netinet_in: Likewise.
36619         * modules/poll: Likewise.
36620         * modules/posix_spawnp-tests: Likewise.
36621         * modules/sched: Likewise.
36622         * modules/search: Likewise.
36623         * modules/selinux-h: Likewise.
36624         * modules/signal: Likewise.
36625         * modules/spawn: Likewise.
36626         * modules/stdarg: Likewise.
36627         * modules/stdbool: Likewise.
36628         * modules/stddef: Likewise.
36629         * modules/stdint: Likewise.
36630         * modules/stdio: Likewise.
36631         * modules/stdlib: Likewise.
36632         * modules/string: Likewise.
36633         * modules/strings: Likewise.
36634         * modules/sys_file: Likewise.
36635         * modules/sys_ioctl: Likewise.
36636         * modules/sys_select: Likewise.
36637         * modules/sys_socket: Likewise.
36638         * modules/sys_stat: Likewise.
36639         * modules/sys_time: Likewise.
36640         * modules/sys_times: Likewise.
36641         * modules/sys_utsname: Likewise.
36642         * modules/sys_wait: Likewise.
36643         * modules/sysexits: Likewise.
36644         * modules/time: Likewise.
36645         * modules/unistd: Likewise.
36646         * modules/wchar: Likewise.
36647         * modules/wctype: Likewise.
36648
36649 2009-08-22  Jim Meyering  <meyering@redhat.com>
36650
36651         announce-gen: detect write failure
36652         * build-aux/announce-gen: Add Coda at end.
36653         Remove equivalent-but-more-verbose block at top.
36654
36655 2009-08-19  Akim Demaille  <demaille@gostai.com>
36656
36657         bootstrap: --help to stdout.
36658         * bootstrap (usage): Don't send --help to stderr.
36659         Use a here doc instead of a long string.
36660
36661 2009-08-21  Eric Blake  <ebb9@byu.net>
36662
36663         test-popen-safer: split from test-popen
36664         * tests/test-popen.c (main): Move...
36665         * tests/test-popen.h: ...into new file.
36666         * tests/test-popen-safer2.c: New file.
36667         * modules/popen-tests (Files): Add test-popen.h.
36668         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
36669         Suggested by Bruno Haible.
36670
36671         test-fcntl-safer: split from test-open
36672         * tests/test-open.c (main): Move...
36673         * tests/test-open.h: ...into new file.
36674         * tests/test-fcntl-safer.c: New file.
36675         * modules/open-tests (Files): Add test-open.h.
36676         * modules/fcntl-safer-tests: New file.
36677         Suggested by Bruno Haible.
36678
36679         test-fopen-safer: split from test-fopen
36680         * tests/test-fopen.c (main): Move...
36681         * tests/test-fopen.h: ...into new file.
36682         * tests/test-fopen-safer.c: New file.
36683         * modules/fopen-tests (Files): Add test-fopen.h.
36684         * modules/fopen-safer-tests: New file.
36685         Suggested by Bruno Haible.
36686
36687 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
36688
36689         popen-safer: test O_CLOEXEC at run-time.
36690         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
36691
36692 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
36693
36694         fcntl: move more flags to the header
36695         * lib/cloexec.c: Do not define FD_CLOEXEC here.
36696         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
36697         * lib/fcntl.in.h: Do both things here.
36698
36699 2009-08-21  Jim Meyering  <meyering@redhat.com>
36700
36701         consistently remove $@-t before redirecting to it
36702         * modules/argz: Remove $@-t and $@ before redirecting to the former.
36703         * modules/alloca-opt: Likewise.
36704         * modules/byteswap: Likewise.
36705         * modules/fnmatch: Likewise.
36706         * modules/getopt-posix: Likewise.
36707         * modules/glob: Likewise.
36708         * modules/poll: Likewise.
36709         * modules/posix_spawnp-tests: Likewise.
36710         * modules/sys_socket: Likewise.
36711         * modules/sysexits: Likewise.
36712
36713 2009-08-21  Eric Blake  <ebb9@byu.net>
36714
36715         popen: simplify access to original popen
36716         * lib/popen.c (rpl_popen): No need to worry about popen being a
36717         macro.
36718         Reported by Bruno Haible.
36719
36720 2009-08-20  Eric Blake  <ebb9@byu.net>
36721
36722         build: avoid some compiler warnings
36723         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
36724         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
36725         type.
36726         (new_exclude_segment, excluded_file_pattern_p)
36727         (excluded_file_name_p): Reduce scope.
36728         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
36729         old-style declaration.
36730
36731 2009-08-20  Simon Josefsson  <simon@josefsson.org>
36732
36733         * tests/test-exclude1.sh: Handle Windows EOL.
36734         * tests/test-exclude2.sh: Likewise.
36735         * tests/test-exclude3.sh: Likewise.
36736         * tests/test-exclude4.sh: Likewise.
36737         * tests/test-exclude5.sh: Likewise.
36738         * tests/test-exclude6.sh: Likewise.
36739         * tests/test-exclude7.sh: Likewise.
36740
36741 2009-08-19  Akim Demaille  <demaille@gostai.com>
36742
36743         bootstrap: find sha1sum when named gsha1sum.
36744         * bootstrap (find_tool): New.
36745         ($SHA1SUM): New.
36746         Use it.
36747
36748 2009-08-20  Jim Meyering  <meyering@redhat.com>
36749
36750         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
36751         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
36752         expression that converts "." in a file name to "\." in the resulting
36753         regexp.  Start with a dummy statement, so that prior shell variable
36754         definitions are expanded portably.  Reported by Simon Josefsson.
36755
36756 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
36757
36758         Fix polling for writeability of a screen buffer.
36759         * lib/poll.c: Distinguish input and screen buffers for the
36760         Win32 implementation.
36761         * lib/select.c: Likewise.
36762
36763 2009-08-19  Eric Blake  <ebb9@byu.net>
36764
36765         popen-safer: prevent popen from clobbering std descriptors
36766         * modules/popen-safer: New file.
36767         * lib/popen-safer.c: Likewise.
36768         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
36769         * lib/stdio--.h (popen): Provide override.
36770         * lib/stdio-safer.h (popen_safer): Provide declaration.
36771         * tests/test-popen.c (includes): Partially test this.
36772         * modules/popen-safer-tests: New file, for more tests.
36773         * tests/test-popen-safer.c: Likewise.
36774         * MODULES.html.sh (file stream based Input/Output): Mention it.
36775
36776         tests: test some of the *-safer modules
36777         * modules/fopen-safer (Depends-on): Add fopen.
36778         * modules/fcntl-safer (Depends-on): Add fcntl.
36779         * modules/stdlib-safer (Depends-on): Add stdlib.
36780         (configure.ac): Set indicator.
36781         * modules/unistd-safer (configure.ac): Likewise.
36782         * modules/tmpfile-safer (configure.ac): Likewise.
36783         (Depends-on): Add tmpfile.
36784         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
36785         active.
36786         * tests/test-fopen.c (includes): Test safer versions when they are
36787         in use.
36788         * tests/test-open.c (includes): Likewise.
36789
36790         popen: fix cygwin 1.5 bug when stdin closed
36791         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
36792         * modules/popen: New file.
36793         * modules/popen-tests: Likewise.
36794         * tests/test-popen.c: Likewise.
36795         * m4/popen.m4: Likewise.
36796         * lib/popen.c: Likewise.
36797         * lib/stdio.in.h (popen): New declaration.
36798         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
36799         * modules/stdio (Makefile.am): Likewise.
36800         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
36801
36802 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
36803
36804         maint.mk: give full control over update-copyright exclusions
36805         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
36806         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
36807         (update-copyright): Don't force inclusion of top-level
36808         ChangeLog.  Don't force exclusion of all COPYING files, but make
36809         them the default exclusion instead.
36810
36811 2009-08-16  Bruno Haible  <bruno@clisp.org>
36812
36813         Fix test failures on Solaris 10.
36814         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
36815         tests when Solaris iconv() is used.
36816         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
36817         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
36818         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
36819         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
36820         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
36821
36822 2009-08-16  Bruno Haible  <bruno@clisp.org>
36823
36824         Fix test failures on Solaris 10.
36825         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
36826         'tr' program and pass it as first argument.
36827         * tests/test-pipe-filter-gi1.sh: Likewise.
36828         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
36829         program as first argument.
36830         * tests/test-pipe-filter-gi1.c (main): Likewise.
36831
36832 2009-08-16  Eric Blake  <ebb9@byu.net>
36833
36834         fpurge: fix previous commits
36835         * modules/fpurge (Makefile.am): Make replacement conditional,
36836         partially reverting 2007-04-29 change; missed in previous
36837         attempt.
36838         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
36839         is missing.
36840
36841 2009-08-16  Bruno Haible  <bruno@clisp.org>
36842
36843         Clarify fpurge's effect on the file position.
36844         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
36845         * tests/test-fpurge.c (main): Make a second pass for checking the file
36846         position.
36847
36848 2009-08-16  Bruno Haible  <bruno@clisp.org>
36849
36850         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
36851         declaration of fpurge is missing.
36852         * tests/test-fpurge.c (main): Check that the file has not more contents
36853         than expected. Close the file before removing it.
36854
36855 2009-08-15  Eric Blake  <ebb9@byu.net>
36856
36857         fpurge: don't wrap working cygwin implementation
36858         * lib/fpurge.c (fpurge): Fix comment typo.
36859         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
36860         1.7 to avoid replacement.
36861         * tests/test-fpurge.c (main): Enhance test.
36862
36863 2009-08-15  Eric Blake  <ebb9@byu.net>
36864         and Jim Meyering  <meyering@redhat.com>
36865
36866         test-update-copyright: skip if perl is insufficient
36867         * tests/test-update-copyright.sh: Failure to run maintainer tool
36868         should not cause testsuite failure on cygwin 1.5.
36869
36870 2009-08-14  Eric Blake  <ebb9@byu.net>
36871
36872         doc: mention more functions added in cygwin 1.7.0
36873         * doc/posix-headers/limits.texi (limits.h): Update for recent
36874         cygwin additions.
36875         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
36876         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
36877         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
36878         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
36879         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
36880
36881 2009-08-14  Eric Blake  <ebb9@byu.net>
36882
36883         maint.mk: simplify update-copyright rule
36884         * top/maint.mk (update-copyright-local): Delete, and document how
36885         to do it in cfg.mk instead.
36886         (update-copyright-exclude-regexp): Delete, and document how to do
36887         it in .x-update-copyright instead.
36888         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
36889         exclude ChangeLog.
36890
36891 2009-08-14  Bruno Haible  <bruno@clisp.org>
36892
36893         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
36894
36895 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
36896
36897         maint.mk: support update-copyright-env
36898         * top/maint.mk (update-copyright-env): Define place-holder.
36899         (update-copyright): Expand $(update-copyright-env) before
36900         invoking update-copyright.
36901
36902 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
36903
36904         update-copyright: implement forced reformatting
36905         * build-aux/update-copyright: Implement and document
36906         UPDATE_COPYRIGHT_FORCE.
36907         * tests/test-update-copyright.sh: Test it.
36908
36909 2009-08-14  Eric Blake  <ebb9@byu.net>
36910         and Bruno Haible  <bruno@clisp.org>
36911
36912         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
36913         * tests/test-locale.c: Revert previous patch related to NULL.
36914         * tests/test-stdio.c: Likewise.
36915         * tests/test-stdlib.c: Likewise.
36916         * tests/test-string.c: Likewise.
36917         * tests/test-unistd.c: Likewise.
36918         * modules/time-tests (Depends-on): Add verify.
36919         * modules/wchar-tests (Depends-on): Likewise.
36920         * tests/test-time.c: Test for NULL compliance.
36921         * tests/test-wchar.c: Likewise.
36922         * modules/locale (Depends-on): Add stddef.
36923         * modules/stdio (Depends-on): Likewise.
36924         * modules/stdlib (Depends-on): Likewise.
36925         * modules/string (Depends-on): Likewise.
36926         * modules/time (Depends-on): Likewise.
36927         * modules/unistd (Depends-on): Likewise.
36928         * modules/wchar (Depends-on): Likewise.
36929         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
36930         * lib/stdlib.in.h (includes): Likewise.
36931         * lib/string.in.h (includes): Likewise.
36932         * lib/time.in.h (includes): Likewise.
36933         * lib/unistd.in.h (includes): Likewise.
36934         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
36935         replaced.
36936         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
36937         * m4/stddef_h.m4: New file.
36938         * modules/stddef: Likewise.
36939         * lib/stddef.in.h: Likewise.
36940         * modules/stddef-tests: Likewise.
36941         * tests/test-stddef.c: Likewise.
36942         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
36943         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
36944         * doc/posix-headers/locale.texi (locale.h): Likewise.
36945         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
36946         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
36947         * doc/posix-headers/string.texi (string.h): Likewise.
36948         * doc/posix-headers/time.texi (time.h): Likewise.
36949         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
36950         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
36951
36952 2009-08-14  Eric Blake  <ebb9@byu.net>
36953
36954         doc: improve git diff of texinfo files
36955         * .gitattributes: Add rule for *.texi files, with hint on how to
36956         use it.
36957         Copied from m4, and based on a report by Bruno Haible.
36958
36959 2009-08-14  Bruno Haible  <bruno@clisp.org>
36960
36961         Disable multithread support by default on Cygwin 1.5.x for real.
36962         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
36963
36964 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
36965
36966         update-copyright: much ado about intervals
36967         * build-aux/update-copyright: Implement and document
36968         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
36969         of copyright year intervals.
36970         Also, document UPDATE_COPYRIGHT_YEAR.
36971         * tests/test-update-copyright.sh: Test it.
36972
36973         update-copyright: convert 2-digit to 4-digit years
36974         * build-aux/update-copyright: Implement and document.
36975         * tests/test-update-copyright.sh: Update.
36976
36977 2009-08-14  Jim Meyering  <meyering@redhat.com>
36978
36979         test-exclude: avoid coreutils "make check" failure
36980         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
36981         just as in test-argmatch.c.
36982
36983 2009-08-13  Eric Blake  <ebb9@byu.net>
36984
36985         test-dup2: fix bad assumption
36986         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
36987         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
36988
36989         test-version-etc: fix CRLF portability issue
36990         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
36991         recognize \r.
36992         * tests/test-argp-version-etc-1.sh: Likewise.
36993
36994         getopt: update client modules
36995         * modules/argp (Depends-on): Use getopt-gnu.
36996         * modules/git-merge-changelog (Depends-on): Likewise.
36997         * modules/long-options (Depends-on): Likewise.
36998         * modules/xstrtol (Depends-on): Likewise.
36999
37000 2009-08-13  Simon Josefsson  <simon@josefsson.org>
37001
37002         * tests/test-version-etc.sh: Don't fail on different
37003         project/version.  Don't fail on CRLF differences.  Rewrite to use
37004         multiple -e instead of multiple sed forks, suggested by Eric Blake
37005         <ebb9@byu.net>.
37006         * tests/test-argp-version-etc-1.sh: Likewise.
37007
37008 2009-08-13  Simon Josefsson  <simon@josefsson.org>
37009
37010         * tests/test-version-etc.sh: Don't fail on different
37011         project/version.
37012
37013 2009-08-12  Bruno Haible  <bruno@clisp.org>
37014
37015         Tests for modules 'getopt-posix', 'getopt-gnu'.
37016         * modules/getopt-posix-tests: New file.
37017         * tests/test-getopt.c: New file.
37018         * tests/test-getopt.h: New file.
37019         * tests/test-getopt_long.h: New file.
37020
37021         New modules 'getopt-posix', 'getopt-gnu'.
37022         * modules/getopt-gnu: New file, renamed from modules/getopt.
37023         * modules/getopt-posix: New file.
37024         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
37025         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
37026         (gl_GETOPT): Remove macro.
37027         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
37028         Disable the test against BSD systems that declare optreset. Test
37029         against mingw bug. Test against lack of support of optional arguments
37030         on many platforms.
37031         * doc/glibc-headers/getopt.texi: Update module name and list of
37032         relevant platforms.
37033         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
37034         'getopt-gnu' and more portability problems.
37035         * NEWS: Mention the changes.
37036
37037 2009-08-12  Bruno Haible  <bruno@clisp.org>
37038
37039         Ensure that optarg etc. get declared by <unistd.h>.
37040         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
37041         AC_USE_SYSTEM_EXTENSIONS.
37042         * modules/getopt (Depends-on): Add 'extensions'.
37043
37044 2009-08-12  Bruno Haible  <bruno@clisp.org>
37045
37046         Avoid test link errors.
37047         * modules/pipe-filter-ii-tests (Makefile.am): Define
37048         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
37049         * modules/pipe-filter-gi-tests (Makefile.am): Define
37050         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
37051         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
37052
37053 2009-08-12  Bruno Haible  <bruno@clisp.org>
37054
37055         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
37056         gl_GETOPT_SUBSTITUTE before.
37057         (gl_GETOPT): Use it.
37058         * m4/argp.m4 (gl_ARGP): Update.
37059         Reported by Sergey Poznyakoff.
37060
37061         * m4/getopt.m4: Reorder macros.
37062         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
37063         (gl_GETOPT_SUBSTITUTE): Remove macro.
37064
37065 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
37066
37067         Minor improvement in gitlog-to-changelog
37068
37069         * build-aux/gitlog-to-changelog: New option `--format' makes
37070         output format string configurable.
37071
37072 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
37073
37074         Optimize exclude: use hash tables for non-wildcard patterns.
37075
37076         * lib/exclude.c: Include hash.h and mbuiter.h
37077         (struct exclude_pattern, exclude_segment): New data types.
37078         (struct exclude): Rewrite.
37079         (fnmatch_pattern_has_wildcards): New function.
37080         (new_exclude_segment, free_exclude_segment): New functions.
37081         (excluded_file_pattern_p, excluded_file_name_p): New functions.
37082         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
37083         * lib/exclude.h (is_fnmatch_pattern): New prototype.
37084         * modules/exclude: Depend on hash and mbuiter.
37085
37086         * modules/exclude-tests: New file.
37087         * tests/test-exclude.c: New file.
37088         * tests/test-exclude1.sh: New file.
37089         * tests/test-exclude2.sh: New file.
37090         * tests/test-exclude3.sh: New file.
37091         * tests/test-exclude4.sh: New file.
37092         * tests/test-exclude5.sh: New file.
37093         * tests/test-exclude6.sh: New file.
37094         * tests/test-exclude7.sh: New file.
37095
37096 2009-08-12  Bruno Haible  <bruno@clisp.org>
37097
37098         Ensure that getopt() gets declared by <unistd.h>.
37099         * lib/unistd.in.h: Conditionally include getopt.h.
37100         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
37101         Set GNULIB_UNISTD_H_GETOPT.
37102         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
37103         GNULIB_UNISTD_H_GETOPT.
37104         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
37105
37106 2009-08-12  Bruno Haible  <bruno@clisp.org>
37107
37108         Clarify logic.
37109         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
37110         gl_replace_getopt instead of GETOPT_H.
37111
37112 2009-08-12  Bruno Haible  <bruno@clisp.org>
37113
37114         * m4/getopt.m4: Add comments.
37115
37116 2009-08-12  Bruno Haible  <bruno@clisp.org>
37117
37118         Disable multithread support by default on Cygwin 1.5.x.
37119         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
37120         set gl_use_threads=no if not specified otherwise.
37121
37122 2009-08-11  Bruno Haible  <bruno@clisp.org>
37123
37124         Avoid compilation error on NetBSD 5.0.
37125         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
37126         * tests/test-stdio.c: Likewise.
37127         * tests/test-stdlib.c: Likewise.
37128         * tests/test-string.c: Likewise.
37129         * tests/test-unistd.c: Likewise.
37130         Reported by Greg Troxel <gdt@ir.bbn.com>
37131         at <https://savannah.gnu.org/support/?106973>.
37132
37133 2009-08-11  Bruno Haible  <bruno@clisp.org>
37134
37135         * modules/dup2-tests (Depends-on): Remove close.
37136
37137         Undo 2009-07-19 commit.
37138         * modules/acl-tests (Depends-on): Remove close.
37139         * modules/binary-io-tests (Depends-on): Likewise.
37140         * modules/closein-tests (Depends-on): Likewise.
37141         * modules/flock-tests (Depends-on): Likewise.
37142         * modules/fsync-tests (Depends-on): Likewise.
37143         * modules/lseek-tests (Depends-on): Likewise.
37144         * modules/pipe-tests (Depends-on): Likewise.
37145         * modules/posix_spawn-tests (Depends-on): Likewise.
37146         * modules/posix_spawnp-tests (Depends-on): Likewise.
37147         * modules/stat-time-tests (Depends-on): Likewise.
37148         * modules/yesno-tests (Depends-on): Likewise.
37149
37150 2009-08-10  Bruno Haible  <bruno@clisp.org>
37151
37152         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
37153
37154 2009-08-10  Bruno Haible  <bruno@clisp.org>
37155
37156         Fix a gcc warning.
37157         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
37158
37159 2009-08-10  Bruno Haible  <bruno@clisp.org>
37160
37161         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
37162         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
37163         not only the first time.
37164         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
37165         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
37166         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
37167         is 1, not only the the first time.
37168
37169 2009-08-10  Bruno Haible  <bruno@clisp.org>
37170
37171         Make it possible to use module 'gethostname' without module 'close'.
37172         * lib/unistd.in.h (close): Evoke a link error only if
37173         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
37174         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
37175         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
37176         * modules/unistd (Makefile.am): Substitute
37177         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
37178         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
37179         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
37180         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
37181         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
37182         * modules/sys_ioctl (Makefile.am): Substitute
37183         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
37184         * modules/socket (configure.ac): On native Windows, set
37185         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
37186         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
37187         Reported by Sam Steingold <sds@gnu.org>.
37188
37189 2009-08-10  Bruno Haible  <bruno@clisp.org>
37190
37191         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
37192         * modules/ioctl (configure.ac): Likewise.
37193
37194 2009-08-10  Bruno Haible  <bruno@clisp.org>
37195
37196         Avoid collision between gnulib wrapper and libintl wrapper.
37197         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
37198         already defined in intl/printf.c.
37199         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
37200         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
37201
37202 2009-08-09  Bruno Haible  <bruno@clisp.org>
37203
37204         Make <sys/select.h> really self-contained, also on Solaris 10.
37205         * lib/sys_select.in.h: Include <string.h>.
37206         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
37207         Solaris 10 problem.
37208         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
37209         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
37210         Reported by Jim Meyering.
37211
37212 2009-08-09  Bruno Haible  <bruno@clisp.org>
37213
37214         Avoid warnings from 'aclocal' that are due to a use of macro name
37215         AM_XGETTEXT_OPTION that is not defined in automake.
37216         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
37217         automake.
37218         * modules/error (configure.ac): Likewise.
37219         * modules/propername (configure.ac): Likewise.
37220         * modules/vasprintf (configure.ac): Likewise.
37221         * modules/verror (configure.ac): Likewise.
37222         * modules/xprintf (configure.ac): Likewise.
37223         * modules/xvasprintf (configure.ac): Likewise.
37224
37225 2009-08-08  Bruno Haible  <bruno@clisp.org>
37226
37227         Avoid compilation error in C++ mode.
37228         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
37229         Reported by Sam Steingold <sds@gnu.org>.
37230
37231 2009-08-08  Bruno Haible  <bruno@clisp.org>
37232
37233         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
37234         for the various Unix platforms.
37235         * doc/posix-headers/limits.texi: Update platforms list regarding
37236         HOST_NAME_MAX.
37237         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
37238
37239 2009-08-07  Jim Meyering  <meyering@redhat.com>
37240
37241         selinux-at: fix typo in a comment
37242         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
37243         Spotted by Paolo Bonzini.
37244
37245         selinux-at: remove redundant m4 code, add documentation
37246         * modules/selinux-at (configure.ac): Remove redundant code.
37247         LIB_SELINUX is already set via the dependent module, selinux-h.
37248         (Include): Add quotes around selinux-at.h.
37249         * lib/selinux-at.h: Add documentation.
37250         Reported by Bruno Haible in
37251         http://marc.info/?l=gnulib-bug&m=124958988300749
37252
37253 2009-08-07  Bruno Haible  <bruno@clisp.org>
37254
37255         Avoid link error on MacOS X 10.3 and 10.4.
37256         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
37257         on non-ELF systems.
37258         * lib/argp-pv.c (argp_program_version): Likewise.
37259         Reported by Simon Josefsson.
37260
37261 2009-08-07  Simon Josefsson  <simon@josefsson.org>
37262
37263         * tests/test-version-etc.sh: Use $EXEEXT.
37264
37265 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
37266
37267         update-copyright: update documentation to point to maint.mk
37268         * build-aux/update-copyright: Here.
37269
37270 2009-08-06  Jim Meyering  <meyering@redhat.com>
37271
37272         maint.mk: support update-copyright-local
37273         * top/maint.mk (update-copyright-local): Define place-holder.
37274         (update-copyright): Depend on $(update-copyright-local).
37275
37276 2009-08-06  Jim Meyering  <meyering@redhat.com>
37277
37278         selinux-at: new module
37279         Initially written for coreutils, this module will soon be
37280         used by findutils, too.
37281         * MODULES.html.sh [Misc]: Add selinux-at.
37282         * lib/selinux-at.h: New file, from coreutils.
37283         * lib/selinux-at.c: Likewise.
37284         * modules/selinux-at: Likewise.
37285         (License): Change from LGPL to GPL, since it depends
37286         on the GPL'd openat module.
37287
37288         doc: update README
37289         * README: Remove references to cogito.
37290         Remove cvs-repo-updating instructions from 2007.
37291         Don't imply that CVS is better if you have limited disk space.
37292
37293 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
37294
37295         update-copyright: support C-style comments
37296         * build-aux/update-copyright: Implement and document.
37297         * tests/test-update-copyright.sh: Test.
37298
37299 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
37300
37301         update-copyright: support omitted "(C)"
37302         * build-aux/update-copyright: Implement and document.  Also,
37303         allow variable whitespace before "(C)".
37304         * tests/test-update-copyright.sh: Test.
37305
37306 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
37307
37308         update-copyright: don't trip on non-FSF copyright statements
37309         * build-aux/update-copyright: Fix so that the first correctly
37310         formatted FSF copyright statement is recognized no matter what
37311         appears before it.  Update documentation.
37312         * tests/test-update-copyright.sh: Test that.
37313
37314 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
37315
37316         update-copyright: clean up code a little
37317         * build-aux/update-copyright: Append "_re" to the name of any
37318         variable holding a regular expression.
37319         Replace "old" and "new" with "stmt" in variable names.
37320         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
37321         handled correctly.
37322         Format code more consistently.
37323
37324 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
37325
37326         update-copyright-tests: improve portability
37327         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
37328         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
37329
37330 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
37331
37332         update-copyright: support @copyright{} and &copy;
37333         * build-aux/update-copyright: Implement and document.
37334         * tests/test-update-copyright.sh: Test.
37335
37336 2009-08-04  Jim Meyering  <meyering@redhat.com>
37337
37338         update-copyright-tests: correctly test EOL=\r\n handling
37339         * tests/test-update-copyright.sh: Put \r at the end of some lines
37340         for the dos-eol tests.  Based on a patch by Joel E. Denny.
37341
37342         maint.mk: make update-copyright exclusion list more configurable
37343         * top/maint.mk (update-copyright): Default to excluding COPYING,
37344         but allow an override, in case someone does want to update that file.
37345
37346         maint.mk: don't update copyright date in COPYING
37347         * top/maint.mk (update-copyright): Exclude COPYING.
37348
37349         maint.mk: add a copyright-updating rule
37350         * top/maint.mk (update-copyright): New rule.
37351         Derived from coreutils/Makefile.am.
37352
37353         update-copyright: rename some variables
37354         * build-aux/update-copyright: Rename a few variables for clarity.
37355         Tweak syntax.  List Joel E. Denny as coauthor.
37356
37357 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
37358
37359         update-copyright: fix bug for 2-digit last year and add tests
37360         * build-aux/update-copyright: Fix bug.
37361         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
37362         specified.
37363         * modules/update-copyright-tests: New
37364         * tests/test-update-copyright.sh: New.
37365
37366 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
37367
37368         update-copyright: handle leading tabs in line prefix
37369         * build-aux/update-copyright: Count leading tabs as 8 spaces
37370         when computing margin.  This helps with the formatting of
37371         ChangeLogs, for example.
37372         Fix documentation a little.
37373
37374 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
37375
37376         update-copyright: support EOL=\r\n
37377         * build-aux/update-copyright: Implement that.
37378
37379 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
37380
37381         update-copyright: automatically format copyright statements
37382         * build-aux/update-copyright: Implement that.
37383         Also, be a little more predictable and safer by always failing
37384         when the full copyright format is not perfectly recognized as an
37385         unbroken whole.  Discussed at
37386         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
37387         Rewrite documentation.
37388
37389 2009-08-03  Bruno Haible  <bruno@clisp.org>
37390
37391         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
37392
37393 2009-08-02  Bruno Haible  <bruno@clisp.org>
37394
37395         Tests for module 'uname'.
37396         * modules/uname-tests: New file.
37397         * tests/test-uname.c: New file.
37398
37399         New module 'uname'.
37400         * lib/uname.c: New file.
37401         * m4/uname.m4: New file.
37402         * modules/uname: New file.
37403         * doc/posix-functions/uname.texi: Mention the new module.
37404
37405 2009-08-02  Bruno Haible  <bruno@clisp.org>
37406
37407         Tests for module 'sys_utsname'.
37408         * modules/sys_utsname-tests: New file.
37409         * tests/test-sys_utsname.c: New file.
37410
37411         New module 'sys_utsname'.
37412         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
37413         * m4/sys_utsname_h.m4: New file.
37414         * modules/sys_utsname: New file.
37415         * doc/posix-headers/sys_utsname.texi: Mention the new module.
37416
37417 2009-08-02  Bruno Haible  <bruno@clisp.org>
37418
37419         Implicitly initialize the sockets library.
37420         * lib/gethostname.c: Include sockets.h.
37421         (rpl_gethostname): Invoke gl_sockets_startup.
37422         * lib/socket.c: Include sockets.h.
37423         (rpl_socket): Invoke gl_sockets_startup.
37424         * modules/gethostname (Depends-on): Add sockets.
37425         * modules/socket (Depends-on): Likewise.
37426         * tests/test-poll.c: Don't include sockets.h.
37427         (main): Don't invoke gl_sockets_startup.
37428         * tests/test-select.c: Don't include sockets.h.
37429         (main): Don't invoke gl_sockets_startup.
37430
37431 2009-08-02  Bruno Haible  <bruno@clisp.org>
37432
37433         Allow multiple calls to gl_sockets_startup.
37434         * lib/sockets.c (initialized_sockets_version): New variable.
37435         (gl_sockets_startup): Do nothing if already called for this or a higher
37436         version.
37437         (gl_sockets_cleanup): Reset initialized_sockets_version.
37438
37439 2009-08-03  Simon Josefsson  <simon@josefsson.org>
37440
37441         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
37442         different project/version.
37443
37444 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
37445             Bruno Haible  <bruno@clisp.org>
37446
37447         Tests for module 'pipe-filter-gi'.
37448         * modules/pipe-filter-gi-tests: New file.
37449         * tests/test-pipe-filter-gi1.sh: New file.
37450         * tests/test-pipe-filter-gi1.c: New file.
37451         * tests/test-pipe-filter-gi2.sh: New file.
37452         * tests/test-pipe-filter-gi2-main.c: New file.
37453         * tests/test-pipe-filter-gi2-child.c: New file.
37454
37455         New module 'pipe-filter-gi'.
37456         * lib/pipe-filter-gi.c: New file.
37457         * modules/pipe-filter-gi: New file.
37458
37459 2009-08-02  Bruno Haible  <bruno@clisp.org>
37460             Paolo Bonzini  <bonzini@gnu.org>
37461
37462         Tests for module 'pipe-filter-ii'.
37463         * modules/pipe-filter-ii-tests: New file.
37464         * tests/test-pipe-filter-ii1.sh: New file.
37465         * tests/test-pipe-filter-ii1.c: New file.
37466         * tests/test-pipe-filter-ii2.sh: New file.
37467         * tests/test-pipe-filter-ii2-main.c: New file.
37468         * tests/test-pipe-filter-ii2-child.c: New file.
37469
37470         New module 'pipe-filter-ii'.
37471         * lib/pipe-filter.h: New file.
37472         * lib/pipe-filter-ii.c: New file.
37473         * lib/pipe-filter-aux.h: New file.
37474         * modules/pipe-filter-ii: New file.
37475
37476 2009-08-02  Simon Josefsson  <simon@josefsson.org>
37477
37478         * lib/gc-libgcrypt.c: Change copyright to FSF.
37479         * lib/gc-gnulib.c: Likewise.
37480
37481 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
37482
37483         * lib/gethostname.c: Include limits.h.
37484
37485 2009-08-02  Simon Josefsson  <simon@josefsson.org>
37486             Bruno Haible  <bruno@clisp.org>
37487
37488         Ensure HOST_NAME_MAX as part of the gethostname module.
37489         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
37490         define also HOST_NAME_MAX.
37491         * tests/test-gethostname.c: Include <limits.h>.
37492         (main): Check also HOST_NAME_MAX.
37493         * doc/posix-headers/limits.texi: Document the mingw problem.
37494
37495 2009-08-02  Bruno Haible  <bruno@clisp.org>
37496
37497         * lib/gethostname.c (gethostname): Fix handling of large len argument.
37498         Add comments.
37499
37500 2009-03-31  Simon Josefsson  <simon@josefsson.org>
37501
37502         * lib/gethostname.c: Add Windows wrapper.
37503         * m4/gethostname.m4: Look for gethostname in -lws2_32.
37504         * modules/gethostname: Depend on sys_socket & errno, for also
37505         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
37506         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
37507
37508 2009-07-31  Jim Meyering  <meyering@redhat.com>
37509
37510         getloadavg: fix symbol name in comment
37511         * lib/getloadavg.c: Correct a typo I introduced when adding
37512         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
37513         Matt Kraai spotted the problem.
37514
37515 2009-07-29  Matt Kraai  <mkraai@beckman.com>
37516
37517         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
37518         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
37519         code also if ! defined N_NAME_POINTER.
37520         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
37521         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
37522         but the n_name member is a 12-byte array.
37523
37524 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
37525
37526         update-copyright: generalize comment handling
37527         * build-aux/update-copyright: Handle copyright statements
37528         within more comment styles.
37529         Document usage.
37530         Report any file with an external copyright holder or parse failure.
37531
37532 2009-07-29  Jim Meyering  <meyering@redhat.com>
37533
37534         mktime: correct setting of REPLACE_MKTIME
37535         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
37536
37537         update-copyright: new module
37538         * modules/update-copyright: New file.
37539         * build-aux/update-copyright: New file.
37540         * MODULES.html.sh (maint+release support): Add update-copyright.
37541
37542 2009-07-27  Bruno Haible  <bruno@clisp.org>
37543
37544         Fix compilation error when <ctime> is used and mktime is replaced.
37545         * lib/time.in.h (mktime): New declaration.
37546         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
37547         REPLACE_MKTIME instead of defining mktime in config.h.
37548         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
37549         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
37550         Reported by Ross McFarland <rwmcfa1@neces.com>.
37551
37552 2009-07-27  Bruno Haible  <bruno@clisp.org>
37553
37554         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
37555         Reported by Matt Kraai <mkraai@beckman.com>.
37556
37557 2009-07-25  Jim Meyering  <meyering@redhat.com>
37558
37559         maint.mk: avoid warnings about missing files
37560         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
37561         diagnostic when .prev-version does not exist.
37562         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
37563         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
37564         nonexistent cfg.mk.
37565         Suggestions from Simon Josefsson.
37566
37567 2009-07-25  Bruno Haible  <bruno@clisp.org>
37568
37569         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
37570         defined as macros. Needed on QNX 6.4.1.
37571         Reported by Matt Kraai <mkraai@beckman.com>.
37572
37573 2009-07-23  Jim Meyering  <meyering@redhat.com>
37574
37575         maint.mk: invoke "make dist" with a working value of XZ_OPT
37576         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
37577
37578 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
37579
37580         Make fseeko.c compile on QNX.
37581         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
37582
37583 2009-07-22  Peter Simons  <simons@cryp.to>
37584
37585         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
37586         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
37587         * lib/md4.h: Likewise.
37588         * lib/md5.h: Likewise.
37589         * lib/sha1.h: Likewise.
37590         * lib/sha256.h: Likewise.
37591         * lib/sha512.h: Likewise.
37592
37593         tests-sha1: don't assign literal string to 'char *' variable
37594         * tests/test-sha1.c (main): Declare locals with "const" to match
37595         attributes of the right hand side.
37596
37597 2009-07-21  Eric Blake  <ebb9@byu.net>
37598
37599         dup2: fix more mingw problems
37600         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
37601         fd to itself.
37602         * doc/posix-functions/dup2.texi (dup2): Document the bug.
37603         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
37604         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
37605         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
37606         care of mingw bugs.
37607
37608 2009-07-21  Jim Meyering  <meyering@redhat.com>
37609
37610         vc-list-files: avoid failure when /bin/sh is dash
37611         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
37612         On some Debian based systems, /bin/sh is a symlink to dash, and running
37613         this command would omit the "/" following each 'tests' prefix:
37614           dash -x build-aux/vc-list-files -C . tests
37615         That is because bash and dash work differently:
37616           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
37617           bash ok
37618           dash odd
37619
37620 2009-07-21  Eric Blake  <ebb9@byu.net>
37621
37622         dup2-tests: test previous patch
37623         * modules/dup2-tests: New file.
37624         * tests/test-dup2.c: Likewise.
37625         * tests/test-open.c (main): Avoid unspecified behavior.
37626         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
37627         test.
37628
37629         dup2: work around mingw and cygwin 1.5 bug
37630         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
37631         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
37632         * modules/unistd (Makefile.am): Substitute it.
37633         * lib/unistd.in.h (dup2): Declare the replacement.
37634         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
37635         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
37636         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
37637         * modules/execute (Depends-on): Add dup2.
37638         * modules/fseterr (Depends-on): Likewise.
37639         * modules/pipe (Depends-on): Likewise.
37640         * modules/posix_spawn-internal (Depends-on): Likewise.
37641
37642 2009-07-21  Bruno Haible  <bruno@clisp.org>
37643
37644         * modules/.gitattributes: New file.
37645
37646 2009-07-20  Bruno Haible  <bruno@clisp.org>
37647
37648         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
37649         (main): Use it.
37650
37651 2009-07-20  Eric Blake  <ebb9@byu.net>
37652
37653         test-pipe: make a bit more robust.
37654         * tests/test-pipe.c (myerr): Allow error messages regardless of
37655         what we do to stderr.
37656         (test_pipe): Rearrange to avoid deadlock.
37657         (child_main): Try a larger read, to ensure we avoided deadlock.
37658         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
37659         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
37660         if misused.
37661
37662 2009-07-19  Jim Meyering  <meyering@redhat.com>
37663
37664         fts: avoid false-positive cycle-detection
37665         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
37666         for each new command line argument.
37667
37668 2009-07-19  Bruno Haible  <bruno@clisp.org>
37669
37670         Fix build error on mingw with the modules sys_select and unistd.
37671         * modules/acl-tests (Depends-on): Add close.
37672         * modules/binary-io-tests (Depends-on): Likewise.
37673         * modules/closein-tests (Depends-on): Likewise.
37674         * modules/flock-tests (Depends-on): Likewise.
37675         * modules/fsync-tests (Depends-on): Likewise.
37676         * modules/lseek-tests (Depends-on): Likewise.
37677         * modules/pipe-tests (Depends-on): Likewise.
37678         * modules/posix_spawn-tests (Depends-on): Likewise.
37679         * modules/posix_spawnp-tests (Depends-on): Likewise.
37680         * modules/stat-time-tests (Depends-on): Likewise.
37681         * modules/yesno-tests (Depends-on): Likewise.
37682
37683 2009-07-19  Bruno Haible  <bruno@clisp.org>
37684
37685         Unify conditionals.
37686         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
37687         macros, not at the compiler macros.
37688         * lib/pipe.c: Likewise.
37689         * lib/execute.c: Likewise.
37690         * lib/spawni.c: Likewise.
37691
37692 2009-07-19  Bruno Haible  <bruno@clisp.org>
37693
37694         Fix handling of closed stdin/stdout/stderr on mingw.
37695         * lib/w32spawn.h: Include unistd.h.
37696         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
37697         file descriptor with O_NOINHERIT flag.
37698         (fd_safer_noinherit): New function, based on fd-safer.c.
37699         (dup_safer_noinherit): New function, based on dup-safer.c.
37700         (undup_safer_noinherit): New function.
37701         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
37702         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
37703         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
37704         instead of fd_safer.
37705         * tests/test-pipe.c: Include <windows.h>.
37706         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
37707         result.
37708
37709         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
37710         from main.
37711         (test_pipe): Pass an extra argument for disambiguation.
37712         (main): Invoke parent_main or child_main.
37713
37714         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
37715         consistently.
37716
37717 2009-07-18  Eric Blake  <ebb9@byu.net>
37718
37719         test-pipe: fix mingw build
37720         * tests/test-pipe.c (main): Avoid fcntl on mingw.
37721
37722 2009-07-18  Bruno Haible  <bruno@clisp.org>
37723
37724         * modules/pipe-tests (Makefile.am): Fix typo.
37725
37726 2009-07-18  Eric Blake  <ebb9@byu.net>
37727
37728         error: fix mingw build
37729         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
37730         Reported by Bruno Haible.
37731
37732         error: avoid undefined use of stdout
37733         * lib/error.c (error, error_at_line): Check that fd 1 is open
37734         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
37735         is handling faults and the close_stdout module wants to report the
37736         detection of closed stdout as an error.
37737
37738 2009-07-17  Eric Blake  <ebb9@byu.net>
37739
37740         pipe: be robust in face of closed fds
37741         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
37742         should cause child to misbehave.
37743         * modules/pipe-tests: New module.
37744         * tests/test-pipe.c: New file.
37745         * tests/test-pipe.sh: New file.
37746         Reported by Akim Demaille.
37747
37748 2009-07-14  Bruno Haible  <bruno@clisp.org>
37749
37750         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
37751         Reported by anonymous kc.
37752
37753 2009-07-07  Jim Meyering  <meyering@redhat.com>
37754
37755         maint.mk: don't look for translatable strings in *.m4 or *.mk
37756         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
37757         when searching for translatable strings.
37758
37759 2009-07-05  Jim Meyering  <meyering@redhat.com>
37760
37761         remove superfluous parentheses in STREQ definition
37762         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
37763         * lib/getugroups.c (STREQ): Likewise.
37764         * lib/fnmatch.c (STREQ): Likewise.
37765         Spotted by Bruno Haible.
37766
37767 2009-07-04  Jim Meyering  <meyering@redhat.com>
37768
37769         argv-iter: new module
37770         * MODULES.html.sh: Add argv-iter.
37771         * lib/argv-iter.c, lib/argv-iter.h: New files.
37772         * modules/argv-iter: New file.
37773         * modules/argv-iter-tests: New file.
37774         * tests/test-argv-iter.c: Test it.
37775
37776 2009-07-04  Bruno Haible  <bruno@clisp.org>
37777
37778         Fix assertion.
37779         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
37780         contains more exact copies of a given entry than file2, leave the extra
37781         copies unpaired rather than aborting.
37782         Reported by Eric Blake.
37783
37784 2009-07-02  Bruno Haible  <bruno@clisp.org>
37785
37786         Speedup git-merge-changelog for git cherry-pick.
37787         * lib/git-merge-changelog.c (struct entries_mapping): New type.
37788         (entries_mapping_get): New function, extracted from compute_mapping.
37789         (entries_mapping_reverse_get): New function.
37790         (compute_mapping): Add a 'full' argument. Return the result in a
37791         'struct entries_mapping'.
37792         (main): Update. Access the mappings through entries_mapping_get.
37793         Reported by Eric Blake.
37794
37795 2009-07-02  Bruno Haible  <bruno@clisp.org>
37796
37797         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
37798         best_i.
37799
37800 2009-07-02  Bruno Haible  <bruno@clisp.org>
37801
37802         Speed up approximate search for matching ChangeLog entries.
37803         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
37804         argument. Call fstrcmp_bounded instead of fstrcmp.
37805         (compute_mapping, try_split_merged_entry, main): Update callers.
37806
37807 2009-07-02  Bruno Haible  <bruno@clisp.org>
37808
37809         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
37810
37811 2009-06-30  Bruno Haible  <bruno@clisp.org>
37812
37813         Reduce the number of uc_is_cased calls.
37814         * lib/unicase.h (casing_suffix_context_t): Add
37815         'first_char_except_ignorable' field.
37816         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
37817         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
37818         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
37819         Update initializer.
37820         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
37821         case-ignorable characters.
37822         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
37823         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
37824         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
37825         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
37826         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
37827
37828 2009-06-30  Bruno Haible  <bruno@clisp.org>
37829
37830         Tests for module 'unicase/ignorable'.
37831         * modules/unicase/ignorable-tests: New file.
37832         * tests/unicase/test-ignorable.c: New file, generated by
37833         gen-uni-tables.
37834
37835         Tests for module 'unicase/cased'.
37836         * modules/unicase/cased-tests: New file.
37837         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
37838         * tests/unicase/test-predicate-part1.h: New file, derived from
37839         tests/unictype/test-predicate-part1.h.
37840         * tests/unicase/test-predicate-part2.h: New file, same as
37841         tests/unictype/test-predicate-part2.h.
37842
37843         Fix evaluation of "Before C" condition of FINAL_SIGMA.
37844         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
37845         (output_casing_properties): New function.
37846         (main): Call it.
37847         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
37848         * lib/unicase/cased.c: Include unictype/bitmap.h.
37849         (uc_is_cased): Define through a bitmap lookup.
37850         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
37851         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
37852         (uc_is_case_ignorable): Define through a bitmap lookup.
37853         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
37854         lib/unictype/bitmap.h.
37855         (Depends-on): Add inline. Clean up.
37856         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
37857         lib/unictype/bitmap.h.
37858         (Depends-on): Add inline. Clean up.
37859         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
37860         recognition.
37861         * tests/unicase/test-u16-tolower.c (main): Likewise.
37862         * tests/unicase/test-u32-tolower.c (main): Likewise.
37863
37864 2009-06-30  Bruno Haible  <bruno@clisp.org>
37865
37866         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
37867         * lib/unicase/u16-casemap.c: Likewise.
37868         * lib/unicase/u32-casemap.c: Likewise.
37869
37870 2009-06-29  Bruno Haible  <bruno@clisp.org>
37871
37872         Define u32_casefold as a wrapper around u32_ct_casefold.
37873         * lib/unicase/u32-casefold.c: Update.
37874         * modules/unicase/u32-casefold (Depends-on): Add
37875         unicase/u32-ct-casefold, unicase/empty-prefix-context,
37876         unicase/empty-suffix-context. Clean up.
37877
37878         Define u16_casefold as a wrapper around u16_ct_casefold.
37879         * lib/unicase/u16-casefold.c: Update.
37880         * modules/unicase/u16-casefold (Depends-on): Add
37881         unicase/u16-ct-casefold, unicase/empty-prefix-context,
37882         unicase/empty-suffix-context. Clean up.
37883
37884         Define u8_casefold as a wrapper around u8_ct_casefold.
37885         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
37886         * lib/unicase/u8-casefold.c: Update.
37887         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
37888         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
37889
37890         Define u32_totitle as a wrapper around u32_ct_totitle.
37891         * lib/unicase/u32-totitle.c: Update.
37892         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
37893         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
37894
37895         Define u16_totitle as a wrapper around u16_ct_totitle.
37896         * lib/unicase/u16-totitle.c: Update.
37897         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
37898         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
37899
37900         Define u8_totitle as a wrapper around u8_ct_totitle.
37901         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
37902         functions.
37903         (FUNC): Delegate to U_CT_TOTITLE.
37904         * lib/unicase/u8-totitle.c: Update.
37905         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
37906         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
37907
37908         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
37909         invocation.
37910         * modules/unicase/u32-tolower (Depends-on): Add
37911         unicase/empty-prefix-context, unicase/empty-suffix-context.
37912
37913         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
37914         invocation.
37915         * modules/unicase/u16-tolower (Depends-on): Add
37916         unicase/empty-prefix-context, unicase/empty-suffix-context.
37917
37918         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
37919         * modules/unicase/u8-tolower (Depends-on): Add
37920         unicase/empty-prefix-context, unicase/empty-suffix-context.
37921
37922         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
37923         invocation.
37924         * modules/unicase/u32-toupper (Depends-on): Add
37925         unicase/empty-prefix-context, unicase/empty-suffix-context.
37926
37927         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
37928         invocation.
37929         * modules/unicase/u16-toupper (Depends-on): Add
37930         unicase/empty-prefix-context, unicase/empty-suffix-context.
37931
37932         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
37933         * modules/unicase/u8-toupper (Depends-on): Add
37934         unicase/empty-prefix-context, unicase/empty-suffix-context.
37935
37936         New module 'unicase/u32-ct-casefold'.
37937         * lib/unicase/u32-ct-casefold.c: New file.
37938         * modules/unicase/u32-ct-casefold: New file.
37939
37940         New module 'unicase/u16-ct-casefold'.
37941         * lib/unicase/u16-ct-casefold.c: New file.
37942         * modules/unicase/u16-ct-casefold: New file.
37943
37944         New module 'unicase/u8-ct-casefold'.
37945         * lib/unicase/u8-ct-casefold.c: New file.
37946         * lib/unicase/u-ct-casefold.h: New file, derived from
37947         lib/unicase/u-casefold.h.
37948         * modules/unicase/u8-ct-casefold: New file.
37949
37950         New module 'unicase/u32-ct-totitle'.
37951         * lib/unicase/u32-ct-totitle.c: New file.
37952         * modules/unicase/u32-ct-totitle: New file.
37953
37954         New module 'unicase/u16-ct-totitle'.
37955         * lib/unicase/u16-ct-totitle.c: New file.
37956         * modules/unicase/u16-ct-totitle: New file.
37957
37958         New module 'unicase/u8-ct-totitle'.
37959         * lib/unicase/u8-ct-totitle.c: New file.
37960         * lib/unicase/u-ct-totitle.h: New file, derived from
37961         lib/unicase/u-totitle.h.
37962         * modules/unicase/u8-ct-totitle: New file.
37963
37964         New module 'unicase/u32-ct-tolower'.
37965         * lib/unicase/u32-ct-tolower.c: New file.
37966         * modules/unicase/u32-ct-tolower: New file.
37967
37968         New module 'unicase/u16-ct-tolower'.
37969         * lib/unicase/u16-ct-tolower.c: New file.
37970         * modules/unicase/u16-ct-tolower: New file.
37971
37972         New module 'unicase/u8-ct-tolower'.
37973         * lib/unicase/u8-ct-tolower.c: New file.
37974         * modules/unicase/u8-ct-tolower: New file.
37975
37976         New module 'unicase/u32-ct-toupper'.
37977         * lib/unicase/u32-ct-toupper.c: New file.
37978         * modules/unicase/u32-ct-toupper: New file.
37979
37980         New module 'unicase/u16-ct-toupper'.
37981         * lib/unicase/u16-ct-toupper.c: New file.
37982         * modules/unicase/u16-ct-toupper: New file.
37983
37984         New module 'unicase/u8-ct-toupper'.
37985         * lib/unicase/u8-ct-toupper.c: New file.
37986         * modules/unicase/u8-ct-toupper: New file.
37987
37988         Add context arguments to u*_casemap functions.
37989         * lib/unicase/unicasemap.h: Include unicase.h.
37990         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
37991         suffix_context arguments.
37992         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
37993         functions.
37994         (FUNC): Add prefix_context and suffix_context arguments. Use
37995         uc_is_cased and uc_is_case_ignorable.
37996         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
37997         * lib/unicase/u16-casemap.c: Likewise.
37998         * lib/unicase/u32-casemap.c: Likewise.
37999         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
38000         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
38001         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
38002         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
38003         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
38004         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
38005
38006         New module 'unicase/u32-suffix-context'.
38007         * lib/unicase/u32-suffix-context.c: New file.
38008         * modules/unicase/u32-suffix-context: New file.
38009
38010         New module 'unicase/u16-suffix-context'.
38011         * lib/unicase/u16-suffix-context.c: New file.
38012         * modules/unicase/u16-suffix-context: New file.
38013
38014         New module 'unicase/u8-suffix-context'.
38015         * lib/unicase/u8-suffix-context.c: New file.
38016         * lib/unicase/u-suffix-context.h: New file.
38017         * modules/unicase/u8-suffix-context: New file.
38018
38019         New module 'unicase/empty-suffix-context'.
38020         * lib/unicase/empty-suffix-context.c: New file.
38021         * modules/unicase/empty-suffix-context: New file.
38022
38023         New module 'unicase/u32-prefix-context'.
38024         * lib/unicase/u32-prefix-context.c: New file.
38025         * modules/unicase/u32-prefix-context: New file.
38026
38027         New module 'unicase/u16-prefix-context'.
38028         * lib/unicase/u16-prefix-context.c: New file.
38029         * modules/unicase/u16-prefix-context: New file.
38030
38031         New module 'unicase/u8-prefix-context'.
38032         * lib/unicase/u8-prefix-context.c: New file.
38033         * lib/unicase/u-prefix-context.h: New file.
38034         * lib/unicase/context.h: New file.
38035         * modules/unicase/u8-prefix-context: New file.
38036
38037         New module 'unicase/empty-prefix-context'.
38038         * lib/unicase/empty-prefix-context.c: New file.
38039         * modules/unicase/empty-prefix-context: New file.
38040
38041         New module 'unicase/ignorable'.
38042         * lib/unicase/ignorable.c: New file.
38043         * modules/unicase/ignorable: New file.
38044
38045         New module 'unicase/cased'.
38046         * lib/unicase/caseprop.h: New file.
38047         * lib/unicase/cased.c: New file.
38048         * modules/unicase/cased: New file.
38049
38050         New functions for case mapping of substrings.
38051         * lib/unicase.h (casing_prefix_context_t): New type.
38052         (unicase_empty_prefix_context): New variable.
38053         (u8_casing_prefix_context, u16_casing_prefix_context,
38054         u32_casing_prefix_context, u8_casing_prefixes_context,
38055         u16_casing_prefixes_context, u32_casing_prefixes_context): New
38056         declarations.
38057         (casing_suffix_context_t): New type.
38058         (unicase_empty_suffix_context): New variable.
38059         (u8_casing_suffix_context, u16_casing_suffix_context,
38060         u32_casing_suffix_context, u8_casing_suffixes_context,
38061         u16_casing_suffixes_context, u32_casing_suffixes_context,
38062         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
38063         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
38064         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
38065         declarations.
38066
38067 2009-06-28  Jim Meyering  <meyering@redhat.com>
38068
38069         boostrap: indent only with spaces
38070         * build-aux/bootstrap: Indent only with spaces, never TABs.
38071
38072         bootstrap: split long lines
38073         * build-aux/bootstrap: Keep line length < 80.
38074
38075         bootstrap: sync from coreutils
38076         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
38077         just as autoreconf does.  Verify a list of prerequisite
38078         package-name,version-number pairs if defined in bootstrap.conf.
38079         Refer to README-prereq, if prerequisites are not satisfied.
38080
38081 2009-06-27  Eric Blake  <ebb9@byu.net>
38082
38083         tests: add test for bogus NULL definition
38084         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
38085         * tests/test-stdlib.c: Likewise.
38086         * tests/test-string.c: Likewise.
38087         * tests/test-locale.c: Likewise.
38088         * tests/test-unistd.c: Likewise.
38089         * modules/stdio-tests (Depends-on): Add verify.
38090         * modules/stdlib-tests (Depends-on): Likewise.
38091         * modules/string-tests (Depends-on): Likewise.
38092         * modules/locale-tests (Depends-on): Likewise.
38093         * modules/unistd-tests (Depends-on): Likewise.
38094
38095 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
38096
38097         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
38098         self-explaining comment.
38099         * m4/selinux-selinux-h: Update serial.
38100         (gl_LIBSELINUX): New macro, adding a warning for missing development
38101         packages to code extracted from...
38102         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
38103         Add warning for missing development packages here, too.
38104
38105 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
38106
38107         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
38108
38109 2009-06-25  Eric Blake  <ebb9@byu.net>
38110
38111         version-etc: fix regression
38112         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
38113         gcc.
38114         (version_etc): Use it, to catch bugs with trailing NULL.
38115         * lib/version-etc.c (version_etc_arn): Delete unused argument.
38116         (version_etc_va): Fix logic bug.
38117         * modules/version-etc-tests: Add test.
38118         * tests/test-version-etc.c: New file.
38119         * tests/test-version-etc.sh: Likewise.
38120
38121 2009-06-25  Sam Steingold  <sds@gnu.org>
38122
38123         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
38124         mbtowc declaration.
38125
38126 2009-06-25  Eric Blake  <ebb9@byu.net>
38127
38128         fpurge: migrate into <stdio.h>
38129         * lib/fpurge.h: Delete...
38130         * lib/stdio.in.h (fpurge): ...and declare here, instead.
38131         * lib/fpurge.c (fpurge): Change declaring header.
38132         * modules/fpurge (Files): Drop deleted file.
38133         (Depends-on): Add stdio.
38134         (configure.ac): Set witness.
38135         * modules/stdio (Makefile.am): Support fpurge macros.
38136         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
38137         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
38138         * lib/fflush.c: Update client.
38139         * tests/test-fpurge.c: Likewise.
38140         * NEWS: Mention the change.
38141
38142 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
38143
38144         * lib/argp-version-etc.c (program_authors): Add const
38145         qualifier.
38146         * lib/version-etc.c: Fix typos in the comments.
38147         * modules/argp-version-etc: Depends on version-etc.
38148
38149 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
38150
38151         argp-version-etc: new module.
38152
38153         * lib/argp-version-etc.c: New file.
38154         * lib/argp-version-etc.h: New file.
38155         * modules/argp-version-etc: New file.
38156         * modules/argp-version-etc-tests: New file.
38157         * tests/test-argp-version-etc.c: New test.
38158         * tests/test-argp-version-etc-1.sh: New test.
38159
38160 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
38161
38162         Provide additional interfaces and documentation for version-etc
38163         module.
38164
38165         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
38166         interfaces.
38167         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
38168         prototypes.
38169
38170 2009-06-24  Bruno Haible  <bruno@clisp.org>
38171
38172         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
38173         HAVE_LIB${NAME} macro.
38174         Reported by Sam Steingold <sds@gnu.org>.
38175
38176 2009-06-23  Simon Josefsson  <simon@josefsson.org>
38177
38178         * modules/hash-tests (test_hash_LDADD): Link to libintl when
38179         needed.
38180
38181 2009-06-21  Bruno Haible  <bruno@clisp.org>
38182
38183         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
38184         work.
38185         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
38186         together with LIB${NAME}, LTLIB${NAME}.
38187         Reported by Sam Steingold <sds@gnu.org>.
38188
38189 2009-06-20  Jim Meyering  <meyering@redhat.com>
38190
38191         tests: make sc_require_test_exit_idiom more generic
38192         * top/maint.mk (Exit_witness_file): New overridable variable.
38193         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
38194         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
38195
38196 2009-06-19  Jim Meyering  <meyering@redhat.com>
38197
38198         hash: reverse order of src/dst parameters in an internal interface
38199         * lib/hash.c (transfer_entries): Reverse order of parameters to
38200         put DST before SRC.  Adjust callers.
38201
38202         tests: test-hash: avoid wholesale duplication
38203         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
38204         Instead, use a loop and add a single conditional.
38205
38206         tests: test-hash: allow seed selection via a command line argument
38207         * tests/test-hash.c (get_seed): New function.
38208         (main): Use it.
38209
38210 2009-06-19  Eric Blake  <ebb9@byu.net>
38211
38212         hash: avoid memory leak on allocation failure
38213         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
38214         failure.  Factor repeated algorithm...
38215         (transfer_entries): ...into new helper routine.
38216         (hash_delete): React to hash_rehash return value.
38217
38218         hash: reduce memory pressure in hash_rehash no-op case
38219         * lib/hash.c (next_prime): Avoid overflow.
38220         (hash_initialize): Factor bucket size computation...
38221         (compute_bucket_size): ...into new helper function.
38222         (hash_rehash): Use new function and open coding to reduce memory
38223         pressure, and avoid a memory leak in USE_OBSTACK code.
38224         Reported by Jim Meyering.
38225
38226 2009-06-18  Eric Blake  <ebb9@byu.net>
38227
38228         hash: make rotation more obvious
38229         * modules/hash (Depends-on): Add bitrotate and stdint.
38230         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
38231         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
38232         (SIZE_MAX): Rely on headers for definition.
38233         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
38234         (raw_hasher): Use rotr_sz.
38235         Suggested by Jim Meyering.
38236
38237         hash: fix memory leak in last patch
38238         * lib/hash.c (hash_rehash): Avoid memory leak.
38239
38240         hash: avoid no-op rehashing
38241         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
38242
38243         hash: provide default callback functions
38244         * lib/hash.c (raw_hasher, raw_comparator): New functions.
38245         (hash_initialize): Use them as defaults.
38246         * tests/test-hash.c (main): Test this.
38247
38248         hash: minor optimization
38249         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
38250         when possible.
38251         (hash_initialize): Document this promise.
38252         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
38253         * tests/test-hash.c (hash_compare_strings): Test this.
38254
38255 2009-06-18  Bruno Haible  <bruno@clisp.org>
38256
38257         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
38258         going to be replaced anyway.
38259
38260 2009-06-18  Bruno Haible  <bruno@clisp.org>
38261
38262         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
38263         in one place.
38264         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
38265         be replaced anyway.
38266
38267 2009-06-18  Eric Blake  <ebb9@byu.net>
38268
38269         hash: check for resize before insertion
38270         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
38271         threshold before insertion, so that a pathological hash_rehash
38272         that fills every bucket can still trigger another rehash.
38273
38274 2009-06-18  Jim Meyering  <meyering@redhat.com>
38275
38276         hash-tests: add a loop around the small tests
38277         * tests/test-hash.c (main): Repeat small tests with selected
38278         small initial table sizes.
38279
38280 2009-06-17  Eric Blake  <ebb9@byu.net>
38281
38282         hash: minor cleanups
38283         * lib/hash.h (hash_entry): Make opaque, by moving...
38284         * lib/hash.c (hash_entry): ...here.
38285         (hash_insert): Clarify restrictions on what can be inserted.
38286         (hash_get_next): Clarify when it is safe to remove an element
38287         during traversal.
38288         (check_tuning): Skip verification when tuning is known safe.
38289         (hash_initialize): Clarify restrictions on tuning.
38290
38291 2009-06-17  Jim Meyering  <jim@meyering.net>
38292         and Eric Blake  <ebb9@byu.net>
38293
38294         hash-tests: new module
38295         * modules/hash-tests: New file.
38296         * tests/test-hash.c: New file.
38297
38298 2009-06-17  Eric Blake  <ebb9@byu.net>
38299
38300         strstr-simple: document new module
38301         * MODULES.html.sh: Document new module.
38302
38303         strstr, strcasestr: replace on platforms with broken memchr
38304         * modules/strstr: Split into...
38305         * modules/strstr-simple: ...new module that does not care about
38306         performance, but does care about glibc bug.
38307         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
38308         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
38309         if platform memchr is broken, per Debian bug 521737.
38310         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
38311         memchr.
38312         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
38313         * doc/posix-functions/strstr.texi (strstr): Document the fix.
38314         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
38315         * modules/mountlist (Depends-on): Add strstr-simple.
38316         * modules/gen-uni-tables (Depends-on): Likewise.
38317         * modules/argz (Depends-on): Add strstr.
38318
38319 2009-06-17  Bruno Haible  <bruno@clisp.org>
38320
38321         * modules/posix_spawn-internal (Depends-on): Add errno.
38322
38323 2009-06-17  Bruno Haible  <bruno@clisp.org>
38324
38325         Define missing ESTALE on Interix 3.5.
38326         * lib/errno.in.h (ESTALE): Assign a value if missing.
38327         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
38328         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
38329         missing.
38330         * doc/posix-headers/errno.texi: Mention the Interix bug.
38331         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
38332
38333 2009-06-15  Eric Blake  <ebb9@byu.net>
38334
38335         memchr, memchr2: add valgrind exception
38336         * lib/memchr.valgrind: New file.
38337         * lib/memchr2.valgrind: New file.
38338         * modules/memchr (Files): Distribute valgrind file.
38339         * modules/memchr2 (Files): Likewise.
38340
38341         docs: memchr is no longer obsolete
38342         * MODULES.html.sh: Move memchr from obsolete to string.h section.
38343         * lib/string.in.h (memchr): Simplify logic.
38344
38345 2009-06-14  Jim Meyering  <meyering@redhat.com>
38346
38347         link-follow: fix the "checking..." message to not mention trailing slash
38348         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
38349         never considered trailing slashes.
38350
38351 2009-06-14  Bruno Haible  <bruno@clisp.org>
38352
38353         * m4/memchr.m4: Mention also the bug on IA-64.
38354         * doc/posix-functions/memchr.texi: Likewise.
38355
38356 2009-06-12  Eric Blake  <ebb9@byu.net>
38357
38358         memchr: detect broken x86_64 and alpha implementations
38359         * modules/memchr-tests (Depends-on): Move mmap detection...
38360         * modules/memchr (Depends-on): ...here.
38361         (configure.ac): Set indicator.
38362         * lib/string.in.h (memchr): Declare replacement.
38363         * modules/string (Makefile.am): Trigger replacement.
38364         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
38365         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
38366         bugs.
38367         * doc/posix-functions/memchr.texi (memchr): Document the bug.
38368         * modules/getpagesize (License): Relax license.
38369
38370 2009-06-11  Bruno Haible  <bruno@clisp.org>
38371
38372         * lib/idpriv.h: Add more references.
38373
38374 2009-06-08  Bruno Haible  <bruno@clisp.org>
38375
38376         Tests for module 'idpriv-droptemp'.
38377         * modules/idpriv-droptemp-tests: New file.
38378         * tests/test-idpriv-droptemp.sh: New file.
38379         * tests/test-idpriv-droptemp.su.sh: New file.
38380         * tests/test-idpriv-droptemp.c: New file.
38381
38382         New module 'idpriv-droptemp'.
38383         * lib/idpriv-droptemp.c: New file.
38384         * modules/idpriv-droptemp: New file.
38385
38386 2009-06-08  Bruno Haible  <bruno@clisp.org>
38387
38388         Tests for module 'idpriv-drop'.
38389         * modules/idpriv-drop-tests: New file.
38390         * tests/test-idpriv-drop.sh: New file.
38391         * tests/test-idpriv-drop.su.sh: New file.
38392         * tests/test-idpriv-drop.c: New file.
38393
38394         New module 'idpriv-drop'.
38395         * lib/idpriv.h: New file.
38396         * lib-idpriv-drop.c: New file.
38397         * m4/idpriv.m4: New file.
38398         * modules/idpriv-drop: New file.
38399
38400 2009-06-08  Bruno Haible  <bruno@clisp.org>
38401
38402         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
38403         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
38404         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
38405         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
38406         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
38407         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
38408         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
38409
38410 2009-06-08  Eric Blake  <ebb9@byu.net>
38411
38412         test-strstr: use memory fence, when possible
38413         * tests/test-strstr.c (main): Use memory fence, in order to be
38414         more likely to trigger Debian bug 521737.
38415         * modules/strstr-tests (Files): Pull in additional files.
38416
38417         memchr: no longer obsolete, for wider field testing
38418         * modules/memchr (Status, Notice): Delete, this module is no
38419         longer obsolete.
38420         * modules/vasnprintf (Depends-on): Add memchr.
38421
38422 2009-06-07  Jim Meyering  <meyering@redhat.com>
38423
38424         hash: declare some functions with the warn_unused_result attribute
38425         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
38426
38427 2009-06-07  Bruno Haible  <bruno@clisp.org>
38428
38429         * tests/test-alignof.c: Don't test int64_t if it does not exist.
38430         Reported by Eric Blake.
38431
38432 2009-06-06  Eric Blake  <ebb9@byu.net>
38433
38434         test-alignof: fix typo with long double
38435         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
38436         compiler error.
38437
38438 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
38439
38440         Escape non-texinfo { and }s.
38441         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
38442         markup error.
38443
38444 2009-06-04  Jim Meyering  <meyering@redhat.com>
38445
38446         gitlog-to-changelog: don't infloop on an empty commit log
38447         * build-aux/gitlog-to-changelog: Warn about an empty log message.
38448         Reported by Boris Petersen <transacid@centerim.org>.
38449
38450 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
38451
38452         version-etc: extend for packagers
38453         Add three new configure options, intended for packagers:
38454           --with-packager="packager name"
38455           --with-packager-version="packager-specific version"
38456           --with-packager-bug-reports="packager bug reporting"
38457         An example with coreutils:
38458           $ ./configure \
38459             --with-packager=Gentoo \
38460             --with-packager-bug-report=http://bugs.gentoo.org/ \
38461             --with-packager-version="patchset 1.6"
38462           $ ./src/ls --version | head -n2
38463           ls (GNU coreutils) 7.1-dirty
38464           Packaged by Gentoo (patchset 1.6)
38465         Note that the bug reporting info via --help doesn't show up because
38466         coreutils uses its own custom emit_bug_reporting_address() implementation
38467         in src/system.h.  If it didn't, it'd look like:
38468           $ ./src/ls --help | tail -n4
38469           Report bugs to <bug-coreutils@gnu.org>.
38470           Report Gentoo bugs to <http://bugs.gentoo.org/>.
38471           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
38472           General help using GNU software: <http://www.gnu.org/gethelp/>.
38473         * lib/version-etc.c: Print new information, if provided.
38474         * m4/version-etc.m4: New file.
38475         * modules/version-etc (Files): Add m4/version-etc.m4.
38476         (configure.ac): Add gl_VERSION_ETC.
38477
38478 2009-05-31  Bruno Haible  <bruno@clisp.org>
38479
38480         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
38481         and 'int64_t'.
38482         * modules/alignof-tests (Dependencies): Add stdint.
38483         Reported by Eric Blake.
38484
38485 2009-05-31  Bruno Haible  <bruno@clisp.org>
38486
38487         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
38488         restriction due to compiler bugs.
38489         Reported by Eric Blake.
38490
38491 2009-05-31  Simon Josefsson  <simon@josefsson.org>
38492             Bruno Haible  <bruno@clisp.org>
38493
38494         Fix test-alignof failure.
38495         * lib/alignof.h (alignof_slot): New macro.
38496         (alignof_type): New macro, with the same semantics as the previous
38497         'alignof'.
38498         (alignof): Alias to alignof_slot.
38499         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
38500         check that the results are usable as constant expressions.
38501
38502 2009-05-31  Bruno Haible  <bruno@clisp.org>
38503
38504         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
38505         * tests/test-memchr.c (main): Check that memchr does not read past the
38506         first occurrence of the byte.
38507         * tests/test-strstr.c (main): Update comment.
38508         Suggested by Eric Blake.
38509
38510 2009-05-30  Bruno Haible  <bruno@clisp.org>
38511
38512         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
38513         detail how to use dumpbin.
38514         Reported by David Byron <dbyron@dbyron.com>.
38515
38516 2009-06-02  Simon Josefsson  <simon@josefsson.org>
38517
38518         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
38519
38520 2009-06-02  Simon Josefsson  <simon@josefsson.org>
38521
38522         * m4/manywarnings.m4: Add GCC 4.4 warnings.
38523
38524 2009-05-28  Bruno Haible  <bruno@clisp.org>
38525
38526         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
38527         build-aux/ files.
38528
38529 2009-05-28  Simon Josefsson  <simon@josefsson.org>
38530
38531         * gnulib-tool (func_import): Transform license on build-aux/ files too.
38532
38533 2009-05-27  Simon Josefsson  <simon@josefsson.org>
38534
38535         * gnulib-tool (sed_transform_main_lib_file)
38536         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
38537         regexps.
38538
38539 2009-05-26  Simon Josefsson  <simon@josefsson.org>
38540
38541         * tests/test-strstr.c: Add another self-test.
38542         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
38543         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
38544
38545 2009-05-23  Bruno Haible  <bruno@clisp.org>
38546
38547         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
38548         change.
38549
38550 2009-05-21  Bruno Haible  <bruno@clisp.org>
38551
38552         Simplify use of mode_t varargs.
38553         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
38554         uses 'mode_t' or 'int'.
38555         * lib/openat.c (openat): Likewise.
38556         * lib/open-safer.c (open_safer): Likewise.
38557         * m4/mode_t.m4: New file.
38558         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
38559         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
38560         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
38561         * modules/open (Files): Add m4/mode_t.m4.
38562         * modules/openat (Files): Likewise.
38563         * modules/fcntl-safer (Files): Likewise.
38564         Suggested by Eric Blake.
38565
38566 2009-05-21  Pádraig Brady  <P@draigbrady.com>
38567
38568         * doc/glibc-functions/fallocate.texi: New file.
38569         * doc/gnulib.texi: Include it.
38570
38571 2009-05-21  Eric Blake  <ebb9@byu.net>
38572             Bruno Haible  <bruno@clisp.org>
38573
38574         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
38575         invocations.
38576         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
38577
38578 2009-05-21  Eric Blake  <ebb9@byu.net>
38579             Bruno Haible  <bruno@clisp.org>
38580
38581         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
38582         include_next. Fix of 2008-11-20 commit.
38583         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
38584         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
38585         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
38586         NEXT_MATH_H.
38587         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
38588         instead of NEXT_MATH_H.
38589
38590 2009-05-21  Bruno Haible  <bruno@clisp.org>
38591
38592         Avoid redefinition warnings for SIZE_MAX.
38593         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
38594         Reported by Simon Josefsson.
38595
38596 2009-05-21  Bruno Haible  <bruno@clisp.org>
38597
38598         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
38599         AC_CACHE_VAL.
38600
38601 2009-05-20  Bruno Haible  <bruno@clisp.org>
38602
38603         Make zeroptr.h work on mingw.
38604         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
38605         mprotect.
38606         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
38607         * modules/memchr2-tests (configure.ac): Likewise.
38608         * modules/memcmp-tests (configure.ac): Likewise.
38609         * modules/memmem-tests (configure.ac): Likewise.
38610         * modules/memrchr-tests (configure.ac): Likewise.
38611         Reported by Simon Josefsson.
38612
38613 2009-05-20  Simon Josefsson  <simon@josefsson.org>
38614
38615         * tests/test-glob.c: Include string.h for strcmp prototype.
38616
38617 2009-05-20  Simon Josefsson  <simon@josefsson.org>
38618
38619         * modules/getdelim (Depends-on): Add explicit stdint, although it
38620         was implicitly already pulled in via realloc-posix.
38621         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
38622
38623 2009-05-20  Simon Josefsson  <simon@josefsson.org>
38624
38625         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
38626         G. Christensen" <tgc@jupiterrise.com>.
38627         * m4/sys_socket_h.m4: Check for sa_family_t.
38628         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
38629         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
38630         * tests/test-sys_socket.c: Check that sa_family_t works.
38631
38632 2009-05-18  Eric Blake  <ebb9@byu.net>
38633
38634         maint.mk: allow gnulib_dir in VPATH build
38635         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
38636
38637 2009-05-15  Jim Meyering  <meyering@redhat.com>
38638
38639         maint.mk: Give gnulib_dir a default definition.
38640         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
38641         Thus, most packages no longer need to specify this variable in cfg.mk
38642
38643 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
38644
38645         rename.m4: fix typos that would make non-mingw cross-configure fail
38646         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
38647
38648 2009-05-13  Eric Blake  <ebb9@byu.net>
38649
38650         mmap-anon: avoid out-of-order autoconf expansion
38651         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
38652         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
38653         * modules/memchr-tests (Depends-on): Add extensions.
38654         * modules/memchr2-tests (Depends-on): Add extensions.
38655         * modules/memcmp-tests (Depends-on): Add extensions.
38656         * modules/memmem-tests (Depends-on): Add extensions.
38657         * modules/memrchr-tests (Depends-on): Add extensions.
38658
38659 2009-05-13  Bruno Haible  <bruno@clisp.org>
38660
38661         Make some tests ISO C 99 compliant.
38662         * tests/zerosize-ptr.h: New file.
38663         * tests/test-memchr.c: Include zerosize-ptr.h.
38664         (main): Use a zero-size object pointer instead of NULL.
38665         * tests/test-memchr2.c: Include zerosize-ptr.h.
38666         (main): Use a zero-size object pointer instead of NULL.
38667         * tests/test-memcmp.c: Include zerosize-ptr.h.
38668         (main): Use a zero-size object pointer instead of NULL.
38669         * tests/test-memmem.c: Include zerosize-ptr.h.
38670         (main): Use a zero-size object pointer instead of NULL.
38671         * tests/test-memrchr.c: Include zerosize-ptr.h.
38672         (main): Use a zero-size object pointer instead of NULL.
38673         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
38674         m4/mmap-anon.m4.
38675         (Depends-on): Add getpagesize.
38676         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
38677         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
38678         m4/mmap-anon.m4.
38679         (Depends-on): Add getpagesize.
38680         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
38681         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
38682         m4/mmap-anon.m4.
38683         (Depends-on): Add getpagesize.
38684         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
38685         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
38686         m4/mmap-anon.m4.
38687         (Depends-on): Add getpagesize.
38688         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
38689         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
38690         m4/mmap-anon.m4.
38691         (Depends-on): Add getpagesize.
38692         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
38693
38694 2009-05-12  Bruno Haible  <bruno@clisp.org>
38695
38696         Tests for module 'alignof'.
38697         * modules/alignof-tests: New file.
38698         * tests/test-alignof.c: New file.
38699
38700 2009-05-12  Bruno Haible  <bruno@clisp.org>
38701
38702         Fix alignof macro.
38703         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
38704         vendor compilers that are always correct.
38705
38706 2009-05-12  Bruno Haible  <bruno@clisp.org>
38707
38708         Make the MAP_ANONYMOUS detection work on HP-UX 11.
38709         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
38710         not whether its fully works.
38711
38712 2009-05-12  Bruno Haible  <bruno@clisp.org>
38713
38714         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
38715
38716 2009-05-12  Jim Meyering  <meyering@redhat.com>
38717
38718         * top/maint.mk: Adjust backslash alignment.
38719
38720 2009-05-11  Simon Josefsson  <simon@josefsson.org>
38721
38722         * top/maint.mk: Make $(srcdir)/build-aux configurable.
38723
38724 2009-05-11  Eric Blake  <ebb9@byu.net>
38725
38726         argp: avoid undefined behavior
38727         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
38728         macros.
38729
38730 2009-05-08  Simon Josefsson  <simon@josefsson.org>
38731
38732         * tests/test-vc-list-files-git.sh: Do git config of user.email and
38733         user.name to prevent git commit from complaining.
38734
38735 2009-05-10  Bruno Haible  <bruno@clisp.org>
38736
38737         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
38738         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
38739         it rewrites every file name only once.
38740         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
38741
38742 2009-05-08  Bruno Haible  <bruno@clisp.org>
38743
38744         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
38745         instead of 'max'.
38746
38747 2009-05-08  Simon Josefsson  <simon@josefsson.org>
38748
38749         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
38750         sockaddr_storage test.
38751
38752 2009-05-07  Simon Josefsson  <simon@josefsson.org>
38753
38754         * modules/sys_socket (Makefile.am): Substitute
38755         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
38756         * m4/sys_socket_h.m4: Check for sockaddr_storage.
38757         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
38758         * tests/test-sys_socket.c: Check sockaddr_storage.
38759
38760 2009-05-08  Bruno Haible  <bruno@clisp.org>
38761
38762         New module 'alignof'.
38763         * lib/alignof.h: New file.
38764         * modules/alignof: New file.
38765
38766 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
38767             Bruno Haible  <bruno@clisp.org>
38768
38769         Fix test-file-has-acl on FreeBSD.
38770         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
38771         mask is implicitly added.
38772         * tests/test-file-has-acl.c: Include <signal.h>.
38773         (main): Terminate the test after 5 seconds.
38774         * modules/acl-tests (configure.ac): Check for alarm function.
38775
38776 2009-05-04  Bruno Haible  <bruno@clisp.org>
38777
38778         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
38779         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
38780         * modules/errno (configure.ac): Drop AC_REQUIRE.
38781         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
38782         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
38783
38784 2009-05-04  Simon Josefsson  <simon@josefsson.org>
38785
38786         * modules/glob-tests: New module.
38787         * tests/test-glob.c: Add.
38788
38789 2009-05-04  Simon Josefsson  <simon@josefsson.org>
38790
38791         * modules/fnmatch-tests: New module.
38792         * tests/test-fnmatch.c: Add.
38793
38794 2009-05-04  Eric Blake  <ebb9@byu.net>
38795
38796         maint: make the new no-submodule-changes rule VPATH-safe
38797         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
38798
38799 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
38800             Bruno Haible  <bruno@clisp.org>
38801
38802         acl: Fix infinite loop on FreeBSD.
38803         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
38804         of return value from acl_get_entry.
38805         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
38806         Likewise.
38807
38808 2009-05-03  Bruno Haible  <bruno@clisp.org>
38809
38810         * lib/acl-internal.h (acl_entries): Clarify return value.
38811         * lib/acl_entries.c (acl_entries): Likewise.
38812
38813 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
38814
38815         Bug fix in acl module.
38816         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
38817
38818 2009-05-03  Bruno Haible  <bruno@clisp.org>
38819
38820         Create gperf-generated file in the source dir, not in the build dir.
38821         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
38822         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
38823         * modules/unicase/locale-language (unicase/locale-languages.h):
38824         Likewise.
38825         * modules/unicase/special-casing (unicase/special-casing-table.h):
38826         Likewise.
38827         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
38828         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
38829         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
38830         Reported by Ralf Wildenhues.
38831
38832 2009-05-03  Bruno Haible  <bruno@clisp.org>
38833
38834         * modules/fnmatch (Description, configure.ac): Taken from
38835         fnmatch-posix.
38836         * modules/fnmatch-posix: Turn into a symbolic reference to the
38837         'fnmatch' module, and deprecate.
38838         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
38839
38840 2009-05-03  Bruno Haible  <bruno@clisp.org>
38841
38842         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
38843         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
38844         Reported by Ralf Wildenhues.
38845
38846 2009-05-04  Simon Josefsson  <simon@josefsson.org>
38847
38848         * m4/fnmatch.m4: Fix fnmatch re-define.
38849
38850 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
38851
38852         priv-set: new module and tests; adapt write-any-file
38853         * lib/priv-set.c: New file.
38854         * lib/priv-set.h: New file.
38855         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
38856         * lib/write-any-file.c: Simplify by using priv-set module.
38857         * m4/priv-set.m4: New file.
38858         * modules/priv-set: New file.
38859         * modules/unlinkdir: Add dependency on priv-set module.
38860         * modules/write-any-file: Likewise.
38861
38862         Tests for module 'priv-set'.
38863         * modules/priv-set-tests: New file.
38864         * tests/test-priv-set.c: New file.
38865
38866 2009-05-03  Jim Meyering  <meyering@redhat.com>
38867             Bruno Haible  <bruno@clisp.org>
38868
38869         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
38870         use the converted UTF-8 variant of the name instead.
38871
38872 2009-05-03  Jim Meyering  <meyering@redhat.com>
38873
38874         tests: tighten some getdate tests
38875         * tests/test-getdate.c (main): Tighten tests: require equality,
38876         not just greater than.  Set TZ envvar to UTC0.
38877
38878 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
38879
38880         getdate: correctly interpret "next monday" when run on a Monday
38881         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
38882         that e.g., "next tues" (when run on a tuesday) results in a date
38883         that is one week in the future, and not today's date.
38884         I.e., add a week when the wday is the same as the current one.
38885         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
38886         and earlier by Martin Bernreuther and Jan Minář.
38887         * tests/test-getdate.c (main): Check that "next DAY" is always in
38888         the future and that "last DAY" is always in the past.
38889
38890 2009-05-02  Jim Meyering  <meyering@redhat.com>
38891
38892         build: ensure that a release build fails when a submodule is unclean
38893         * top/maint.mk (no-submodule-changes): New rule.
38894         (alpha beta major): Depend on it.
38895
38896 2009-05-02  Bruno Haible  <bruno@clisp.org>
38897
38898         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
38899         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
38900         shell variable gl_fnmatch_required to detect which variant is
38901         requested.
38902         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
38903         gl_FUNC_FNMATCH_POSIX.
38904         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
38905         exclude fnmatch-posix.
38906
38907 2009-05-02  Bruno Haible  <bruno@clisp.org>
38908
38909         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
38910         * modules/mbsrtowcs (License): Change to LGPLv2+.
38911         * modules/strnlen1 (License): Likewise.
38912         Reported by Simon Josefsson.
38913
38914 2009-05-02  Bruno Haible  <bruno@clisp.org>
38915
38916         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
38917         "cross".
38918         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
38919         gnulib-tool was called with option --source-base=lib.
38920
38921 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38922
38923         Use automake *-local hooks without commands, for extensibility.
38924         * modules/localcharset (Makefile.am): Rename install-exec-local
38925         rule to install-exec-localcharset, and make it a prerequisite of
38926         install-exec-local.  Likewise, rename the uninstall-local rule to
38927         uninstall-localcharset, and make it a prerequisite of the former.
38928
38929 2009-05-01  Bruno Haible  <bruno@clisp.org>
38930
38931         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
38932         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
38933         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
38934         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
38935         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
38936         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
38937         m4/locale-zh.m4, m4/codeset.m4.
38938
38939         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
38940         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
38941         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
38942         m4/locale-zh.m4.
38943
38944         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
38945         REPLACE_WCRTOMB if mbstate_t must be replaced.
38946         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
38947         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
38948
38949 2009-05-01  Bruno Haible  <bruno@clisp.org>
38950
38951         Avoid compiler warnings when redefining macros defined by <libintl.h>.
38952         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
38953         dngettext, dcngettext, textdomain, bindtextdomain,
38954         bind_textdomain_codeset): Undefine before redefining.
38955
38956 2009-04-30  Bruno Haible  <bruno@clisp.org>
38957
38958         Fix bug introduced on 2009-04-25.
38959         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
38960         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
38961         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
38962         is defined.
38963         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
38964         is defined.
38965         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
38966         is defined.
38967         Reported by Elbert_Pol <elbert.pol@gmail.com>.
38968
38969 2009-04-28  Bruno Haible  <bruno@clisp.org>
38970
38971         Comment tweaks.
38972         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
38973         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
38974         * lib/unicase.h (u*_casexfrm): Likewise.
38975         Reported by Paolo Bonzini.
38976
38977 2009-04-28  Bruno Haible  <bruno@clisp.org>
38978
38979         Fix a compilation error.
38980         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
38981         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
38982         Reported by Jim Meyering.
38983
38984 2009-04-27  Bruno Haible  <bruno@clisp.org>
38985
38986         New module 'libunistring'.
38987         * modules/libunistring: New file.
38988         * m4/libunistring.m4: New file.
38989         * MODULES.html.sh (Unicode string functions): Add it.
38990
38991 2009-04-27  Eric Blake  <ebb9@byu.net>
38992
38993         maint.mk: allow package-specific header to provide <config.h>
38994         * top/maint.mk (sc_require_config_h): New variable.
38995         (sc_require_config_h, sc_require_config_h_first): Use it.
38996
38997 2009-04-27  Simon Josefsson  <simon@josefsson.org>
38998
38999         * top/maint.mk (sc_avoid_if_before_free): Except
39000         useless-if-before-free script.
39001
39002 2009-04-27  Eric Blake  <ebb9@byu.net>
39003
39004         maintainer-makefile: depend on all required helper scripts
39005         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
39006         useless-if-before-free.
39007         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
39008         version, rather than assuming gnulib checkout is available.
39009         Reported by Simen Josefsson.
39010
39011 2009-04-26  Bruno Haible  <bruno@clisp.org>
39012
39013         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
39014         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
39015         "../" or "..".
39016
39017 2009-04-26  Bruno Haible  <bruno@clisp.org>
39018
39019         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
39020         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
39021         AC_LIB_HAVE_LINKFLAGS.
39022
39023 2009-04-26  Bruno Haible  <bruno@clisp.org>
39024
39025         Simplify calling convention of u*_conv_from_encoding.
39026         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
39027         u32_conv_from_encoding): Expect a resultbuf argument and return the
39028         result directly as a pointer.
39029         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
39030         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
39031         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
39032         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
39033         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
39034         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
39035         Update.
39036         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
39037         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
39038         * lib/vasnprintf.c (VASNPRINTF): Update.
39039         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
39040         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
39041         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
39042         * NEWS: Mention the change.
39043
39044 2009-04-26  Bruno Haible  <bruno@clisp.org>
39045
39046         Simplify calling convention of u*_conv_to_encoding.
39047         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
39048         u32_conv_to_encoding): Expect a resultbuf argument and return the
39049         result directly as a pointer.
39050         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
39051         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
39052         freeing scaled_offsets if mem_iconveha failed.
39053         * lib/unicase/u-casexfrm.h (FUNC): Update.
39054         * lib/uninorm/u-normxfrm.h (FUNC): Update.
39055         * lib/vasnprintf.c (VASNPRINTF): Update.
39056         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
39057         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
39058         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
39059         * NEWS: Mention the change.
39060
39061 2009-04-26  Bruno Haible  <bruno@clisp.org>
39062
39063         Avoid test failures on AIX and OSF/1.
39064         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
39065         malloc(0).
39066         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
39067         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
39068         Likewise.
39069         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
39070         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
39071         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
39072         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
39073         * doc/posix-functions/malloc.texi: Document the portability problem
39074         related to malloc(0).
39075
39076 2009-04-26  Bruno Haible  <bruno@clisp.org>
39077
39078         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
39079         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
39080         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
39081
39082 2009-04-25  Bruno Haible  <bruno@clisp.org>
39083
39084         Avoid link error when creating a namespace clean library.
39085         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
39086         as macro with arguments if already defined as an alias.
39087         * lib/signbitf.c (gl_signbitf): Don't undefine.
39088         * lib/signbitd.c (gl_signbitd): Don't undefine.
39089         * lib/signbitl.c (gl_signbitl): Don't undefine.
39090
39091 2009-04-25  Jim Meyering  <meyering@redhat.com>
39092
39093         vc-list-files: fix another quoting bug
39094         * build-aux/vc-list-files: Avoid sed backslash expansion
39095         of pathological directory names.
39096
39097 2009-04-25  Eric Blake  <ebb9@byu.net>
39098
39099         vc-list-files: fix shell quoting error
39100         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
39101         timestamp.
39102
39103 2009-04-25  Jim Meyering  <meyering@redhat.com>
39104
39105         vc-list-files: restore lost functionality with subdir argument
39106         * build-aux/vc-list-files: When given a non-"." sub-directory
39107         argument, substitute the $dir/ prefix back onto each resulting name.
39108         Otherwise, coreutils' root_tests check would fail.
39109
39110 2009-04-24  Eric Blake  <ebb9@byu.net>
39111
39112         vc-list-files: ignore git symlinks
39113         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
39114         than ls-files, to ignore git symlinks.
39115
39116         maint.mk: import improvements from m4
39117         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
39118         (move_if_change): Delete unused macro.
39119         (news-date-check, vc-diff-check): Support VPATH builds.
39120         (announcement): Likewise.  Split --bootstrap-tools list...
39121         (boostrap-tools): ...into separate list, which can be overridden
39122         in cfg.mk.
39123         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
39124         requiring dependency on useless-if-before-free module.
39125         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
39126         Support VPATH builds.
39127
39128 2009-04-24  Jim Meyering  <meyering@redhat.com>
39129
39130         maint.mk: remove coreutils-specific rules and variables
39131         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
39132         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
39133         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
39134
39135         maint.mk: remove obsolete rule
39136         * top/maint.mk (rel-check): Remove rule.
39137         (WGET, WGETFLAGS): Remove now-unused variables.
39138
39139 2009-04-24  Simon Josefsson  <simon@josefsson.org>
39140
39141         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
39142         consistency.
39143
39144         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
39145         '$(PATH_SEPARATOR)' instead of ':'.
39146
39147 2009-04-24  Simon Josefsson  <simon@josefsson.org>
39148
39149         * lib/getopt1.c (main): Use 'const' for static array.
39150
39151 2009-04-24  Simon Josefsson  <simon@josefsson.org>
39152
39153         * top/maint.mk: Sync with coreutils.
39154         * NEWS: Explain incompatibilities.
39155
39156 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39157             Bruno Haible  <bruno@clisp.org>
39158
39159         Fix cross-compilation results.
39160         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
39161         statement, as third argument of AC_TRY_RUN.
39162         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
39163         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
39164         Likewise.
39165         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
39166         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
39167         Likewise.
39168         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
39169         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
39170         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
39171
39172 2009-04-20  Bruno Haible  <bruno@clisp.org>
39173
39174         Avoid test failure on mingw.
39175         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
39176
39177 2009-04-20  Bruno Haible  <bruno@clisp.org>
39178
39179         Avoid compilation error on mingw.
39180         * modules/localename-tests (Depends-on): Add locale.
39181
39182 2009-04-19  Bruno Haible  <bruno@clisp.org>
39183
39184         Support for building a shared library on Windows platforms.
39185         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
39186         (main): Test the presence of UNINORM_NFC here.
39187         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
39188         (main): Test the presence of UNINORM_NFD here.
39189         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
39190         (main): Test the presence of UNINORM_NFKC here.
39191         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
39192         (main): Test the presence of UNINORM_NFKD here.
39193
39194 2009-04-19  Bruno Haible  <bruno@clisp.org>
39195
39196         Avoid a compiler warning.
39197         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
39198         Change type of variable 'sequence'.
39199
39200 2009-04-19  Bruno Haible  <bruno@clisp.org>
39201
39202         * modules/configmake (Makefile.am): When the contents of configmake.h
39203         does not change, arrange to preserve its modification time.
39204
39205 2009-04-17  Simon Josefsson  <simon@josefsson.org>
39206
39207         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
39208         gettext domain.
39209
39210 2009-04-16  Jim Meyering  <meyering@redhat.com>
39211
39212         useless-if-before-free: improve conversion code
39213         * build-aux/useless-if-before-free: Adjust code-in-comment to match
39214         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
39215
39216 2009-04-14  Bruno Haible  <bruno@clisp.org>
39217
39218         * modules/fcntl (Depends-on): Add extensions.
39219         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
39220
39221 2009-04-12  Ben Pfaff  <blp@gnu.org>
39222
39223         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
39224         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
39225
39226 2009-03-20  Ben Pfaff  <blp@gnu.org>
39227
39228         Make rename replace existing destinations on Windows.
39229         * m4/rename.m4: Add test for Mingw.
39230         * lib/rename.c: Add rename replacement that uses MoveFileEx with
39231         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
39232         * doc/posix-functions/rename.texi: Document.
39233
39234 2009-04-10  Bruno Haible  <bruno@clisp.org>
39235
39236         New include file "iconveh.h".
39237         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
39238         * lib/striconveh.h: Include it.
39239         (enum iconv_ilseq_handler): Remove definition.
39240         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
39241         striconveh.h.
39242         * lib/striconveha.c: Include striconveh.h.
39243         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
39244         * modules/striconveh (Files): Add lib/iconveh.h.
39245         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
39246         lib/striconveh.h.
39247
39248 2009-04-10  Bruno Haible  <bruno@clisp.org>
39249
39250         * lib/uniconv.h: Update comment.
39251
39252 2009-04-10  Bruno Haible  <bruno@clisp.org>
39253
39254         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
39255         always.
39256         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
39257         * lib/unistr/u16-mbtouc-aux.c: Likewise.
39258         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
39259         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
39260         "unistring-notinline.h", so that the function gets defined always.
39261         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
39262         * lib/unistr/u8-uctomb.c: Likewise.
39263         * lib/unistr/u16-mbtouc.c: Likewise.
39264         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
39265         * lib/unistr/u16-uctomb.c: Likewise.
39266         * lib/unistr/u32-mbtouc.c: Likewise.
39267         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
39268         * lib/unistr/u32-uctomb.c: Likewise.
39269
39270 2009-04-10  Bruno Haible  <bruno@clisp.org>
39271
39272         Mark 'utime' obsolete.
39273         * modules/utime (Status, Notice): New sections.
39274         Suggested by Jim Meyering.
39275
39276         Fix cross-compile guess for utime test.
39277         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
39278         autoconf.
39279         * doc/posix-functions/utime.texi: Give more precisions.
39280         Reported by Jan <ipif@ymail.com>.
39281
39282 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
39283
39284         filevercmp: correct today's change
39285         * lib/filevercmp.c: Also handle coreutils' test inputs.
39286         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
39287
39288         Fix regression in 'filevercmp' module. Thanks Sven Joachim
39289         for reporting it.
39290         * lib/filevercmp.c: Special handle for "", "." and "..".
39291         * tests/test-filevercmp.c: Enlarge the set suite.
39292
39293 2009-04-07  Jim Meyering  <meyering@redhat.com>
39294
39295         useless-if-before-free: show how to remove braced useless free, too
39296         * build-aux/useless-if-before-free: still only in a comment, though.
39297
39298 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
39299
39300         maint.mk: import changes to syntax-check macros from coreutils
39301         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
39302         Use them in the relevant macros.
39303
39304 2009-04-06  Bruno Haible  <bruno@clisp.org>
39305
39306         Fix unportable use of bit-fields.
39307         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
39308         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
39309         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
39310
39311 2009-04-06  Bruno Haible  <bruno@clisp.org>
39312
39313         Avoid test failures on AIX and OSF/1.
39314         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
39315         that malloc(0) = NULL.
39316         * tests/unicase/test-u8-tolower.c (check): Likewise.
39317         * tests/unicase/test-u8-totitle.c (check): Likewise.
39318         * tests/unicase/test-u8-toupper.c (check): Likewise.
39319         * tests/unicase/test-u16-casefold.c (check): Likewise.
39320         * tests/unicase/test-u16-tolower.c (check): Likewise.
39321         * tests/unicase/test-u16-totitle.c (check): Likewise.
39322         * tests/unicase/test-u16-toupper.c (check): Likewise.
39323         * tests/unicase/test-u32-casefold.c (check): Likewise.
39324         * tests/unicase/test-u32-tolower.c (check): Likewise.
39325         * tests/unicase/test-u32-totitle.c (check): Likewise.
39326         * tests/unicase/test-u32-toupper.c (check): Likewise.
39327         * tests/uninorm/test-u8-nfc.c (check): Likewise.
39328         * tests/uninorm/test-u8-nfd.c (check): Likewise.
39329         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
39330         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
39331         * tests/uninorm/test-u16-nfc.c (check): Likewise.
39332         * tests/uninorm/test-u16-nfd.c (check): Likewise.
39333         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
39334         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
39335         * tests/uninorm/test-u32-nfc.c (check): Likewise.
39336         * tests/uninorm/test-u32-nfd.c (check): Likewise.
39337         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
39338         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
39339
39340 2009-04-05  Bruno Haible  <bruno@clisp.org>
39341
39342         Work around an autoconf limitation.
39343         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
39344         comment line if it would be longer than 3 KB.
39345
39346 2009-04-05  Bruno Haible  <bruno@clisp.org>
39347
39348         Avoid test failure with libiconv-1.13.
39349         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
39350         of the expected test results.
39351
39352 2009-04-05  Bruno Haible  <bruno@clisp.org>
39353
39354         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
39355         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
39356         that it should be installed.
39357
39358 2009-04-05  Bruno Haible  <bruno@clisp.org>
39359
39360         * gnulib-tool: New option --copy-file.
39361         (func_usage): Document it.
39362         (func_dest_tmpfilename): Moved out of func_import.
39363         (func_add_file, func_update_file): New functions, extracted from
39364         func_import.
39365         (func_import): Update.
39366
39367 2009-04-05  Karl Berry  <karl@gnu.org>
39368
39369         * README: prominently mention gnulib-tool.
39370         Rearrange sections so getting the code is near the top.
39371
39372 2009-04-05  Bruno Haible  <bruno@clisp.org>
39373
39374         * lib/unicase.h: Mention u*_cmp2.
39375         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
39376         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
39377         * lib/unicase/ulc-casecmp.c: Likewise.
39378         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
39379         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
39380         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
39381         unistr/u8-cmp.
39382         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
39383         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
39384         unistr/u16-cmp.
39385         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
39386         unistr/u32-cmp.
39387
39388         * lib/uninorm.h: Mention u*_cmp2.
39389         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
39390         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
39391         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
39392         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
39393         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
39394         unistr/u8-cmp.
39395         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
39396         unistr/u16-cmp.
39397         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
39398         unistr/u32-cmp.
39399
39400         New module 'unistr/u32-cmp2'.
39401         * lib/unistr/u32-cmp2.c: New file.
39402         * modules/unistr/u32-cmp2: New file.
39403
39404         New module 'unistr/u16-cmp2'.
39405         * lib/unistr/u16-cmp2.c: New file.
39406         * modules/unistr/u16-cmp2: New file.
39407
39408         New module 'unistr/u8-cmp2'.
39409         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
39410         * lib/unistr/u8-cmp2.c: New file.
39411         * lib/unistr/u-cmp2.h: New file.
39412         * modules/unistr/u8-cmp2: New file.
39413
39414 2009-04-05  Bruno Haible  <bruno@clisp.org>
39415
39416         * lib/unictype.h (uc_property_is_valid): New macro.
39417         * tests/unictype/test-pr_byname.c (main): Use it.
39418
39419         * lib/unistr.h: Doc fixes.
39420         * lib/uniconv.h: Doc fixes.
39421         * lib/unictype.h: Doc fixes.
39422
39423 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
39424
39425         Port coreutils 7.2 to Solaris 8.
39426
39427         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
39428         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
39429         for Solaris 8.  This is a bit of a hack, as it means it's the
39430         caller's responsibility to add -lnsl if needed, but most likely it
39431         won't be needed since only getaddrinfo uses this and getaddrinfo
39432         isn't needed on Solaris 8.
39433
39434         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
39435         problem to Solaris 8 encountered with coreutils 7.2, which
39436         resulted in a message "fnmatch.c:292: warning: passing argument 4
39437         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
39438         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
39439
39440 2009-04-03  Simon Josefsson  <simon@josefsson.org>
39441
39442         * m4/ld-version-script.m4: Add FIXME comment.
39443
39444 2009-04-02  Simon Josefsson  <simon@josefsson.org>
39445
39446         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
39447         SOVERSION variable.
39448
39449 2009-04-02  Bruno Haible  <bruno@clisp.org>
39450
39451         * Makefile (info, html, dvi, pdf): Combine the rules.
39452         Suggested by Jim Meyering.
39453
39454 2009-04-01  Bruno Haible  <bruno@clisp.org>
39455
39456         * Makefile (info, html, dvi, pdf): New targets.
39457         Reported by Reuben Thomas <rrt@sc3d.org>.
39458
39459 2009-04-01  Bruno Haible  <bruno@clisp.org>
39460
39461         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
39462         can be put into PATH.
39463         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
39464
39465 2009-04-01  Bruno Haible  <bruno@clisp.org>
39466
39467         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
39468
39469 2009-04-01  Bruno Haible  <bruno@clisp.org>
39470
39471         Rename module 'visibility'.
39472         * modules/lib-symbol-visibility: Renamed from modules/visibility.
39473         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
39474         * doc/gnulib.texi: Update.
39475         * MODULES.html.sh (Misc): Update.
39476         * NEWS: Mention the change.
39477
39478 2009-04-01  Simon Josefsson  <simon@josefsson.org>
39479
39480         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
39481         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
39482         Eric Blake <ebb9@byu.net> for review.
39483         * MODULES.html.sh: Add lib-msvc-compat.
39484         * doc/gnulib.texi: Link to new section.
39485         * m4/ld-output-def.m4: New file.
39486         * doc/ld-output-def.texi: New file.
39487
39488 2009-04-01  Simon Josefsson  <simon@josefsson.org>
39489
39490         Rename ld-version-script to lib-symbol-versions.  Suggested by
39491         Bruno Haible <bruno@clisp.org>.
39492         * modules/ld-version-script: Renamed to lib-symbol-versions.
39493         * doc/ld-version-script.texi: Fix module name.
39494         * MODULES.html.sh: Add lib-symbol-versions.
39495
39496 2009-03-31  Simon Josefsson  <simon@josefsson.org>
39497
39498         * modules/u64-tests: New file.
39499         * tests/test-u64.c: New file.
39500
39501 2009-03-04  Simon Josefsson  <simon@josefsson.org>
39502
39503         * MODULES.html.sh: Mention u64.
39504         * modules/u64: New module.
39505         * modules/crypto/sha512: Depend on u64 module instead of providing
39506         u64.h.
39507
39508 2009-03-27  Eric Blake  <ebb9@byu.net>
39509
39510         test-strerror: make debugging EAI_SYSTEM easier
39511         * modules/getaddrinfo-tests (Depends-on): Add strerror.
39512         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
39513         failure was EAI_SYSTEM.
39514
39515 2009-03-25  Bruno Haible  <bruno@clisp.org>
39516
39517         Fix a problem with --enable-relocatable on Solaris 7.
39518         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
39519         since 2008-02-24.
39520
39521 2009-03-25  Eric Blake  <ebb9@byu.net>
39522
39523         test-sockets: avoid gcc warning
39524         * tests/test-sockets.c (main): Silence compiler warning.
39525
39526 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
39527
39528         New modules nproc, pthread, contributed by Glen Lenker.
39529
39530         * MODULES.html.sh: Add pthread, nproc.
39531         * lib/nproc.c: New file.
39532         * lib/nproc.h: New file.
39533         * lib/pthread.in.h: New file.
39534         * m4/pthread.m4: New file.
39535         * modules/nproc: New file.
39536         * modules/pthread: New file.
39537
39538 2009-03-24  Simon Josefsson  <simon@josefsson.org>
39539
39540         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
39541         New variable.
39542
39543 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
39544
39545         filevercmp: handle simple~ and numbered.~3~ backup suffixes
39546         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
39547         * tests/test-filevercmp.c: Add tests for backup suffixes.
39548
39549 2009-03-24  Simon Josefsson  <simon@josefsson.org>
39550
39551         * modules/stdlib (Depends-on): Add stdint, needed when defining
39552         struct random_data on, for example, HP-UX 10.20.  Reported by
39553         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
39554
39555 2009-03-24  Simon Josefsson  <simon@josefsson.org>
39556
39557         * lib/readline.c (readline): Call fflush on stdout after printing
39558         prompt.
39559
39560 2009-03-20  Bruno Haible  <bruno@clisp.org>
39561
39562         Remove dependency from 'close' module to -lws2_32 on native Windows.
39563         * lib/close-hook.h: New file.
39564         * lib/close-hook.c: New file.
39565         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
39566         w32sock.h.
39567         (_gl_close_fd_maybe_socket): Remove function.
39568         (rpl_close): Invoke execute_all_close_hooks instead of
39569         _gl_close_fd_maybe_socket.
39570         * lib/sockets.c: Include close-hook.h, w32sock.h.
39571         (close_fd_maybe_socket): New function, essentially from lib/close.c.
39572         (close_sockets_hook): New variable.
39573         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
39574         (gl_sockets_cleanup): Unregister it.
39575         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
39576         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
39577         * modules/close-hook: New file.
39578         * modules/close (Files): Remove lib/w32sock.h.
39579         (Depends-on): Add close-hook.
39580         (Link): Remove section.
39581         * modules/sockets (Files): Add lib/w32sock.h.
39582         (Depends-on): Add close-hook.
39583         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
39584         invocation.
39585         * NEWS: Mention that LIB_CLOSE is gone.
39586
39587 2009-03-23  Eric Blake  <ebb9@byu.net>
39588
39589         signal-tests: test previous patch
39590         * tests/test-signal.c: New file.
39591         * modules/signal-tests: Likewise.
39592
39593         signal.h: always support 'volatile sig_atomic_t'
39594         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
39595         (gl_SIGNAL_H_DEFAULTS): Add a default.
39596         * modules/signal (Makefile.am): Substitute if needed.
39597         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
39598         users can blindly add volatile.
39599         * doc/posix-headers/signal.texi (signal.h): Document it.
39600         Reported by Matthew Woehlke.
39601
39602 2009-03-23  Jim Meyering  <meyering@redhat.com>
39603
39604         pathmax: PATH_MAX: use pathconf only when available
39605         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
39606         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
39607         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
39608         This avoids a link failure in a PSP cross-compilation environment
39609         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
39610
39611         * lib/vasnprintf.c (divide): Fix typo in comment.
39612
39613 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39614
39615         * gnulib-tool (func_filter_filelist): Fix comment.
39616
39617 2009-03-20  Bruno Haible  <bruno@clisp.org>
39618
39619         Make sockets.h self-contained.
39620         * lib/sockets.c: Include sockets.h first.
39621         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
39622
39623 2009-03-19  Eric Blake  <ebb9@byu.net>
39624
39625         doc: mention more functions added in cygwin 1.7.0
39626         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
39627         addition.
39628         * doc/posix-functions/log2f.texi: Likewise.
39629
39630 2009-03-19  Jim Meyering  <meyering@redhat.com>
39631
39632         fsusage: avoid syntax error due to statement-before-declaration
39633         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
39634         after all declarations.  Reported by Matthew Woehlke in
39635         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
39636
39637 2009-03-18  Eric Blake  <ebb9@byu.net>
39638
39639         build-aux/compile: sync from automake
39640         * build-aux/compile: New file, from automake.
39641         * config/srclist.txt: Mention build-aux/compile.
39642
39643 2009-03-17  Bruno Haible  <bruno@clisp.org>
39644
39645         * lib/git-merge-changelog.c: Fix typo in comment.
39646         Reported by Reuben Thomas <rrt@sc3d.org>.
39647
39648 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
39649
39650         * m4/regex.m4: update and improve help for
39651         --without-included-regex.
39652
39653 2009-03-17  Simon Josefsson  <simon@josefsson.org>
39654
39655         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
39656         failure on missing include files.
39657
39658 2009-03-17  Eric Blake  <ebb9@byu.net>
39659
39660         doc: mention more functions added in cygwin 1.7.0
39661         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
39662         addition.
39663         * doc/posix-functions/fwscanf.texi: Likewise.
39664         * doc/posix-functions/swprintf.texi: Likewise.
39665         * doc/posix-functions/swscanf.texi: Likewise.
39666         * doc/posix-functions/vfwprintf.texi: Likewise.
39667         * doc/posix-functions/vfwscanf.texi: Likewise.
39668         * doc/posix-functions/vswprintf.texi: Likewise.
39669         * doc/posix-functions/vswscanf.texi: Likewise.
39670         * doc/posix-functions/vwprintf.texi: Likewise.
39671         * doc/posix-functions/vwscanf.texi: Likewise.
39672         * doc/posix-functions/wcscasecmp.texi: Likewise.
39673         * doc/posix-functions/wcsdup.texi: Likewise.
39674         * doc/posix-functions/wcsftime.texi: Likewise.
39675         * doc/posix-functions/wcsncasecmp.texi: Likewise.
39676         * doc/posix-functions/wprintf.texi: Likewise.
39677         * doc/posix-functions/wscanf.texi: Likewise.
39678         * doc/glibc-functions/gethostbyname2.texi: Likewise.
39679
39680 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39681
39682         maint.mk: really add $(AM_MAKEFLAGS)
39683         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
39684         was inadvertently omitted in the last commit.
39685         Spotted by Bruno Haible.
39686
39687         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
39688         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
39689         $(AM_MAKEFLAGS)' rather than plain `make'.
39690
39691         gnulib-tool: execute $MAKE not make
39692         * gnulib-tool: Default $MAKE to 'make'.
39693         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
39694         than make.  Initialize $MAKE in the do-autobuild script.
39695
39696         gnulib-tool: use $MAKE not make in generated files
39697         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
39698         make, in generated files.  Initialize $MAKE in the do-autobuild
39699         script.
39700
39701         * top/GNUmakefile (_have-git-version-gen): Fix typo.
39702
39703         GNUmakefile: disable parallelism only for multiple, recursive targets
39704         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
39705         additions in the Makefile.
39706         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
39707         by Automake.
39708         (.NOTPARALLEL): Only disable parallel builds if multiple targets
39709         are listed on the command line and at least one of them is
39710         listed in $(ALL_RECURSIVE_TARGETS).
39711
39712 2009-03-14  Bruno Haible  <bruno@clisp.org>
39713
39714         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
39715         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
39716         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
39717         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
39718         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
39719         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
39720         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
39721         unistr/u8-uctomb.
39722         * modules/unistr/u8-strchr (Depends-on): Likewise.
39723         * modules/unistr/u8-strrchr (Depends-on): Likewise.
39724         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
39725         unistr/u16-uctomb.
39726         * modules/unistr/u16-strchr (Depends-on): Likewise.
39727         * modules/unistr/u16-strrchr (Depends-on): Likewise.
39728
39729 2009-03-12  Bruno Haible  <bruno@clisp.org>
39730
39731         Work around select() bug on Interix 3.5.
39732         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
39733         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
39734         * m4/select.m4: New file.
39735         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
39736         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
39737         * modules/select (Files): Add m4/select.m4.
39738         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
39739         * modules/nanosleep (Depends-on): Add select.
39740         * modules/poll (Depends-on): Likewise.
39741         * doc/posix-functions/select.texi: Mention the Interix bug.
39742         Reported by Markus Duft <mduft@gentoo.org>.
39743
39744         * lib/select.c: Renamed from lib/winsock-select.c.
39745         * modules/select (Files): Add lib/select.c, remove
39746         lib/winsock-select.c.
39747         (configure.ac): Update.
39748
39749 2009-03-12  Jim Meyering  <meyering@redhat.com>
39750
39751         avoid gcc warnings about unused macro definitions
39752         * lib/readtokens.c (STREQ): Remove unused definition.
39753         * lib/xmalloc.c (SIZE_MAX): Likewise.
39754         * lib/openat-die.c (N_): Likewise.
39755         * lib/mountlist.c (SIZE_MAX): Remove definition.
39756         Instead, include <stdint.h>.
39757         * lib/readutmp.c: Likewise.
39758         * modules/readutmp (Depends-on): Add stdint.
39759         * modules/mountlist (Depends-on): Add stdint.
39760         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
39761
39762 2009-03-10  Bruno Haible  <bruno@clisp.org>
39763
39764         Tests for module 'mbmemcasecoll'.
39765         * modules/mbmemcasecoll-tests: New file.
39766         * tests/test-mbmemcasecoll1.sh: New file.
39767         * tests/test-mbmemcasecoll2.sh: New file.
39768         * tests/test-mbmemcasecoll3.sh: New file.
39769         * tests/test-mbmemcasecoll.c: New file.
39770
39771         New module 'mbmemcasecoll'.
39772         * lib/mbmemcasecoll.h: New file.
39773         * lib/mbmemcasecoll.c: New file.
39774         * modules/mbmemcasecoll: New file.
39775
39776         * tests/test-mbmemcasecmp.h: New file, extracted from
39777         tests/test-mbmemcasecmp.c.
39778         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
39779         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
39780         (main): Update.
39781         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
39782
39783 2009-03-09  Bruno Haible  <bruno@clisp.org>
39784
39785         Tests for module 'mbmemcasecmp'.
39786         * modules/mbmemcasecmp-tests: New file.
39787         * tests/test-mbmemcasecmp1.sh: New file.
39788         * tests/test-mbmemcasecmp2.sh: New file.
39789         * tests/test-mbmemcasecmp3.sh: New file.
39790         * tests/test-mbmemcasecmp.c: New file.
39791
39792         New module 'mbmemcasecmp'.
39793         * lib/mbmemcasecmp.h: New file.
39794         * lib/mbmemcasecmp.c: New file.
39795         * modules/mbmemcasecmp: New file.
39796
39797 2009-03-09  Bruno Haible  <bruno@clisp.org>
39798
39799         Tests for module 'unicase/ulc-casecoll'.
39800         * modules/unicase/ulc-casecoll-tests: New file.
39801         * tests/unicase/test-ulc-casecoll1.sh: New file.
39802         * tests/unicase/test-ulc-casecoll2.sh: New file.
39803         * tests/unicase/test-ulc-casecoll.c: New file.
39804
39805         New module 'unicase/ulc-casecoll'.
39806         * lib/unicase.h (ulc_casecoll): New declaration.
39807         * lib/unicase/ulc-casecoll.c: New file.
39808         * modules/unicase/ulc-casecoll: New file.
39809
39810         New module 'unicase/ulc-casexfrm'.
39811         * lib/unicase.h (ulc_casexfrm): New declaration.
39812         * lib/unicase/ulc-casexfrm.c: New file.
39813         * modules/unicase/ulc-casexfrm: New file.
39814
39815 2009-03-09  Bruno Haible  <bruno@clisp.org>
39816
39817         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
39818         invocations.
39819
39820         * m4/mbscasecmp.m4: Remove file.
39821         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
39822         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
39823
39824         * m4/mbscasestr.m4: Remove file.
39825         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
39826         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
39827
39828         * m4/mbschr.m4: Remove file.
39829         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
39830         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
39831
39832         * m4/mbscspn.m4: Remove file.
39833         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
39834         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
39835
39836         * m4/mbslen.m4: Remove file.
39837         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
39838         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
39839
39840         * m4/mbsncasecmp.m4: Remove file.
39841         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
39842         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
39843
39844         * m4/mbsnlen.m4: Remove file.
39845         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
39846         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
39847
39848         * m4/mbspbrk.m4: Remove file.
39849         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
39850         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
39851
39852         * m4/mbspcasecmp.m4: Remove file.
39853         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
39854         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
39855
39856         * m4/mbsrchr.m4: Remove file.
39857         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
39858         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
39859
39860         * m4/mbssep.m4: Remove file.
39861         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
39862         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
39863
39864         * m4/mbsspn.m4: Remove file.
39865         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
39866         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
39867
39868         * m4/mbsstr.m4: Remove file.
39869         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
39870         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
39871
39872         * m4/mbstok_r.m4: Remove file.
39873         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
39874         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
39875
39876         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
39877
39878         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
39879         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
39880
39881         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
39882
39883 2009-03-08  Bruno Haible  <bruno@clisp.org>
39884
39885         Tests for module 'unicase/ulc-casecmp'.
39886         * modules/unicase/ulc-casecmp-tests: New file.
39887         * tests/unicase/test-ulc-casecmp1.sh: New file.
39888         * tests/unicase/test-ulc-casecmp2.sh: New file.
39889         * tests/unicase/test-ulc-casecmp.c: New file.
39890
39891         New module 'unicase/ulc-casecmp'.
39892         * lib/unicase.h (ulc_casecmp): New declaration.
39893         * lib/unicase/ulc-casecmp.c: New file.
39894         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
39895         'const SRC_UNIT *'.
39896         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
39897         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
39898         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
39899         * modules/unicase/ulc-casecmp: New file.
39900
39901         Tests for module 'unicase/u32-is-cased'.
39902         * modules/unicase/u32-is-cased-tests: New file.
39903         * tests/unicase/test-u32-is-cased.c: New file.
39904
39905         Tests for module 'unicase/u16-is-cased'.
39906         * modules/unicase/u16-is-cased-tests: New file.
39907         * tests/unicase/test-u16-is-cased.c: New file.
39908
39909         Tests for module 'unicase/u8-is-cased'.
39910         * modules/unicase/u8-is-cased-tests: New file.
39911         * tests/unicase/test-u8-is-cased.c: New file.
39912         * tests/unicase/test-is-cased.h: New file.
39913
39914         New module 'unicase/u32-is-cased'.
39915         * lib/unicase/u32-is-cased.c: New file.
39916         * modules/unicase/u32-is-cased: New file.
39917
39918         New module 'unicase/u16-is-cased'.
39919         * lib/unicase/u16-is-cased.c: New file.
39920         * modules/unicase/u16-is-cased: New file.
39921
39922         New module 'unicase/u8-is-cased'.
39923         * lib/unicase/u8-is-cased.c: New file.
39924         * lib/unicase/u-is-cased.h: New file.
39925         * modules/unicase/u8-is-cased: New file.
39926
39927         Tests for module 'unicase/u32-is-casefolded'.
39928         * modules/unicase/u32-is-casefolded-tests: New file.
39929         * tests/unicase/test-u32-is-casefolded.c: New file.
39930
39931         Tests for module 'unicase/u16-is-casefolded'.
39932         * modules/unicase/u16-is-casefolded-tests: New file.
39933         * tests/unicase/test-u16-is-casefolded.c: New file.
39934
39935         Tests for module 'unicase/u8-is-casefolded'.
39936         * modules/unicase/u8-is-casefolded-tests: New file.
39937         * tests/unicase/test-u8-is-casefolded.c: New file.
39938         * tests/unicase/test-is-casefolded.h: New file.
39939
39940         New module 'unicase/u32-is-casefolded'.
39941         * lib/unicase/u32-is-casefolded.c: New file.
39942         * modules/unicase/u32-is-casefolded: New file.
39943
39944         New module 'unicase/u16-is-casefolded'.
39945         * lib/unicase/u16-is-casefolded.c: New file.
39946         * modules/unicase/u16-is-casefolded: New file.
39947
39948         New module 'unicase/u8-is-casefolded'.
39949         * lib/unicase/u8-is-casefolded.c: New file.
39950         * modules/unicase/u8-is-casefolded: New file.
39951
39952         Tests for module 'unicase/u32-is-titlecase'.
39953         * modules/unicase/u32-is-titlecase-tests: New file.
39954         * tests/unicase/test-u32-is-titlecase.c: New file.
39955
39956         Tests for module 'unicase/u16-is-titlecase'.
39957         * modules/unicase/u16-is-titlecase-tests: New file.
39958         * tests/unicase/test-u16-is-titlecase.c: New file.
39959
39960         Tests for module 'unicase/u8-is-titlecase'.
39961         * modules/unicase/u8-is-titlecase-tests: New file.
39962         * tests/unicase/test-u8-is-titlecase.c: New file.
39963         * tests/unicase/test-is-titlecase.h: New file.
39964
39965         New module 'unicase/u32-is-titlecase'.
39966         * lib/unicase/u32-is-titlecase.c: New file.
39967         * modules/unicase/u32-is-titlecase: New file.
39968
39969         New module 'unicase/u16-is-titlecase'.
39970         * lib/unicase/u16-is-titlecase.c: New file.
39971         * modules/unicase/u16-is-titlecase: New file.
39972
39973         New module 'unicase/u8-is-titlecase'.
39974         * lib/unicase/u8-is-titlecase.c: New file.
39975         * modules/unicase/u8-is-titlecase: New file.
39976
39977         Tests for module 'unicase/u32-is-lowercase'.
39978         * modules/unicase/u32-is-lowercase-tests: New file.
39979         * tests/unicase/test-u32-is-lowercase.c: New file.
39980
39981         Tests for module 'unicase/u16-is-lowercase'.
39982         * modules/unicase/u16-is-lowercase-tests: New file.
39983         * tests/unicase/test-u16-is-lowercase.c: New file.
39984
39985         Tests for module 'unicase/u8-is-lowercase'.
39986         * modules/unicase/u8-is-lowercase-tests: New file.
39987         * tests/unicase/test-u8-is-lowercase.c: New file.
39988         * tests/unicase/test-is-lowercase.h: New file.
39989
39990         New module 'unicase/u32-is-lowercase'.
39991         * lib/unicase/u32-is-lowercase.c: New file.
39992         * modules/unicase/u32-is-lowercase: New file.
39993
39994         New module 'unicase/u16-is-lowercase'.
39995         * lib/unicase/u16-is-lowercase.c: New file.
39996         * modules/unicase/u16-is-lowercase: New file.
39997
39998         New module 'unicase/u8-is-lowercase'.
39999         * lib/unicase/u8-is-lowercase.c: New file.
40000         * modules/unicase/u8-is-lowercase: New file.
40001
40002         Tests for module 'unicase/u32-is-uppercase'.
40003         * modules/unicase/u32-is-uppercase-tests: New file.
40004         * tests/unicase/test-u32-is-uppercase.c: New file.
40005
40006         Tests for module 'unicase/u16-is-uppercase'.
40007         * modules/unicase/u16-is-uppercase-tests: New file.
40008         * tests/unicase/test-u16-is-uppercase.c: New file.
40009
40010         Tests for module 'unicase/u8-is-uppercase'.
40011         * modules/unicase/u8-is-uppercase-tests: New file.
40012         * tests/unicase/test-u8-is-uppercase.c: New file.
40013         * tests/unicase/test-is-uppercase.h: New file.
40014
40015         New module 'unicase/u32-is-uppercase'.
40016         * lib/unicase/u32-is-uppercase.c: New file.
40017         * modules/unicase/u32-is-uppercase: New file.
40018
40019         New module 'unicase/u16-is-uppercase'.
40020         * lib/unicase/u16-is-uppercase.c: New file.
40021         * modules/unicase/u16-is-uppercase: New file.
40022
40023         New module 'unicase/u8-is-uppercase'.
40024         * lib/unicase/u8-is-uppercase.c: New file.
40025         * modules/unicase/u8-is-uppercase: New file.
40026
40027         New module 'unicase/u32-is-invariant'.
40028         * lib/unicase/u32-is-invariant.c: New file.
40029         * modules/unicase/u32-is-invariant: New file.
40030
40031         New module 'unicase/u16-is-invariant'.
40032         * lib/unicase/u16-is-invariant.c: New file.
40033         * modules/unicase/u16-is-invariant: New file.
40034
40035         New module 'unicase/u8-is-invariant'.
40036         * lib/unicase/u8-is-invariant.c: New file.
40037         * lib/unicase/invariant.h: New file.
40038         * lib/unicase/u-is-invariant.h: New file.
40039         * modules/unicase/u8-is-invariant: New file.
40040
40041         Tests for module 'unicase/u32-casecoll'.
40042         * modules/unicase/u32-casecoll-tests: New file.
40043         * tests/unicase/test-u32-casecoll.c: New file.
40044
40045         Tests for module 'unicase/u16-casecoll'.
40046         * modules/unicase/u16-casecoll-tests: New file.
40047         * tests/unicase/test-u16-casecoll.c: New file.
40048
40049         Tests for module 'unicase/u8-casecoll'.
40050         * modules/unicase/u8-casecoll-tests: New file.
40051         * tests/unicase/test-u8-casecoll.c: New file.
40052
40053         New module 'unicase/u32-casecoll'.
40054         * lib/unicase/u32-casecoll.c: New file.
40055         * modules/unicase/u32-casecoll: New file.
40056
40057         New module 'unicase/u16-casecoll'.
40058         * lib/unicase/u16-casecoll.c: New file.
40059         * modules/unicase/u16-casecoll: New file.
40060
40061         New module 'unicase/u8-casecoll'.
40062         * lib/unicase/u8-casecoll.c: New file.
40063         * lib/unicase/u-casecoll.h: New file.
40064         * modules/unicase/u8-casecoll: New file.
40065
40066         New module 'unicase/u32-casexfrm'.
40067         * lib/unicase/u32-casexfrm.c: New file.
40068         * modules/unicase/u32-casexfrm: New file.
40069
40070         New module 'unicase/u16-casexfrm'.
40071         * lib/unicase/u16-casexfrm.c: New file.
40072         * modules/unicase/u16-casexfrm: New file.
40073
40074         New module 'unicase/u8-casexfrm'.
40075         * lib/unicase/u8-casexfrm.c: New file.
40076         * lib/unicase/u-casexfrm.h: New file.
40077         * modules/unicase/u8-casexfrm: New file.
40078
40079         Tests for module 'unicase/u32-casecmp'.
40080         * modules/unicase/u32-casecmp-tests: New file.
40081         * tests/unicase/test-u32-casecmp.c: New file.
40082
40083         Tests for module 'unicase/u16-casecmp'.
40084         * modules/unicase/u16-casecmp-tests: New file.
40085         * tests/unicase/test-u16-casecmp.c: New file.
40086
40087         Tests for module 'unicase/u8-casecmp'.
40088         * modules/unicase/u8-casecmp-tests: New file.
40089         * tests/unicase/test-u8-casecmp.c: New file.
40090         * tests/unicase/test-casecmp.h: New file.
40091
40092         New module 'unicase/u32-casecmp'.
40093         * lib/unicase/u32-casecmp.c: New file.
40094         * modules/unicase/u32-casecmp: New file.
40095
40096         New module 'unicase/u16-casecmp'.
40097         * lib/unicase/u16-casecmp.c: New file.
40098         * modules/unicase/u16-casecmp: New file.
40099
40100         New module 'unicase/u8-casecmp'.
40101         * lib/unicase/u8-casecmp.c: New file.
40102         * lib/unicase/u-casecmp.h: New file.
40103         * modules/unicase/u8-casecmp: New file.
40104
40105         Tests for module 'unicase/u32-casefold'.
40106         * modules/unicase/u32-casefold-tests: New file.
40107         * tests/unicase/test-u32-casefold.c: New file.
40108
40109         Tests for module 'unicase/u16-casefold'.
40110         * modules/unicase/u16-casefold-tests: New file.
40111         * tests/unicase/test-u16-casefold.c: New file.
40112
40113         Tests for module 'unicase/u8-casefold'.
40114         * modules/unicase/u8-casefold-tests: New file.
40115         * tests/unicase/test-u8-casefold.c: New file.
40116
40117         New module 'unicase/u32-casefold'.
40118         * lib/unicase/u32-casefold.c: New file.
40119         * modules/unicase/u32-casefold: New file.
40120
40121         New module 'unicase/u16-casefold'.
40122         * lib/unicase/u16-casefold.c: New file.
40123         * modules/unicase/u16-casefold: New file.
40124
40125         New module 'unicase/u8-casefold'.
40126         * lib/unicase/u8-casefold.c: New file.
40127         * lib/unicase/u-casefold.h: New file.
40128         * modules/unicase/u8-casefold: New file.
40129
40130         New module 'unicase/tocasefold'.
40131         * lib/unicase/casefold.h: New file.
40132         * lib/unicase/tocasefold.c: New file.
40133         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
40134         * modules/unicase/tocasefold: New file.
40135
40136         Tests for module 'unicase/u32-totitle'.
40137         * modules/unicase/u32-totitle-tests: New file.
40138         * tests/unicase/test-u32-totitle.c: New file.
40139
40140         Tests for module 'unicase/u16-totitle'.
40141         * modules/unicase/u16-totitle-tests: New file.
40142         * tests/unicase/test-u16-totitle.c: New file.
40143
40144         Tests for module 'unicase/u8-totitle'.
40145         * modules/unicase/u8-totitle-tests: New file.
40146         * tests/unicase/test-u8-totitle.c: New file.
40147
40148         New module 'unicase/u32-totitle'.
40149         * lib/unicase/u32-totitle.c: New file.
40150         * modules/unicase/u32-totitle: New file.
40151
40152         New module 'unicase/u16-totitle'.
40153         * lib/unicase/u16-totitle.c: New file.
40154         * modules/unicase/u16-totitle: New file.
40155
40156         New module 'unicase/u8-totitle'.
40157         * lib/unicase/u8-totitle.c: New file.
40158         * lib/unicase/u-totitle.h: New file.
40159         * modules/unicase/u8-totitle: New file.
40160
40161         Tests for module 'unicase/u32-tolower'.
40162         * modules/unicase/u32-tolower-tests: New file.
40163         * tests/unicase/test-u32-tolower.c: New file.
40164
40165         Tests for module 'unicase/u16-tolower'.
40166         * modules/unicase/u16-tolower-tests: New file.
40167         * tests/unicase/test-u16-tolower.c: New file.
40168
40169         Tests for module 'unicase/u8-tolower'.
40170         * modules/unicase/u8-tolower-tests: New file.
40171         * tests/unicase/test-u8-tolower.c: New file.
40172
40173         New module 'unicase/u32-tolower'.
40174         * lib/unicase/u32-tolower.c: New file.
40175         * modules/unicase/u32-tolower: New file.
40176
40177         New module 'unicase/u16-tolower'.
40178         * lib/unicase/u16-tolower.c: New file.
40179         * modules/unicase/u16-tolower: New file.
40180
40181         New module 'unicase/u8-tolower'.
40182         * lib/unicase/u8-tolower.c: New file.
40183         * modules/unicase/u8-tolower: New file.
40184
40185         Tests for module 'unicase/u32-toupper'.
40186         * modules/unicase/u32-toupper-tests: New file.
40187         * tests/unicase/test-u32-toupper.c: New file.
40188
40189         Tests for module 'unicase/u16-toupper'.
40190         * modules/unicase/u16-toupper-tests: New file.
40191         * tests/unicase/test-u16-toupper.c: New file.
40192
40193         Tests for module 'unicase/u8-toupper'.
40194         * modules/unicase/u8-toupper-tests: New file.
40195         * tests/unicase/test-u8-toupper.c: New file.
40196
40197         New module 'unicase/u32-toupper'.
40198         * lib/unicase/u32-toupper.c: New file.
40199         * modules/unicase/u32-toupper: New file.
40200
40201         New module 'unicase/u16-toupper'.
40202         * lib/unicase/u16-toupper.c: New file.
40203         * modules/unicase/u16-toupper: New file.
40204
40205         New module 'unicase/u8-toupper'.
40206         * lib/unicase/u8-toupper.c: New file.
40207         * modules/unicase/u8-toupper: New file.
40208
40209         New module 'unicase/u32-casemap'.
40210         * lib/unicase/u32-casemap.c: New file.
40211         * modules/unicase/u32-casemap: New file.
40212
40213         New module 'unicase/u16-casemap'.
40214         * lib/unicase/u16-casemap.c: New file.
40215         * modules/unicase/u16-casemap: New file.
40216
40217         New module 'unicase/u8-casemap'.
40218         * lib/unicase/unicasemap.h: New file.
40219         * lib/unicase/u8-casemap.c: New file.
40220         * lib/unicase/u-casemap.h: New file.
40221         * modules/unicase/u8-casemap: New file.
40222
40223         New module 'unicase/special-casing'.
40224         * lib/unicase/special-casing.h: New file.
40225         * lib/unicase/special-casing.c: New file.
40226         * lib/unicase/special-casing-table.gperf: New file, generated by
40227         gen-uni-tables.c.
40228         * modules/unicase/special-casing: New file.
40229
40230         Tests for module 'unicase/locale-language'.
40231         * modules/unicase/locale-language-tests: New file.
40232         * tests/unicase/test-locale-language.sh: New file.
40233         * tests/unicase/test-locale-language.c: New file.
40234
40235         New module 'unicase/locale-language'.
40236         * lib/unicase/locale-language.c: New file.
40237         * lib/unicase/locale-languages.gperf: New file.
40238         * modules/unicase/locale-language: New file.
40239
40240         Generate more tables for case conversion and case folding.
40241         * lib/gen-uni-tables.c (SCC_*): New enum items.
40242         (struct special_casing_rule): New type.
40243         (casing_rules, num_casing_rules, allocated_casing_rules): New
40244         variables.
40245         (add_casing_rule, fill_casing_rules): New functions.
40246         (struct casefold_rule): New type.
40247         (casefolding_rules, num_casefolding_rules,
40248         allocated_casefolding_rules): New variables.
40249         (fill_casefolding_rules): New function.
40250         (unicode_casefold): New variable.
40251         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
40252         sort_casing_rules, output_casing_rules): New functions.
40253         (main): Accept to more arguments: SpecialCasing.txt and
40254         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
40255         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
40256         Output mapping for casefolding.
40257
40258         * lib/unicase.h: Include stdbool.h, uninorm.h.
40259         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
40260         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
40261         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
40262         arguments.
40263         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
40264         resultp arguments.
40265         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
40266         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
40267         resultp arguments.
40268         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
40269         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
40270         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
40271         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
40272         declarations.
40273         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
40274
40275 2009-03-08  Bruno Haible  <bruno@clisp.org>
40276
40277         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
40278         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
40279         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
40280         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
40281
40282 2009-03-07  Bruno Haible  <bruno@clisp.org>
40283
40284         Adjust u*_normcmp, u*_normcoll API.
40285         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
40286         u16_normcoll, u32_normcoll): Change failure conventions.
40287         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
40288         errno and return -1.
40289         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
40290
40291 2009-03-07  Bruno Haible  <bruno@clisp.org>
40292
40293         Tests for module 'uninorm/u32-normcoll'.
40294         * modules/uninorm/u32-normcoll-tests: New file.
40295         * tests/uninorm/test-u32-normcoll.c: New file.
40296
40297         Tests for module 'uninorm/u16-normcoll'.
40298         * modules/uninorm/u16-normcoll-tests: New file.
40299         * tests/uninorm/test-u16-normcoll.c: New file.
40300
40301         Tests for module 'uninorm/u8-normcoll'.
40302         * modules/uninorm/u8-normcoll-tests: New file.
40303         * tests/uninorm/test-u8-normcoll.c: New file.
40304
40305 2009-03-07  Bruno Haible  <bruno@clisp.org>
40306
40307         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
40308         tests/uninorm/test-u32-normcmp.c.
40309         * tests/uninorm/test-u32-normcmp.c: Include it.
40310         (test_nonascii): New function, extracted from main. Add some more
40311         tests.
40312         (main): Invoke test_ascii and test_nonascii.
40313         * modules/uninorm/u32-normcmp-tests (Files): Add
40314         tests/uninorm/test-u32-normcmp.h.
40315         (Depends-on): Remove uninorm/u32-normcmp.
40316
40317         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
40318         tests/uninorm/test-u16-normcmp.c.
40319         * tests/uninorm/test-u16-normcmp.c: Include it.
40320         (test_nonascii): New function, extracted from main. Add some more
40321         tests.
40322         (main): Invoke test_ascii and test_nonascii.
40323         * modules/uninorm/u16-normcmp-tests (Files): Add
40324         tests/uninorm/test-u16-normcmp.h.
40325         (Depends-on): Remove uninorm/u16-normcmp.
40326
40327         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
40328         tests/uninorm/test-u8-normcmp.c.
40329         * tests/uninorm/test-u8-normcmp.c: Include it.
40330         (test_nonascii): New function, extracted from main. Add some more
40331         tests.
40332         (main): Invoke test_ascii and test_nonascii.
40333         * modules/uninorm/u8-normcmp-tests (Files): Add
40334         tests/uninorm/test-u8-normcmp.h.
40335         (Depends-on): Remove uninorm/u8-normcmp.
40336
40337 2009-03-07  Bruno Haible  <bruno@clisp.org>
40338
40339         New module 'uninorm/u32-normcoll'.
40340         * lib/uninorm/u32-normcoll.c: New file.
40341         * modules/uninorm/u32-normcoll: New file.
40342
40343         New module 'uninorm/u16-normcoll'.
40344         * lib/uninorm/u16-normcoll.c: New file.
40345         * modules/uninorm/u16-normcoll: New file.
40346
40347         New module 'uninorm/u8-normcoll'.
40348         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
40349         declarations.
40350         * lib/uninorm/u8-normcoll.c: New file.
40351         * lib/uninorm/u-normcoll.h: New file.
40352         * modules/uninorm/u8-normcoll: New file.
40353
40354         New module 'uninorm/u32-normxfrm'.
40355         * lib/uninorm/u32-normxfrm.c: New file.
40356         * modules/uninorm/u32-normxfrm: New file.
40357
40358         New module 'uninorm/u16-normxfrm'.
40359         * lib/uninorm/u16-normxfrm.c: New file.
40360         * modules/uninorm/u16-normxfrm: New file.
40361
40362         New module 'uninorm/u8-normxfrm'.
40363         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
40364         declarations.
40365         * lib/uninorm/u8-normxfrm.c: New file.
40366         * lib/uninorm/u-normxfrm.h: New file.
40367         * modules/uninorm/u8-normxfrm: New file.
40368
40369 2009-03-07  Bruno Haible  <bruno@clisp.org>
40370
40371         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
40372         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
40373         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
40374
40375 2009-03-07  Bruno Haible  <bruno@clisp.org>
40376
40377         New module 'memxfrm'.
40378         * lib/memxfrm.h: New file.
40379         * lib/memxfrm.c: New file.
40380         * modules/memxfrm: New file.
40381
40382 2009-03-07  Bruno Haible  <bruno@clisp.org>
40383
40384         New module 'memcmp2'.
40385         * lib/memcmp2.h: New file.
40386         * lib/memcmp2.c: New file.
40387         * modules/memcmp2: New file.
40388
40389 2009-03-07  Bruno Haible  <bruno@clisp.org>
40390
40391         Tests for module 'uninorm/decomposing-form'.
40392         * modules/uninorm/decomposing-form-tests: New file.
40393         * tests/uninorm/test-decomposing-form.c: New file.
40394
40395         New module 'uninorm/decomposing-form'.
40396         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
40397         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
40398         Add 'decomposing_variant' field.
40399         * lib/uninorm/decomposing-form.c: New file.
40400         * lib/uninorm/nfc.c (uninorm_nfc): Update.
40401         * lib/uninorm/nfd.c (uninorm_nfd): Update.
40402         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
40403         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
40404         * modules/uninorm/decomposing-form: New file.
40405         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
40406         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
40407
40408 2009-03-07  Bruno Haible  <bruno@clisp.org>
40409
40410         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
40411         strings.
40412
40413 2009-03-06  Bruno Haible  <bruno@clisp.org>
40414
40415         Tests for module 'uninorm/u32-normcmp'.
40416         * tests/uninorm/test-u32-normcmp.c: New file.
40417         * modules/uninorm/u32-normcmp-tests: New file.
40418
40419         Tests for module 'uninorm/u16-normcmp'.
40420         * tests/uninorm/test-u16-normcmp.c: New file.
40421         * modules/uninorm/u16-normcmp-tests: New file.
40422
40423         Tests for module 'uninorm/u8-normcmp'.
40424         * tests/uninorm/test-u8-normcmp.c: New file.
40425         * modules/uninorm/u8-normcmp-tests: New file.
40426
40427         New module 'uninorm/u32-normcmp'.
40428         * lib/uninorm/u32-normcmp.c: New file.
40429         * modules/uninorm/u32-normcmp: New file.
40430
40431         New module 'uninorm/u16-normcmp'.
40432         * lib/uninorm/u16-normcmp.c: New file.
40433         * modules/uninorm/u16-normcmp: New file.
40434
40435         New module 'uninorm/u8-normcmp'.
40436         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
40437         declarations.
40438         * lib/uninorm/u8-normcmp.c: New file.
40439         * lib/uninorm/u-normcmp.h: New file.
40440         * modules/uninorm/u8-normcmp: New file.
40441
40442 2009-03-06  Bruno Haible  <bruno@clisp.org>
40443
40444         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
40445         Reported by Eric Blake.
40446
40447 2009-03-06  Eric Blake  <ebb9@byu.net>
40448             Bruno Haible  <bruno@clisp.org>
40449
40450         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
40451         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
40452         condition.
40453         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
40454         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
40455         condition.
40456         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
40457
40458 2009-03-06  Eric Blake  <ebb9@byu.net>
40459
40460         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
40461         to avoid compiler warnings.
40462         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
40463
40464 2009-03-05  Bruno Haible  <bruno@clisp.org>
40465
40466         * tests/test-ftell.c (main): Disable test beyond end of file on
40467         FreeMiNT.
40468         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
40469
40470 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
40471
40472         * lib/filevercmp.c: Move hidden files up in ordering.
40473         * tests/test-filevercmp.c: Add tests for hidden files.
40474
40475 2009-03-04  Bruno Haible  <bruno@clisp.org>
40476
40477         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
40478         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
40479         AM_CFLAGS.
40480         Reported by Simon Josefsson.
40481
40482 2009-03-03  Bruno Haible  <bruno@clisp.org>
40483
40484         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
40485         Reported by Simon Josefsson.
40486
40487         * doc/ld-version-script.texi: Update node reference.
40488
40489 2009-03-03  Bruno Haible  <bruno@clisp.org>
40490
40491         * modules/visibility (License): Change to 'unlimited'.
40492         Suggested by Simon Josefsson.
40493
40494 2009-03-03  Jim Meyering  <meyering@redhat.com>
40495
40496         unlinkdir: cannot_unlink_dir may modify process state
40497         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
40498         it's neither thread-safe nor appropriate for use in a library.
40499
40500 2009-03-03  Eric Blake  <ebb9@byu.net>
40501
40502         test-closein: silence test under Darwin
40503         * tests/test-closein.sh: Ignore stderr from cat, since we don't
40504         care if it dies from EPIPE or EBADF.
40505
40506 2009-03-03  Bruno Haible  <bruno@clisp.org>
40507
40508         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
40509         earlier.
40510         * doc/visibility.texi: Fix @node and @section.
40511
40512 2009-03-03  Simon Josefsson  <simon@josefsson.org>
40513
40514         * doc/gnulib.texi: Link to sections for ld version script and
40515         visibility.
40516         * doc/visibility.texi: Add @node and @section.
40517         * modules/ld-version-script: New module.
40518         * m4/ld-version-script.m4: New file.
40519         * doc/ld-version-script.texi: New file.
40520
40521 2009-03-02  David Lutterkort  <lutter@redhat.com>
40522
40523         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
40524         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
40525
40526 2009-03-02  Bruno Haible  <bruno@clisp.org>
40527
40528         * doc/visibility.texi: Mention libtool's -export-symbols option.
40529
40530 2009-03-02  Jim Meyering  <meyering@redhat.com>
40531
40532         announce-gen: new option: --no-print-checksums
40533         * build-aux/announce-gen (usage): Describe it.
40534         (print_checksums): Print a newline here, not in the [*] footnote.
40535         (main): Honor it.
40536
40537 2009-03-01  Bruno Haible  <bruno@clisp.org>
40538
40539         Use socklen_t in the native Windows replacements prototypes.
40540         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
40541         instead of 'int'.
40542         * lib/getsockopt.c (rpl_getsockopt): Likewise.
40543         * lib/setsockopt.c (rpl_setsockopt): Likewise.
40544         * modules/getsockopt (Depends-on): Add socklen.
40545         * modules/setsockopt (Depends-on): Add socklen.
40546
40547 2009-03-01  Bruno Haible  <bruno@clisp.org>
40548
40549         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
40550         least 4.2.
40551
40552 2009-03-01  Eric Blake  <ebb9@byu.net>
40553             Bruno Haible  <bruno@clisp.org>
40554
40555         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
40556         error messages.
40557         * lib/wait-process.c (wait_subprocess): Omit error message about
40558         deadly signal sent to the child of termsigp != NULL.
40559
40560 2009-03-01  Eric Blake  <ebb9@byu.net>
40561
40562         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
40563
40564 2009-03-01  Bruno Haible  <bruno@clisp.org>
40565
40566         Avoid a gcc warning.
40567         * tests/test-sched.c (b): Make global.
40568         Reported by Eric Blake.
40569
40570 2009-01-19  Martin Lambers  <marlam@marlam.de>
40571
40572         Provide POSIX semantics for socket timeout options on W32.
40573         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
40574         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
40575         * modules/setsockopt: Depend on sys_time module for struct timeval.
40576         * modules/getsockopt: Depend on sys_time module for struct timeval.
40577
40578 2009-03-01  Simon Josefsson  <simon@josefsson.org>
40579
40580         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
40581         __USE_GNU, for consistency with netdb.in.h.
40582         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
40583
40584 2009-03-01  Bruno Haible  <bruno@clisp.org>
40585
40586         More support for FreeMiNT.
40587         * lib/fseeko.c (rpl_fseeko): Complete last commit.
40588         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
40589
40590 2009-03-01  Bruno Haible  <bruno@clisp.org>
40591
40592         More support for FreeMiNT.
40593         * lib/fpurge.c (fpurge): Correct last commit.
40594         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
40595
40596 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40597
40598         Fix unportable awk script in vc-list-files.
40599         * build-aux/vc-list-files: In the replacement awk script, use
40600         substr with a second argument of 1, not zero.
40601         Report by Simon Josefsson.
40602
40603 2009-02-28  Bruno Haible  <bruno@clisp.org>
40604
40605         More support for FreeMiNT.
40606         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
40607         to FreeMiNT today.
40608         * lib/fwriting.c (fwriting): Likewise.
40609         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
40610
40611 2009-02-28  Bruno Haible  <bruno@clisp.org>
40612
40613         * tests/test-freadseek.c (main): Disable test beyond end of file on
40614         FreeMiNT.
40615         * tests/test-ftello.c (main): Likewise.
40616         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
40617
40618 2009-02-28  Bruno Haible  <bruno@clisp.org>
40619
40620         Add tentative support for FreeMiNT.
40621         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
40622         * lib/fpurge.c (fpurge): Likewise.
40623         * lib/freadable.c (freadable): Likewise.
40624         * lib/freading.c (freading): Likewise.
40625         * lib/freadptr.c (freadptr): Likewise.
40626         * lib/freadseek.c (freadptrinc): Likewise.
40627         * lib/fseeko.c (rpl_fseeko): Likewise.
40628         * lib/fseterr.c (fseterr): Likewise.
40629         * lib/fwritable.c (fwritable): Likewise.
40630         * lib/fwriting.c (fwriting): Likewise.
40631         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
40632         Hourihane.
40633         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
40634
40635 2009-02-28  Bruno Haible  <bruno@clisp.org>
40636
40637         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
40638         SIGCHLD.
40639         Reported by Jim Meyering.
40640
40641 2009-02-28  Bruno Haible  <bruno@clisp.org>
40642
40643         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
40644         Mention the results of these tests on various platforms.
40645         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
40646         order.
40647         * doc/posix-functions/printf.texi: Likewise.
40648         * doc/posix-functions/snprintf.texi: Likewise.
40649         * doc/posix-functions/sprintf.texi: Likewise.
40650         * doc/posix-functions/vfprintf.texi: Likewise.
40651         * doc/posix-functions/vprintf.texi: Likewise.
40652         * doc/posix-functions/vsnprintf.texi: Likewise.
40653         * doc/posix-functions/vsprintf.texi: Likewise.
40654         * doc/glibc-functions/obstack_printf.texi: Likewise.
40655         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
40656
40657 2009-02-28  Bruno Haible  <bruno@clisp.org>
40658
40659         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
40660         Reported by Loïc Minier <lool@dooz.org>.
40661
40662 2009-02-27  Bruno Haible  <bruno@clisp.org>
40663
40664         * gnulib-tool (func_import): Make the sed expression used to create the
40665         sed script for updating the .gitignore file POSIX compliant.
40666         Reported by Eric Blake.
40667
40668 2009-02-27  Bruno Haible  <bruno@clisp.org>
40669
40670         * gnulib-tool (sed): Don't alias as "sed --posix".
40671         Reported by Eric Blake.
40672
40673 2009-02-27  Bruno Haible  <bruno@clisp.org>
40674
40675         Avoid test link errors.
40676         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
40677         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
40678         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
40679         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
40680         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
40681
40682 2009-02-27  Bruno Haible  <bruno@clisp.org>
40683
40684         Avoid spurious "(cached)" in configure output.
40685         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
40686         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
40687         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
40688         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
40689         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
40690         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
40691         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
40692         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
40693         Reported by Eric Blake.
40694
40695 2009-02-27  Eric Blake  <ebb9@byu.net>
40696
40697         printf: fix regression in previous patch
40698         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
40699
40700 2009-02-27  Bruno Haible  <bruno@clisp.org>
40701
40702         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
40703         value.
40704         * lib/stdint.in.h: Likewise.
40705         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
40706
40707 2009-02-27  Eric Blake  <ebb9@byu.net>
40708
40709         doc: mention more functions added in cygwin 1.7.0
40710         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
40711         addition.
40712         * doc/posix-functions/open_wmemstream.texi: Likewise.
40713         * doc/posix-functions/wcsnlen.texi: Likewise.
40714         * doc/posix-functions/wcsnrtombs.texi: Likewise.
40715         * doc/posix-functions/wcstod.texi: Likewise.
40716         * doc/posix-functions/wcstof.texi: Likewise.
40717         * doc/posix-functions/wcstoimax.texi: Likewise.
40718         * doc/posix-functions/wcstok.texi: Likewise.
40719         * doc/posix-functions/wcstoumax.texi: Likewise.
40720
40721         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
40722         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
40723         * doc/posix-functions/fprintf.texi: Update.
40724         * doc/posix-functions/printf.texi: Update.
40725         * doc/posix-functions/snprintf.texi: Update.
40726         * doc/posix-functions/sprintf.texi: Update.
40727         * doc/posix-functions/vfprintf.texi: Update.
40728         * doc/posix-functions/vprintf.texi: Update.
40729         * doc/posix-functions/vsnprintf.texi: Update.
40730         * doc/posix-functions/vsprintf.texi: Update.
40731         * doc/glibc-functions/obstack_printf.texi: Update.
40732         * doc/glibc-functions/obstack_vprintf.texi: Update.
40733
40734 2009-02-26  Eric Blake  <ebb9@byu.net>
40735
40736         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
40737         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
40738         compilation bug by using runtime conversion.
40739         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
40740         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
40741         * modules/ceill-tests (Files): Use nan.h.
40742         * modules/floorl-tests (Files): Likewise.
40743         * modules/frexpl-tests (Files): Likewise.
40744         * modules/isnanl-tests (Files): Likewise.
40745         * modules/ldexpl-tests (Files): Likewise.
40746         * modules/roundl-tests (Files): Likewise.
40747         * modules/truncl-tests (Files): Likewise.
40748         * tests/test-ceill.c (main): Use a working NaN.
40749         * tests/test-floorl.c (main): Likewise.
40750         * tests/test-frexpl.c (main): Likewise.
40751         * tests/test-isnan.c (test_long_double): Likewise.
40752         * tests/test-isnanl.h (main): Likewise.
40753         * tests/test-ldexpl.h (main): Likewise.
40754         * tests/test-roundl.h (main): Likewise.
40755         * tests/test-truncl.h (main): Likewise.
40756         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
40757
40758 2009-02-26  Eric Blake  <ebb9@byu.net>
40759             Bruno Haible  <bruno@clisp.org>
40760
40761         Work around a *printf bug with %ls on Solaris.
40762         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
40763         precision is specified, sprintf stops converting the wide string
40764         argument when the number of bytes that have been produced by this
40765         conversion equals or exceeds the precision.
40766         * doc/posix-functions/fprintf.texi: Update.
40767         * doc/posix-functions/printf.texi: Update.
40768         * doc/posix-functions/snprintf.texi: Update.
40769         * doc/posix-functions/sprintf.texi: Update.
40770         * doc/posix-functions/vfprintf.texi: Update.
40771         * doc/posix-functions/vprintf.texi: Update.
40772         * doc/posix-functions/vsnprintf.texi: Update.
40773         * doc/posix-functions/vsprintf.texi: Update.
40774         * doc/glibc-functions/obstack_printf.texi: Update.
40775         * doc/glibc-functions/obstack_vprintf.texi: Update.
40776
40777 2009-02-26  Eric Blake  <ebb9@byu.net>
40778
40779         stdlib: favor compiler check of random.h
40780         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
40781         to avoid an ObjC random.h installed by Swarm.
40782
40783 2009-02-26  Bruno Haible  <bruno@clisp.org>
40784
40785         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
40786         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
40787         Reported by Gary V. Vaughan <gary@gnu.org>.
40788
40789 2009-02-26  Bruno Haible  <bruno@clisp.org>
40790
40791         Fix *printf behaviour regarding the %ls directive.
40792         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
40793         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
40794         NEED_PRINTF_DIRECTIVE_LS.
40795         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
40796         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
40797         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
40798         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
40799         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
40800         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
40801         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
40802         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
40803         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
40804         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
40805         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
40806         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
40807         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
40808         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
40809         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
40810         * doc/posix-functions/fprintf.texi: Update.
40811         * doc/posix-functions/printf.texi: Update.
40812         * doc/posix-functions/snprintf.texi: Update.
40813         * doc/posix-functions/sprintf.texi: Update.
40814         * doc/posix-functions/vfprintf.texi: Update.
40815         * doc/posix-functions/vprintf.texi: Update.
40816         * doc/posix-functions/vsnprintf.texi: Update.
40817         * doc/posix-functions/vsprintf.texi: Update.
40818         * doc/glibc-functions/obstack_printf.texi: Update.
40819         * doc/glibc-functions/obstack_vprintf.texi: Update.
40820         Reported by Eric Blake.
40821
40822 2009-02-25  Bruno Haible  <bruno@clisp.org>
40823
40824         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
40825         with known value.
40826         Reported by Gary V. Vaughan <gary@gnu.org>.
40827
40828 2009-02-25  Bruno Haible  <bruno@clisp.org>
40829
40830         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
40831         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
40832         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
40833         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
40834         Reported by Gary V. Vaughan <gary@gnu.org>.
40835
40836 2009-02-25  Bruno Haible  <bruno@clisp.org>
40837
40838         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
40839         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
40840         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
40841         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
40842         Reported by Gary V. Vaughan <gary@gnu.org>.
40843
40844 2009-02-25  Eric Blake  <ebb9@byu.net>
40845
40846         tests: skip fseek/ftell tests if ungetc is broken
40847         * m4/ungetc.m4: New file.
40848         * modules/fseek-tests: Split test, so ungetc dependency is
40849         separate from rest of test.
40850         * modules/fseeko-tests: Likewise.
40851         * modules/ftell-tests: Likewise.
40852         * modules/ftello-tests: Likewise.
40853         * tests/test-fseek.c (main): Isolate ungetc dependency.
40854         * tests/test-fseeko.c (main): Likewise.
40855         * tests/test-ftell.c (main): Likewise.
40856         * tests/test-ftello.c (main): Likewise.
40857         * tests/test-fseek2.sh: New file.
40858         * tests/test-fseeko2.sh: Likewise.
40859         * tests/test-ftell2.sh: Likewise.
40860         * tests/test-ftello2.sh: Likewise.
40861
40862 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
40863
40864         test-getaddrinfo: fix usage of skip return code 77
40865         * tests/test-gettaddrinfo.c: Return skip code 77 only
40866         for first occurance of skip (4x77 is not 77)
40867
40868 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
40869
40870         strtod: avoid C99 decl-after-statement
40871         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
40872
40873 2009-02-24  Eric Blake  <ebb9@byu.net>
40874
40875         strtod: detect HP-UX 11.31 bug
40876         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
40877         Reported by Gary V. Vaughan.
40878
40879 2009-02-23  Bruno Haible  <bruno@clisp.org>
40880
40881         Fix invalid read past end of memory block.
40882         * lib/vasnprintf.c (DCHAR_SET): Define.
40883         (local_wcslen): Define only when needed.
40884         (local_strnlen, local_wcsnlen): New functions.
40885         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
40886         directives that involve a conversion ourselves.
40887         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
40888         wcsnlen, mbrtowc, wcrtomb.
40889         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
40890         * tests/test-vasprintf-posix.c (test_function): Likewise.
40891         * tests/test-snprintf-posix.h (test_function): Likewise.
40892         * tests/test-sprintf-posix.h (test_function): Likewise.
40893         Reported by Ben Pfaff <blp@cs.stanford.edu>.
40894
40895 2009-02-22  Bruno Haible  <bruno@clisp.org>
40896
40897         Implement new clarified decomposition of Hangul syllables.
40898         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
40899         of type LTV, return only a pairwise decomposition.
40900         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
40901         Likewise.
40902         * tests/uninorm/test-decomposition.c (main): Updated expected result.
40903         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
40904         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
40905
40906 2009-02-22  Bruno Haible  <bruno@clisp.org>
40907
40908         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
40909         zero-length results and shrink excess allocated memory.
40910         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
40911         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
40912         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
40913         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
40914         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
40915         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
40916         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
40917         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
40918         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
40919         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
40920         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
40921         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
40922
40923 2009-02-21  Bruno Haible  <bruno@clisp.org>
40924
40925         * doc/gnulib.texi: Include safe-alloc.texi earlier.
40926         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
40927         spaces after a period. Put a space between a macro name and its
40928         argument list. Trivial rewordings.
40929         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
40930         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
40931         (main): Return 0 explicitly.
40932
40933 2009-02-21  Bruno Haible  <bruno@clisp.org>
40934
40935         Tests for module 'uninorm/filter'.
40936         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
40937         * modules/uninorm/filter-tests: New file.
40938
40939         New module 'uninorm/filter'.
40940         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
40941         uninorm_filter_flush, uninorm_filter_free): New declarations.
40942         * lib/uninorm/uninorm-filter.c: New file.
40943         * modules/uninorm/filter: New file.
40944
40945 2009-02-21  Bruno Haible  <bruno@clisp.org>
40946
40947         Tests for module 'uninorm/nfkc'.
40948         * tests/uninorm/test-nfkc.c: New file.
40949         * tests/uninorm/test-u8-nfkc.c: New file.
40950         * tests/uninorm/test-u16-nfkc.c: New file.
40951         * tests/uninorm/test-u32-nfkc.c: New file.
40952         * tests/uninorm/test-u32-nfkc-big.sh: New file.
40953         * tests/uninorm/test-u32-nfkc-big.c: New file.
40954         * modules/uninorm/nfkc-tests: New file.
40955
40956         New module 'uninorm/nfkc'.
40957         * lib/uninorm/nfkc.c: New file.
40958         * modules/uninorm/nfkc: New file.
40959
40960         Tests for module 'uninorm/nfkd'.
40961         * tests/uninorm/test-nfkd.c: New file.
40962         * tests/uninorm/test-u8-nfkd.c: New file.
40963         * tests/uninorm/test-u16-nfkd.c: New file.
40964         * tests/uninorm/test-u32-nfkd.c: New file.
40965         * tests/uninorm/test-u32-nfkd-big.sh: New file.
40966         * tests/uninorm/test-u32-nfkd-big.c: New file.
40967         * modules/uninorm/nfkd-tests: New file.
40968
40969         New module 'uninorm/nfkd'.
40970         * lib/uninorm/nfkd.c: New file.
40971         * modules/uninorm/nfkd: New file.
40972
40973         Tests for module 'uninorm/nfc'.
40974         * tests/uninorm/test-nfc.c: New file.
40975         * tests/uninorm/test-u8-nfc.c: New file.
40976         * tests/uninorm/test-u16-nfc.c: New file.
40977         * tests/uninorm/test-u32-nfc.c: New file.
40978         * tests/uninorm/test-u32-nfc-big.sh: New file.
40979         * tests/uninorm/test-u32-nfc-big.c: New file.
40980         * modules/uninorm/nfc-tests: New file.
40981
40982         New module 'uninorm/nfc'.
40983         * lib/uninorm/nfc.c: New file.
40984         * modules/uninorm/nfc: New file.
40985
40986         Tests for module 'uninorm/nfd'.
40987         * tests/uninorm/test-nfd.c: New file.
40988         * tests/uninorm/test-u8-nfd.c: New file.
40989         * tests/uninorm/test-u16-nfd.c: New file.
40990         * tests/uninorm/test-u32-nfd.c: New file.
40991         * tests/uninorm/test-u32-nfd-big.sh: New file.
40992         * tests/uninorm/test-u32-nfd-big.c: New file.
40993         * tests/uninorm/test-u32-normalize-big.h: New file.
40994         * tests/uninorm/test-u32-normalize-big.c: New file.
40995         * tests/uninorm/NormalizationTest.txt: New file, created from
40996         Unicode 5.1.0 NormalizationTest.txt.
40997         * modules/uninorm/nfd-tests: New file.
40998
40999         New module 'uninorm/nfd'.
41000         * lib/uninorm/nfd.c: New file.
41001         * modules/uninorm/nfd: New file.
41002
41003         New module 'uninorm/u32-normalize'.
41004         * lib/uninorm/u32-normalize.c: New file.
41005         * modules/uninorm/u32-normalize: New file.
41006
41007         New module 'uninorm/u16-normalize'.
41008         * lib/uninorm/u16-normalize.c: New file.
41009         * modules/uninorm/u16-normalize: New file.
41010
41011         New module 'uninorm/u8-normalize'.
41012         * lib/uninorm/u8-normalize.c: New file.
41013         * lib/uninorm/normalize-internal.h: New file.
41014         * lib/uninorm/u-normalize-internal.h: New file.
41015         * modules/uninorm/u8-normalize: New file.
41016
41017         New module 'uninorm/decompose-internal'.
41018         * lib/uninorm/decompose-internal.c: New file.
41019         * modules/uninorm/decompose-internal: New file.
41020
41021         Tests for module 'uninorm/composition'.
41022         * tests/uninorm/test-composition.c: New file.
41023         * modules/uninorm/composition-tests: New file.
41024
41025         New module 'uninorm/composition'.
41026         * lib/uninorm/composition.c: New file.
41027         * lib/uninorm/composition-table.gperf: New file, generated by
41028         gen-uni-tables.
41029         * modules/uninorm/composition: New file.
41030
41031         Tests for module 'uninorm/compat-decomposition'.
41032         * tests/uninorm/test-compat-decomposition.c: New file.
41033         * modules/uninorm/compat-decomposition-tests: New file.
41034
41035         New module 'uninorm/compat-decomposition'.
41036         * lib/uninorm/decompose-internal.h: New file.
41037         * lib/uninorm/compat-decomposition.c: New file.
41038         * modules/uninorm/compat-decomposition: New file.
41039
41040         Tests for module 'uninorm/canonical-decomposition'.
41041         * tests/uninorm/test-canonical-decomposition.c: New file.
41042         * modules/uninorm/canonical-decomposition-tests: New file.
41043
41044         New module 'uninorm/canonical-decomposition'.
41045         * lib/uninorm/canonical-decomposition.c: New file.
41046         * modules/uninorm/canonical-decomposition: New file.
41047
41048         Tests for module 'uninorm/decomposition'.
41049         * tests/uninorm/test-decomposition.c: New file.
41050         * modules/uninorm/decomposition-tests: New file.
41051
41052         New module 'uninorm/decomposition'.
41053         * lib/uninorm/decomposition.c: New file.
41054         * modules/uninorm/decomposition: New file.
41055
41056         New module 'uninorm/decomposition-table'.
41057         * lib/uninorm/decomposition-table.h: New file.
41058         * lib/uninorm/decomposition-table.c: New file.
41059         * lib/uninorm/decomposition-table1.h: New file, generated by
41060         gen-uni-tables.
41061         * lib/uninorm/decomposition-table2.h: New file, generated by
41062         gen-uni-tables.
41063         * modules/uninorm/decomposition-table: New file.
41064
41065         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
41066         (UC_DECOMP_*): New enumeration items.
41067         (get_decomposition): New function.
41068         (struct decomp_table): New type.
41069         (output_decomposition, output_decomposition_tables): New functions.
41070         (unicode_composition_exclusions): New variable.
41071         (fill_composition_exclusions, debug_output_composition_tables): New
41072         functions.
41073         (main): Accept one more argument. Invoke fill_composition_exclusions.
41074         Output decomposition and composition tables.
41075
41076         New module 'uninorm/base'.
41077         * lib/uninorm.h: New file.
41078         * lib/unictype.h: Update comment.
41079         * modules/uninorm/base: New file.
41080
41081 2009-02-21  David Lutterkort  <lutter@redhat.com>
41082
41083         Tests for module 'safe-alloc'.
41084         * tests/test-safe-alloc.c: New file.
41085         * modules/safe-alloc-tests: New file.
41086
41087         New module 'safe-alloc'.
41088         * lib/safe-alloc.h: New file.
41089         * lib/safe-alloc.c: New file.
41090         * m4/safe-alloc.m4: New file.
41091         * modules/safe-alloc: New file.
41092         * doc/safe-alloc.texi: New file.
41093         * doc/gnulib.texi: Include it.
41094         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
41095         safe-alloc.
41096
41097 2009-02-18  Bruno Haible  <bruno@clisp.org>
41098
41099         Fix link error on non-glibc systems.
41100         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
41101         variable.
41102         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
41103
41104 2009-02-18  Jim Meyering  <meyering@redhat.com>
41105
41106         fts: avoid used-uninitialized error due to recent change
41107         * lib/fts.c (fts_read): Guard uses of the new member,
41108         parent->fts_n_dirs_remaining, since it's not relevant for
41109         the parent of a directory specified on the command-line.
41110
41111 2009-02-17  James Youngman  <jay@gnu.org>
41112             Bruno Haible  <bruno@clisp.org>
41113
41114         * m4/include_next.m4: Reformulate comment.
41115
41116 2009-02-16  Jim Meyering  <meyering@redhat.com>
41117
41118         fts: add #if guards so that the fts_lgpl module still builds
41119         * lib/fts.c: Guard just-added hash-table-using parts with
41120         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
41121         Reported by Simon Josefsson.
41122
41123 2009-02-15  Bruno Haible  <bruno@clisp.org>
41124
41125         * modules/array-mergesort-tests: New file.
41126         * tests/test-array-mergesort.c: New file.
41127
41128         New module 'array-mergesort'.
41129         * modules/array-mergesort: New file.
41130         * lib/array-mergesort.h: New file.
41131
41132 2009-02-15  Bruno Haible  <bruno@clisp.org>
41133
41134         Fix 2009-02-07 commit.
41135         * lib/gen-uni-tables.c (output_predicate, output_category,
41136         output_combclass, output_bidi_category, output_decimal_digit,
41137         output_digit, output_numeric, output_mirror, output_scripts,
41138         output_ident_category, output_simple_mapping): Fix format directives.
41139         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
41140
41141 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
41142
41143         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
41144         fixes are available from IBM.
41145
41146 2009-02-13  Jim Meyering  <meyering@redhat.com>
41147
41148         fts: arrange not to stat non-directories in more cases
41149         This makes GNU find (when it doesn't need to stat each file)
41150         *much* more efficient at traversing reiserfs file systems.
41151         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
41152         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
41153         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
41154         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
41155         (leaf_optimization_applies): New function.
41156         (LCO_hash, LCO_compare): New helper functions.
41157         (link_count_optimize_ok): New function.
41158         (fts_stat): Initialize new member (if dir).
41159         (fts_read): Decrement parent's fts_n_dirs_remaining count if
41160         we've just stat'ed a directory.  Skip the stat call when possible.
41161         ---
41162         Note this AFS-related exchange:
41163         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
41164         and note find's pioctl call in find/fstype.c.
41165         But that is necessary only if you want to enable the
41166         optimization for AFS, and for now, I don't.
41167
41168         fts: move a function definition "up" (no semantic change)
41169         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
41170         "up" to precede upcoming use of a related function.
41171
41172 2009-02-11  Jim Meyering  <meyering@redhat.com>
41173
41174         fts: correct internal computation of nlinks (optimization-related)
41175         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
41176         whether the current entry is a directory, so don't test it.
41177
41178 2009-02-10  Bruno Haible  <bruno@clisp.org>
41179
41180         Tests for module 'uniwbrk/ulc-wordbreaks'.
41181         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
41182         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
41183         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
41184
41185         Tests for module 'uniwbrk/u32-wordbreaks'.
41186         * modules/uniwbrk/u32-wordbreaks-tests: New file.
41187         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
41188
41189         Tests for module 'uniwbrk/u16-wordbreaks'.
41190         * modules/uniwbrk/u16-wordbreaks-tests: New file.
41191         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
41192
41193         Tests for module 'uniwbrk/u8-wordbreaks'.
41194         * modules/uniwbrk/u8-wordbreaks-tests: New file.
41195         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
41196
41197 2009-02-10  Bruno Haible  <bruno@clisp.org>
41198
41199         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
41200         property.
41201         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
41202         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
41203         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
41204
41205 2009-02-10  Simon Josefsson  <simon@josefsson.org>
41206
41207         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
41208         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
41209
41210 2009-02-10  Bruno Haible  <bruno@clisp.org>
41211
41212         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
41213         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
41214         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
41215         * lib/unilbrk/u8-possible-linebreaks.c: Update.
41216         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
41217         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
41218
41219 2009-02-09  Simon Josefsson  <simon@josefsson.org>
41220
41221         * lib/sockets.h (gl_fd_to_handle): New function.
41222
41223         * tests/test-sockets.c: Call gl_fd_to_handle.
41224
41225 2009-02-09  Bruno Haible  <bruno@clisp.org>
41226
41227         * doc/havelib.texi: Document the conventions on bi-arch systems.
41228
41229 2009-02-08  Bruno Haible  <bruno@clisp.org>
41230
41231         Document the AC_LIB_LINKFLAGS macro.
41232         * doc/havelib.texi: New file, mostly written on 2005-05-24.
41233         * doc/gnulib.texi: Include it.
41234
41235 2009-02-08  Bruno Haible  <bruno@clisp.org>
41236
41237         Fix wrong order of sections, compared to TOC.
41238         * doc/gnulib.texi: Include relocatable-maint.texi after the
41239         "Regular expressions" node, not before.
41240
41241 2009-02-08  Bruno Haible  <bruno@clisp.org>
41242
41243         Tests for module 'unicase/totitle'.
41244         * modules/unicase/totitle-tests: New file.
41245
41246         Tests for module 'unicase/tolower'.
41247         * modules/unicase/tolower-tests: New file.
41248
41249         Tests for module 'unicase/toupper'.
41250         * modules/unicase/toupper-tests: New file.
41251         * tests/unicase/test-mapping-part1.h: New file.
41252         * tests/unicase/test-mapping-part2.h: New file.
41253
41254         New module 'unicase/totitle'.
41255         * modules/unicase/totitle: New file.
41256         * lib/unicase/totitle.c: New file.
41257
41258         New module 'unicase/tolower'.
41259         * modules/unicase/tolower: New file.
41260         * lib/unicase/tolower.c: New file.
41261
41262         New module 'unicase/toupper'.
41263         * modules/unicase/toupper: New file.
41264         * lib/unicase/toupper.c: New file.
41265         * lib/unicase/simple-mapping.h: New file.
41266
41267         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
41268         (mapping_table): New structure.
41269         (output_simple_mapping): New function.
41270         (main): Invoke output_simple_mapping_test and output_simple_mapping.
41271         * modules/gen-uni-tables (Description): Update.
41272         * lib/unicase/toupper.h: New file, automatically generated by
41273         gen-uni-tables.
41274         * lib/unicase/tolower.h: New file, automatically generated by
41275         gen-uni-tables.
41276         * lib/unicase/totitle.h: New file, automatically generated by
41277         gen-uni-tables.
41278         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
41279         gen-uni-tables.
41280         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
41281         gen-uni-tables.
41282         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
41283         gen-uni-tables.
41284
41285         New module 'unicase/base'.
41286         * modules/unicase/base: New file.
41287         * lib/unicase.h: New file.
41288
41289 2009-02-08  Bruno Haible  <bruno@clisp.org>
41290
41291         New module 'uniwbrk/ulc-wordbreaks'.
41292         * modules/uniwbrk/ulc-wordbreaks: New file.
41293         * lib/uniwbrk/ulc-wordbreaks.c: New file.
41294
41295         New module 'uniwbrk/u32-wordbreaks'.
41296         * modules/uniwbrk/u32-wordbreaks: New file.
41297         * lib/uniwbrk/u32-wordbreaks.c: New file.
41298
41299         New module 'uniwbrk/u16-wordbreaks'.
41300         * modules/uniwbrk/u16-wordbreaks: New file.
41301         * lib/uniwbrk/u16-wordbreaks.c: New file.
41302
41303         New module 'uniwbrk/u8-wordbreaks'.
41304         * modules/uniwbrk/u8-wordbreaks: New file.
41305         * lib/uniwbrk/u8-wordbreaks.c: New file.
41306         * lib/uniwbrk/u-wordbreaks.h: New file.
41307
41308         New module 'uniwbrk/table'.
41309         * modules/uniwbrk/table: New file.
41310         * lib/uniwbrk/wbrktable.h: New file.
41311         * lib/uniwbrk/wbrktable.c: New file.
41312
41313         New module 'uniwbrk/wordbreak-property'.
41314         * modules/uniwbrk/wordbreak-property: New file.
41315         * lib/uniwbrk/wordbreak-property.c: New file.
41316
41317         * lib/gen-uni-tables.c (WBP_*): New enum items.
41318         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
41319         (unicode_org_wbp): New variable.
41320         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
41321         New functions.
41322         (wbp_table): New structure.
41323         (output_wbp, output_wbrk_tables): New functions.
41324         (main): Accept additional argument. Invoke fill_org_wbp,
41325         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
41326         output_wbrk_tables.
41327         * modules/gen-uni-tables (Description): Update.
41328         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
41329         gen-uni-tables.
41330
41331         New module 'uniwbrk/base'.
41332         * modules/uniwbrk/base: New file.
41333         * lib/uniwbrk.h: New file.
41334
41335 2009-02-08  Bruno Haible  <bruno@clisp.org>
41336
41337         Update to Unicode 5.1.0.
41338         * lib/gen-uni-tables.c (is_property_alphabetic): Include
41339         U+2185..U+2188.
41340         (is_property_default_ignorable_code_point): Don't include characters
41341         of category Cc or Cs and not-a-characters.
41342         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
41343         U+0D79, U+109E, U+109F, U+A60C.
41344         * lib/unictype/bidi_of.h: Regenerated.
41345         * lib/unictype/blocks.h: Regenerated.
41346         * lib/unictype/categ_C.h: Regenerated.
41347         * lib/unictype/categ_Cf.h: Regenerated.
41348         * lib/unictype/categ_Cn.h: Regenerated.
41349         * lib/unictype/categ_L.h: Regenerated.
41350         * lib/unictype/categ_Ll.h: Regenerated.
41351         * lib/unictype/categ_Lm.h: Regenerated.
41352         * lib/unictype/categ_Lo.h: Regenerated.
41353         * lib/unictype/categ_Lu.h: Regenerated.
41354         * lib/unictype/categ_M.h: Regenerated.
41355         * lib/unictype/categ_Mc.h: Regenerated.
41356         * lib/unictype/categ_Me.h: Regenerated.
41357         * lib/unictype/categ_Mn.h: Regenerated.
41358         * lib/unictype/categ_N.h: Regenerated.
41359         * lib/unictype/categ_Nd.h: Regenerated.
41360         * lib/unictype/categ_Nl.h: Regenerated.
41361         * lib/unictype/categ_No.h: Regenerated.
41362         * lib/unictype/categ_P.h: Regenerated.
41363         * lib/unictype/categ_Pd.h: Regenerated.
41364         * lib/unictype/categ_Pe.h: Regenerated.
41365         * lib/unictype/categ_Pf.h: Regenerated.
41366         * lib/unictype/categ_Pi.h: Regenerated.
41367         * lib/unictype/categ_Po.h: Regenerated.
41368         * lib/unictype/categ_Ps.h: Regenerated.
41369         * lib/unictype/categ_S.h: Regenerated.
41370         * lib/unictype/categ_Sk.h: Regenerated.
41371         * lib/unictype/categ_Sm.h: Regenerated.
41372         * lib/unictype/categ_So.h: Regenerated.
41373         * lib/unictype/categ_of.h: Regenerated.
41374         * lib/unictype/combining.h: Regenerated.
41375         * lib/unictype/ctype_alnum.h: Regenerated.
41376         * lib/unictype/ctype_alpha.h: Regenerated.
41377         * lib/unictype/ctype_graph.h: Regenerated.
41378         * lib/unictype/ctype_lower.h: Regenerated.
41379         * lib/unictype/ctype_print.h: Regenerated.
41380         * lib/unictype/ctype_punct.h: Regenerated.
41381         * lib/unictype/ctype_upper.h: Regenerated.
41382         * lib/unictype/decdigit.h: Regenerated.
41383         * lib/unictype/digit.h: Regenerated.
41384         * lib/unictype/mirror.h: Regenerated.
41385         * lib/unictype/numeric.h: Regenerated.
41386         * lib/unictype/pr_alphabetic.h: Regenerated.
41387         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
41388         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
41389         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
41390         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
41391         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
41392         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
41393         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
41394         * lib/unictype/pr_combining.h: Regenerated.
41395         * lib/unictype/pr_dash.h: Regenerated.
41396         * lib/unictype/pr_decimal_digit.h: Regenerated.
41397         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
41398         * lib/unictype/pr_deprecated.h: Regenerated.
41399         * lib/unictype/pr_diacritic.h: Regenerated.
41400         * lib/unictype/pr_extender.h: Regenerated.
41401         * lib/unictype/pr_format_control.h: Regenerated.
41402         * lib/unictype/pr_grapheme_base.h: Regenerated.
41403         * lib/unictype/pr_grapheme_extend.h: Regenerated.
41404         * lib/unictype/pr_grapheme_link.h: Regenerated.
41405         * lib/unictype/pr_id_continue.h: Regenerated.
41406         * lib/unictype/pr_id_start.h: Regenerated.
41407         * lib/unictype/pr_ideographic.h: Regenerated.
41408         * lib/unictype/pr_ignorable_control.h: Regenerated.
41409         * lib/unictype/pr_lowercase.h: Regenerated.
41410         * lib/unictype/pr_math.h: Regenerated.
41411         * lib/unictype/pr_numeric.h: Regenerated.
41412         * lib/unictype/pr_other_alphabetic.h: Regenerated.
41413         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
41414         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
41415         * lib/unictype/pr_other_id_continue.h: Regenerated.
41416         * lib/unictype/pr_other_lowercase.h: Regenerated.
41417         * lib/unictype/pr_other_math.h: Regenerated.
41418         * lib/unictype/pr_punctuation.h: Regenerated.
41419         * lib/unictype/pr_sentence_terminal.h: Regenerated.
41420         * lib/unictype/pr_soft_dotted.h: Regenerated.
41421         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
41422         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
41423         * lib/unictype/pr_unified_ideograph.h: Regenerated.
41424         * lib/unictype/pr_uppercase.h: Regenerated.
41425         * lib/unictype/pr_xid_continue.h: Regenerated.
41426         * lib/unictype/pr_xid_start.h: Regenerated.
41427         * lib/unictype/pr_zero_width.h: Regenerated.
41428         * lib/unictype/scripts.h: Regenerated.
41429         * lib/unictype/scripts_byname.gperf: Regenerated.
41430         * lib/unictype/sy_java_ident.h: Regenerated.
41431         * lib/unilbrk/lbrkprop1.h: Regenerated.
41432         * lib/unilbrk/lbrkprop2.h: Regenerated.
41433         * tests/unictype/test-categ_C.c: Regenerated.
41434         * tests/unictype/test-categ_Cf.c: Regenerated.
41435         * tests/unictype/test-categ_Cn.c: Regenerated.
41436         * tests/unictype/test-categ_L.c: Regenerated.
41437         * tests/unictype/test-categ_Ll.c: Regenerated.
41438         * tests/unictype/test-categ_Lm.c: Regenerated.
41439         * tests/unictype/test-categ_Lo.c: Regenerated.
41440         * tests/unictype/test-categ_Lu.c: Regenerated.
41441         * tests/unictype/test-categ_M.c: Regenerated.
41442         * tests/unictype/test-categ_Mc.c: Regenerated.
41443         * tests/unictype/test-categ_Me.c: Regenerated.
41444         * tests/unictype/test-categ_Mn.c: Regenerated.
41445         * tests/unictype/test-categ_N.c: Regenerated.
41446         * tests/unictype/test-categ_Nd.c: Regenerated.
41447         * tests/unictype/test-categ_Nl.c: Regenerated.
41448         * tests/unictype/test-categ_No.c: Regenerated.
41449         * tests/unictype/test-categ_P.c: Regenerated.
41450         * tests/unictype/test-categ_Pd.c: Regenerated.
41451         * tests/unictype/test-categ_Pe.c: Regenerated.
41452         * tests/unictype/test-categ_Pf.c: Regenerated.
41453         * tests/unictype/test-categ_Pi.c: Regenerated.
41454         * tests/unictype/test-categ_Po.c: Regenerated.
41455         * tests/unictype/test-categ_Ps.c: Regenerated.
41456         * tests/unictype/test-categ_S.c: Regenerated.
41457         * tests/unictype/test-categ_Sk.c: Regenerated.
41458         * tests/unictype/test-categ_Sm.c: Regenerated.
41459         * tests/unictype/test-categ_So.c: Regenerated.
41460         * tests/unictype/test-ctype_alnum.c: Regenerated.
41461         * tests/unictype/test-ctype_alpha.c: Regenerated.
41462         * tests/unictype/test-ctype_graph.c: Regenerated.
41463         * tests/unictype/test-ctype_lower.c: Regenerated.
41464         * tests/unictype/test-ctype_print.c: Regenerated.
41465         * tests/unictype/test-ctype_punct.c: Regenerated.
41466         * tests/unictype/test-ctype_upper.c: Regenerated.
41467         * tests/unictype/test-decdigit.h: Regenerated.
41468         * tests/unictype/test-digit.h: Regenerated.
41469         * tests/unictype/test-numeric.h: Regenerated.
41470         * tests/unictype/test-pr_alphabetic.c: Regenerated.
41471         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
41472         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
41473         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
41474         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
41475         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
41476         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
41477         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
41478         * tests/unictype/test-pr_combining.c: Regenerated.
41479         * tests/unictype/test-pr_dash.c: Regenerated.
41480         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
41481         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
41482         * tests/unictype/test-pr_deprecated.c: Regenerated.
41483         * tests/unictype/test-pr_diacritic.c: Regenerated.
41484         * tests/unictype/test-pr_extender.c: Regenerated.
41485         * tests/unictype/test-pr_format_control.c: Regenerated.
41486         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
41487         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
41488         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
41489         * tests/unictype/test-pr_id_continue.c: Regenerated.
41490         * tests/unictype/test-pr_id_start.c: Regenerated.
41491         * tests/unictype/test-pr_ideographic.c: Regenerated.
41492         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
41493         * tests/unictype/test-pr_lowercase.c: Regenerated.
41494         * tests/unictype/test-pr_math.c: Regenerated.
41495         * tests/unictype/test-pr_numeric.c: Regenerated.
41496         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
41497         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
41498         Regenerated.
41499         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
41500         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
41501         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
41502         * tests/unictype/test-pr_other_math.c: Regenerated.
41503         * tests/unictype/test-pr_punctuation.c: Regenerated.
41504         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
41505         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
41506         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
41507         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
41508         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
41509         * tests/unictype/test-pr_uppercase.c: Regenerated.
41510         * tests/unictype/test-pr_xid_continue.c: Regenerated.
41511         * tests/unictype/test-pr_xid_start.c: Regenerated.
41512         * tests/unictype/test-pr_zero_width.c: Regenerated.
41513
41514         Update to Unicode 5.1.0.
41515         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
41516         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
41517         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
41518         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
41519         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
41520         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
41521         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
41522         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
41523         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
41524         (nonspacing_table_ind): Update.
41525         * tests/uniwidth/test-uc_width2.sh: Update expected result.
41526
41527         Update to Unicode 5.1.0.
41528         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
41529         code transform.
41530         * lib/uniname/uniname.c (unicode_character_name,
41531         unicode_name_character): Add the range 0x1Fxxx to the code transform.
41532         * lib/uniname/uninames.h: Regenerated.
41533         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
41534
41535 2009-02-07  Bruno Haible  <bruno@clisp.org>
41536
41537         Merge gen-ctype and gen-lbrk into a single program.
41538         * lib/gen-uni-tables.c: New file, incorporating
41539         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
41540         Add directory prefixes to the names of the generated files.
41541         * lib/unictype/gen-ctype.c: Remove file.
41542         * lib/unilbrk/gen-lbrk.c: Remove file.
41543         * modules/gen-uni-tables: New file.
41544         * modules/unictype/gen-ctype: Remove file.
41545         * modules/unilbrk/gen-lbrk: Remove file.
41546
41547 2009-02-07  Bruno Haible  <bruno@clisp.org>
41548
41549         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
41550
41551         New module 'unistr/u32-strcoll'.
41552         * modules/unistr/u32-strcoll: New file.
41553         * lib/unistr/u32-strcoll.c: New file.
41554
41555         New module 'unistr/u16-strcoll'.
41556         * modules/unistr/u16-strcoll: New file.
41557         * lib/unistr/u16-strcoll.c: New file.
41558
41559         New module 'unistr/u8-strcoll'.
41560         * modules/unistr/u8-strcoll: New file.
41561         * lib/unistr/u8-strcoll.c: New file.
41562         * lib/unistr/u-strcoll.h: New file.
41563
41564 2009-02-07  Bruno Haible  <bruno@clisp.org>
41565
41566         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
41567         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
41568         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
41569         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
41570         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
41571         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
41572
41573 2009-02-07  Bruno Haible  <bruno@clisp.org>
41574
41575         Make 64-bit clean.
41576         * lib/unictype/gen-ctype.c (output_predicate, output_category,
41577         output_combclass, output_bidi_category, output_decimal_digit,
41578         output_digit, output_numeric, output_mirror, output_scripts,
41579         output_ident_category): Use proper width specifier in format strings.
41580
41581 2009-02-07  Bruno Haible  <bruno@clisp.org>
41582
41583         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
41584         failure behaviour.
41585
41586 2009-02-07  Jim Meyering  <meyering@redhat.com>
41587
41588         regex: avoid compilation failure with upcoming gcc-4.4
41589         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
41590         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
41591         "... error: integer overflow in preprocessor expression".
41592
41593 2009-02-05  Ben Pfaff  <blp@gnu.org>
41594
41595         Fix link errors on Windows when close module is used.
41596         * modules/close: Add $(LIB_CLOSE) to Link section.
41597         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
41598         $(LIB_CLOSE) on Windows.
41599
41600 2009-02-05  Jim Meyering  <meyering@redhat.com>
41601
41602         still avoid unused-parameter warnings, but do it cleanly
41603         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
41604         (get_fs_usage): Cast to void instead.
41605         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
41606         (dev_from_mount_options, read_file_system_list): Cast to void.
41607         Prompted by Bruno Haible.
41608
41609 2009-02-04  Jim Meyering  <meyering@redhat.com>
41610
41611         fsusage.c: correct copyright year
41612         * lib/fsusage.c: Reflect year in which the change is pushed into
41613
41614         avoid misc. warnings
41615         * lib/fsusage.c (UNUSED_PARAM): Define.
41616         (get_fs_usage): Mark parameter "disk" as unused.
41617         * lib/getugroups.c (getgrent): Use "void" in prototype.
41618         * lib/mountlist.c: Mark unused parameters.
41619         (read_file_system_list): Declare a local with "const".
41620         * lib/nanosleep.c (getnow): Declare static.
41621         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
41622
41623         dirfd: set errno upon failure
41624         * lib/dirfd.c: Include <errno.h>.
41625         Set errno to ENOTSUP when returning -1.
41626         * modules/dirfd (Depends-on): Add errno.
41627         Suggested by John Kodis <kodis@comcast.net>.
41628
41629 2009-02-01  Bruno Haible  <bruno@clisp.org>
41630
41631         Don't assume sizeof (long) >= sizeof (void *).
41632         * lib/memcmp.c: Include stdint.h.
41633         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
41634         srcp2 to 'const byte *'.
41635         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
41636         types to uintptr_t.
41637         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
41638         * modules/memcmp (Depends-on): Add stdint.
41639         Reported by Ozkan Sezer <sezeroz@gmail.com>.
41640
41641 2009-01-30  Eric Blake  <ebb9@byu.net>
41642
41643         fix more require-before-expand issues
41644         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
41645         expand, AC_PROG_AWK.
41646         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
41647
41648 2009-01-28  Eric Blake  <ebb9@byu.net>
41649
41650         version-etc: use consistent URL formatting
41651         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
41652         Improve formatting.  Use fputs for string without %.
41653
41654 2009-01-28  Jim Meyering  <meyering@redhat.com>
41655
41656         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
41657         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
41658         "underquoted definition of NAME" from autoconf-2.59.
41659
41660 2009-01-28  Bruno Haible  <bruno@clisp.org>
41661
41662         * doc/gnulib.texi: Add "Obsolete modules" to index.
41663
41664 2009-01-28  Jim Meyering  <meyering@redhat.com>
41665
41666         useless-if-before-free: recognize more variants
41667         * build-aux/useless-if-before-free: Also recognize e.g.,
41668         if (NULL != p) free (p);
41669
41670 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
41671
41672         test-getaddrinfo: skip (don't fail) this test when there's no network
41673         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
41674         on the presumption that it means you lack network access.
41675
41676 2009-01-26  Jim Meyering  <meyering@redhat.com>
41677
41678         fflush: avoid warnings on modern systems
41679         * lib/fflush.c (rpl_fflush): Move declarations of locals,
41680         pos and result, into scopes where they're used.
41681
41682 2009-01-26  Eric Blake  <ebb9@byu.net>
41683
41684         Silence warning reintroduced by recent extensions patch.
41685         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
41686         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
41687         autoconf.
41688
41689         Backport improved autoconf semantics of AC_DEFUN_ONCE.
41690         * m4/00gnulib.m4: New file.
41691         * gnulib-tool (func_get_filelist): Always use it.
41692         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
41693         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
41694
41695 2009-01-25  Bruno Haible  <bruno@clisp.org>
41696
41697         Make test-quotearg work on MacOS X and AIX.
41698         * tests/test-quotearg.sh: New file.
41699         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
41700         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
41701         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
41702         include <libintl.h>.
41703         (fake_locale): Remove variable.
41704         (gettext, dgettext, dcgettext): Remove functions.
41705         (main): Instead of setting a fake locale, set a real locale. Call
41706         textdomain and bindtextdomain.
41707         * modules/quotearg-tests (Files): Add the new files.
41708         (Depends-on): Add gettext, setenv, unsetenv.
41709         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
41710         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
41711         Augment TESTS_ENVIRONMENT.
41712
41713 2009-01-25  Bruno Haible  <bruno@clisp.org>
41714
41715         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
41716         fr_FR.ISO8859-1 locale on MacOS X.
41717         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
41718         ja_JP.eucJP locale on MacOS X.
41719         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
41720         zh_CN.GB18030 locale on MacOS X.
41721
41722 2009-01-25  Bruno Haible  <bruno@clisp.org>
41723
41724         Avoid link errors on MacOS X 10.3.
41725         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
41726         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
41727
41728 2009-01-25  Bruno Haible  <bruno@clisp.org>
41729
41730         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
41731         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
41732         * modules/pipe (Files): Remove m4/posix_spawn.m4.
41733         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
41734         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
41735         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
41736         posix_spawnattr_init, posix_spawnattr_setsigmask,
41737         posix_spawnattr_setflags, posix_spawnattr_destroy.
41738
41739         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
41740         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
41741         * modules/execute (Files): Remove m4/posix_spawn.m4.
41742         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
41743         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
41744         posix_spawnattr_init, posix_spawnattr_setsigmask,
41745         posix_spawnattr_setflags, posix_spawnattr_destroy.
41746
41747 2009-01-25  Bruno Haible  <bruno@clisp.org>
41748
41749         * lib/glthread/threadlib.c: Include <stdlib.h>.
41750
41751 2009-01-25  Bruno Haible  <bruno@clisp.org>
41752
41753         * lib/glthread/threadlib.c (dummy): New declaration.
41754
41755 2009-01-25  Bruno Haible  <bruno@clisp.org>
41756
41757         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
41758         multibyte characters also for the GB18030 encoding. Don't crash when
41759         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
41760
41761 2009-01-25  Bruno Haible  <bruno@clisp.org>
41762
41763         Avoid redefining 'struct random_data' on OSF/1 5.1.
41764         * lib/stdlib.in.h: Include <random.h> if it exists.
41765         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
41766         HAVE_RANDOM_H. Include <random.h> when testing whether
41767         'struct random_data' exists.
41768         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
41769
41770 2009-01-25  Bruno Haible  <bruno@clisp.org>
41771
41772         Don't install charset.alias on MacOS X >= 10.3.
41773         * lib/localcharset.c (DARWIN7): New macro.
41774         (get_charset_aliases): Hardcode the result for Darwin7.
41775         * modules/localcharset (install-exec-local): Don't install
41776         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
41777
41778 2009-01-25  Bruno Haible  <bruno@clisp.org>
41779
41780         Don't install charset.alias on mingw and Cygwin.
41781         * modules/localcharset (install-exec-local): Don't install
41782         charset.alias on mingw and Cygwin, if the file does not yet exist.
41783         The result for these platforms is hardcoded in localcharset.c.
41784
41785 2009-01-25  Bruno Haible  <bruno@clisp.org>
41786
41787         Make it possible again to use AC_GNU_SOURCE together with gnulib.
41788         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
41789         before requiring AC_USE_SYSTEM_EXTENSIONS.
41790
41791 2009-01-25  Jim Meyering  <meyering@redhat.com>
41792
41793         c-strtod: avoid warnings
41794         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
41795         "assignment discards qualifiers from pointer target type" warnings.
41796
41797 2009-01-24  Bruno Haible  <bruno@clisp.org>
41798
41799         Add support for non-UTF-8 locales on MacOS X.
41800         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
41801         canonical encodings. For Darwin 7 and newer, don't map traditional
41802         encodings to UTF-8.
41803         Reported by Vincent Lefevre <vincent@vinc17.org>
41804         at <http://savannah.gnu.org/bugs/?25235>.
41805
41806 2009-01-24  Bruno Haible  <bruno@clisp.org>
41807
41808         * doc/gnulib.texi (Obsolete modules): New section.
41809         Reported by Mike Frysinger <vapier@gentoo.org>.
41810
41811 2009-01-24  Bruno Haible  <bruno@clisp.org>
41812
41813         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
41814         (%.dvi): New rule.
41815
41816 2009-01-24  Bruno Haible  <bruno@clisp.org>
41817
41818         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
41819         Reported by Eric Blake.
41820
41821 2009-01-24  Bruno Haible  <bruno@clisp.org>
41822
41823         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
41824         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
41825         Reported by Gary V. Vaughan <gary@gnu.org>.
41826
41827 2009-01-24  Bruno Haible  <bruno@clisp.org>
41828
41829         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
41830
41831 2009-01-23  Bruno Haible  <bruno@clisp.org>
41832
41833         Make c-strtod, c-strtold usable in libraries.
41834         * lib/c-strtod.c: Include string.h instead of xalloc.h.
41835         (C_STRTOD): Call strdup instead of xstrdup.
41836         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
41837         * modules/c-strtold (Depends-on): Likewise.
41838         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
41839         * NEWS: Mention the change.
41840         Reported by Michael Gold <mgold@ncf.ca>.
41841
41842 2009-01-23  Jim Meyering  <meyering@redhat.com>
41843
41844         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
41845         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
41846         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
41847
41848 2009-01-23  Simon Josefsson  <simon@josefsson.org>
41849
41850         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
41851         GNU CoreUtils.
41852         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
41853         * modules/version-etc (Description): Update.
41854
41855 2009-01-22  Bruno Haible  <bruno@clisp.org>
41856
41857         Cache the C locale object.
41858         * lib/c-strtod.c (c_locale_cache): New variable.
41859         (c_locale): New function.
41860         (C_STRTOD): Use it, and don't call freelocale.
41861         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
41862         Suggested by Paolo Bonzini.
41863
41864 2009-01-21  Bruno Haible  <bruno@clisp.org>
41865
41866         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
41867         conditions other than overflow.
41868
41869 2009-01-21  Bruno Haible  <bruno@clisp.org>
41870
41871         * lib/c-strtod.c: Include errno.h.
41872         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
41873         value from STRTOD_L and STRTOD.
41874
41875 2009-01-21  Bruno Haible  <bruno@clisp.org>
41876         and Jim Meyering  <meyering@redhat.com>
41877
41878         nanosleep: skip configure test (fail it) for apple universal builds
41879         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
41880         universal builds, assume that nanosleep does not work.
41881         * modules/nanosleep (Depends-on): Add multiarch.
41882
41883         mktime: skip configure test (fail it) for apple universal builds
41884         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
41885         universal builds, assume that mktime does not work.
41886         * modules/mktime (Depends-on): Add multiarch.
41887
41888 2009-01-21  Eric Blake  <ebb9@byu.net>
41889
41890         multiarch: avoid expand-before-require warning
41891         * modules/multiarch (configure.ac): Require, rather than expand,
41892         gl_MULTIARCH.
41893         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
41894         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
41895         enforce that all clients require it.  Partial reversion of
41896         2008-12-29 patch.
41897
41898         error: avoid expand-before-require warning
41899         * modules/errno (configure.ac): Require, rather than expand,
41900         gl_HEADER_ERRNO_H.
41901         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
41902         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
41903         enforce that all clients require it.
41904
41905         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
41906         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
41907         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
41908         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
41909
41910 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
41911
41912         Revert:
41913         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
41914
41915         regex: do not depend on obsolete modules.
41916         * modules/regex: Remove memcmp and memmove.
41917
41918 2009-01-20  Bruno Haible  <bruno@clisp.org>
41919
41920         Make the 'link' module link on Windows NT 4.
41921         * lib/link.c (_WIN32_WINNT): Don't define.
41922         (CreateHardLinkFuncType): New type.
41923         (CreateHardLinkFunc, initialized): New variables.
41924         (initialize): New function.
41925         (link): Invoke CreateHardLink indirectly through the function pointer.
41926
41927 2009-01-20  Bruno Haible  <bruno@clisp.org>
41928
41929         Fix compilation failure on mingw.
41930         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
41931
41932 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
41933
41934         * doc/c-strtod.texi: Mention a couple of restrictions.
41935
41936 2009-01-20  Jim Meyering  <meyering@redhat.com>
41937
41938         gettimeofday: move more declarations out of functions
41939         * lib/gettimeofday.c: Move extern declarations of tzset and
41940         gmtime out of containing functions.  Prompted by Bruno Haible.
41941
41942 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
41943
41944         regex: do not depend on obsolete modules.
41945         * modules/regex: Remove memcmp and memmove.
41946
41947 2009-01-19  Bruno Haible  <bruno@clisp.org>
41948
41949         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
41950         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
41951         gl_BIGENDIAN, not AC_C_BIGENDIAN.
41952         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
41953         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
41954
41955 2009-01-19  Bruno Haible  <bruno@clisp.org>
41956
41957         * tests/test-link.c: Include <errno.h>.
41958         (main): Exit with code 77 when a hard link cannot be created due to
41959         the file system.
41960         * tests/test-link.sh: Skip test when a hard link cannot be created due
41961         to the file system.
41962         Suggested by Eric Blake.
41963
41964 2009-01-19  Martin Lambers  <marlam@marlam.de>
41965
41966         * modules/link-tests: New file.
41967         * tests/test-link.sh: New file.
41968         * tests/test-link.c: New file.
41969
41970 2009-01-19  Eric Blake  <ebb9@byu.net>
41971
41972         doc: mention another function added in cygwin 1.7.0
41973         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
41974         Another new function in cygwin 1.7.
41975
41976 2009-01-19  Bruno Haible  <bruno@clisp.org>
41977
41978         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
41979         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
41980         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
41981         gl_BIGENDIAN, not AC_C_BIGENDIAN.
41982         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
41983         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
41984         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
41985         * m4/md4.m4 (gl_MD4): Likewise.
41986         * m4/md5.m4 (gl_MD5): Likewise.
41987         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
41988         * m4/sha1.m4 (gl_SHA1): Likewise.
41989         * m4/sha256.m4 (gl_SHA256): Likewise.
41990         * m4/sha512.m4 (gl_SHA512): Likewise.
41991
41992 2009-01-19  Bruno Haible  <bruno@clisp.org>
41993
41994         * modules/uniname/uniname-tests (Depends-on): Add progname.
41995         * tests/uniname/test-uninames.c: Include progname.h.
41996         (main): Call set_program_name.
41997
41998         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
41999         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
42000         (main): Call set_program_name.
42001
42002         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
42003         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
42004         (main): Call set_program_name.
42005
42006         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
42007         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
42008         (main): Call set_program_name.
42009
42010         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
42011         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
42012         (main): Call set_program_name.
42013
42014         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
42015         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
42016         (main): Call set_program_name.
42017
42018         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
42019         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
42020         (main): Call set_program_name.
42021
42022         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
42023         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
42024         (main): Call set_program_name.
42025
42026         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
42027         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
42028         (main): Call set_program_name.
42029
42030 2009-01-19  Eric Blake  <ebb9@byu.net>
42031
42032         test-unistd: test previous patch
42033         * tests/test-unistd.c: Test *_FILENO macros.
42034
42035         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
42036         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
42037         Guarantee a definition.
42038         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
42039         * modules/unistd-safer (Depends-on): Add dependency on unistd.
42040         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
42041         * lib/dup-safer.c (STDERR_FILENO): Likewise.
42042         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
42043         Likewise.
42044         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
42045         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
42046         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
42047         Likewise.
42048         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
42049         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
42050         (STDERR_FILENO): Likewise.
42051         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
42052         (STDERR_FILENO): Likewise.
42053         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
42054         (STDERR_FILENO): Likewise.
42055         Reported by Elbert Pol.
42056
42057 2009-01-19  Eric Blake  <ebb9@byu.net>
42058
42059         doc: mention more functions added in cygwin 1.7.0
42060         * doc/posix-functions/abort.texi (abort): Update wording related
42061         to cygwin.
42062         * doc/posix-functions/daylight.texi (daylight): Likewise.
42063         * doc/posix-functions/optarg.texi (optarg): Likewise.
42064         * doc/posix-functions/optarg.texi (opterr): Likewise.
42065         * doc/posix-functions/optarg.texi (optind): Likewise.
42066         * doc/posix-functions/optarg.texi (optopt): Likewise.
42067         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
42068         worked in 1.5.x, and was withdrawn in 1.7.
42069         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
42070         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
42071         cygwin versions.
42072         * doc/posix-functions/perror.texi (perror): Likewise.
42073         * doc/posix-functions/printf.texi (printf): Likewise.
42074         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
42075         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
42076         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
42077         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
42078         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
42079         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
42080         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
42081         Likewise.
42082         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
42083         Likewise.
42084         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
42085         this function.
42086         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
42087         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
42088         Likewise.
42089         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
42090         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
42091         * doc/posix-functions/confstr.texi (confstr): Likewise.
42092         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
42093         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
42094         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
42095         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
42096         * doc/posix-functions/fputws.texi (fputws): Likewise.
42097         * doc/posix-functions/fwide.texi (fwide): Likewise.
42098         * doc/posix-functions/getwc.texi (getwc): Likewise.
42099         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
42100         * doc/posix-functions/putwc.texi (putwc): Likewise.
42101         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
42102         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
42103         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
42104         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
42105         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
42106         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
42107         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
42108         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
42109         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
42110         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
42111         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
42112
42113 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
42114
42115         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
42116         * lib/ioctl.c: Include <sys/ioctl.h>.
42117
42118 2009-01-19  Simon Josefsson  <simon@josefsson.org>
42119
42120         * modules/getdate-tests (Depends-on): Add progname.
42121         * tests/test-getdate.c: Use progname module, to avoid link errors
42122         on non-glibc systems.
42123
42124 2009-01-18  Simon Josefsson  <simon@josefsson.org>
42125
42126         * modules/filenamecat-tests (Depends-on): Add progname.
42127         * modules/fstrcmp-tests (Depends-on): Likewise.
42128
42129         * tests/test-filenamecat.c: Use progname module, to avoid link
42130         errors on non-glibc systems.
42131         * tests/test-fstrcmp.c: Likewise.
42132
42133 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
42134
42135         gettimeofday: avoid warning: nested extern declaration of 'localtime'
42136         * lib/gettimeofday.c: Move extern declaration out of function.
42137
42138 2009-01-18  Bruno Haible  <bruno@clisp.org>
42139
42140         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
42141         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
42142         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
42143
42144 2009-01-18  Bruno Haible  <bruno@clisp.org>
42145
42146         * lib/strftime.c (MEMPCPY): Remove unused macro.
42147         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
42148
42149 2009-01-18  Martin Lambers  <marlam@marlam.de>
42150
42151         New module 'link'.
42152         * lib/unistd.in.h (link): New declaration.
42153         * lib/link.c: New file.
42154         * m4/link.m4: New file.
42155         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
42156         HAVE_LINK.
42157         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
42158         * modules/link: New file.
42159         * doc/posix-functions/link.texi: Mention the new module.
42160
42161 2009-01-18  Bruno Haible  <bruno@clisp.org>
42162
42163         * tests/test-avltree_list.c (main): Call set_program_name.
42164         * tests/test-avltree_oset.c (main): Likewise.
42165         * tests/test-obstack-printf.c: Include progname.h.
42166         (main): Call set_program_name.
42167         * tests/test-quotearg.c: Include progname.h.
42168         (main): Call set_program_name.
42169         * tests/test-xmemdup0.c: Include progname.h.
42170         (main): Call set_program_name.
42171
42172 2009-01-18  Bruno Haible  <bruno@clisp.org>
42173
42174         New module 'alphasort'.
42175         * lib/dirent.in.h (alphasort): New declaration.
42176         * lib/alphasort.c: New file, from glibc with modifications.
42177         * m4/alphasort.m4: New file.
42178         * modules/alphasort: New file.
42179         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
42180         HAVE_ALPHASORT.
42181         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
42182         HAVE_ALPHASORT.
42183         * doc/posix-functions/alphasort.texi: Mention the new module and the
42184         portability problems.
42185
42186 2009-01-18  Bruno Haible  <bruno@clisp.org>
42187
42188         New module 'scandir'.
42189         * lib/dirent.in.h (scandir): New declaration.
42190         * lib/scandir.c: New file, from glibc with modifications.
42191         * m4/scandir.m4: New file.
42192         * modules/scandir: New file.
42193         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
42194         HAVE_SCANDIR.
42195         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
42196         HAVE_SCANDIR.
42197         * doc/posix-functions/scandir.texi: Mention the new module and the
42198         portability problems.
42199
42200 2009-01-17  Bruno Haible  <bruno@clisp.org>
42201
42202         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
42203         Update documentation.
42204         (func_remove_suffix): Escape all dots in the suffix. Update
42205         documentation.
42206         (func_filter_filelist): Update documentation.
42207         Reported by Ralf Wildenhues.
42208
42209 2009-01-17  Bruno Haible  <bruno@clisp.org>
42210
42211         * modules/dprintf-posix-tests: New file.
42212         * tests/test-dprintf-posix.sh: New file.
42213         * tests/test-dprintf-posix.c: New file.
42214
42215         New modules 'dprintf', 'dprintf-posix'.
42216         * lib/stdio.in.h (dprintf): New declaration.
42217         * lib/dprintf.c: New file.
42218         * m4/dprintf.m4: New file.
42219         * m4/dprintf-posix.m4: New file.
42220         * modules/dprintf: New file.
42221         * modules/dprintf-posix: New file.
42222         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
42223         HAVE_DPRINTF, REPLACE_DPRINTF.
42224         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
42225         HAVE_DPRINTF, REPLACE_DPRINTF.
42226         * doc/posix-functions/dprintf.texi: Mention the new modules.
42227
42228 2009-01-17  Bruno Haible  <bruno@clisp.org>
42229
42230         * modules/vdprintf-posix-tests: New file.
42231         * tests/test-vdprintf-posix.sh: New file.
42232         * tests/test-vdprintf-posix.c: New file.
42233
42234         New modules 'vdprintf', 'vdprintf-posix'.
42235         * lib/stdio.in.h (vdprintf): New declaration.
42236         * lib/vdprintf.c: New file.
42237         * m4/vdprintf.m4: New file.
42238         * m4/vdprintf-posix.m4: New file.
42239         * modules/vdprintf: New file.
42240         * modules/vdprintf-posix: New file.
42241         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
42242         HAVE_VDPRINTF, REPLACE_VDPRINTF.
42243         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
42244         HAVE_VDPRINTF, REPLACE_VDPRINTF.
42245         * doc/posix-functions/vdprintf.texi: Mention the new modules.
42246
42247 2009-01-17  Bruno Haible  <bruno@clisp.org>
42248
42249         Fix replacement of fopen on mingw.
42250         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
42251         mingw.
42252
42253 2009-01-17  Bruno Haible  <bruno@clisp.org>
42254
42255         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
42256         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
42257
42258 2009-01-17  Bruno Haible  <bruno@clisp.org>
42259
42260         Avoid test-fflush2.sh failure on mingw.
42261         * tests/test-fflush2.c: Include binary-io.h.
42262         (main): Put standard input into binary mode.
42263         * modules/fflush-tests (Depends-on): Add binary-io.
42264
42265 2009-01-17  Bruno Haible  <bruno@clisp.org>
42266
42267         * lib/wchar.in.h: In another particular situation, include only the
42268         system's <wchar.h> file.
42269         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
42270         Reported by Albert Chin-A-Young <china@thewrittenword.com>
42271         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
42272
42273 2009-01-17  Bruno Haible  <bruno@clisp.org>
42274
42275         Support for stripping executables in --enable-relocatable.
42276         * build-aux/install-reloc: Expect one more argument, or an environment
42277         variable RELOC_STRIP_PROG. If set, strip the destination program and
42278         its wrapper.
42279         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
42280         RELOC_STRIP_PROG.
42281         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
42282         to set RELOCATABLE_STRIP.
42283         * NEWS: Mention the new Makefile requirement.
42284
42285 2009-01-17  Bruno Haible  <bruno@clisp.org>
42286
42287         * build-aux/install-reloc: Remove debugging information left over by
42288         C compiler on MacOS X.
42289
42290 2009-01-17  Bruno Haible  <bruno@clisp.org>
42291
42292         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
42293         * lib/progreloc.c (find_executable): Fix type of pointer passed to
42294         _NSGetExecutablePath.
42295
42296 2009-01-16  Jim Meyering  <meyering@redhat.com>
42297
42298         strerror: avoid warnings about discarding "const"
42299         * lib/strerror.c (rpl_strerror): Instead of returning a const
42300         string from each and every "case", use a variable, and add a single
42301         cast after the switch.
42302
42303 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
42304
42305         * lib/arpa_inet.in.h: Add extern "C" block for C++.
42306
42307 2009-01-16  Bruno Haible  <bruno@clisp.org>
42308
42309         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
42310         array initializer syntax that also works in C++ mode.
42311         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
42312
42313 2009-01-16  Jim Meyering  <meyering@redhat.com>
42314
42315         poll: suppress a warning
42316         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
42317         to ignore "...unsigned expression < 0 is always false" warnings.
42318
42319 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
42320
42321         poll: remove declarations of unused variables
42322         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
42323         sockbuf and optlen.
42324
42325 2009-01-15  Bruno Haible  <bruno@clisp.org>
42326
42327         Make fflush-after-ungetc POSIX compliant on BSD systems.
42328         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
42329         (clear_ungetc_buffer): Implement also for other systems.
42330         (rpl_fflush): On glibc systems, invoke
42331         clear_ungetc_buffer_preserving_position. Otherwise, invoke
42332         clear_ungetc_buffer after fetching the stream's position, not before.
42333
42334 2009-01-15  Bruno Haible  <bruno@clisp.org>
42335
42336         Make fflush-after-ungetc POSIX compliant on glibc systems.
42337         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
42338         after ungetc.
42339         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
42340         (rpl_fflush): On glibc systems, simply call the system's fflush
42341         function after clearing the ungetc buffer.
42342         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
42343         Instead, lseek only to the end of file, then use the system's fseeko
42344         for the rest. On glibc systems, reset the EOF indicator bit.
42345
42346 2009-01-15  Jim Meyering  <meyering@redhat.com>
42347
42348         openmp.m4: revert quote-adding change, for portability to older autoconf
42349         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
42350         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
42351         Simon Josefsson noticed the problem when using autoconf-2.61.
42352
42353 2009-01-15  Bruno Haible  <bruno@clisp.org>
42354
42355         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
42356         * tests/test-fflush2.c (ASSERT): Always fail.
42357         (main): Add two tests for fflush() after ungetc(), taking into account
42358         the Austin Group's clarification.
42359         Suggested by Eric Blake.
42360
42361 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
42362
42363         mktime.m4: remove K&R-style function prototypes
42364         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
42365         for the Sun C++ compiler.
42366
42367 2009-01-14  Bruno Haible  <bruno@clisp.org>
42368
42369         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
42370         while including <wchar.h>.
42371         * lib/wchar.in.h: In two particular situations on HP-UX, include only
42372         the system's <wchar.h> file.
42373         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
42374
42375 2009-01-14  Bruno Haible  <bruno@clisp.org>
42376
42377         * m4/csharp.m4: Don't mention gettext on the serial number line.
42378         * m4/csharpexec.m4: Likewise.
42379         * m4/eaccess.m4: Likewise.
42380         * m4/javaexec.m4: Likewise.
42381         * m4/sig_atomic_t.m4: Likewise.
42382         * m4/tmpdir.m4: Likewise.
42383         * m4/intldir.m4: Bump gettext version.
42384         * m4/lib-ld.m4: Likewise.
42385
42386 2009-01-14  Bruno Haible  <bruno@clisp.org>
42387
42388         * lib/progname.c (set_program_name): Add more comments.
42389         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
42390
42391 2009-01-14  Simon Josefsson  <simon@josefsson.org>
42392
42393         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
42394         were sys/stat.h does not define it.
42395
42396 2009-01-14  Jim Meyering  <meyering@redhat.com>
42397
42398         many *.m4 files: improve m4 quoting
42399         99% of this change was performed by running the following commands:
42400         git ls-files | grep '\.m4$' | xargs perl -pi \
42401           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
42402           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
42403           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
42404           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
42405         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
42406         The remainder were to add Copyright dates, increment serial numbers,
42407         undo some changes in comments, exclude m4/intl.m4, and add quotes
42408         around the "1" in ",1" where the unusual spacing prohibited the
42409         above regexps from doing the job.  For more details, see
42410         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
42411         * m4/acl.m4: Modified.
42412         * m4/afs.m4: Likewise.
42413         * m4/alloca.m4: Likewise.
42414         * m4/argp.m4: Likewise.
42415         * m4/argz.m4: Likewise.
42416         * m4/atexit.m4: Likewise.
42417         * m4/bison-i18n.m4: Likewise.
42418         * m4/bison.m4: Likewise.
42419         * m4/byteswap.m4: Likewise.
42420         * m4/c-stack.m4: Likewise.
42421         * m4/c-strtod.m4: Likewise.
42422         * m4/calloc.m4: Likewise.
42423         * m4/canonicalize-lgpl.m4: Likewise.
42424         * m4/chown.m4: Likewise.
42425         * m4/clock_time.m4: Likewise.
42426         * m4/codeset.m4: Likewise.
42427         * m4/copy-file.m4: Likewise.
42428         * m4/csharp.m4: Likewise.
42429         * m4/csharpcomp.m4: Likewise.
42430         * m4/csharpexec.m4: Likewise.
42431         * m4/d-ino.m4: Likewise.
42432         * m4/d-type.m4: Likewise.
42433         * m4/dirfd.m4: Likewise.
42434         * m4/double-slash-root.m4: Likewise.
42435         * m4/eaccess.m4: Likewise.
42436         * m4/eealloc.m4: Likewise.
42437         * m4/environ.m4: Likewise.
42438         * m4/errno_h.m4: Likewise.
42439         * m4/euidaccess.m4: Likewise.
42440         * m4/execute.m4: Likewise.
42441         * m4/fatal-signal.m4: Likewise.
42442         * m4/fchdir.m4: Likewise.
42443         * m4/fcntl_h.m4: Likewise.
42444         * m4/fileblocks.m4: Likewise.
42445         * m4/filenamecat.m4: Likewise.
42446         * m4/findprog.m4: Likewise.
42447         * m4/flexmember.m4: Likewise.
42448         * m4/fnmatch.m4: Likewise.
42449         * m4/fopen.m4: Likewise.
42450         * m4/fpending.m4: Likewise.
42451         * m4/fprintf-posix.m4: Likewise.
42452         * m4/free.m4: Likewise.
42453         * m4/frexp.m4: Likewise.
42454         * m4/frexpl.m4: Likewise.
42455         * m4/fsusage.m4: Likewise.
42456         * m4/ftruncate.m4: Likewise.
42457         * m4/gc-camellia.m4: Likewise.
42458         * m4/gc-random.m4: Likewise.
42459         * m4/gc.m4: Likewise.
42460         * m4/getaddrinfo.m4: Likewise.
42461         * m4/getcwd-abort-bug.m4: Likewise.
42462         * m4/getcwd-path-max.m4: Likewise.
42463         * m4/getdate.m4: Likewise.
42464         * m4/getdomainname.m4: Likewise.
42465         * m4/getgroups.m4: Likewise.
42466         * m4/gethostname.m4: Likewise.
42467         * m4/gethrxtime.m4: Likewise.
42468         * m4/getline.m4: Likewise.
42469         * m4/getloadavg.m4: Likewise.
42470         * m4/getndelim2.m4: Likewise.
42471         * m4/getpass.m4: Likewise.
42472         * m4/gettext.m4: Likewise.
42473         * m4/gettime.m4: Likewise.
42474         * m4/gettimeofday.m4: Likewise.
42475         * m4/gnulib-common.m4: Likewise.
42476         * m4/group-member.m4: Likewise.
42477         * m4/host-os.m4: Likewise.
42478         * m4/iconv.m4: Likewise.
42479         * m4/iconv_open.m4: Likewise.
42480         * m4/inet_ntop.m4: Likewise.
42481         * m4/inet_pton.m4: Likewise.
42482         * m4/inline.m4: Likewise.
42483         * m4/intldir.m4: Likewise.
42484         * m4/intlmacosx.m4: Likewise.
42485         * m4/intmax.m4: Likewise.
42486         * m4/intmax_t.m4: Likewise.
42487         * m4/inttypes.m4: Likewise.
42488         * m4/inttypes_h.m4: Likewise.
42489         * m4/inttypes-pri.m4: Likewise.
42490         * m4/isapipe.m4: Likewise.
42491         * m4/isnand.m4: Likewise.
42492         * m4/isnanf.m4: Likewise.
42493         * m4/isnanl.m4: Likewise.
42494         * m4/javacomp.m4: Likewise.
42495         * m4/javaexec.m4: Likewise.
42496         * m4/jm-winsz1.m4: Likewise.
42497         * m4/jm-winsz2.m4: Likewise.
42498         * m4/lchown.m4: Likewise.
42499         * m4/lcmessage.m4: Likewise.
42500         * m4/ldexpl.m4: Likewise.
42501         * m4/lib-ld.m4: Likewise.
42502         * m4/lib-link.m4: Likewise.
42503         * m4/libsigsegv.m4: Likewise.
42504         * m4/link-follow.m4: Likewise.
42505         * m4/localcharset.m4: Likewise.
42506         * m4/locale-fr.m4: Likewise.
42507         * m4/locale-ja.m4: Likewise.
42508         * m4/locale-tr.m4: Likewise.
42509         * m4/locale-zh.m4: Likewise.
42510         * m4/lock.m4: Likewise.
42511         * m4/longlong.m4: Likewise.
42512         * m4/ls-mntd-fs.m4: Likewise.
42513         * m4/lstat.m4: Likewise.
42514         * m4/malloc.m4: Likewise.
42515         * m4/mathl.m4: Likewise.
42516         * m4/mbrtowc.m4: Likewise.
42517         * m4/mbstate_t.m4: Likewise.
42518         * m4/mbswidth.m4: Likewise.
42519         * m4/memchr.m4: Likewise.
42520         * m4/memcmp.m4: Likewise.
42521         * m4/memcpy.m4: Likewise.
42522         * m4/memmem.m4: Likewise.
42523         * m4/memmove.m4: Likewise.
42524         * m4/mempcpy.m4: Likewise.
42525         * m4/memrchr.m4: Likewise.
42526         * m4/memset.m4: Likewise.
42527         * m4/minmax.m4: Likewise.
42528         * m4/mkdir-slash.m4: Likewise.
42529         * m4/mkdtemp.m4: Likewise.
42530         * m4/mktime.m4: Likewise.
42531         * m4/mmap-anon.m4: Likewise.
42532         * m4/mountlist.m4: Likewise.
42533         * m4/nanosleep.m4: Likewise.
42534         * m4/nls.m4: Likewise.
42535         * m4/nocrash.m4: Likewise.
42536         * m4/open.m4: Likewise.
42537         * m4/openat.m4: Likewise.
42538         * m4/openmp.m4: Likewise.
42539         * m4/pathmax.m4: Likewise.
42540         * m4/perl.m4: Likewise.
42541         * m4/physmem.m4: Likewise.
42542         * m4/pipe.m4: Likewise.
42543         * m4/po.m4: Likewise.
42544         * m4/poll.m4: Likewise.
42545         * m4/posixtm.m4: Likewise.
42546         * m4/posixver.m4: Likewise.
42547         * m4/printf-frexp.m4: Likewise.
42548         * m4/printf-frexpl.m4: Likewise.
42549         * m4/printf-posix.m4: Likewise.
42550         * m4/printf-posix-rpl.m4: Likewise.
42551         * m4/printf.m4: Likewise.
42552         * m4/progtest.m4: Likewise.
42553         * m4/putenv.m4: Likewise.
42554         * m4/readline.m4: Likewise.
42555         * m4/readlink.m4: Likewise.
42556         * m4/readutmp.m4: Likewise.
42557         * m4/realloc.m4: Likewise.
42558         * m4/regex.m4: Likewise.
42559         * m4/relocatable.m4: Likewise.
42560         * m4/relocatable-lib.m4: Likewise.
42561         * m4/rename-dest-slash.m4: Likewise.
42562         * m4/rename.m4: Likewise.
42563         * m4/rmdir-errno.m4: Likewise.
42564         * m4/rmdir.m4: Likewise.
42565         * m4/roundf.m4: Likewise.
42566         * m4/roundl.m4: Likewise.
42567         * m4/rpmatch.m4: Likewise.
42568         * m4/save-cwd.m4: Likewise.
42569         * m4/selinux-selinux-h.m4: Likewise.
42570         * m4/setenv.m4: Likewise.
42571         * m4/settime.m4: Likewise.
42572         * m4/sig2str.m4: Likewise.
42573         * m4/sig_atomic_t.m4: Likewise.
42574         * m4/signalblocking.m4: Likewise.
42575         * m4/signbit.m4: Likewise.
42576         * m4/sigpipe.m4: Likewise.
42577         * m4/sockets.m4: Likewise.
42578         * m4/sockpfaf.m4: Likewise.
42579         * m4/st_dm_mode.m4: Likewise.
42580         * m4/stat-time.m4: Likewise.
42581         * m4/stdbool.m4: Likewise.
42582         * m4/stdint.m4: Likewise.
42583         * m4/stdint_h.m4: Likewise.
42584         * m4/stpcpy.m4: Likewise.
42585         * m4/stpncpy.m4: Likewise.
42586         * m4/strcase.m4: Likewise.
42587         * m4/strchrnul.m4: Likewise.
42588         * m4/strcspn.m4: Likewise.
42589         * m4/strdup.m4: Likewise.
42590         * m4/strftime.m4: Likewise.
42591         * m4/strndup.m4: Likewise.
42592         * m4/strnlen.m4: Likewise.
42593         * m4/strpbrk.m4: Likewise.
42594         * m4/strptime.m4: Likewise.
42595         * m4/strsep.m4: Likewise.
42596         * m4/strtod.m4: Likewise.
42597         * m4/strtoimax.m4: Likewise.
42598         * m4/strtok_r.m4: Likewise.
42599         * m4/strtol.m4: Likewise.
42600         * m4/strtoll.m4: Likewise.
42601         * m4/strtoul.m4: Likewise.
42602         * m4/strtoull.m4: Likewise.
42603         * m4/strtoumax.m4: Likewise.
42604         * m4/strverscmp.m4: Likewise.
42605         * m4/threadlib.m4: Likewise.
42606         * m4/timegm.m4: Likewise.
42607         * m4/tm_gmtoff.m4: Likewise.
42608         * m4/tmpdir.m4: Likewise.
42609         * m4/tmpfile.m4: Likewise.
42610         * m4/tzset.m4: Likewise.
42611         * m4/uintmax_t.m4: Likewise.
42612         * m4/unlinkdir.m4: Likewise.
42613         * m4/unlocked-io.m4: Likewise.
42614         * m4/uptime.m4: Likewise.
42615         * m4/userspec.m4: Likewise.
42616         * m4/utimbuf.m4: Likewise.
42617         * m4/utime.m4: Likewise.
42618         * m4/utimes-null.m4: Likewise.
42619         * m4/utimes.m4: Likewise.
42620         * m4/vararrays.m4: Likewise.
42621         * m4/vasnprintf.m4: Likewise.
42622         * m4/vfprintf-posix.m4: Likewise.
42623         * m4/vprintf-posix.m4: Likewise.
42624         * m4/wait-process.m4: Likewise.
42625         * m4/wchar_t.m4: Likewise.
42626         * m4/wint_t.m4: Likewise.
42627         * m4/write-any-file.m4: Likewise.
42628         * m4/yield.m4: Likewise.
42629
42630 2009-01-13  Bruno Haible  <bruno@clisp.org>
42631
42632         Avoid test-copy-file.sh failures when ACL support insufficient.
42633         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
42634         TESTS_ENVIRONMENT.
42635         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
42636         Reported by Jim Meyering.
42637
42638 2009-01-13  Bruno Haible  <bruno@clisp.org>
42639
42640         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
42641         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
42642         * modules/unistdio/u8-printf-parse (Files): Likewise.
42643         * modules/unistdio/u32-printf-parse (Files): Likewise.
42644         * modules/unistdio/ulc-printf-parse (Files): Likewise.
42645
42646 2009-01-13  Simon Josefsson  <simon@josefsson.org>
42647
42648         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
42649         and m4/inttypes_h.m4 too.
42650
42651 2009-01-12  Eric Blake  <ebb9@byu.net>
42652
42653         tests: IRIX 6.2 cc can't compile -0.0 into .data
42654         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
42655         rather than at compile-time.
42656         * tests/test-floorl.c (minus_zero): Likewise.
42657         * tests/test-frexpl.c (minus_zero): Likewise.
42658         * tests/test-isnan.c (minus_zerol): Likewise.
42659         * tests/test-isnanl.h (minus_zero): Likewise.
42660         * tests/test-ldexpl.c (minus_zero): Likewise.
42661         * tests/test-roundl.c (minus_zero): Likewise.
42662         * tests/test-signbit.c (minus_zerol): Likewise.
42663         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
42664         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
42665         * tests/test-truncl.c (minus_zero): Likewise.
42666         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
42667         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
42668         Reported by Tom G. Christensen and Nelson H. F. Beebe.
42669
42670 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
42671
42672         regex: fix glibc bug 9697
42673         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
42674         handling.
42675
42676 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
42677
42678         regex: fix glibc bug 697
42679         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
42680         being NULL also if there are no backreferences.
42681
42682 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
42683
42684         regex: merge glibc changes
42685         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
42686         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
42687         re_string_skip_chars, re_string_reconstruct): Likewise.
42688         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
42689
42690 2009-01-07  Jim Meyering  <meyering@redhat.com>
42691
42692         poll: filter through cppi
42693         * lib/poll.c: Indent cpp directives to reflect nesting.
42694
42695 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
42696
42697         poll: don't return uninitialized
42698         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
42699
42700 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
42701
42702         avoid compile failure on AIX 6.1
42703         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
42704         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
42705
42706 2009-01-04  Jim Meyering  <meyering@redhat.com>
42707
42708         remove duplicate inclusion of <stdio.h>
42709         * tests/test-fprintf-posix.c: Likewise.
42710         * tests/test-printf-posix.c: Likewise.
42711         * tests/test-snprintf-posix.c: Likewise.
42712         * tests/test-sprintf-posix.c: Likewise.
42713         * tests/test-vasprintf-posix.c: Likewise.
42714         * tests/test-vfprintf-posix.c: Likewise.
42715         * tests/test-vprintf-posix.c: Likewise.
42716         * tests/test-vsnprintf-posix.c: Likewise.
42717         * tests/test-vsprintf-posix.c: Likewise.
42718
42719 2009-01-03  Jim Meyering  <meyering@redhat.com>
42720
42721         gnulib-tool: fix sed-based filtering
42722         * gnulib-tool (func_filter_filelist): Remove extra backslash
42723         in sed_fff_filter definition.
42724
42725 2009-01-02  Jim Meyering  <meyering@redhat.com>
42726
42727         strftime: avoid compilation failure on Solaris 2.6
42728         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
42729         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
42730         Don't #define mbrlen or mbsinit, since now they're guaranteed to
42731         be available.  Reported by Tom G. Christensen.  Details in
42732         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
42733
42734 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42735             Bruno Haible  <bruno@clisp.org>
42736
42737         Speed up gnulib-tool by doing more string processing through shell
42738         built-ins.
42739         * gnulib-tool (fast_func_append): New variable.
42740         (func_remove_prefix, func_remove_suffix): New functions.
42741         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
42742         (func_filter_filelist): New function.
42743         (func_get_dependencies): Use func_remove_suffix instead of sed.
42744         (func_get_automake_snippet): Use func_filter_filelist instead of a
42745         subshell and sed invocation.
42746
42747 2009-01-01  Bruno Haible  <bruno@clisp.org>
42748
42749         Fix a security bug.
42750         * gnulib-tool (func_import, import, update): Don't allow the characters
42751         '"', '$', '`', '\' in macro arguments that become part of commands that
42752         are evaluated.
42753
42754 2009-01-01  Bruno Haible  <bruno@clisp.org>
42755
42756         * gnulib-tool (func_reset_sigpipe): Add more comments.
42757
42758 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42759
42760         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
42761         func_emit_tests_Makefile_am, func_import): Abort loops early if we
42762         already know the answer.
42763
42764 2009-01-01  Jim Meyering  <meyering@redhat.com>
42765
42766         * lib/version-etc.c (version_etc_va): Update copyright year.
42767
42768 2008-12-30  Bruno Haible  <bruno@clisp.org>
42769
42770         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
42771         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
42772         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
42773
42774 2008-12-29  Eric Blake  <ebb9@byu.net>
42775
42776         multiarch: avoid autoconf AC_REQUIRE bug
42777         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
42778         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
42779         2.63 and older.
42780         Reported by Bruno Haible, and analyzed in
42781         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
42782
42783 2008-12-29  Bruno Haible  <bruno@clisp.org>
42784
42785         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
42786         files in subdirectories correctly.
42787         Reported by Ralf Wildenhues.
42788
42789 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42790
42791         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
42792         rather than 'join FILE -', for Solaris join.
42793
42794 2008-12-29  Bruno Haible  <bruno@clisp.org>
42795
42796         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
42797         quoting.
42798         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
42799         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
42800         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
42801         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
42802         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
42803         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
42804         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
42805         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
42806         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
42807         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
42808         * m4/nls.m4 (AM_NLS): Likewise.
42809         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
42810         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
42811         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
42812         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
42813         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
42814         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
42815         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
42816         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
42817         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
42818         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
42819         * m4/xsize.m4 (gl_XSIZE): Likewise.
42820         Suggested by Jim Meyering.
42821
42822 2008-11-17  Bruce Korb  <bkorb@gnu.org>
42823
42824         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
42825         * lib/parse-duration.c: use a switch instead of cascading if's.
42826
42827 2008-12-29  Eric Blake  <ebb9@byu.net>
42828
42829         wchar.h: supply WEOF on Irix 5.3
42830         * lib/wchar.in.h (wint_t): Also supply WEOF.
42831         * lib/wctype.in.h (wint_t): Likewise.
42832         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
42833         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
42834         Reported by Tom G. Christensen.
42835
42836 2008-12-26  Bruno Haible  <bruno@clisp.org>
42837
42838         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
42839         i486, i586, i686.
42840
42841 2008-12-26  Bruno Haible  <bruno@clisp.org>
42842
42843         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
42844
42845 2008-12-26  Bruno Haible  <bruno@clisp.org>
42846
42847         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
42848         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
42849         not __STDC_CONSTANT_MACROS.
42850         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
42851
42852 2008-12-25  Bruno Haible  <bruno@clisp.org>
42853
42854         Add support for universal builds to vasnprintf.
42855         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
42856         universal builds, guess no.
42857         * modules/vasnprintf-posix (Depends-on): Add multiarch.
42858         * modules/vasprintf-posix (Depends-on): Likewise.
42859         * modules/fprintf-posix (Depends-on): Likewise.
42860         * modules/vfprintf-posix (Depends-on): Likewise.
42861         * modules/snprintf-posix (Depends-on): Likewise.
42862         * modules/vsnprintf-posix (Depends-on): Likewise.
42863         * modules/sprintf-posix (Depends-on): Likewise.
42864         * modules/vsprintf-posix (Depends-on): Likewise.
42865         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
42866         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
42867         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
42868         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
42869         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
42870         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
42871         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
42872
42873         Add support for universal builds to <inttypes.h>.
42874         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
42875         _SCNu64_PREFIX): In Apple
42876         universal builds, define directly, using _LP64.
42877         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
42878         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
42879         * modules/inttypes (Depends-on): Add multiarch.
42880         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
42881
42882         Add support for universal builds to <stdint.h>.
42883         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
42884         universal builds, define directly, using _LP64.
42885         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
42886         Apple universal builds, don't test for the size and suffix of ptrdiff_t
42887         and size_t.
42888         * modules/stdint (Depends-on): Add multiarch.
42889         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
42890
42891         New module 'multiarch'.
42892         * modules/multiarch: New file.
42893         * m4/multiarch.m4: New file.
42894
42895 2008-12-25  Bruno Haible  <bruno@clisp.org>
42896
42897         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
42898
42899 2008-12-25  Bruno Haible  <bruno@clisp.org>
42900
42901         * modules/btowc (License): Relicense under LGPLv2+.
42902         * modules/mbsinit (License): Likewise.
42903         * modules/mbrtowc (License): Likewise.
42904         * modules/wcrtomb (License): Likewise.
42905         * modules/streq (License): Likewise.
42906         Reported by David Lutterkort <lutter@redhat.com>.
42907
42908 2008-12-23  Bruno Haible  <bruno@clisp.org>
42909
42910         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
42911
42912 2008-12-23  Bruno Haible  <bruno@clisp.org>
42913
42914         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
42915         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
42916         GETADDRINFO_LIB, not in LIBS.
42917         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
42918         * modules/canon-host (Link): Likewise.
42919         * NEWS: Mention the change.
42920         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
42921         GETADDRINFO_LIB.
42922
42923 2008-12-22  Bruno Haible  <bruno@clisp.org>
42924
42925         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
42926         * doc/posix-functions/iswalpha_l.texi: Likewise.
42927         * doc/posix-functions/iswblank_l.texi: Likewise.
42928         * doc/posix-functions/iswcntrl_l.texi: Likewise.
42929         * doc/posix-functions/iswctype_l.texi: Likewise.
42930         * doc/posix-functions/iswdigit_l.texi: Likewise.
42931         * doc/posix-functions/iswgraph_l.texi: Likewise.
42932         * doc/posix-functions/iswlower_l.texi: Likewise.
42933         * doc/posix-functions/iswprint_l.texi: Likewise.
42934         * doc/posix-functions/iswpunct_l.texi: Likewise.
42935         * doc/posix-functions/iswspace_l.texi: Likewise.
42936         * doc/posix-functions/iswupper_l.texi: Likewise.
42937         * doc/posix-functions/iswxdigit_l.texi: Likewise.
42938         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
42939         * doc/posix-functions/open_wmemstream.texi: Likewise.
42940         * doc/posix-functions/swscanf.texi: Likewise.
42941         * doc/posix-functions/towctrans_l.texi: Likewise.
42942         * doc/posix-functions/towlower.texi: Likewise.
42943         * doc/posix-functions/towlower_l.texi: Likewise.
42944         * doc/posix-functions/towupper.texi: Likewise.
42945         * doc/posix-functions/towupper_l.texi: Likewise.
42946         * doc/posix-functions/vfwprintf.texi: Likewise.
42947         * doc/posix-functions/vfwscanf.texi: Likewise.
42948         * doc/posix-functions/vswscanf.texi: Likewise.
42949         * doc/posix-functions/vwprintf.texi: Likewise.
42950         * doc/posix-functions/vwscanf.texi: Likewise.
42951         * doc/posix-functions/wcpcpy.texi: Likewise.
42952         * doc/posix-functions/wcpncpy.texi: Likewise.
42953         * doc/posix-functions/wcscasecmp.texi: Likewise.
42954         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
42955         * doc/posix-functions/wcscoll_l.texi: Likewise.
42956         * doc/posix-functions/wcsdup.texi: Likewise.
42957         * doc/posix-functions/wcsncasecmp.texi: Likewise.
42958         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
42959         * doc/posix-functions/wcsnlen.texi: Likewise.
42960         * doc/posix-functions/wcsnrtombs.texi: Likewise.
42961         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
42962         * doc/posix-functions/wctrans_l.texi: Likewise.
42963         * doc/posix-functions/wctype_l.texi: Likewise.
42964         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
42965         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
42966         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
42967         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
42968         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
42969         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
42970         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
42971         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
42972         * doc/glibc-functions/wcschrnul.texi: Likewise.
42973         * doc/glibc-functions/wcsftime_l.texi: Likewise.
42974         * doc/glibc-functions/wcstod_l.texi: Likewise.
42975         * doc/glibc-functions/wcstof_l.texi: Likewise.
42976         * doc/glibc-functions/wcstol_l.texi: Likewise.
42977         * doc/glibc-functions/wcstold_l.texi: Likewise.
42978         * doc/glibc-functions/wcstoll_l.texi: Likewise.
42979         * doc/glibc-functions/wcstoq.texi: Likewise.
42980         * doc/glibc-functions/wcstoul_l.texi: Likewise.
42981         * doc/glibc-functions/wcstoull_l.texi: Likewise.
42982         * doc/glibc-functions/wcstouq.texi: Likewise.
42983         * doc/glibc-functions/wmempcpy.texi: Likewise.
42984
42985 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
42986             Eric Blake  <ebb9@byu.net>
42987             Paolo Bonzini  <bonzini@gnu.org>
42988             Bruno Haible  <bruno@clisp.org>
42989
42990         Make c-stack work on Haiku.
42991         * lib/c-stack.c (SA_ONSTACK): Define fallback.
42992         (c_stack_action): Use SA_ONSTACK flag.
42993
42994 2008-12-22  Bruno Haible  <bruno@clisp.org>
42995
42996         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
42997
42998 2008-12-22  Bruno Haible  <bruno@clisp.org>
42999
43000         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
43001         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
43002         being overridden.
43003         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
43004         New macros.
43005         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
43006         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
43007         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
43008         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
43009
43010 2008-12-22  Bruno Haible  <bruno@clisp.org>
43011
43012         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
43013         from test code.
43014
43015 2008-12-22  Eric Blake  <ebb9@byu.net>
43016
43017         Avoid gcc warnings on cygwin.
43018         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
43019         Avoid unused variable.
43020         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
43021         Likewise.
43022
43023 2008-12-22  Bruno Haible  <bruno@clisp.org>
43024
43025         Remove HAVE_MBRTOWC conditionals.
43026         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
43027         (mbscasecmp): Assume mbrtowc function.
43028         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
43029         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
43030         * lib/mbschr.c: Include mbuiter.h unconditionally.
43031         (mbschr): Assume mbrtowc function.
43032         * lib/mbscspn.c: Include mbuiter.h unconditionally.
43033         (mbscspn): Assume mbrtowc function.
43034         * lib/mbslen.c: Include mbuiter.h unconditionally.
43035         (mbslen): Assume mbrtowc function.
43036         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
43037         (mbsncasecmp): Assume mbrtowc function.
43038         * lib/mbsnlen.c: Include mbiter.h unconditionally.
43039         (mbsnlen): Assume mbrtowc function.
43040         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
43041         (mbspbrk): Assume mbrtowc function.
43042         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
43043         (mbspcasecmp): Assume mbrtowc function.
43044         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
43045         (mbsrchr): Assume mbrtowc function.
43046         * lib/mbssep.c: Include mbuiter.h unconditionally.
43047         (mbssep): Assume mbrtowc function.
43048         * lib/mbsspn.c: Include mbuiter.h unconditionally.
43049         (mbsspn): Assume mbrtowc function.
43050         * lib/mbsstr.c: Include mbuiter.h unconditionally.
43051         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
43052         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
43053         (mbstok_r): Assume mbrtowc function.
43054         * lib/propername.c: Include mbuiter.h unconditionally.
43055         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
43056         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
43057         (trim2): Assume mbrtowc function.
43058         * lib/mbswidth.c (mbsinit): Remove fallback definition.
43059         (mbsnwidth): Assume mbrtowc function.
43060         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
43061         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
43062         fallback definitions.
43063         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
43064
43065 2008-12-22  Bruno Haible  <bruno@clisp.org>
43066
43067         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
43068
43069 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
43070
43071         * modules/regex: Request emulations for the mb*/wc* functions we need.
43072         * m4/regex.m4: Don't look for those functions here.
43073         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
43074
43075 2008-12-22  Bruno Haible  <bruno@clisp.org>
43076
43077         * modules/fnmatch (Depends-on): Remove duplicated dependency.
43078
43079 2008-12-21  Bruno Haible  <bruno@clisp.org>
43080
43081         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
43082         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
43083         (Include): Remove conditionalization.
43084         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
43085         (Include): Remove conditionalization.
43086         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
43087         (Include): Remove conditionalization.
43088         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
43089         * m4/mbfile.m4 (gl_MBFILE): Likewise.
43090         * NEWS: Mention the change.
43091         Reported by Alan Hourihane <alanh@fairlite.co.uk>
43092         via Sergey Poznyakoff <gray@gnu.org.ua>.
43093
43094 2008-12-21  Bruno Haible  <bruno@clisp.org>
43095
43096         * MODULES.html.sh (Extended multibyte and wide character utilities
43097         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
43098         wcrtomb, wcsrtombs.
43099         (Support for systems lacking POSIX:2008): Add accept, bind, close,
43100         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
43101         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
43102         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
43103
43104 2008-12-21  Bruno Haible  <bruno@clisp.org>
43105
43106         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
43107
43108 2008-12-21  Bruno Haible  <bruno@clisp.org>
43109
43110         * modules/wcsnrtombs-tests: New file.
43111         * tests/test-wcsnrtombs1.sh: New file.
43112         * tests/test-wcsnrtombs2.sh: New file.
43113         * tests/test-wcsnrtombs3.sh: New file.
43114         * tests/test-wcsnrtombs4.sh: New file.
43115         * tests/test-wcsnrtombs.c: New file.
43116
43117         New module 'wcsnrtombs'.
43118         * lib/wchar.in.h (wcsnrtombs): New declaration.
43119         * lib/wcsnrtombs.c: New file.
43120         * lib/wcsrtombs-state.c: New file.
43121         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
43122         (internal_state): Remove variable.
43123         * m4/wcsnrtombs.m4: New file.
43124         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
43125         compilation units.
43126         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
43127         HAVE_WCSNRTOMBS.
43128         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
43129         HAVE_WCSNRTOMBS.
43130         * modules/wcsnrtombs: New file.
43131         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
43132         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
43133
43134 2008-12-21  Bruno Haible  <bruno@clisp.org>
43135
43136         * modules/wcsrtombs-tests: New file.
43137         * tests/test-wcsrtombs1.sh: New file.
43138         * tests/test-wcsrtombs2.sh: New file.
43139         * tests/test-wcsrtombs3.sh: New file.
43140         * tests/test-wcsrtombs4.sh: New file.
43141         * tests/test-wcsrtombs.c: New file.
43142
43143         New module 'wcsrtombs'.
43144         * lib/wchar.in.h (wcsrtombs): New declaration.
43145         * lib/wcsrtombs.c: New file.
43146         * m4/wcsrtombs.m4: New file.
43147         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
43148         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
43149         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
43150         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
43151         * modules/wcsrtombs: New file.
43152         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
43153         bugs.
43154
43155 2008-12-21  Bruno Haible  <bruno@clisp.org>
43156
43157         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
43158         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
43159         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
43160         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
43161         if not correct.
43162         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
43163         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
43164         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
43165         m4/locale-zh.m4, m4/codeset.m4.
43166         * doc/posix-functions/wcrtomb.texi: Document the bug.
43167
43168 2008-12-21  Bruno Haible  <bruno@clisp.org>
43169
43170         Work around a btowc() bug on IRIX 6.5.
43171         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
43172         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
43173         REPLACE_WTOBC if not.
43174         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
43175         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
43176         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
43177
43178 2008-12-21  Bruno Haible  <bruno@clisp.org>
43179
43180         * modules/wcrtomb-tests: New file.
43181         * tests/test-wcrtomb.sh: New file.
43182         * tests/test-wcrtomb.c: New file.
43183
43184         New module 'wcrtomb'.
43185         * lib/wchar.in.h (wcrtomb): New declaration.
43186         * lib/wcrtomb.c: New file.
43187         * m4/wcrtomb.m4: New file.
43188         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
43189         HAVE_WCRTOMB.
43190         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
43191         HAVE_WCRTOMB.
43192         * modules/wcrtomb: New file.
43193         * doc/posix-functions/wcrtomb.texi: Mention the new module.
43194
43195 2008-12-21  Bruno Haible  <bruno@clisp.org>
43196
43197         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
43198         * modules/mbsrtowcs (Files): Likewise.
43199         * modules/wctob (Files): Likewise.
43200         * modules/c-strcase-tests (Files): Likewise.
43201         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
43202         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
43203         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
43204         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
43205         * modules/vasnprintf-posix-tests (Files): Likewise.
43206
43207 2008-12-21  William Pursell  <bill.pursell@gmail.com>
43208
43209         gitlog-to-changelog: pass all command-line arguments to git-log
43210         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
43211         it is sometimes convenient to filter the commits in various ways.
43212         gitlog-to-changelog only allows --since to specify a start date,
43213         but git-log itself supports many other filtering mechanisms.
43214         At the moment, I want to filter by branch name.  Rather than
43215         adding a --branch option to gitlog-to-changelog, it seems more
43216         flexible to simply pass all options directly to git-log and let
43217         git do the work.  Notice that this effectively makes --since a
43218         redundant option for gitlog-to-changelog, but removing it would
43219         require current usage to change since calls would then require
43220         an additional '--'.
43221
43222 2008-12-21  Bruno Haible  <bruno@clisp.org>
43223
43224         * modules/mbsnrtowcs-tests: New file.
43225         * tests/test-mbsnrtowcs1.sh: New file.
43226         * tests/test-mbsnrtowcs2.sh: New file.
43227         * tests/test-mbsnrtowcs3.sh: New file.
43228         * tests/test-mbsnrtowcs4.sh: New file.
43229         * tests/test-mbsnrtowcs.c: New file.
43230
43231         New module 'mbsnrtowcs'.
43232         * lib/wchar.in.h (mbsnrtowcs): New declaration.
43233         * lib/mbsnrtowcs.c: New file.
43234         * lib/mbsrtowcs-state.c: New file.
43235         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
43236         (internal_state): Remove variable.
43237         * m4/mbsnrtowcs.m4: New file.
43238         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
43239         compilation units.
43240         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
43241         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
43242         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
43243         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
43244         * modules/mbsnrtowcs: New file.
43245         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
43246         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
43247         portability problem.
43248
43249 2008-12-21  Bruno Haible  <bruno@clisp.org>
43250
43251         Work around mbsrtowcs bug.
43252         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
43253         (gl_FUNC_MBSRTOWCS): Invoke it.
43254         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
43255         m4/locale-zh.m4.
43256         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
43257
43258 2008-12-21  Bruno Haible  <bruno@clisp.org>
43259
43260         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
43261
43262 2008-12-21  Bruno Haible  <bruno@clisp.org>
43263
43264         Update doc for AIX.
43265         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
43266         16-bit wchar_t type.
43267         * doc/posix-functions/btowc.texi: Likewise.
43268         * doc/posix-functions/fgetwc.texi: Likewise.
43269         * doc/posix-functions/fgetws.texi: Likewise.
43270         * doc/posix-functions/fputwc.texi: Likewise.
43271         * doc/posix-functions/fputws.texi: Likewise.
43272         * doc/posix-functions/fwide.texi: Likewise.
43273         * doc/posix-functions/fwprintf.texi: Likewise.
43274         * doc/posix-functions/fwscanf.texi: Likewise.
43275         * doc/posix-functions/getwchar.texi: Likewise.
43276         * doc/posix-functions/getwc.texi: Likewise.
43277         * doc/posix-functions/iswalnum.texi: Likewise.
43278         * doc/posix-functions/iswalpha.texi: Likewise.
43279         * doc/posix-functions/iswblank.texi: Likewise.
43280         * doc/posix-functions/iswcntrl.texi: Likewise.
43281         * doc/posix-functions/iswctype.texi: Likewise.
43282         * doc/posix-functions/iswdigit.texi: Likewise.
43283         * doc/posix-functions/iswgraph.texi: Likewise.
43284         * doc/posix-functions/iswlower.texi: Likewise.
43285         * doc/posix-functions/iswprint.texi: Likewise.
43286         * doc/posix-functions/iswpunct.texi: Likewise.
43287         * doc/posix-functions/iswspace.texi: Likewise.
43288         * doc/posix-functions/iswupper.texi: Likewise.
43289         * doc/posix-functions/iswxdigit.texi: Likewise.
43290         * doc/posix-functions/mbrtowc.texi: Likewise.
43291         * doc/posix-functions/mbsrtowcs.texi: Likewise.
43292         * doc/posix-functions/mbstowcs.texi: Likewise.
43293         * doc/posix-functions/mbtowc.texi: Likewise.
43294         * doc/posix-functions/putwchar.texi: Likewise.
43295         * doc/posix-functions/putwc.texi: Likewise.
43296         * doc/posix-functions/swprintf.texi: Likewise.
43297         * doc/posix-functions/tolower.texi: Likewise.
43298         * doc/posix-functions/toupper.texi: Likewise.
43299         * doc/posix-functions/towctrans.texi: Likewise.
43300         * doc/posix-functions/ungetwc.texi: Likewise.
43301         * doc/posix-functions/vswprintf.texi: Likewise.
43302         * doc/posix-functions/wcrtomb.texi: Likewise.
43303         * doc/posix-functions/wcscat.texi: Likewise.
43304         * doc/posix-functions/wcschr.texi: Likewise.
43305         * doc/posix-functions/wcscmp.texi: Likewise.
43306         * doc/posix-functions/wcscoll.texi: Likewise.
43307         * doc/posix-functions/wcscpy.texi: Likewise.
43308         * doc/posix-functions/wcscspn.texi: Likewise.
43309         * doc/posix-functions/wcsftime.texi: Likewise.
43310         * doc/posix-functions/wcslen.texi: Likewise.
43311         * doc/posix-functions/wcsncat.texi: Likewise.
43312         * doc/posix-functions/wcsncmp.texi: Likewise.
43313         * doc/posix-functions/wcsncpy.texi: Likewise.
43314         * doc/posix-functions/wcspbrk.texi: Likewise.
43315         * doc/posix-functions/wcsrchr.texi: Likewise.
43316         * doc/posix-functions/wcsrtombs.texi: Likewise.
43317         * doc/posix-functions/wcsspn.texi: Likewise.
43318         * doc/posix-functions/wcsstr.texi: Likewise.
43319         * doc/posix-functions/wcstod.texi: Likewise.
43320         * doc/posix-functions/wcstof.texi: Likewise.
43321         * doc/posix-functions/wcstoimax.texi: Likewise.
43322         * doc/posix-functions/wcstok.texi: Likewise.
43323         * doc/posix-functions/wcstold.texi: Likewise.
43324         * doc/posix-functions/wcstoll.texi: Likewise.
43325         * doc/posix-functions/wcstol.texi: Likewise.
43326         * doc/posix-functions/wcstombs.texi: Likewise.
43327         * doc/posix-functions/wcstoull.texi: Likewise.
43328         * doc/posix-functions/wcstoul.texi: Likewise.
43329         * doc/posix-functions/wcstoumax.texi: Likewise.
43330         * doc/posix-functions/wcswidth.texi: Likewise.
43331         * doc/posix-functions/wcsxfrm.texi: Likewise.
43332         * doc/posix-functions/wctob.texi: Likewise.
43333         * doc/posix-functions/wctomb.texi: Likewise.
43334         * doc/posix-functions/wctrans.texi: Likewise.
43335         * doc/posix-functions/wctype.texi: Likewise.
43336         * doc/posix-functions/wcwidth.texi: Likewise.
43337         * doc/posix-functions/wmemchr.texi: Likewise.
43338         * doc/posix-functions/wmemcmp.texi: Likewise.
43339         * doc/posix-functions/wmemcpy.texi: Likewise.
43340         * doc/posix-functions/wmemmove.texi: Likewise.
43341         * doc/posix-functions/wmemset.texi: Likewise.
43342         * doc/posix-functions/wprintf.texi: Likewise.
43343         * doc/posix-functions/wscanf.texi: Likewise.
43344
43345 2008-12-21  Bruno Haible  <bruno@clisp.org>
43346
43347         Update doc for HP-UX 11.11.
43348         * doc/posix-functions/btowc.texi: Clarify that the function is missing
43349         in HP-UX version 11.00, not in all versions of HP-UX 11.
43350         * doc/posix-functions/fwide.texi: Likewise.
43351         * doc/posix-functions/fwprintf.texi: Likewise.
43352         * doc/posix-functions/fwscanf.texi: Likewise.
43353         * doc/posix-functions/inet_ntop.texi: Likewise.
43354         * doc/posix-functions/inet_pton.texi: Likewise.
43355         * doc/posix-functions/mbrlen.texi: Likewise.
43356         * doc/posix-functions/mbrtowc.texi: Likewise.
43357         * doc/posix-functions/mbsinit.texi: Likewise.
43358         * doc/posix-functions/mbsrtowcs.texi: Likewise.
43359         * doc/posix-functions/swprintf.texi: Likewise.
43360         * doc/posix-functions/swscanf.texi: Likewise.
43361         * doc/posix-functions/towctrans.texi: Likewise.
43362         * doc/posix-functions/vfwprintf.texi: Likewise.
43363         * doc/posix-functions/vswprintf.texi: Likewise.
43364         * doc/posix-functions/vwprintf.texi: Likewise.
43365         * doc/posix-functions/wcrtomb.texi: Likewise.
43366         * doc/posix-functions/wcsrtombs.texi: Likewise.
43367         * doc/posix-functions/wcsstr.texi: Likewise.
43368         * doc/posix-functions/wctob.texi: Likewise.
43369         * doc/posix-functions/wctrans.texi: Likewise.
43370         * doc/posix-functions/wmemchr.texi: Likewise.
43371         * doc/posix-functions/wmemcmp.texi: Likewise.
43372         * doc/posix-functions/wmemcpy.texi: Likewise.
43373         * doc/posix-functions/wmemmove.texi: Likewise.
43374         * doc/posix-functions/wmemset.texi: Likewise.
43375         * doc/posix-functions/wprintf.texi: Likewise.
43376         * doc/posix-functions/wscanf.texi: Likewise.
43377
43378 2008-12-21  Bruno Haible  <bruno@clisp.org>
43379
43380         Work around a portability problem.
43381         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
43382         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
43383
43384 2008-12-20  Bruno Haible  <bruno@clisp.org>
43385
43386         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
43387         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
43388         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
43389         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
43390         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
43391
43392         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
43393         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
43394         set.
43395         (GNULIB_defined_mbstate_t): New macro.
43396         (mbsinit): Redefine if REPLACE_MBSINIT is set.
43397         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
43398         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
43399         reuses the system's mbrtowc function but works around the bugs.
43400         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
43401         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
43402         macros.
43403         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
43404         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
43405         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
43406         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
43407         REPLACE_MBSINIT if mbsinit needs to be overridden.
43408         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
43409         REPLACE_MBSINIT, REPLACE_MBRTOWC.
43410         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
43411         REPLACE_MBSINIT, REPLACE_MBRTOWC.
43412         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
43413         m4/locale-zh.m4.
43414         (Depends): Add mbsinit.
43415         * modules/mbsinit (Depends): Add mbrtowc.
43416         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
43417
43418 2008-12-20  Bruno Haible  <bruno@clisp.org>
43419
43420         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
43421         so that there are no conversion errors on AIX.
43422         * tests/test-mbsrtowcs.c (main): LIkewise.
43423
43424 2008-12-20  Bruno Haible  <bruno@clisp.org>
43425
43426         Work around wctob bug on Solaris <= 9.
43427         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
43428         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
43429         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
43430         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
43431         * modules/wctob (Files): Add m4/locale-fr.m4.
43432         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
43433
43434 2008-12-20  Bruno Haible  <bruno@clisp.org>
43435
43436         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
43437         /dev/null.
43438         * tests/test-select-in.sh: Likewise.
43439         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
43440
43441 2008-12-20  Bruno Haible  <bruno@clisp.org>
43442
43443         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
43444         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
43445         Cygwin 1.5.x.
43446
43447 2008-12-20  Bruno Haible  <bruno@clisp.org>
43448
43449         Ensure mbstate_t is defined on HP-UX 11.11.
43450         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
43451         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
43452         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
43453         AC_USE_SYSTEM_EXTENSIONS.
43454         * modules/fnmatch (Depends-on): Add extensions.
43455         * modules/mbrlen (Depends-on): Likewise.
43456         * modules/mbrtowc (Depends-on): Likewise.
43457         * modules/mbsinit (Depends-on): Likewise.
43458         * modules/mbsrtowcs (Depends-on): Likewise.
43459         * modules/mbswidth (Depends-on): Likewise.
43460         * modules/quotearg (Depends-on): Likewise.
43461         * modules/strftime (Depends-on): Likewise.
43462
43463 2008-12-20  Bruno Haible  <bruno@clisp.org>
43464
43465         Ensure wctob is declared on IRIX 6.5.
43466         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
43467         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
43468         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
43469         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
43470         of HAVE_WCTOB.
43471         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
43472         HAVE_WCTOB.
43473         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
43474
43475 2008-12-19  Bruno Haible  <bruno@clisp.org>
43476
43477         * modules/mbsrtowcs-tests: New file.
43478         * tests/test-mbsrtowcs1.sh: New file.
43479         * tests/test-mbsrtowcs2.sh: New file.
43480         * tests/test-mbsrtowcs3.sh: New file.
43481         * tests/test-mbsrtowcs4.sh: New file.
43482         * tests/test-mbsrtowcs.c: New file.
43483
43484         New module 'mbsrtowcs'.
43485         * lib/wchar.in.h (mbsrtowcs): New declaration.
43486         * lib/mbsrtowcs.c: New file.
43487         * m4/mbsrtowcs.m4: New file.
43488         * modules/mbsrtowcs: New file.
43489         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
43490         HAVE_MBSRTOWCS.
43491         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
43492         HAVE_MBSRTOWCS.
43493         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
43494
43495 2008-12-19  Bruno Haible  <bruno@clisp.org>
43496
43497         New module 'mbrlen'.
43498         * lib/wchar.in.h (mbrlen): New declaration.
43499         * lib/mbrlen.c: New file.
43500         * m4/mbrlen.m4: New file.
43501         * modules/mbrlen: New file.
43502         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
43503         HAVE_MBRLEN.
43504         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
43505         HAVE_MBRLEN.
43506         * doc/posix-functions/mbrlen.texi: Document the new module.
43507
43508 2008-12-19  Bruno Haible  <bruno@clisp.org>
43509
43510         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
43511         * modules/mbrtowc (Depends-on): Add verify.
43512         Suggested by Paul Eggert.
43513
43514 2008-12-18  Bruno Haible  <bruno@clisp.org>
43515
43516         * modules/mbsinit-tests: New file.
43517         * tests/test-mbsinit.sh: New file.
43518         * tests/test-mbsinit.c: New file.
43519
43520 2008-12-18  Bruno Haible  <bruno@clisp.org>
43521
43522         * modules/mbrtowc-tests: New file.
43523         * tests/test-mbrtowc1.sh: New file.
43524         * tests/test-mbrtowc2.sh: New file.
43525         * tests/test-mbrtowc3.sh: New file.
43526         * tests/test-mbrtowc4.sh: New file.
43527         * tests/test-mbrtowc.c: New file.
43528
43529         New module 'mbrtowc'.
43530         * lib/wchar.in.h (mbstate_t): Override when the system does not have
43531         mbsinit and mbrtowc.
43532         (mbrtowc): New declaration.
43533         * lib/mbrtowc.c: New file.
43534         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
43535         * modules/mbrtowc: New file.
43536         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
43537         HAVE_MBRTOWC.
43538         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
43539         HAVE_MBRTOWC.
43540         * doc/posix-functions/mbrtowc.texi: Document the new module.
43541
43542 2008-12-18  Bruno Haible  <bruno@clisp.org>
43543
43544         New module 'wctob'.
43545         * lib/wchar.in.h (wctob): New declaration.
43546         * lib/wctob.c: New file.
43547         * m4/wctob.m4: New file.
43548         * modules/wctob: New file.
43549         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
43550         HAVE_WCTOB.
43551         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
43552         * doc/posix-functions/wctob.texi: Document the new module.
43553
43554 2008-12-18  Bruno Haible  <bruno@clisp.org>
43555
43556         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
43557         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
43558
43559 2008-12-18  Simon Josefsson  <simon@josefsson.org>
43560
43561         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
43562         G. Christensen" <tgc@jupiterrise.com>.
43563
43564         * lib/flock.c: Need to include errno.h.  Reported by "Tom
43565         G. Christensen" <tgc@jupiterrise.com>.
43566
43567         * lib/flock.c: Need to include string.h.  Reported by "Tom
43568         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
43569         <ebb9@byu.net>.
43570
43571 2008-12-18  Bruno Haible  <bruno@clisp.org>
43572
43573         * m4/locale-ja.m4: New file, from GNU gettext.
43574
43575 2008-12-17  Bruno Haible  <bruno@clisp.org>
43576
43577         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
43578         Suggested by Eric Blake.
43579
43580 2008-12-17  Bruno Haible  <bruno@clisp.org>
43581
43582         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
43583
43584 2008-12-17  Bruno Haible  <bruno@clisp.org>
43585
43586         * lib/mbsinit.c: Include verify.h. Verify an assumption.
43587         * modules/mbsinit (Depends-on): Add verify.
43588         Suggested by Paul Eggert.
43589
43590 2008-12-17  Bruno Haible  <bruno@clisp.org>
43591
43592         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
43593         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
43594         gl_FUNC_MBRTOWC.
43595         * m4/mbiter.m4 (gl_MBITER): LIkewise.
43596         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
43597         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
43598         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
43599         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
43600         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
43601         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
43602         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
43603         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
43604         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
43605         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
43606         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
43607         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
43608         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
43609         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
43610         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
43611         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
43612         * modules/trim (configure.ac): Likewise.
43613
43614 2008-12-17  Bruno Haible  <bruno@clisp.org>
43615
43616         * modules/btowc-tests: New file.
43617         * tests/test-btowc1.sh: New file.
43618         * tests/test-btowc2.sh: New file.
43619         * tests/test-btowc.c: New file.
43620
43621         New module 'btowc'.
43622         * lib/wchar.in.h (btowc): New declaration.
43623         * lib/btowc.c: New file.
43624         * m4/btowc.m4: New file.
43625         * modules/btowc: New file.
43626         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
43627         HAVE_BTOWC.
43628         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
43629         * doc/posix-functions/btowc.texi: Document the new module.
43630
43631 2008-12-17  Bruno Haible  <bruno@clisp.org>
43632
43633         New module 'mbsinit'.
43634         * lib/wchar.in.h (mbsinit): New declaration.
43635         * lib/mbsinit.c: New file.
43636         * m4/mbsinit.m4: New file.
43637         * modules/mbsinit: New file.
43638         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
43639         HAVE_MBSINIT.
43640         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
43641         HAVE_MBSINIT.
43642         * doc/posix-functions/mbsinit.texi: Document the new module.
43643
43644 2008-12-16  Bruno Haible  <bruno@clisp.org>
43645
43646         * lib/unistd.in.h: Add comment.
43647         * tests/test-environ.c: Don't include <stdlib.h>.
43648
43649 2008-12-16  Bruno Haible  <bruno@clisp.org>
43650
43651         * lib/parse-duration.h (parse_duration): Document return value
43652         convention.
43653         * lib/parse-duration.c: Include specification header first. Add
43654         comments.
43655         (_): Remove macro.
43656         (parse_year_month_day, parse_hour_minute_second): Move side effects
43657         outside of strchr call.
43658         (parse_non_iso8601): Move side effects outside of isspace call.
43659         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
43660         call.
43661
43662 2008-12-16  Bruno Haible  <bruno@clisp.org>
43663
43664         * tests/test-parse-duration.sh: Produce no output when the test
43665         succeeds.
43666
43667 2008-12-16  Bruno Haible  <bruno@clisp.org>
43668
43669         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
43670         expressions.
43671
43672 2008-12-15  Bruno Haible  <bruno@clisp.org>
43673
43674         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
43675         * doc/glibc-functions/flistxattr.texi: Likewise.
43676         * doc/glibc-functions/fopencookie.texi: Likewise.
43677         * doc/glibc-functions/fremovexattr.texi: Likewise.
43678         * doc/glibc-functions/fsetxattr.texi: Likewise.
43679         * doc/glibc-functions/getxattr.texi: Likewise.
43680         * doc/glibc-functions/lgetxattr.texi: Likewise.
43681         * doc/glibc-functions/listxattr.texi: Likewise.
43682         * doc/glibc-functions/llistxattr.texi: Likewise.
43683         * doc/glibc-functions/lremovexattr.texi: Likewise.
43684         * doc/glibc-functions/lsetxattr.texi: Likewise.
43685         * doc/glibc-functions/removexattr.texi: Likewise.
43686         * doc/glibc-functions/setxattr.texi: Likewise.
43687         * doc/posix-functions/open_memstream.texi: Likewise.
43688
43689 2008-12-15  Eric Blake  <ebb9@byu.net>
43690
43691         Update doc for cygwin 1.7.
43692         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
43693         functions.
43694         * doc/posix-functions/fchmodat.texi: Likewise.
43695         * doc/posix-functions/fchownat.texi: Likewise.
43696         * doc/posix-functions/fdopendir.texi: Likewise.
43697         * doc/posix-functions/fmemopen.texi: Likewise.
43698         * doc/posix-functions/freeaddrinfo.texi: Likewise.
43699         * doc/posix-functions/fstatat.texi: Likewise.
43700         * doc/posix-functions/futimens.texi: Likewise.
43701         * doc/posix-functions/gai_strerror.texi: Likewise.
43702         * doc/posix-functions/getaddrinfo.texi: Likewise.
43703         * doc/posix-functions/getnameinfo.texi: Likewise.
43704         * doc/posix-functions/if_freenameindex.texi: Likewise.
43705         * doc/posix-functions/if_indextoname.texi: Likewise.
43706         * doc/posix-functions/if_nameindex.texi: Likewise.
43707         * doc/posix-functions/if_nametoindex.texi: Likewise.
43708         * doc/posix-functions/insque.texi: Likewise.
43709         * doc/posix-functions/linkat.texi: Likewise.
43710         * doc/posix-functions/llrint.texi: Likewise.
43711         * doc/posix-functions/llrintf.texi: Likewise.
43712         * doc/posix-functions/llrintl.texi: Likewise.
43713         * doc/posix-functions/lockf.texi: Likewise.
43714         * doc/posix-functions/lrintl.texi: Likewise.
43715         * doc/posix-functions/mkdirat.texi: Likewise.
43716         * doc/posix-functions/mkfifoat.texi: Likewise.
43717         * doc/posix-functions/mknodat.texi: Likewise.
43718         * doc/posix-functions/mq_close.texi: Likewise.
43719         * doc/posix-functions/mq_getattr.texi: Likewise.
43720         * doc/posix-functions/mq_notify.texi: Likewise.
43721         * doc/posix-functions/mq_open.texi: Likewise.
43722         * doc/posix-functions/mq_receive.texi: Likewise.
43723         * doc/posix-functions/mq_send.texi: Likewise.
43724         * doc/posix-functions/mq_setattr.texi: Likewise.
43725         * doc/posix-functions/mq_timedreceive.texi: Likewise.
43726         * doc/posix-functions/mq_timedsend.texi: Likewise.
43727         * doc/posix-functions/mq_unlink.texi: Likewise.
43728         * doc/posix-functions/open_memstream.texi: Likewise.
43729         * doc/posix-functions/openat.texi: Likewise.
43730         * doc/posix-functions/posix_fadvise.texi: Likewise.
43731         * doc/posix-functions/posix_fallocate.texi: Likewise.
43732         * doc/posix-functions/posix_madvise.texi: Likewise.
43733         * doc/posix-functions/posix_memalign.texi: Likewise.
43734         * doc/posix-functions/posix_openpt.texi: Likewise.
43735         * doc/posix-functions/readlinkat.texi: Likewise.
43736         * doc/posix-functions/remque.texi: Likewise.
43737         * doc/posix-functions/renameat.texi: Likewise.
43738         * doc/posix-functions/rintl.texi: Likewise.
43739         * doc/posix-functions/sem_unlink.texi: Likewise.
43740         * doc/posix-functions/shm_open.texi: Likewise.
43741         * doc/posix-functions/shm_unlink.texi: Likewise.
43742         * doc/posix-functions/signgam.texi: Likewise.
43743         * doc/posix-functions/sigset.texi: Likewise.
43744         * doc/posix-functions/stpcpy.texi: Likewise.
43745         * doc/posix-functions/stpncpy.texi: Likewise.
43746         * doc/posix-functions/strerror.texi: Likewise.
43747         * doc/posix-functions/strtod.texi: Likewise.
43748         * doc/posix-functions/symlinkat.texi: Likewise.
43749         * doc/posix-functions/unlinkat.texi: Likewise.
43750         * doc/posix-functions/utimensat.texi: Likewise.
43751         * doc/glibc-functions/bindresvport.texi: Likewise.
43752         * doc/glibc-functions/dn_expand.texi: Likewise.
43753         * doc/glibc-functions/exp10.texi: Likewise.
43754         * doc/glibc-functions/exp10f.texi: Likewise.
43755         * doc/glibc-functions/fgetxattr.texi: Likewise.
43756         * doc/glibc-functions/flistxattr.texi: Likewise.
43757         * doc/glibc-functions/fopencookie.texi: Likewise.
43758         * doc/glibc-functions/freeifaddrs.texi: Likewise.
43759         * doc/glibc-functions/fremovexattr.texi: Likewise.
43760         * doc/glibc-functions/fsetxattr.texi: Likewise.
43761         * doc/glibc-functions/getifaddrs.texi: Likewise.
43762         * doc/glibc-functions/getxattr.texi: Likewise.
43763         * doc/glibc-functions/lgetxattr.texi: Likewise.
43764         * doc/glibc-functions/listxattr.texi: Likewise.
43765         * doc/glibc-functions/llistxattr.texi: Likewise.
43766         * doc/glibc-functions/lremovexattr.texi: Likewise.
43767         * doc/glibc-functions/lsetxattr.texi: Likewise.
43768         * doc/glibc-functions/pow10.texi: Likewise.
43769         * doc/glibc-functions/pow10f.texi: Likewise.
43770         * doc/glibc-functions/rcmd_af.texi: Likewise.
43771         * doc/glibc-functions/removexattr.texi: Likewise.
43772         * doc/glibc-functions/res_init.texi: Likewise.
43773         * doc/glibc-functions/res_mkquery.texi: Likewise.
43774         * doc/glibc-functions/res_query.texi: Likewise.
43775         * doc/glibc-functions/res_querydomain.texi: Likewise.
43776         * doc/glibc-functions/res_send.texi: Likewise.
43777         * doc/glibc-functions/rresvport_af.texi: Likewise.
43778         * doc/glibc-functions/setxattr.texi: Likewise.
43779         * doc/glibc-functions/strcasestr.texi: Likewise.
43780
43781 2008-12-15  Bruno Haible  <bruno@clisp.org>
43782
43783         Fix compilation error on OSF/1 4.0.
43784         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
43785         <sys/time.h>, simply delegate to the system header.
43786         Reported by Daniel Richard G. <oss@teragram.com>.
43787
43788 2008-12-15  Bruno Haible  <bruno@clisp.org>
43789
43790         * doc/posix-functions/openat.texi: Mention the 'openat' module.
43791         * doc/posix-functions/fchmodat.texi: Likewise.
43792         * doc/posix-functions/fchownat.texi: Likewise.
43793         * doc/posix-functions/fdopendir.texi: Likewise.
43794         * doc/posix-functions/fstatat.texi: Likewise.
43795         * doc/posix-functions/mkdirat.texi: Likewise.
43796         * doc/posix-functions/unlinkat.texi: Likewise.
43797
43798 2008-12-14  Bruno Haible  <bruno@clisp.org>
43799
43800         Update doc for POSIX:2008.
43801         * doc/posix-functions/faccessat.texi: New file.
43802         * doc/posix-functions/fchmodat.texi: New file.
43803         * doc/posix-functions/fchownat.texi: New file.
43804         * doc/posix-functions/fdopendir.texi: New file.
43805         * doc/posix-functions/fstatat.texi: New file.
43806         * doc/posix-functions/futimens.texi: New file.
43807         * doc/posix-functions/linkat.texi: New file.
43808         * doc/posix-functions/mkdirat.texi: New file.
43809         * doc/posix-functions/mkfifoat.texi: New file.
43810         * doc/posix-functions/mknodat.texi: New file.
43811         * doc/posix-functions/open_wmemstream.texi: New file.
43812         * doc/posix-functions/openat.texi: New file.
43813         * doc/posix-functions/psiginfo.texi: New file.
43814         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
43815         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
43816         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
43817         * doc/posix-functions/readlinkat.texi: New file.
43818         * doc/posix-functions/renameat.texi: New file.
43819         * doc/posix-functions/strerror_l.texi: New file.
43820         * doc/posix-functions/symlinkat.texi: New file.
43821         * doc/posix-functions/unlinkat.texi: New file.
43822         * doc/posix-functions/utimensat.texi: New file.
43823         * doc/gnulib.texi (Function Substitutes): Add these subsections.
43824
43825 2008-12-14  Bruno Haible  <bruno@clisp.org>
43826
43827         Update doc for POSIX:2008.
43828         * doc/posix-functions/alphasort.texi: Renamed from
43829         doc/glibc-functions/alphasort.texi.
43830         * doc/posix-functions/dirfd.texi: Renamed from
43831         doc/glibc-functions/dirfd.texi.
43832         * doc/posix-functions/dprintf.texi: Renamed from
43833         doc/glibc-functions/dprintf.texi.
43834         * doc/posix-functions/duplocale.texi: Renamed from
43835         doc/glibc-functions/duplocale.texi.
43836         * doc/posix-functions/fexecve.texi: Renamed from
43837         doc/glibc-functions/fexecve.texi.
43838         * doc/posix-functions/fmemopen.texi: Renamed from
43839         doc/glibc-functions/fmemopen.texi.
43840         * doc/posix-functions/freelocale.texi: Renamed from
43841         doc/glibc-functions/freelocale.texi.
43842         * doc/posix-functions/getdate_err.texi: Renamed from
43843         doc/glibc-functions/getdate_err.texi.
43844         * doc/posix-functions/isalnum_l.texi: Renamed from
43845         doc/glibc-functions/isalnum_l.texi.
43846         * doc/posix-functions/isalpha_l.texi: Renamed from
43847         doc/glibc-functions/isalpha_l.texi.
43848         * doc/posix-functions/isblank_l.texi: Renamed from
43849         doc/glibc-functions/isblank_l.texi.
43850         * doc/posix-functions/iscntrl_l.texi: Renamed from
43851         doc/glibc-functions/iscntrl_l.texi.
43852         * doc/posix-functions/isdigit_l.texi: Renamed from
43853         doc/glibc-functions/isdigit_l.texi.
43854         * doc/posix-functions/isgraph_l.texi: Renamed from
43855         doc/glibc-functions/isgraph_l.texi.
43856         * doc/posix-functions/islower_l.texi: Renamed from
43857         doc/glibc-functions/islower_l.texi.
43858         * doc/posix-functions/isprint_l.texi: Renamed from
43859         doc/glibc-functions/isprint_l.texi.
43860         * doc/posix-functions/ispunct_l.texi: Renamed from
43861         doc/glibc-functions/ispunct_l.texi.
43862         * doc/posix-functions/isspace_l.texi: Renamed from
43863         doc/glibc-functions/isspace_l.texi.
43864         * doc/posix-functions/isupper_l.texi: Renamed from
43865         doc/glibc-functions/isupper_l.texi.
43866         * doc/posix-functions/iswalnum_l.texi: Renamed from
43867         doc/glibc-functions/iswalnum_l.texi.
43868         * doc/posix-functions/iswalpha_l.texi: Renamed from
43869         doc/glibc-functions/iswalpha_l.texi.
43870         * doc/posix-functions/iswblank_l.texi: Renamed from
43871         doc/glibc-functions/iswblank_l.texi.
43872         * doc/posix-functions/iswcntrl_l.texi: Renamed from
43873         doc/glibc-functions/iswcntrl_l.texi.
43874         * doc/posix-functions/iswctype_l.texi: Renamed from
43875         doc/glibc-functions/iswctype_l.texi.
43876         * doc/posix-functions/iswdigit_l.texi: Renamed from
43877         doc/glibc-functions/iswdigit_l.texi.
43878         * doc/posix-functions/iswgraph_l.texi: Renamed from
43879         doc/glibc-functions/iswgraph_l.texi.
43880         * doc/posix-functions/iswlower_l.texi: Renamed from
43881         doc/glibc-functions/iswlower_l.texi.
43882         * doc/posix-functions/iswprint_l.texi: Renamed from
43883         doc/glibc-functions/iswprint_l.texi.
43884         * doc/posix-functions/iswpunct_l.texi: Renamed from
43885         doc/glibc-functions/iswpunct_l.texi.
43886         * doc/posix-functions/iswspace_l.texi: Renamed from
43887         doc/glibc-functions/iswspace_l.texi.
43888         * doc/posix-functions/iswupper_l.texi: Renamed from
43889         doc/glibc-functions/iswupper_l.texi.
43890         * doc/posix-functions/iswxdigit_l.texi: Renamed from
43891         doc/glibc-functions/iswxdigit_l.texi.
43892         * doc/posix-functions/isxdigit_l.texi: Renamed from
43893         doc/glibc-functions/isxdigit_l.texi.
43894         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
43895         doc/glibc-functions/mbsnrtowcs.texi.
43896         * doc/posix-functions/mkdtemp.texi: Renamed from
43897         doc/glibc-functions/mkdtemp.texi.
43898         * doc/posix-functions/newlocale.texi: Renamed from
43899         doc/glibc-functions/newlocale.texi.
43900         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
43901         doc/glibc-functions/nl_langinfo_l.texi.
43902         * doc/posix-functions/open_memstream.texi: Renamed from
43903         doc/glibc-functions/open_memstream.texi.
43904         * doc/posix-functions/opterr.texi: Renamed from
43905         doc/glibc-functions/opterr.texi.
43906         * doc/posix-functions/optind.texi: Renamed from
43907         doc/glibc-functions/optind.texi.
43908         * doc/posix-functions/optopt.texi: Renamed from
43909         doc/glibc-functions/optopt.texi.
43910         * doc/posix-functions/psignal.texi: Renamed from
43911         doc/glibc-functions/psignal.texi.
43912         * doc/posix-functions/scandir.texi: Renamed from
43913         doc/glibc-functions/scandir.texi.
43914         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
43915         doc/glibc-functions/sched_get_priority_min.texi.
43916         * doc/posix-functions/signgam.texi: Renamed from
43917         doc/glibc-functions/signgam.texi.
43918         * doc/posix-functions/stpcpy.texi: Renamed from
43919         doc/glibc-functions/stpcpy.texi.
43920         * doc/posix-functions/stpncpy.texi: Renamed from
43921         doc/glibc-functions/stpncpy.texi.
43922         * doc/posix-functions/strcasecmp_l.texi: Renamed from
43923         doc/glibc-functions/strcasecmp_l.texi.
43924         * doc/posix-functions/strcoll_l.texi: Renamed from
43925         doc/glibc-functions/strcoll_l.texi.
43926         * doc/posix-functions/strfmon_l.texi: Renamed from
43927         doc/glibc-functions/strfmon_l.texi.
43928         * doc/posix-functions/strftime_l.texi: Renamed from
43929         doc/glibc-functions/strftime_l.texi.
43930         * doc/posix-functions/strncasecmp_l.texi: Renamed from
43931         doc/glibc-functions/strncasecmp_l.texi.
43932         * doc/posix-functions/strndup.texi: Renamed from
43933         doc/glibc-functions/strndup.texi.
43934         * doc/posix-functions/strnlen.texi: Renamed from
43935         doc/glibc-functions/strnlen.texi.
43936         * doc/posix-functions/strsignal.texi: Renamed from
43937         doc/glibc-functions/strsignal.texi.
43938         * doc/posix-functions/strxfrm_l.texi: Renamed from
43939         doc/glibc-functions/strxfrm_l.texi.
43940         * doc/posix-functions/timer_gettime.texi: Renamed from
43941         doc/glibc-functions/timer_gettime.texi.
43942         * doc/posix-functions/tolower_l.texi: Renamed from
43943         doc/glibc-functions/tolower_l.texi.
43944         * doc/posix-functions/toupper_l.texi: Renamed from
43945         doc/glibc-functions/toupper_l.texi.
43946         * doc/posix-functions/towctrans_l.texi: Renamed from
43947         doc/glibc-functions/towctrans_l.texi.
43948         * doc/posix-functions/towlower_l.texi: Renamed from
43949         doc/glibc-functions/towlower_l.texi.
43950         * doc/posix-functions/towupper_l.texi: Renamed from
43951         doc/glibc-functions/towupper_l.texi.
43952         * doc/posix-functions/uselocale.texi: Renamed from
43953         doc/glibc-functions/uselocale.texi.
43954         * doc/posix-functions/vdprintf.texi: Renamed from
43955         doc/glibc-functions/vdprintf.texi.
43956         * doc/posix-functions/wcpcpy.texi:
43957         Renamed from doc/glibc-functions/wcpcpy.texi.
43958         * doc/posix-functions/wcpncpy.texi: Renamed from
43959         doc/glibc-functions/wcpncpy.texi.
43960         * doc/posix-functions/wcscasecmp.texi: Renamed from
43961         doc/glibc-functions/wcscasecmp.texi.
43962         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
43963         doc/glibc-functions/wcscasecmp_l.texi.
43964         * doc/posix-functions/wcscoll_l.texi: Renamed from
43965         doc/glibc-functions/wcscoll_l.texi.
43966         * doc/posix-functions/wcsdup.texi: Renamed from
43967         doc/glibc-functions/wcsdup.texi.
43968         * doc/posix-functions/wcsncasecmp.texi: Renamed from
43969         doc/glibc-functions/wcsncasecmp.texi.
43970         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
43971         doc/glibc-functions/wcsncasecmp_l.texi.
43972         * doc/posix-functions/wcsnlen.texi: Renamed from
43973         doc/glibc-functions/wcsnlen.texi.
43974         * doc/posix-functions/wcsnrtombs.texi: Renamed from
43975         doc/glibc-functions/wcsnrtombs.texi.
43976         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
43977         doc/glibc-functions/wcsxfrm_l.texi.
43978         * doc/posix-functions/wctrans_l.texi: Renamed from
43979         doc/glibc-functions/wctrans_l.texi.
43980         * doc/posix-functions/wctype_l.texi: Renamed from
43981         doc/glibc-functions/wctype_l.texi.
43982         * doc/gnulib.texi (Function Substitutes): Add these subsections.
43983         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
43984         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
43985         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
43986         these subsections.
43987         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
43988         Remove sections.
43989
43990 2008-12-14  Bruno Haible  <bruno@clisp.org>
43991
43992         Update doc for POSIX:2008.
43993         * doc/posix-functions/*.texi: Update URL of POSIX specification.
43994
43995 2008-12-14  Bruno Haible  <bruno@clisp.org>
43996
43997         Update doc for POSIX:2008.
43998         * doc/pastposix-functions/bcmp.texi: Renamed from
43999         doc/posix-functions/bcmp.texi.
44000         * doc/pastposix-functions/bcopy.texi: Renamed from
44001         doc/posix-functions/bcopy.texi.
44002         * doc/pastposix-functions/bsd_signal.texi: Renamed from
44003         doc/posix-functions/bsd_signal.texi.
44004         * doc/pastposix-functions/bzero.texi: Renamed from
44005         doc/posix-functions/bzero.texi.
44006         * doc/pastposix-functions/ecvt.texi: Renamed from
44007         doc/posix-functions/ecvt.texi.
44008         * doc/pastposix-functions/fcvt.texi: Renamed from
44009         doc/posix-functions/fcvt.texi.
44010         * doc/pastposix-functions/ftime.texi: Renamed from
44011         doc/posix-functions/ftime.texi.
44012         * doc/pastposix-functions/gcvt.texi: Renamed from
44013         doc/posix-functions/gcvt.texi.
44014         * doc/pastposix-functions/getcontext.texi: Renamed from
44015         doc/posix-functions/getcontext.texi.
44016         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
44017         doc/posix-functions/gethostbyaddr.texi.
44018         * doc/pastposix-functions/gethostbyname.texi: Renamed from
44019         doc/posix-functions/gethostbyname.texi.
44020         * doc/pastposix-functions/getwd.texi: Renamed from
44021         doc/posix-functions/getwd.texi.
44022         * doc/pastposix-functions/h_errno.texi: Renamed from
44023         doc/posix-functions/h_errno.texi.
44024         * doc/pastposix-functions/index.texi: Renamed from
44025         doc/posix-functions/index.texi.
44026         * doc/pastposix-functions/makecontext.texi: Renamed from
44027         doc/posix-functions/makecontext.texi.
44028         * doc/pastposix-functions/mktemp.texi: Renamed from
44029         doc/posix-functions/mktemp.texi.
44030         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
44031         doc/posix-functions/pthread_attr_getstackaddr.texi.
44032         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
44033         doc/posix-functions/pthread_attr_setstackaddr.texi.
44034         * doc/pastposix-functions/rindex.texi: Renamed from
44035         doc/posix-functions/rindex.texi.
44036         * doc/pastposix-functions/scalb.texi: Renamed from
44037         doc/posix-functions/scalb.texi.
44038         * doc/pastposix-functions/setcontext.texi: Renamed from
44039         doc/posix-functions/setcontext.texi.
44040         * doc/pastposix-functions/swapcontext.texi: Renamed from
44041         doc/posix-functions/swapcontext.texi.
44042         * doc/pastposix-functions/ualarm.texi: Renamed from
44043         doc/posix-functions/ualarm.texi.
44044         * doc/pastposix-functions/usleep.texi: Renamed from
44045         doc/posix-functions/usleep.texi.
44046         * doc/pastposix-functions/vfork.texi: Renamed from
44047         doc/posix-functions/vfork.texi.
44048         * doc/pastposix-functions/wcswcs.texi: Renamed from
44049         doc/posix-functions/wcswcs.texi.
44050         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
44051         (Function Substitutes): Update.
44052
44053 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44054
44055         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
44056         m4/strerror.m4.
44057
44058 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44059             Bruno Haible  <bruno@clisp.org>
44060
44061         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
44062
44063 2008-12-13  Bruno Haible  <bruno@clisp.org>
44064
44065         * modules/strtoull (Depends-on): Remove unistd.
44066
44067 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44068
44069         * modules/strtoull (Depends-on): Add stdlib.
44070
44071 2008-12-11  Simon Josefsson  <simon@josefsson.org>
44072
44073         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
44074
44075 2008-12-10  Jim Meyering  <meyering@redhat.com>
44076
44077         gl_ASSERT: don't say assertions are disabled when they're not
44078         * m4/assert.m4 (gl_ASSERT): Do not make configure report
44079         "checking whether to enable assertions... no", when they are in
44080         fact enabled.  This is solely a bug in the output of configure.
44081         In spite of saying "no", NDEBUG was not defined in that case.
44082         Also, as noted by Eric Blake, leave assertions enabled upon
44083         --enable-assert=INVALID.
44084
44085 2008-12-10  Bruno Haible  <bruno@clisp.org>
44086
44087         Change MODULES.html to refer to POSIX:2008 where possible.
44088         * MODULES.html.sh (POSIX2008_URL): New variable.
44089         (posix_headers): Remove sys/timeb, ucontext.
44090         (posix2001_headers): New variable.
44091         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
44092         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
44093         index, makecontext, mktemp, pthread_attr_getstackaddr,
44094         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
44095         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
44096         (posix2001_functions): New variable.
44097         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
44098         otherwise.
44099
44100 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44101
44102         add missing include to parse-duration.c
44103         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
44104         * modules/parse-duration (Depends-on): Add xalloc.
44105
44106         fix sed script reading maint.mk
44107         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
44108         (syntax-check-rules): Use it.
44109
44110 2008-12-09  Bruno Haible  <bruno@clisp.org>
44111
44112         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
44113         MacOS X 10.4/PowerPC.
44114         Reported by Simon Josefsson.
44115
44116 2008-12-08  Jim Meyering  <meyering@redhat.com>
44117
44118         work around mingw's lack of some S_IF definitions
44119         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
44120         Reported by Simon Josefsson.
44121
44122 2008-12-08  Bruno Haible  <bruno@clisp.org>
44123
44124         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
44125         applied to variables. Needed on MacOS X 10.4/PowerPC.
44126         Reported by Simon Josefsson.
44127
44128 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
44129         and Eric Blake  <ebb9@byu.net>
44130
44131         assert: honor --enable-assert
44132         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
44133         order to honor --enable-assert, rather than treating it as a
44134         synonym for --disable-assert.
44135
44136 2008-12-08  Jim Meyering  <meyering@redhat.com>
44137
44138         * lib/posixtm.c: Remove now-useless declaration of mktime.
44139
44140         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
44141
44142 2008-12-07  Bruno Haible  <bruno@clisp.org>
44143
44144         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
44145         test_once): Mark functions as static.
44146         * tests/test-tls.c (test_tls): Likewise.
44147
44148 2008-12-07  Bruno Haible  <bruno@clisp.org>
44149
44150         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
44151         iconv_register_autodetect.
44152
44153 2008-12-07  Jim Meyering  <meyering@redhat.com>
44154
44155         posixtm.c: avoid a warning
44156         * lib/posixtm.c (posixtime): Don't initialize tm0.
44157         It's no longer needed to placate gcc4's -Wuninitialized,
44158         and the attempt to placate would elicit a new warning.
44159
44160         unicodeio.c: mark unused parameters
44161         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
44162         (fallback_failure_callback): Likewise.
44163
44164 2008-12-07  Bruno Haible  <bruno@clisp.org>
44165
44166         * gnulib-tool (func_create_testdir): When building the tests
44167         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
44168         Reported by Simon Josefsson.
44169
44170 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44171
44172         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
44173
44174 2008-12-06  Bruno Haible  <bruno@clisp.org>
44175
44176         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
44177         Suggested by Eric Blake.
44178
44179 2008-12-06  Bruno Haible  <bruno@clisp.org>
44180
44181         Fix a c-stack test failure on MacOS X.
44182         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
44183         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
44184         handler for SIGBUS as well.
44185         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
44186         install a signal handler for SIGBUS as well.
44187         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
44188
44189 2008-12-06  Bruno Haible  <bruno@clisp.org>
44190
44191         Advocacy documentation.
44192         * doc/gnulib-intro.texi (Benefits): New section.
44193         * doc/gnulib.texi: Update.
44194
44195 2008-12-06  Bruno Haible  <bruno@clisp.org>
44196
44197         Document the 'manywarnings' module.
44198         * doc/manywarnings.texi: New file.
44199         * doc/gnulib.texi: Include it.
44200
44201 2008-12-05  Eric Blake  <ebb9@byu.net>
44202
44203         tests: silence some gcc warnings
44204         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
44205         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
44206         type mismatches.
44207
44208 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44209             Bruno Haible  <bruno@clisp.org>
44210
44211         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
44212
44213 2008-11-29  Jim Meyering  <meyering@redhat.com>
44214
44215         unicodeio.c: mark unused parameters
44216         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
44217         (fallback_failure_callback): Likewise.
44218
44219         fts: fix a thinko
44220         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
44221         (set_stat_type): Return S_IF*-valued "type" directly.
44222         Prompted by James Youngman's spotting a related bug.
44223         Confirmed by further testing through find.
44224
44225         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
44226         * lib/fts.c (D_TYPE): Define.
44227         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
44228         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
44229         (s_ifmt_shift_bits): New function.
44230         (set_stat_type): New function.
44231         (fts_build): When not calling fts_stat, call set_stat_type
44232         to propagate dirent.d_type info to fts_read caller.
44233         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
44234         fts_statp->st_mode type information may be valid.
44235
44236 2008-11-28  Simon Josefsson  <simon@josefsson.org>
44237
44238         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
44239         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
44240         <sds@gnu.org>.
44241
44242 2008-11-20  Bruno Haible  <bruno@clisp.org>
44243
44244         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
44245         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
44246         INCLUDE_NEXT.
44247         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
44248         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
44249         * modules/math (Makefile.am): Substitute
44250         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
44251         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
44252
44253 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
44254             Bruno Haible  <bruno@clisp.org>
44255
44256         * lib/stdint.in.h: Define all type macros so that their expansion is
44257         a single typedef'ed token. Fixes a compilation failure in Boost which
44258         does "using ::int8_t;".
44259
44260 2008-11-18  Simon Josefsson  <simon@josefsson.org>
44261
44262         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
44263         gl_MANYWARN_ALL_GCC.
44264         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
44265         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
44266         * modules/manywarnings: New file.
44267         * MODULES.html.sh: Mention manywarnings module.
44268
44269 2008-11-18  Bruno Haible  <bruno@clisp.org>
44270
44271         * doc/gnulib-tool.texi (Unit tests): New section.
44272
44273 2008-11-18  Simon Josefsson  <simon@josefsson.org>
44274
44275         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
44276         paths like 'lib/po/foo.po'.
44277
44278 2008-11-17  Simon Josefsson  <simon@josefsson.org>
44279
44280         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
44281         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
44282
44283 2008-11-17  Simon Josefsson  <simon@josefsson.org>
44284
44285         * m4/warnings.m4: Use CPPFLAGS to really check whether the
44286         parameter works.
44287
44288 2008-11-17  Simon Josefsson  <simon@josefsson.org>
44289
44290         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
44291
44292 2008-11-17  Bruce Korb  <bkorb@gnu.org>
44293
44294         * modules/parse-duration-tests: New file.
44295         * tests/test-parse-duration.sh: New file.
44296         * tests/test-parse-duration.c: New file.
44297
44298         New module 'parse-duration'.
44299         * lib/parse-duration.h: New file.
44300         * lib/parse-duration.c: New file.
44301         * modules/parse-duration: New file.
44302
44303 2008-11-17  Bruno Haible  <bruno@clisp.org>
44304
44305         * tests/test-select-out.sh: Comment out the first pipe test.
44306         Reported by Simon Josefsson.
44307
44308 2008-11-17  Bruno Haible  <bruno@clisp.org>
44309
44310         * modules/getaddrinfo (Depends-on): Add servent, hostent.
44311         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
44312         gl_HOSTENT.
44313
44314 2008-11-17  Bruno Haible  <bruno@clisp.org>
44315
44316         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
44317         -lnetwork and -lnet. Needed for Haiku and BeOS.
44318
44319 2008-11-16  Bruno Haible  <bruno@clisp.org>
44320
44321         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
44322
44323 2008-11-16  Bruno Haible  <bruno@clisp.org>
44324
44325         Avoid test failure on Haiku.
44326         * tests/test-fsync.c: Include <errno.h>.
44327         (main): Don't require that fsync (0) fails.
44328
44329 2008-11-15  Bruno Haible  <bruno@clisp.org>
44330
44331         New module 'hostent'.
44332         * modules/hostent: New file.
44333         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
44334
44335 2008-11-15  Bruno Haible  <bruno@clisp.org>
44336
44337         New module 'servent'.
44338         * modules/servent: New file.
44339         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
44340
44341 2008-11-15  Bruno Haible  <bruno@clisp.org>
44342
44343         Avoid generating same test program with two different rules.
44344         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
44345         test-frexp to test-frexp-nolibm.
44346         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
44347         test-frexpl to test-frexpl-nolibm.
44348
44349 2008-11-15  Bruno Haible  <bruno@clisp.org>
44350
44351         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
44352         $(FREXPL_LIBM).
44353
44354 2008-11-15  Bruno Haible  <bruno@clisp.org>
44355
44356         * lib/netdb.in.h: Activate the definitions also when the system's
44357         <netdb.h> has 'struct addrinfo'.
44358         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
44359         EAI_OVERFLOW or AI_NUMERICSERV.
44360         * doc/posix-headers/netdb.texi: Document the problem.
44361
44362 2008-11-15  Bruno Haible  <bruno@clisp.org>
44363
44364         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
44365
44366         Make the 'sched' module work on platforms where <sched.h> exists but
44367         is incomplete (such as Haiku).
44368         * lib/sched.in.h; Include the system's <sched.h> if it exists.
44369         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
44370         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
44371         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
44372         HAVE_STRUCT_SCHED_PARAM.
44373         * modules/sched (Depends-on): Add include_next.
44374         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
44375         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
44376         * doc/posix-headers/sched.texi: Document the issue.
44377
44378 2008-11-13  Jim Meyering  <meyering@redhat.com>
44379
44380         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
44381         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
44382         test would fail due to the difference in the Report bugs to ...
44383         line.  The expected address is empty, "<>", while the actual
44384         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
44385
44386 2008-11-12  Bruno Haible  <bruno@clisp.org>
44387
44388         lstat: don't compile lstat.c on systems lacking lstat
44389         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
44390         which don't have lstat; this is handled by lib/sys_stat.in.h already.
44391         Reported by Daniel P. Berrange via Jim Meyering.
44392
44393 2008-11-12  Jim Meyering  <meyering@redhat.com>
44394
44395         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
44396
44397 2008-11-12  Simon Josefsson  <simon@josefsson.org>
44398
44399         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
44400         instead.
44401
44402 2008-11-12  Bruno Haible  <bruno@clisp.org>
44403
44404         * lib/unicodeio.c: Include unistr.h.
44405         (utf8_wctomb): Remove function.
44406         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
44407
44408 2008-11-12  Simon Josefsson  <simon@josefsson.org>
44409
44410         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
44411         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
44412         <bruno@clisp.org>.
44413         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
44414
44415 2008-11-12  Simon Josefsson  <simon@josefsson.org>
44416
44417         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
44418         * doc/gnulib.texi: Add section for warnings.
44419
44420 2008-11-11  Bruno Haible  <bruno@clisp.org>
44421
44422         * lib/sockets.h: Add a comment.
44423
44424 2008-11-11  Karl Berry  <karl@gnu.org>
44425
44426         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
44427
44428 2008-11-11  Eric Blake  <ebb9@byu.net>
44429
44430         fdl.texi: avoid git symlinks
44431         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
44432
44433 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
44434
44435         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
44436
44437 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
44438
44439         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
44440         (gl_WARN_ADD): Substitute $2 if literal.
44441
44442 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
44443
44444         * m4/warning.m4: Remove.
44445
44446 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
44447
44448         * m4/warnings.m4: Almost complete rewrite. :-)
44449
44450 2008-11-10  Simon Josefsson  <simon@josefsson.org>
44451
44452         * modules/warnings: New module.
44453         * m4/warnings.m4: New file.
44454         * MODULES.html.sh: Mention warnings module.
44455         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
44456         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
44457
44458 2008-11-10  Eric Blake  <ebb9@byu.net>
44459
44460         fdl.texi: make a symlink to the latest version
44461         * doc/standards.texi: Revert today's earlier change.
44462         * doc/fdl-1.2.texi: Rename from old fdl.texi...
44463         * doc/fdl.texi: ...and replace this with a symlink to the newer
44464         fdl-1.3.texi.
44465
44466 2008-11-10  Bruno Haible  <bruno@clisp.org>
44467
44468         * tests/test-select-fd.c (main): Accept the result file name as fourth
44469         argument.
44470         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
44471         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
44472
44473 2008-11-10  Bruno Haible  <bruno@clisp.org>
44474
44475         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
44476         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
44477         as autoconf-substituted macros.
44478         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
44479         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
44480         gl_NETDB_H_DEFAULTS. Set these variables.
44481         * modules/netdb (Makefile.am): Substitute these variables.
44482
44483 2008-11-10  Eric Blake  <ebb9@byu.net>
44484
44485         standards.texi: include correct file for FDL 1.3
44486         * doc/standards.texi (GNU Free Documentation License): Change
44487         include file to pull in FDL 1.3, not 1.2.
44488
44489         fdl.texi: revert accidental change to license
44490         * doc/fdl.texi: This is FDL 1.2, not 1.3.
44491
44492 2008-11-10  Bruno Haible  <bruno@clisp.org>
44493
44494         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
44495         cross-compiling guesses also when the native compile gives no result.
44496
44497 2008-11-10  Bruno Haible  <bruno@clisp.org>
44498
44499         * lib/spawni.c (__spawni): Force variable into the stack.
44500
44501 2008-11-10  Bruno Haible  <bruno@clisp.org>
44502
44503         Add support for Haiku.
44504         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
44505         glibc and BeOS, but also on Haiku.
44506         * lib/fpurge.c (fpurge): Likewise.
44507         * lib/freadable.c (freadable): Likewise.
44508         * lib/freadahead.c (freadahead): Likewise.
44509         * lib/freading.c (freading): Likewise.
44510         * lib/freadptr.c (freadptr): Likewise.
44511         * lib/freadseek.c (freadptrinc): Likewise.
44512         * lib/fseeko.c (rpl_fseeko): Likewise.
44513         * lib/fseterr.c (fseterr): Likewise.
44514         * lib/fwritable.c (fwritable): Likewise.
44515         * lib/fwriting.c (fwriting): Likewise.
44516         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
44517
44518 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
44519
44520         * lib/config.charset: Treat Haiku like BeOS.
44521
44522 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
44523
44524         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
44525         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
44526
44527 2008-11-08  Bruno Haible  <bruno@clisp.org>
44528
44529         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
44530         AC_CACHE_CHECK.
44531
44532 2008-11-08  Bruno Haible  <bruno@clisp.org>
44533
44534         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
44535
44536 2008-11-08  Bruno Haible  <bruno@clisp.org>
44537
44538         * tests/test-select-fd.c: New file.
44539         * tests/test-select-in.sh: New file.
44540         * tests/test-select-out.sh: New file.
44541         * tests/test-select-stdin.c: New file.
44542         * modules/select-tests (Files): Add the new files.
44543         (Depends-on): Add gettimeofday.
44544         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
44545         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
44546         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
44547
44548 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
44549             Bruno Haible  <bruno@clisp.org>
44550
44551         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
44552
44553 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
44554
44555         * build-aux/pmccabe2html: Added support for C++ source files.
44556
44557 2008-11-05  Ben Pfaff  <blp@gnu.org>
44558
44559         Fix lib/close.c build on Windows.
44560         * modules/close (Files): Add lib/w32sock.h.
44561
44562 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
44563
44564         Accept Bison's NEWS format.
44565         * build-aux/announce-gen (print_news_deltas): Tweak
44566         $re_prefix.
44567
44568 2008-11-04  Bruno Haible  <bruno@clisp.org>
44569
44570         * modules/random_r (Maintainer): Add glibc.
44571
44572 2008-11-04  Simon Josefsson  <simon@josefsson.org>
44573
44574         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
44575         by karl@freefriends.org (Karl Berry).
44576         * doc/alloca.texi: Likewise.
44577         * doc/c-ctype.texi: Likewise.
44578         * doc/c-strcase.texi: Likewise.
44579         * doc/c-strcaseeq.texi: Likewise.
44580         * doc/c-strcasestr.texi: Likewise.
44581         * doc/c-strstr.texi: Likewise.
44582         * doc/c-strtod.texi: Likewise.
44583         * doc/c-strtold.texi: Likewise.
44584         * doc/ctime.texi: Likewise.
44585         * doc/error.texi: Likewise.
44586         * doc/fdl.texi: Likewise.
44587         * doc/gcd.texi: Likewise.
44588         * doc/getdate.texi: Likewise.
44589         * doc/gnulib-intro.texi: Likewise.
44590         * doc/gnulib-tool.texi: Likewise.
44591         * doc/gnulib.texi: Likewise.
44592         * doc/inet_ntoa.texi: Likewise.
44593         * doc/maintain.texi: Likewise.
44594         * doc/make-stds.texi: Likewise.
44595         * doc/quote.texi: Likewise.
44596         * doc/regexprops-generic.texi: Likewise.
44597         * doc/standards.texi: Likewise.
44598         * doc/verify.texi: Likewise.
44599         * doc/visibility.texi: Likewise.
44600         * doc/gnulib.texi (GNU Free Documentation License): Include
44601         fdl-1.3.texi instead of fdl.texi.
44602
44603 2008-11-04  Simon Josefsson  <simon@josefsson.org>
44604
44605         * doc/fdl-1.3.texi: New file, from
44606         <http://www.gnu.org/licenses/fdl-1.3.texi>.
44607         * modules/fdl-1.3: Add.
44608         * MODULES.html.sh: Add fdl-1.3.
44609
44610 2008-11-03  Bruno Haible  <bruno@clisp.org>
44611
44612         Make determination of absolute name of header file work with AIX xlc.
44613         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
44614         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
44615         preprocessing.
44616         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
44617         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
44618
44619 2008-11-03  Simon Josefsson  <simon@josefsson.org>
44620
44621         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
44622         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
44623         <ludo@gnu.org>.
44624
44625 2008-11-02  Bruno Haible  <bruno@clisp.org>
44626
44627         Mark 'strpbrk' obsolete.
44628         * modules/strpbrk (Status, Notice): New sections.
44629         * modules/strtok_r (Depends-on): Add strpbrk.
44630
44631 2008-11-02  Bruno Haible  <bruno@clisp.org>
44632
44633         Mark 'strdup' obsolete.
44634         * modules/strdup (Status, Notice): New sections.
44635         * modules/findprog (Depends-on): Add strdup.
44636         * modules/getaddrinfo (Depends-on): Likewise.
44637         * modules/localename (Depends-on): Likewise.
44638         * modules/relocatable-lib (Depends-on): Likewise.
44639         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
44640         * modules/relocatable-prog (Depends-on): Likewise.
44641         * modules/trim (Depends-on): Likewise.
44642         * modules/unictype/gen-ctype (Depends-on): Likewise.
44643         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
44644
44645 2008-11-02  Bruno Haible  <bruno@clisp.org>
44646
44647         Mark 'strcspn' obsolete.
44648         * modules/strcspn (Status, Notice): New sections.
44649
44650 2008-11-02  Bruno Haible  <bruno@clisp.org>
44651
44652         Mark 'rmdir' obsolete.
44653         * modules/rmdir (Status, Notice): New sections.
44654         * modules/clean-temp (Depends-on): Add rmdir.
44655         * modules/openat (Depends-on): Likewise.
44656
44657 2008-11-02  Bruno Haible  <bruno@clisp.org>
44658
44659         Mark 'raise' obsolete.
44660         * modules/raise (Status, Notice): New sections.
44661         (Include): Specify <signal.h>.
44662         * modules/stdio (Depends-on): Add raise.
44663         * modules/write (Depends-on): Likewise.
44664
44665 2008-11-02  Bruno Haible  <bruno@clisp.org>
44666
44667         Mark 'memset' obsolete.
44668         * modules/memset (Status, Notice): New sections.
44669
44670 2008-11-02  Bruno Haible  <bruno@clisp.org>
44671
44672         Mark 'memmove' obsolete.
44673         * modules/memmove (Status, Notice): New sections.
44674         * modules/argp (Depends-on): Add memmove.
44675         * modules/argz (Depends-on): Likewise.
44676         * modules/canonicalize (Depends-on): Likewise.
44677         * modules/canonicalize-lgpl (Depends-on): Likewise.
44678         * modules/fts (Depends-on): Likewise.
44679         * modules/getcwd (Depends-on): Likewise.
44680         * modules/human (Depends-on): Likewise.
44681         * modules/regex (Depends-on): Likewise.
44682         * modules/striconveh (Depends-on): Likewise.
44683         * modules/trim (Depends-on): Likewise.
44684         * modules/unistr/u8-move (Depends-on): Likewise.
44685         * modules/unistr/u16-move (Depends-on): Likewise.
44686         * modules/unistr/u32-move (Depends-on): Likewise.
44687
44688 2008-11-02  Bruno Haible  <bruno@clisp.org>
44689
44690         Mark 'memcpy' obsolete.
44691         * modules/memcpy (Status, Notice): New sections.
44692
44693 2008-11-02  Bruno Haible  <bruno@clisp.org>
44694
44695         Mark 'memcmp' obsolete.
44696         * modules/memcmp (Status, Notice): New sections.
44697         * modules/argmatch (Depends-on): Add memchr.
44698         * modules/backupfile (Depends-on): Likewise.
44699         * modules/c-strcasestr (Depends-on): Likewise.
44700         * modules/crypto/des (Depends-on): Likewise.
44701         * modules/csharpcomp (Depends-on): Likewise.
44702         * modules/fnmatch (Depends-on): Likewise.
44703         * modules/git-merge-changelog (Depends-on): Likewise.
44704         * modules/isnand (Depends-on): Likewise.
44705         * modules/isnand-nolibm (Depends-on): Likewise.
44706         * modules/isnanf (Depends-on): Likewise.
44707         * modules/isnanf-nolibm (Depends-on): Likewise.
44708         * modules/isnanl (Depends-on): Likewise.
44709         * modules/isnanl-nolibm (Depends-on): Likewise.
44710         * modules/mbchar (Depends-on): Likewise.
44711         * modules/memcoll (Depends-on): Likewise.
44712         * modules/quotearg (Depends-on): Likewise.
44713         * modules/regex (Depends-on): Likewise.
44714         * modules/relocatable-prog (Depends-on): Likewise.
44715         * modules/same (Depends-on): Likewise.
44716         * modules/signbit (Depends-on): Likewise.
44717         * modules/strcasestr-simple (Depends-on): Likewise.
44718         * modules/unictype/gen-ctype (Depends-on): Likewise.
44719         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
44720         * modules/uniname/uniname (Depends-on): Likewise.
44721         * modules/unistr/u8-cmp (Depends-on): Likewise.
44722
44723 2008-11-02  Bruno Haible  <bruno@clisp.org>
44724
44725         Mark 'memchr' obsolete.
44726         * modules/memchr (Status, Notice): New sections.
44727         * modules/argp (Depends-on): Add memchr.
44728         * modules/base64 (Depends-on): Likewise.
44729         * modules/c-strcasestr (Depends-on): Likewise.
44730         * modules/chdir-long (Depends-on): Likewise.
44731         * modules/fnmatch (Depends-on): Likewise.
44732         * modules/getsubopt (Depends-on): Likewise.
44733         * modules/git-merge-changelog (Depends-on): Likewise.
44734         * modules/glob (Depends-on): Likewise.
44735         * modules/strcasestr-simple (Depends-on): Likewise.
44736         * modules/strnlen (Depends-on): Likewise.
44737
44738 2008-11-02  Bruno Haible  <bruno@clisp.org>
44739
44740         Mark 'atexit' obsolete.
44741         * modules/atexit (Status, Notice): New sections.
44742         * modules/chdir-long (Depends-on): Add atexit.
44743         * modules/wait-process (Depends-on): Likewise.
44744
44745 2008-11-02  Bruno Haible  <bruno@clisp.org>
44746
44747         * gnulib-tool: New option --with-obsolete.
44748         (func_usage): Document it.
44749         (func_modules_transitive_closure): Drop obsolete dependencies if
44750         incobsolete is not true.
44751         (func_import): Read and save the incobsolete variable to the cache.
44752
44753 2008-11-02  Bruno Haible  <bruno@clisp.org>
44754
44755         * modules/TEMPLATE-EXTENDED: New field 'Status'.
44756         * gnulib-tool: New option --extract-status.
44757         (func_usage): Document it.
44758         (sed_extract_prog): Recognize it.
44759         (func_get_status): New function.
44760
44761 2008-10-30  Simon Josefsson  <simon@josefsson.org>
44762
44763         * modules/sockets (License): Change from LGPL to LGPLv2+.
44764
44765 2008-10-28  Simon Josefsson  <simon@josefsson.org>
44766
44767         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
44768
44769 2008-10-28  Simon Josefsson  <simon@josefsson.org>
44770
44771         * MODULES.html.sh (Support for systems lacking POSIX:2001):
44772         Mention times and sys_times.
44773         * modules/sys_times, modules/sys_times-tests: New modules.
44774         * modules/times, modules/times-tests: Likewise
44775         * m4/sys_times_h.m4: New file.
44776         * lib/sys_times.in.h: Likewise
44777         * lib/times.c: Likewise.
44778         * tests/test-sys_times.c: Likewise.
44779         * tests/test-times.c: Likewise.
44780         * doc/posix-headers/sys_times.texi: Update.
44781         * doc/posix-functions/times.texi: Update.
44782
44783 2008-10-28  Jim Meyering  <meyering@redhat.com>
44784
44785         * modules/tempname (Depends-on): Add lstat.
44786
44787         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
44788
44789 2008-10-28  Simon Josefsson  <simon@josefsson.org>
44790
44791         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
44792         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
44793         using idiom used elsewhere in gnulib.
44794
44795 2008-10-27  Jim Meyering  <meyering@redhat.com>
44796
44797         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
44798
44799 2008-10-27  Simon Josefsson  <simon@josefsson.org>
44800
44801         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
44802         TESTS_ENVIRONMENT, for shell scripts that needs to call built
44803         programs.
44804         * tests/test-argp-2.sh: Use $EXEEXT when needed.
44805
44806 2008-10-27  Simon Josefsson  <simon@josefsson.org>
44807
44808         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
44809
44810 2008-10-27  Bruno Haible  <bruno@clisp.org>
44811
44812         * tests/test-lstat.c: Include <stdio.h>.
44813
44814 2008-10-27  Simon Josefsson  <simon@josefsson.org>
44815
44816         * modules/lstat-tests: New module.
44817         * tests/test-lstat.c: New file.
44818
44819 2008-10-26  Jim Meyering  <meyering@redhat.com>
44820
44821         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
44822
44823 2008-10-26  Simon Josefsson  <simon@josefsson.org>
44824             Bruno Haible  <bruno@clisp.org>
44825
44826         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
44827         * modules/configmake (Include): Add a note that the include must come
44828         after all system headers.
44829         * lib/javaversion.c: Include configmake.h after all other includes.
44830
44831 2008-10-26  Bruno Haible  <bruno@clisp.org>
44832
44833         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
44834         HAVE_STRUCT_RANDOM_DATA to 1.
44835         (gl_STDLIB_H): Simplify.
44836
44837 2008-10-26  Simon Josefsson  <simon@josefsson.org>
44838
44839         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
44840         substitute HAVE_STRUCT_RANDOM_DATA.
44841         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
44842         random_data.
44843         * modules/stdlib (Makefile.am): Substitute
44844         HAVE_STRUCT_RANDOM_DATA.
44845
44846 2008-10-26  Simon Josefsson  <simon@josefsson.org>
44847
44848         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
44849         * doc/gnulib-intro.texi (Copyright): Likewise.
44850
44851 2008-10-26  Simon Josefsson  <simon@josefsson.org>
44852
44853         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
44854         findings.
44855
44856 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
44857             Bruno Haible  <bruno@clisp.org>
44858
44859         * lib/unistd.in.h: Include <winsock2.h>.
44860         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
44861         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
44862         Provide dummy declarations.
44863         (gethostname): Override.
44864         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
44865         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
44866         gl_PREREQ_SYS_H_WINSOCK2.
44867         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
44868         * doc/posix-functions/gethostname.texi: More details.
44869
44870 2008-10-25  Bruno Haible  <bruno@clisp.org>
44871
44872         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
44873         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
44874         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
44875
44876         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
44877         here ...
44878         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
44879         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
44880         gl_UNISTD_H_DEFAULTS.
44881
44882 2008-10-25  Eric Blake  <ebb9@byu.net>
44883
44884         signbit: avoid spurious compiler failure
44885         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
44886         declarations inside function.
44887
44888 2008-10-24  Simon Josefsson  <simon@josefsson.org>
44889             Bruno Haible  <bruno@clisp.org>
44890
44891         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
44892         * modules/random_r (Depends-on): Add stdint.
44893
44894 2008-10-24  Bruno Haible  <bruno@clisp.org>
44895
44896         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
44897         Eggert.
44898         * modules/strerror (License): Likewise.
44899
44900 2008-10-24  Jim Meyering  <meyering@redhat.com>
44901
44902         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
44903         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
44904
44905 2008-10-24  Eric Blake  <ebb9@byu.net>
44906
44907         getgroups: fix compilation when getgroups is available
44908         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
44909         but with <config.h> override of getgroups disabled.
44910
44911 2008-10-24  Simon Josefsson  <simon@josefsson.org>
44912
44913         * doc/gnulib.texi (Header files): Add note about C++ problems.
44914         Explained by Bruno Haible <bruno@clisp.org>.
44915
44916 2008-10-23  Bruno Haible  <bruno@clisp.org>
44917
44918         Define a dummy SA_NODEFER macro on Interix.
44919         * lib/signal.in.h (SA_NODEFER): Define fallback.
44920         Reported by Aleksey Cheusov <cheusov@tut.by> via
44921         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
44922
44923 2008-10-23  Bruno Haible  <bruno@clisp.org>
44924
44925         * modules/freadahead (License): Change to LGPLv2+.
44926         Suggested by Simon Josefsson.
44927
44928 2008-10-23  Jim Meyering  <meyering@redhat.com>
44929
44930         random_r: new module
44931         * modules/random_r: New file.
44932         * m4/random_r.m4: New file.
44933         * lib/random_r.c: New file, from glibc.
44934         * modules/random_r-tests: New file.
44935         * tests/test-random_r.c: New file.
44936         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
44937          Declare.
44938         (RAND_MAX): Define.
44939         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
44940         * modules/stdlib: Substitute them, too.
44941         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
44942         * doc/glibc-functions/initstate_r.texi: Mention the new module.
44943         * doc/glibc-functions/random_r.texi: Likewise.
44944         * doc/glibc-functions/setstate_r.texi: Likewise.
44945         * doc/glibc-functions/srandom_r.texi: Likewise.
44946         * config/srclist.txt: Mention it.
44947
44948 2008-10-23  David Lutterkort  <lutter@redhat.com>
44949
44950         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
44951         link requirement
44952
44953 2008-10-23  Jim Meyering  <meyering@redhat.com>
44954
44955         selinux-h: mark parameters of stub functions as intentionally unused
44956         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
44957         * lib/se-context.in.h: Likewise.
44958
44959 2008-10-22  Simon Josefsson  <simon@josefsson.org>
44960
44961         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
44962
44963 2008-10-22  Simon Josefsson  <simon@josefsson.org>
44964
44965         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
44966
44967 2008-10-22  Eric Blake  <ebb9@byu.net>
44968
44969         glthread/thread: avoid compiler warning
44970         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
44971         Add unreachable abort to silence compiler.
44972
44973 2008-10-22  Eric Blake  <ebb9@byu.net>
44974
44975         netdb: also supply struct addrinfo for cygwin 1.5.x
44976         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
44977         older cygwin.
44978         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
44979         cygwin.
44980         * doc/posix-headers/netdb.texi (netdb.h): Document this.
44981
44982 2008-10-22  Bruno Haible  <bruno@clisp.org>
44983
44984         * users.txt: Update entry about pspp.
44985
44986 2008-10-21  Bruno Haible  <bruno@clisp.org>
44987
44988         Simplification.
44989         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
44990         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
44991
44992         Simplification.
44993         * lib/ioctl.c (ioctl): Don't undefine.
44994         * lib/socket.c (socket): Don't undefine.
44995
44996         Remove unused module indicator macros.
44997         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
44998         GNULIB_$1 as a C macro.
44999
45000         * doc/posix-functions/close.texi: Undo last change.
45001         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
45002         Windows platforms.
45003
45004 2008-10-21  Bruno Haible  <bruno@clisp.org>
45005
45006         Add gethostname() declaration to <unistd.h>.
45007         * lib/unistd.in.h (gethostname): New declaration.
45008         * lib/gethostname.c: Include <unistd.h>.
45009         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
45010         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
45011         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
45012         and HAVE_GETHOSTNAME.
45013         * modules/gethostname (Depends-on): Add unistd.
45014         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
45015         (Include): Specify <unistd.h>.
45016         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
45017         HAVE_GETHOSTNAME.
45018         * tests/test-gethostname.c: Include <unistd.h> first.
45019
45020 2008-10-21  Bruno Haible  <bruno@clisp.org>
45021
45022         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
45023         * modules/select-tests (Depends-on): Likewise.
45024         Reported by Simon Josefsson.
45025
45026 2008-10-21  Simon Josefsson  <simon@josefsson.org>
45027
45028         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
45029         * lib/accept.c: New file, based on winsock.c.
45030         * lib/bind.c: New file, based on winsock.c.
45031         * lib/connect.c: New file, based on winsock.c.
45032         * lib/getpeername.c: New file, based on winsock.c.
45033         * lib/getsockname.c: New file, based on winsock.c.
45034         * lib/getsockopt.c: New file, based on winsock.c.
45035         * lib/ioctl.c: New file, based on winsock.c.
45036         * lib/listen.c: New file, based on winsock.c.
45037         * lib/recv.c: New file, based on winsock.c.
45038         * lib/recvfrom.c: New file, based on winsock.c.
45039         * lib/send.c: New file, based on winsock.c.
45040         * lib/sendto.c: New file, based on winsock.c.
45041         * lib/setsockopt.c: New file, based on winsock.c.
45042         * lib/shutdown.c: New file, based on winsock.c.
45043         * lib/socket.c: New file, based on winsock.c.
45044         * lib/w32sock.h: New file, based on winsock.c.
45045         * lib/winsock.c: Remove file.
45046         * modules/accept: Likewise.
45047         * modules/bind: Likewise.
45048         * modules/connect: Likewise.
45049         * modules/getpeername: Likewise.
45050         * modules/getsockname: Likewise.
45051         * modules/getsockopt: Likewise.
45052         * modules/ioctl: Likewise.
45053         * modules/listen: Likewise.
45054         * modules/recv: Likewise.
45055         * modules/recvfrom: Likewise.
45056         * modules/send: Likewise.
45057         * modules/sendto: Likewise.
45058         * modules/setsockopt: Likewise.
45059         * modules/shutdown: Likewise.
45060         * modules/socket: Use socket.c instead of winsock.c.
45061         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
45062         * doc/posix-functions/accept.texi: Doc fix.
45063         * doc/posix-functions/bind.texi: Doc fix.
45064         * doc/posix-functions/close.texi: Doc fix.
45065         * doc/posix-functions/connect.texi: Doc fix.
45066         * doc/posix-functions/getpeername.texi: Doc fix.
45067         * doc/posix-functions/getsockname.texi: Doc fix.
45068         * doc/posix-functions/getsockopt.texi: Doc fix.
45069         * doc/posix-functions/ioctl.texi: Doc fix.
45070         * doc/posix-functions/listen.texi: Doc fix.
45071         * doc/posix-functions/recv.texi: Doc fix.
45072         * doc/posix-functions/recvfrom.texi: Doc fix.
45073         * doc/posix-functions/send.texi: Doc fix.
45074         * doc/posix-functions/sendto.texi: Doc fix.
45075         * doc/posix-functions/setsockopt.texi: Doc fix.
45076         * doc/posix-functions/shutdown.texi: Doc fix.
45077         * doc/posix-functions/socket.texi: Doc fix.
45078
45079 2008-10-20  Bruno Haible  <bruno@clisp.org>
45080
45081         Take into account the role of SIGABRT_COMPAT on Windows 2008.
45082         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
45083         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
45084         as an alias for SIGABRT.
45085         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
45086         (sigaction): Map it to SIGABRT.
45087         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
45088
45089 2008-10-20  Bruno Haible  <bruno@clisp.org>
45090
45091         * lib/fts.c: Don't include lstat.h.
45092         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
45093
45094         Move the lstat() declaration to <sys/stat.h>.
45095         * lib/lstat.h: Remove file.
45096         * lib/sys_stat.in.h: Add special invocation convention.
45097         (lstat): New declaration.
45098         * lib/lstat.c (orig_lstat): New function.
45099         (rpl_lstat): Use orig_lstat instead of lstat.
45100         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
45101         AC_C_INLINE. Set REPLACE_LSTAT.
45102         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
45103         and REPLACE_LSTAT.
45104         * modules/lstat (Files): Remove lib/lstat.h.
45105         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
45106         (Include): Specify <sys/stat.h> instead of lstat.h.
45107         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
45108         REPLACE_LSTAT.
45109         * NEWS: Mention the change.
45110
45111 2008-10-20  Bruno Haible  <bruno@clisp.org>
45112
45113         * modules/posix_spawn-tests: New file.
45114         * tests/test-posix_spawn3.c: New file.
45115
45116 2008-10-20  Bruno Haible  <bruno@clisp.org>
45117
45118         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
45119         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
45120         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
45121         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
45122         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
45123
45124 2008-10-20  Bruno Haible  <bruno@clisp.org>
45125
45126         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
45127         of posix_spawn on AIX 5.3.
45128
45129 2008-10-20  Bruno Haible  <bruno@clisp.org>
45130
45131         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
45132
45133 2008-10-20  Bruno Haible  <bruno@clisp.org>
45134
45135         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
45136         of AC_LANG_PROGRAM.
45137
45138 2008-10-20  Simon Josefsson  <simon@josefsson.org>
45139
45140         * lib/netdb.in.h: Don't define GNU specific constants until they
45141         are supported or needed.  Reported by Bruno Haible
45142         <bruno@clisp.org>.
45143
45144 2008-10-20  Simon Josefsson  <simon@josefsson.org>
45145
45146         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
45147
45148 2008-10-20  Simon Josefsson  <simon@josefsson.org>
45149
45150         * lib/getaddrinfo.h: Remove file.
45151         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
45152         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
45153         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
45154         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
45155         * modules/netdb: Substitute GNULIB_GETADDRINFO.
45156         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
45157         * tests/test-getaddrinfo.c: Likewise.
45158         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
45159         * NEWS: Mention change.
45160
45161 2008-10-19  Bruno Haible  <bruno@clisp.org>
45162
45163         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
45164
45165 2008-10-19  Bruno Haible  <bruno@clisp.org>
45166
45167         * lib/wait-process.c: Include simply <sys/wait.h>.
45168         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
45169         WIFSTOPPED): Remove fallback definitions.
45170         * modules/wait-process (Depends-on): Add sys_wait.
45171
45172         New module 'sys_wait'.
45173         * modules/sys_wait: New file.
45174         * lib/sys_wait.in.h: New file, partially copied from
45175         lib/wait-process.c.
45176         * m4/sys_wait_h.m4: New file.
45177         * doc/posix-headers/sys_wait.texi: Mention the new module.
45178
45179 2008-10-19  Bruno Haible  <bruno@clisp.org>
45180
45181         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
45182
45183 2008-10-19  Bruno Haible  <bruno@clisp.org>
45184
45185         Assume that waitpid() fills an 'int' status, not a 'union wait'.
45186         * lib/wait-process.c (WAIT_T): Remove type.
45187         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
45188         (wait_subprocess): Update.
45189
45190 2008-10-19  Bruno Haible  <bruno@clisp.org>
45191
45192         New module 'atoll'.
45193         * modules/atoll: New file.
45194         * lib/stdlib.in.h (atoll): New declaration.
45195         * lib/atoll.c: New file, from glibc with modifications.
45196         * m4/atoll.m4: New file.
45197         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
45198         HAVE_ATOLL.
45199         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
45200         * doc/posix-functions/atoll.texi: Mention the new module.
45201
45202 2008-10-19  Bruno Haible  <bruno@clisp.org>
45203
45204         Add strtoull() declaration to <stdlib.h>.
45205         * lib/stdlib.in.h (strtoull): New declaration.
45206         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
45207         Set HAVE_STRTOULL.
45208         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
45209         HAVE_STRTOULL.
45210         * modules/strtoull (Depends-on): Add stdlib.
45211         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
45212         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
45213         HAVE_STRTOULL.
45214
45215 2008-10-19  Bruno Haible  <bruno@clisp.org>
45216
45217         Add strtoll() declaration to <stdlib.h>.
45218         * lib/stdlib.in.h (strtoll): New declaration.
45219         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
45220         Set HAVE_STRTOLL.
45221         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
45222         HAVE_STRTOLL.
45223         * modules/strtoll (Depends-on): Add stdlib.
45224         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
45225         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
45226
45227 2008-10-19  Bruno Haible  <bruno@clisp.org>
45228
45229         * modules/bcopy (Depends-on): Add strings.
45230         (Include): Specify <strings.h>.
45231
45232 2008-10-19  Bruno Haible  <bruno@clisp.org>
45233
45234         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
45235
45236 2008-10-19  Bruno Haible  <bruno@clisp.org>
45237
45238         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
45239         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
45240         mingw.
45241
45242 2008-10-19  Bruno Haible  <bruno@clisp.org>
45243
45244         * lib/atanl.c: Don't include isnanl.h.
45245         * lib/cosl.c: Likewise.
45246         * lib/ldexpl.c: Likewise.
45247         * lib/logl.c: Likewise.
45248         * lib/sinl.c: Likewise.
45249         * lib/sqrtl.c: Likewise.
45250         * lib/tanl.c: Likewise.
45251
45252         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
45253         * lib/isnanf.h: Remove file.
45254         * lib/isnand.h: Remove file.
45255         * lib/isnanl.h: Remove file.
45256         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
45257         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
45258         macros.
45259         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
45260         HAVE_ISNANF, don't define it as a C macro.
45261         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
45262         HAVE_ISNAND, don't define it as a C macro.
45263         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
45264         HAVE_ISNANL, don't define it as a C macro.
45265         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
45266         HAVE_ISNAN[FDL].
45267         * modules/isnanf (Files): Remove lib/isnanf.h.
45268         (Depends-on): Add math.
45269         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
45270         (Include): Specify <math.h> instead of isnanf.h.
45271         * modules/isnand (Files): Remove lib/isnand.h.
45272         (Depends-on): Add math.
45273         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
45274         (Include): Specify <math.h> instead of isnand.h.
45275         * modules/isnanl (Files): Remove lib/isnanl.h.
45276         (Depends-on): Add math.
45277         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
45278         (Include): Specify <math.h> instead of isnanl.h.
45279         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
45280         HAVE_ISNAN[FDL].
45281         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
45282         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
45283         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
45284         * NEWS: Mention the change.
45285
45286 2008-10-18  Bruno Haible  <bruno@clisp.org>
45287
45288         Add getusershell(), setusershell(), endusershell() declarations to
45289         <unistd.h>.
45290         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
45291         declarations.
45292         * lib/getusershell.c: Include unistd.h.
45293         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
45294         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
45295         HAVE_GETUSERSHELL.
45296         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
45297         and HAVE_GETUSERSHELL.
45298         * modules/getusershell (Depends-on): Add unistd, extensions.
45299         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
45300         (Include): Specify <unistd.h>.
45301         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
45302         HAVE_GETUSERSHELL.
45303
45304 2008-10-18  Bruno Haible  <bruno@clisp.org>
45305
45306         Add a getloadavg() declaration to <stdlib.h>.
45307         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
45308         getloadavg declaration.
45309         (getloadavg): New declaration.
45310         * lib/getloadavg.c: Include <stdlib.h> first.
45311         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
45312         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
45313         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
45314         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
45315         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
45316         * modules/getloadavg (Depends-on): Add stdlib, extensions.
45317         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
45318         (Include): Specify <stdlib.h>.
45319         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
45320         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
45321
45322 2008-10-18  Bruno Haible  <bruno@clisp.org>
45323
45324         * lib/dirchownmod.c: Don't include lchmod.h.
45325
45326         Move the lchmod() declaration to <sys/stat.h>.
45327         * lib/lchmod.h: Remove file.
45328         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
45329         (lchmod): New declaration, moved here from lib/lchown.h.
45330         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
45331         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
45332         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
45333         and HAVE_LCHMOD.
45334         * modules/lchmod (Files): Remove lib/lchmod.h.
45335         (Depends-on): Add sys_stat, extensions.
45336         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
45337         (Include): Specify <sys/stat.h> instead of lchmod.h.
45338         * modules/sys_stat (Depends-on): Add link-warning.
45339         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
45340         definition of GL_LINK_WARNING.
45341         * NEWS: Mention the change.
45342
45343 2008-10-18  Bruno Haible  <bruno@clisp.org>
45344
45345         * lib/fchdir.c: Don't include dirfd.h.
45346         * lib/fts.c: Likewise.
45347         * lib/getcwd.c: Likewise.
45348         * lib/glob.c: Likewise.
45349
45350         Move the dirfd() declaration to <dirent.h>.
45351         * lib/dirfd.h: Remove file.
45352         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
45353         (dirfd): New declaration.
45354         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
45355         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
45356         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
45357         HAVE_DECL_DIRFD.
45358         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
45359         HAVE_DECL_DIRFD.
45360         * modules/dirfd (Files): Remove lib/dirfd.h.
45361         (Depends-on): Add dirent, extensions.
45362         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
45363         (Include): Specify <dirent.h> instead of dirfd.h.
45364         * modules/dirent (Depends-on): Add link-warning.
45365         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
45366         definition of GL_LINK_WARNING.
45367         * NEWS: Mention the change.
45368
45369 2008-10-18  Bruno Haible  <bruno@clisp.org>
45370
45371         Move the euidaccess() declaration to <unistd.h>.
45372         * lib/euidaccess.h: Remove file.
45373         * lib/unistd.in.h (euidaccess): New declaration.
45374         * lib/euidaccess.c: Don't include euidaccess.h.
45375         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
45376         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
45377         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
45378         and HAVE_EUIDACCESS.
45379         * modules/euidaccess (Files): Remove lib/euidaccess.h.
45380         (Depends-on): Add unistd.
45381         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
45382         (Include): Specify <unistd.h> instead of euidaccess.h.
45383         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
45384         HAVE_EUIDACCESS.
45385         * NEWS: Mention the change.
45386
45387 2008-10-18  Bruno Haible  <bruno@clisp.org>
45388
45389         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
45390
45391         Move the getdomainname() declaration to <unistd.h>.
45392         * lib/getdomainname.h: Remove file.
45393         * lib/unistd.in.h (getdomainname): New declaration.
45394         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
45395         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
45396         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
45397         HAVE_GETDOMAINNAME.
45398         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
45399         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
45400         * modules/getdomainname (Files): Remove lib/getdomainname.h.
45401         (Depends-on): Add unistd, extensions.
45402         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
45403         (Includes): Specify <unistd.h> instead of getdomainname.h.
45404         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
45405         HAVE_GETDOMAINNAME.
45406         * NEWS: Mention the change.
45407
45408 2008-10-18  Bruno Haible  <bruno@clisp.org>
45409
45410         * modules/dirent: New file.
45411         * m4/dirent_h.m4: New file.
45412         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
45413         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
45414         * modules/fchdir (Files): Remove lib/dirent.in.h.
45415         (Depends-on): Add dirent.
45416         (Makefile.am): Move rules to modules/dirent.
45417         * doc/posix-headers/dirent.texi: Mention the new module.
45418
45419 2008-10-18  Bruno Haible  <bruno@clisp.org>
45420
45421         Avoid -Wunused-parameter warnings in public gnulib header files.
45422         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
45423         macro.
45424         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
45425
45426 2008-10-18  Bruno Haible  <bruno@clisp.org>
45427
45428         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
45429         * doc/glibc-functions/error.texi: Mention the module 'error'.
45430         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
45431         * doc/glibc-functions/getdomainname.texi: Mention the module
45432         'getdomainname'.
45433         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
45434         * doc/glibc-functions/getpagesize.texi: Mention the module
45435         'getpagesize'.
45436         * doc/glibc-functions/getusershell.texi: Mention the module
45437         'getusershell'.
45438         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
45439         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
45440         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
45441         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
45442         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
45443         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
45444         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
45445         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
45446         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
45447         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
45448         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
45449         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
45450         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
45451         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
45452
45453 2008-10-17  Bruno Haible  <bruno@clisp.org>
45454
45455         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
45456         HP-UX and IRIX, use -0.0L.
45457         * tests/test-ceill.c (minus_zero): Likewise.
45458         * tests/test-floorl.c (minus_zero): Likewise.
45459         * tests/test-frexpl.c (minus_zero): Likewise.
45460         * tests/test-isnan.c (minus_zerol): Likewise.
45461         * tests/test-isnanl.h (minus_zero): Likewise.
45462         * tests/test-ldexpl.c (minus_zero): Likewise.
45463         * tests/test-roundl.c (minus_zero): Likewise.
45464         * tests/test-signbit.c (minus_zerol): Likewise.
45465         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
45466         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
45467         * tests/test-truncl.c (minus_zero): Likewise.
45468         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
45469         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
45470         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
45471         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
45472
45473 2008-10-17  Bruno Haible  <bruno@clisp.org>
45474
45475         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
45476         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
45477         that it gets activated only for gcc >= 3.0.
45478         * lib/dirent.in.h: Likewise.
45479         * lib/errno.in.h: Likewise.
45480         * lib/fcntl.in.h: Likewise.
45481         * lib/float.in.h: Likewise.
45482         * lib/iconv.in.h: Likewise.
45483         * lib/inttypes.in.h: Likewise.
45484         * lib/locale.in.h: Likewise.
45485         * lib/math.in.h: Likewise.
45486         * lib/netdb.in.h: Likewise.
45487         * lib/netinet_in.in.h: Likewise.
45488         * lib/search.in.h: Likewise.
45489         * lib/signal.in.h: Likewise.
45490         * lib/spawn.in.h: Likewise.
45491         * lib/stdarg.in.h: Likewise.
45492         * lib/stdint.in.h: Likewise.
45493         * lib/stdio.in.h: Likewise.
45494         * lib/stdlib.in.h: Likewise.
45495         * lib/string.in.h: Likewise.
45496         * lib/strings.in.h: Likewise.
45497         * lib/sys_file.in.h: Likewise.
45498         * lib/sys_ioctl.in.h: Likewise.
45499         * lib/sys_select.in.h: Likewise.
45500         * lib/sys_socket.in.h: Likewise.
45501         * lib/sys_stat.in.h: Likewise.
45502         * lib/sys_time.in.h: Likewise.
45503         * lib/sysexits.in.h: Likewise.
45504         * lib/time.in.h: Likewise.
45505         * lib/unistd.in.h: Likewise.
45506         * lib/wchar.in.h: Likewise.
45507         * lib/wctype.in.h: Likewise.
45508         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
45509
45510 2008-10-17  Jim Meyering  <meyering@redhat.com>
45511
45512         ignore-value: don't depend on inline module
45513         * modules/ignore-value (Depends-on): Remove 'inline'.
45514         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
45515         Suggestion from Bruno Haible.
45516
45517 2008-10-17  Bruno Haible  <bruno@clisp.org>
45518
45519         New implementation of condition variables for Win32.
45520         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
45521         (gl_linked_waitqueue_t): New type.
45522         (gl_cond_t): Use it.
45523         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
45524         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
45525         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
45526         (glthread_cond_init_func, glthread_cond_wait_func,
45527         glthread_cond_timedwait_func, glthread_cond_signal_func,
45528         glthread_cond_broadcast_func, glthread_cond_destroy_func):
45529         Reimplemented on the basis of gl_linked_waitqueue_t.
45530         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
45531         gl_waitqueue_t.
45532         (gl_rwlock_t): Update.
45533         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
45534
45535 2008-10-17  Simon Josefsson  <simon@josefsson.org>
45536
45537         * modules/recvfrom (Depends-on): Add dependency on getpeername.
45538         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
45539
45540 2008-10-17  Jim Meyering  <meyering@redhat.com>
45541
45542         ignore-value: new module
45543         * modules/ignore-value: New file.
45544         * lib/ignore-value.h: New file.
45545         * MODULES.html.sh (Compiler warning management): New section,
45546         just for this module.  More to come.
45547
45548 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
45549
45550         open-safer.c: avoid 'signed and unsigned in conditional...' warning
45551         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
45552         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
45553
45554 2008-10-16  Jim Meyering  <meyering@redhat.com>
45555
45556         openat-die.c: avoid 'no previous prototype' warning
45557         * lib/openat-die.c: Include "openat.h".
45558         Reported by Reuben Thomas <rrt@sc3d.org>.
45559
45560 2008-10-16  Simon Josefsson  <simon@josefsson.org>
45561
45562         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
45563         * lib/netdb.in.h: Fix typo.
45564         Reported by Bruno Haible  <bruno@clisp.org>
45565
45566         * lib/netdb.in.h: Include sys/socket.h for platforms without
45567         netdb.h, to get structures like hostent on MinGW.
45568         * modules/netdb (Depends-on): Add sys_socket.
45569
45570 2008-10-15  Simon Josefsson  <simon@josefsson.org>
45571
45572         * modules/netdb, modules/netdb-tests: New file.
45573         * m4/netdb_h.m4: New file.
45574         * lib/netdb.in.h: Add, currently just an empty file pending
45575         definitions.
45576         * tests/test-netdb.c: New file.
45577         * doc/posix-headers/netdb.texi: Mention that we replace it if
45578         needed.
45579         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
45580         netdb.
45581
45582 2008-10-15  Simon Josefsson  <simon@josefsson.org>
45583
45584         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
45585         with code.
45586
45587 2008-10-13  Bruno Haible  <bruno@clisp.org>
45588
45589         * lib/glthread/cond.c (glthread_cond_wait_func,
45590         glthread_cond_timedwait_func): Add a comment.
45591
45592 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
45593
45594         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
45595         * tests/test-select.c: Likewise,
45596
45597 2008-10-13  Bruno Haible  <bruno@clisp.org>
45598
45599         * lib/glthread/cond.c (glthread_cond_wait_func,
45600         glthread_cond_timedwait_func): Fix variable name.
45601         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
45602
45603 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
45604
45605         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
45606         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
45607         struct sockaddr.sa_len.
45608         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
45609
45610 2008-10-13  Simon Josefsson  <simon@josefsson.org>
45611
45612         * build-aux/pmccabe2html: Add css and css_url parameters.
45613
45614 2008-10-12  Bruno Haible  <bruno@clisp.org>
45615
45616         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
45617         calling aclx_get.
45618         Reported by Rainer Tammer <tammer@tammer.net>.
45619
45620 2008-10-12  Bruno Haible  <bruno@clisp.org>
45621
45622         Use msvcrt aware primitives for creation/termination of Win32 threads.
45623         * lib/glthread/thread.c: Include <process.h>.
45624         (glthread_create_func): Use _beginthreadex instead of CreateThread.
45625         (wrapper_func): Update signature.
45626         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
45627
45628 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
45629             Bruno Haible  <bruno@clisp.org>
45630
45631         Provide a Win32 implementation of the 'cond' module.
45632         * lib/glthread/cond.h [USE_WIN32]: New implementation.
45633         * lib/glthread/cond.c (glthread_cond_init_func,
45634         glthread_cond_wait_func, glthread_cond_timedwait_func,
45635         glthread_cond_signal_func, glthread_cond_broadcast_func,
45636         glthread_cond_destroy_func) [USE_WIN32]: New functions.
45637         * modules/cond (Dependencies): Add gettimeofday.
45638
45639 2008-10-11  Bruno Haible  <bruno@clisp.org>
45640
45641         Make sleep work on older versions of mingw.
45642         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
45643         only whether it exists.
45644         * doc/posix-functions/sleep.texi: Mention the problem with older
45645         versions of mingw.
45646
45647 2008-10-11  Bruno Haible  <bruno@clisp.org>
45648
45649         New module 'shutdown'.
45650         * modules/shutdown: New file.
45651         * lib/sys_socket.in.h (shutdown): New declaration.
45652         * lib/winsock.c (shutdown): New function.
45653         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
45654         GNULIB_SHUTDOWN.
45655         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
45656         * doc/posix-functions/shutdown.texi: Document the new module.
45657
45658 2008-10-11  Jim Meyering  <meyering@redhat.com>
45659
45660         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
45661
45662 2008-10-11  Bruno Haible  <bruno@clisp.org>
45663
45664         New module 'fclose'.
45665         * modules/fclose: New file.
45666         * lib/stdio.in.h (fclose): New declaration.
45667         * lib/fclose.c: New file.
45668         * m4/fclose.m4: New file.
45669         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
45670         REPLACE_FCLOSE.
45671         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
45672         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
45673         REPLACE_FCLOSE.
45674         * modules/close (Depends-on): fclose.
45675         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
45676
45677 2008-10-11  Bruno Haible  <bruno@clisp.org>
45678
45679         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
45680         set errno and don't call _close.
45681
45682 2008-10-10  Bruno Haible  <bruno@clisp.org>
45683
45684         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
45685         ACL, not afterwards. Fixes test failure on Cygwin.
45686
45687 2008-10-09  Ben Pfaff  <blp@gnu.org>
45688
45689         * build-aux/announce-gen: Fix gnulib version related part of usage
45690         message.  Die with a useful error message if no tarballs are
45691         found.
45692
45693 2008-10-10  Jim Meyering  <meyering@redhat.com>
45694
45695         bootstrap: use git's --depth=N option only if it's supported
45696         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
45697         recognize the --depth option.  Reported by Pádraig Brady.
45698
45699 2008-10-09  Bruno Haible  <bruno@clisp.org>
45700
45701         New module 'ioctl'.
45702         * modules/ioctl: New file.
45703         * lib/sys_socket.in.h (ioctl): Remove declaration.
45704         * lib/winsock.c: Include <sys/ioctl.h>.
45705         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
45706         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
45707         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
45708         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
45709         * doc/posix-functions/ioctl.texi: Mention the new module.
45710
45711 2008-10-09  Bruno Haible  <bruno@clisp.org>
45712
45713         New module 'sys_ioctl'.
45714         * lib/sys_ioctl.in.h: New file.
45715         * m4/sys_ioctl_h.m4: New file.
45716         * modules/sys_ioctl: New file.
45717         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
45718
45719 2008-10-09  Bruno Haible  <bruno@clisp.org>
45720
45721         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
45722         * lib/winsock.c: Include <stdarg.h>.
45723         (rpl_ioctl): Change to second argument 'int' and then varargs.
45724
45725 2008-10-09  Bruno Haible  <bruno@clisp.org>
45726
45727         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
45728         when the sys_socket module is present and the system has <winsock2.h>.
45729
45730 2008-10-09  Bruno Haible  <bruno@clisp.org>
45731
45732         * doc/posix-functions/close.texi: Mention module 'close' instead of
45733         module 'sys_socket'.
45734
45735 2008-10-09  Bruno Haible  <bruno@clisp.org>
45736
45737         * doc/glibc-headers/sys_ioctl.texi: New file.
45738         * doc/gnulib.texi: Include it.
45739
45740 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
45741             Bruno Haible  <bruno@clisp.org>
45742
45743         Combine the two replacements of 'close'.
45744         * lib/sys_socket.in.h (close): Define to a reminder to include
45745         <unistd.h>.
45746         (_gl_close_fd_maybe_socket): New declaration.
45747         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
45748         * lib/winsock.c (close): Remove undefinition.
45749         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
45750         needed for the gnulib module 'close'.
45751         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
45752         define to an error symbol or to a warning, if suitable.
45753         * lib/close.c: Include <sys/socket.h>.
45754         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
45755         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
45756         UNISTD_H_HAVE_WINSOCK2_H.
45757         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
45758         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
45759         UNISTD_H_HAVE_WINSOCK2_H.
45760         * modules/sys_socket (Files): Add m4/unistd_h.m4.
45761         (configure.ac): Set a module indicator.
45762         (Makefile.am): Substitute GNULIB_CLOSE.
45763         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
45764         * modules/poll-tests (Depends-on): Add close.
45765         * modules/select-tests (Depends-on): Likewise.
45766
45767 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
45768             Bruno Haible  <bruno@clisp.org>
45769
45770         New module 'close'.
45771         * modules/close: New file.
45772         * lib/unistd.in.h (close): Move declaration out of the
45773         FCHDIR_REPLACEMENT scope.
45774         (_gl_unregister_fd): New declaration.
45775         * lib/close.c: New file.
45776         * lib/fchdir.c (rpl_close): Remove function.
45777         * m4/close.m4: New file.
45778         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
45779         close.
45780         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
45781         REPLACE_CLOSE.
45782         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
45783         REPLACE_CLOSE.
45784         * modules/fchdir (Depends-on): Add close.
45785
45786 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
45787             Bruno Haible  <bruno@clisp.org>
45788
45789         * lib/fcntl.in.h (open): Simplify conditionals.
45790         (_gl_register_fd): New declaration.
45791         * lib/fchdir.c (rpl_open): Remove function.
45792         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
45793         also.
45794         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
45795         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
45796         open.
45797
45798 2008-10-09  Jim Meyering  <meyering@redhat.com>
45799
45800         GNUmakefile: use the more name-space-friendly "_version"
45801         * top/GNUmakefile (_dummy): Update.
45802         (_version): Rename from "version".
45803
45804 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
45805             Bruno Haible  <bruno@clisp.org>
45806
45807         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
45808         rpl_close.
45809         (_gl_register_fd): New function, extracted from rpl_open.
45810         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
45811         (rpl_open, rpl_opendir): Use _gl_register_fd.
45812
45813 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
45814
45815         Fix organization of 'open' replacement.
45816         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
45817         (gl_FUNC_OPEN): Use it.
45818         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
45819
45820 2008-10-08  Bruno Haible  <bruno@clisp.org>
45821
45822         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
45823
45824 2008-10-08  Simon Josefsson  <simon@josefsson.org>
45825
45826         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
45827         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
45828         listen).
45829
45830 2008-10-08  Eric Blake  <ebb9@byu.net>
45831
45832         GNUmakefile: add 'make version' target
45833         * top/GNUmakefile (_curr-ver): Split version update rules...
45834         (version): ...into a target.
45835
45836 2008-10-07  Bruno Haible  <bruno@clisp.org>
45837
45838         Use a more portable replacement expression for -0.0L.
45839         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
45840         instead of -0.0L. Fix m4 quotation.
45841
45842         * tests/test-signbit.c: Include <float.h>.
45843         (minus_zero): New variable.
45844         (test_signbitl): Use minus_zero instead of -zero.
45845         * modules/signbit-tests (Depends-on): Add float.
45846
45847         * tests/test-ceill.c: Include <float.h>.
45848         (zero): Remove variable.
45849         (minus_zero): New variable.
45850         (main): Use minus_zero instead of -zero.
45851         * modules/ceill-tests (Depends-on): Add float.
45852
45853         * tests/test-floorl.c: Include <float.h>.
45854         (zero): Remove variable.
45855         (minus_zero): New variable.
45856         (main): Use minus_zero instead of -zero.
45857         * modules/floorl-tests (Depends-on): Add float.
45858
45859         * tests/test-roundl.c: Include <float.h>.
45860         (zero): Remove variable.
45861         (minus_zero): New variable.
45862         (main): Use minus_zero instead of -zero.
45863         * modules/roundl-tests (Depends-on): Add float.
45864
45865         * tests/test-truncl.c: Include <float.h>.
45866         (zero): Remove variable.
45867         (minus_zero): New variable.
45868         (main): Use minus_zero instead of -zero.
45869         * modules/truncl-tests (Depends-on): Add float.
45870
45871         * tests/test-frexpl.c (zero): Remove variable.
45872         (minus_zero): New variable.
45873         (main): Use minus_zero instead of -zero.
45874         * modules/frexpl-tests (Depends-on): Add float.
45875
45876         * tests/test-isnan.c (zerol): Remove variable.
45877         (minus_zerol): New variable.
45878         (test_long_double): Use minus_zerol instead of -zerol.
45879         * modules/isnan-tests (Depends-on): Add float.
45880
45881         * tests/test-isnanl.h (zero): Remove variable.
45882         (minus_zero): New variable.
45883         (main): Use minus_zero instead of -zero.
45884         * modules/isnanl-nolibm-tests (Depends-on): Add float.
45885         * modules/isnanl-tests (Depends-on): Add float.
45886
45887         * tests/test-ldexpl.c (zero): Remove variable.
45888         (minus_zero): New variable.
45889         (main): Use minus_zero instead of -zero.
45890         * modules/ldexpl-tests (Depends-on): Add float.
45891
45892         * tests/test-snprintf-posix.h (zerol): Remove variable.
45893         (minus_zerol): New variable.
45894         (test_function): Use minus_zerol instead of -zerol.
45895         * modules/snprintf-posix-tests (Depends-on): Add float.
45896         * modules/vsnprintf-posix-tests (Depends-on): Add float.
45897
45898         * tests/test-sprintf-posix.h (zerol): Remove variable.
45899         (minus_zerol): New variable.
45900         (test_function): Use minus_zerol instead of -zerol.
45901         * modules/sprintf-posix-tests (Depends-on): Add float.
45902         * modules/vsprintf-posix-tests (Depends-on): Add float.
45903
45904         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
45905         (minus_zerol): New variable.
45906         (test_function): Use minus_zerol instead of -zerol.
45907         * modules/vasnprintf-posix-tests (Depends-on): Add float.
45908
45909         * tests/test-vasprintf-posix.c (zerol): Remove variable.
45910         (minus_zerol): New variable.
45911         (test_function): Use minus_zerol instead of -zerol.
45912         * modules/vasprintf-posix-tests (Depends-on): Add float.
45913
45914 2008-10-07  Simon Josefsson  <simon@josefsson.org>
45915
45916         * MODULES.html.sh (Support for building documentation): Mention
45917         pmccabe2html.  Sort entries.
45918
45919         Add pmccabe2html module, from gnupdf.
45920         * build-aux/pmccabe.css: New file.
45921         * build-aux/pmccabe2html: New file.
45922         * m4/pmccabe2html.m4: New file.
45923         * modules/pmccabe2html: New file.
45924
45925 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
45926
45927         flock: new module
45928         * MODULES.html.sh: Add to list of modules.
45929         * lib/flock.c: flock implementation for Windows and Unix systems
45930         which have fcntl.
45931         * doc/glibc-functions/flock.texi: Update documentation.
45932         * lib/sys_file.in.h: <sys/file.h> header file.
45933         * m4/flock.m4: M4 macros.
45934         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
45935         * modules/flock: flock module.
45936         * modules/flock-tests: flock tests module.
45937         * modules/sys_file: sys/file.h module.
45938         * tests/test-flock.c: test suite for flock.
45939
45940 2008-10-06  Jim Meyering  <meyering@redhat.com>
45941
45942         bootstrap: check for LT_INIT more portably still ;-)
45943         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
45944         Spotted by Bruno Haible.
45945
45946 2008-10-06  Eric Blake  <ebb9@byu.net>
45947
45948         test-signbit: avoid tripping Irix cc bug on -0.0L
45949         * tests/test-signbit.c (minus_zerol): Delete, and replace with
45950         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
45951         entire testsuite consistent and avoids an Irix 6.2 bug.
45952
45953 2008-10-05  Bruno Haible  <bruno@clisp.org>
45954             Jim Meyering  <jim@meyering.net>
45955
45956         Add an option for ignoring EPIPE during close_stdout.
45957         * lib/closeout.h: Include <stdbool.h>.
45958         (close_stdout_set_ignore_EPIPE): New declaration.
45959         * lib/closeout.c: Include <stdbool.h>.
45960         (ignore_EPIPE): New variable.
45961         (close_stdout_set_ignore_EPIPE): New function.
45962         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
45963         * lib/close-stream.c (close_stream): Mention the possible EPIPE
45964         failure.
45965         * modules/closeout (Depends-on): Add stdbool.
45966
45967 2008-10-05  Bruno Haible  <bruno@clisp.org>
45968
45969         * modules/accept: New file.
45970         * modules/bind: New file.
45971         * modules/connect: New file.
45972         * modules/getpeername: New file.
45973         * modules/getsockname: New file.
45974         * modules/getsockopt: New file.
45975         * modules/listen: New file.
45976         * modules/recv: New file.
45977         * modules/recvfrom: New file.
45978         * modules/send: New file.
45979         * modules/sendto: New file.
45980         * modules/setsockopt: New file.
45981         * modules/socket: New file.
45982         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
45983         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
45984         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
45985         the particular module is requested. Add a link warning when the
45986         particular module is not requested.
45987         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
45988         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
45989         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
45990         the particular module is requested.
45991         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
45992         gl_SYS_SOCKET_H_DEFAULTS): New macros.
45993         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
45994         * modules/sys_socket (Depends-on): Add link-warning.
45995         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
45996         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
45997         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
45998         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
45999         GL_LINK_WARNING.
46000         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
46001         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
46002         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
46003         * doc/posix-functions/getpeername.texi: Mention the new module
46004         'getpeername'.
46005         * doc/posix-functions/getsockname.texi: Mention the new module
46006         'getsockname'.
46007         * doc/posix-functions/getsockopt.texi: Mention the new module
46008         'getsockopt'.
46009         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
46010         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
46011         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
46012         * doc/posix-functions/send.texi: Mention the new module 'send'.
46013         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
46014         * doc/posix-functions/setsockopt.texi: Mention the new module
46015         'setsockopt'.
46016         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
46017         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
46018         listen, connect, accept.
46019         * modules/select-tests (Depends-on): Likewise.
46020
46021 2008-10-05  Bruno Haible  <bruno@clisp.org>
46022
46023         * lib/winsock.c (strerror): Remove unused #undef.
46024         (rpl_close): Remove unused local variable.
46025
46026         * modules/sys_socket (Depends-on); Add errno.
46027
46028 2008-10-05  Bruno Haible  <bruno@clisp.org>
46029
46030         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
46031         (select): Add a link warning when the 'select' module is not used.
46032         * modules/sys_select (Depends-on): Add link-warning.
46033         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
46034         Suggested by Paolo Bonzini.
46035
46036 2008-10-05  Jim Meyering  <meyering@redhat.com>
46037
46038         bootstrap: check for LT_INIT more portably
46039         * build-aux/bootstrap: Avoid using grep -E, since it's not
46040         portable enough.  Suggestion from Bruno Haible.
46041
46042 2008-10-05  Bruno Haible  <bruno@clisp.org>
46043
46044         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
46045         as being fixed by gnulib.
46046
46047 2008-10-05  Bruno Haible  <bruno@clisp.org>
46048
46049         * modules/select-tests: New file, mostly copied from
46050         modules/sys_select-tests.
46051         * tests/test-select.c: New file, mostly copied from
46052         tests/test-sys_select.c.
46053         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
46054         * modules/sys_select-tests (Depends-on): Remove all dependencies.
46055         (Makefile.am): Remove test_sys_select_LDADD.
46056
46057         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
46058         to an undefined symbol, for an error message.
46059         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
46060         (gl_SYS_SELECT_H_DEFAULTS): New macro.
46061         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
46062         winsock-select.c here.
46063         * modules/sys_select (Files): Remove lib/winsock-select.c.
46064         (Depends-on): Remove alloca.
46065         (Makefile.am): Substitute GNULIB_SELECT.
46066         * modules/select: New file.
46067         * doc/posix-functions/select.texi: Update.
46068
46069 2008-10-05  Bruno Haible  <bruno@clisp.org>
46070
46071         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
46072         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
46073         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
46074         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
46075         getdtablesize.
46076         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
46077         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
46078
46079 2008-10-05  Bruno Haible  <bruno@clisp.org>
46080
46081         * modules/getdtablesize-tests: New file.
46082         * tests/test-getdtablesize.c: New file.
46083
46084         New module 'getdtablesize'.
46085         * lib/unistd.in.h (getdtablesize): New declaration.
46086         * lib/getdtablesize.c: New file.
46087         * m4/getdtablesize.m4: New file.
46088         * modules/getdtablesize: New file.
46089         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
46090         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
46091         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
46092         HAVE_GETDTABLESIZE.
46093         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
46094
46095 2008-10-05  Bruno Haible  <bruno@clisp.org>
46096
46097         * modules/sched (Makefile.am): Fix typo.
46098         Reported by Simon Josefsson.
46099
46100 2008-10-05  Jim Meyering  <meyering@redhat.com>
46101
46102         bootstrap: check for LT_INIT, too
46103         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
46104         are deprecated.  Suggestion from Ralf Wildenhues.
46105
46106 2008-10-05  Bruno Haible  <bruno@clisp.org>
46107
46108         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
46109         overriding them by ours.
46110         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
46111
46112 2008-10-05  Jim Meyering  <meyering@redhat.com>
46113
46114         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
46115         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
46116         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
46117
46118 2008-10-04  Bruno Haible  <bruno@clisp.org>
46119
46120         * modules/dup2 (License): Change to LGPLv2+.
46121         * modules/sleep (License): Likewise.
46122         * modules/perror (License): Likewise.
46123         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
46124         Blake.
46125         * modules/signal (License): Likewise.
46126         * modules/sigprocmask (License): Likewise.
46127         * modules/raise (License): Change to LGPLv2+, with approval by Jim
46128         Meyering.
46129
46130 2008-10-04  Bruno Haible  <bruno@clisp.org>
46131
46132         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
46133         Reported by Rainer Tammer <tammer@tammer.net>.
46134
46135 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
46136             Bruno Haible  <bruno@clisp.org>
46137
46138         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
46139         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
46140         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
46141
46142 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
46143
46144         filevercmp: new module
46145         * lib/filevercmp.h: New function filevercmp comparing version strings.
46146         * lib/filevercmp.c: Implementation of filevercmp function.
46147         * modules/filevercmp: Module metadata.
46148         * tests/test-filevercmp.c: Unit test for new module.
46149         * modules/filevercmp-tests: Unit test metadata.
46150         * MODULES.html.sh: Add filevercmp module.
46151
46152 2008-10-03  Bruno Haible  <bruno@clisp.org>
46153
46154         * lib/c-ctype.h: Add comment.
46155         Reported by Jim Meyering.
46156
46157 2008-10-02  Bruno Haible  <bruno@clisp.org>
46158
46159         * modules/posix_spawn-internal (Depends-on): Add 'open'.
46160
46161 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
46162
46163         * build-aux/bootstrap: Allow renaming bootstrap, and change the
46164         name of bootstrap.conf accordingly.
46165
46166 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
46167
46168         * build-aux/bootstrap: Install git-merge-changelog configuration
46169         items into .gitconfig if needed.
46170
46171 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
46172
46173         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
46174         git repository, and initialize/update it accordingly.
46175
46176 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
46177
46178         * modules/fsync-tests: New file.
46179         * tests/test-fsync.c: New file.
46180
46181         New module 'fsync'.
46182         * lib/fsync.c: New file.
46183         * m4/fsync.m4: New file.
46184         * modules/fsync: New file.
46185         * lib/unistd.in.h (fsync): New declaration.
46186         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
46187         GNULIB_FSYNC and HAVE_FSYNC.
46188         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
46189         * MODULES.html.sh (posix_functions): Add fsync.
46190         * doc/posix-functions/fsync.texi: Mention the new module.
46191
46192 2008-10-02  Jim Meyering  <meyering@redhat.com>
46193
46194         fts.c: sync with similar code from coreutils' remove.c
46195         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
46196         Guard also with "#if defined __linux__", since for now at least,
46197         this code is Linux-kernel-specific.
46198
46199 2008-10-02  Jim Meyering  <meyering@redhat.com>
46200
46201         fts: bug fixes
46202         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
46203         Include <sys/vfs.h>, not <sys/statfs.h>.
46204
46205         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
46206         Include <sys/vfs.h>, not <sys/statfs.h>.
46207
46208 2008-10-01  Bruno Haible  <bruno@clisp.org>
46209
46210         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
46211         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
46212         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
46213         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
46214         * doc/posix-functions/posix_spawnp.texi: Likewise.
46215         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
46216         whether posix_spawn actually works.
46217         * m4/pipe.m4 (gl_PIPE): Likewise.
46218         * modules/execute (Files): Add m4/posix_spawn.m4.
46219         * modules/pipe (Files): Add m4/posix_spawn.m4.
46220         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
46221
46222 2008-10-01  Jim Meyering  <meyering@redhat.com>
46223
46224         remove trailing spaces
46225         * NEWS: Likewise.
46226         * lib/poll.c (poll): Likewise.
46227         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
46228         * lib/winsock.c (rpl_close): Likewise.
46229         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
46230         * modules/yield: Likewise.
46231         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
46232         * tests/test-sys_select.c (connect_to_socket): Likewise.
46233
46234         fts.c: adjust a new interface to be more generally useful
46235         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
46236         (fts_build): Adjust caller.
46237
46238 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46239
46240         * modules/cond-tests: New file.
46241         * tests/test-cond.c: New file.
46242
46243 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46244             Bruno Haible  <bruno@clisp.org>
46245
46246         * modules/cond (Dependencies): Add errno, time.
46247         * lib/glthread/cond.h: Include <time.h>.
46248         (gl_cond_define, gl_cond_define_initialized): Use the same definition
46249         across platforms.
46250
46251 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46252             Bruno Haible  <bruno@clisp.org>
46253
46254         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
46255
46256 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46257             Bruno Haible  <bruno@clisp.org>
46258
46259         * modules/tls-tests (Depends-on): Add thread, yield.
46260         (configure.ac): Remove all checks.
46261         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
46262         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
46263         gl_thread_self): Remove definitions. Include glthread/thread.h and
46264         glthread/yield.h instead.
46265         (test_tls): Pass an additional NULL argument to gl_thread_join.
46266
46267 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46268             Bruno Haible  <bruno@clisp.org>
46269
46270         * modules/lock-tests (Depends-on): Add thread, yield.
46271         (configure.ac): Remove all checks.
46272         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
46273         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
46274         gl_thread_self): Remove definitions. Include glthread/thread.h and
46275         glthread/yield.h instead.
46276         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
46277         additional NULL argument to gl_thread_join.
46278
46279 2008-09-30  Bruno Haible  <bruno@clisp.org>
46280
46281         Fix the Win32 implementation of the 'thread' module.
46282         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
46283         pointer type.
46284         (gl_thread_self): Invoke gl_thread_self_func.
46285         (gl_thread_self_func): New declaration.
46286         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
46287         (do_init_self_key, init_self_key): New functions.
46288         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
46289         Remove some fields.
46290         (running_threads, running_lock): Remove variables.
46291         (get_current_thread_handle): New function.
46292         (gl_thread_self_func, wrapper_func, glthread_create_func,
46293         glthread_join_func, gl_thread_exit_func): Largely rewritten and
46294         simplified.
46295
46296 2008-09-30  Bruno Haible  <bruno@clisp.org>
46297
46298         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
46299         files.
46300
46301 2008-09-30  Jim Meyering  <meyering@redhat.com>
46302
46303         fts.m4: correct the test for statfs.f_type
46304         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
46305         when checking for statfs.f_type.
46306
46307 2008-09-15  Simon Josefsson  <simon@josefsson.org>
46308
46309         tests: avoid some compiler warnings
46310         * tests/test-memchr.c (main): Pass NULL indirectly.
46311         * tests/test-getdate.c (main): Remove unused variable 'ret'.
46312
46313 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
46314
46315         getdate.y: disallow countable dayshifts like "4 yesterday ago"
46316         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
46317         exactly specified dayshifts.
46318         (dayshift): New rule.
46319         (rel): Add dayshift.
46320         (relative_time_table) [tomorrow, yesterday, today, now]:
46321         Use tDAY_SHIFT in place of tDAY_UNIT.
46322         * tests/test-getdate.c: Add tests for now-disallowed countable
46323         dayshifts, e.g., "4 yesterday ago".
46324
46325 2008-09-29  Bruno Haible  <bruno@clisp.org>
46326
46327         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
46328         * tests/test-posix_spawn1.in.sh: Renamed from
46329         tests/test-posix_spawn.in.sh.
46330         * tests/test-posix_spawn2.c: New file.
46331         * tests/test-posix_spawn2.in.sh: New file.
46332         * modules/posix_spawnp-tests (Files): Update.
46333         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
46334
46335 2008-09-29  Bruno Haible  <bruno@clisp.org>
46336
46337         Propagate effects of putenv/setenv/unsetenv to child processes.
46338         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
46339         * lib/pipe.c (create_pipe): Likewise.
46340
46341 2008-09-29  Bruno Haible  <bruno@clisp.org>
46342
46343         Enable use of shell scripts as executables in mingw.
46344         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
46345         run the program as a shell script.
46346         * lib/pipe.c (create_pipe): Likewise.
46347         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
46348         resulting array.
46349
46350 2008-09-29  Eric Blake  <ebb9@byu.net>
46351
46352         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
46353
46354 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
46355
46356         * doc/posix-functions/accept.texi: Update mingw problems.
46357         * doc/posix-functions/bind.texi: Update mingw problems.
46358         * doc/posix-functions/close.texi: Update mingw problems.
46359         * doc/posix-functions/connect.texi: Update mingw problems.
46360         * doc/posix-functions/getpeername.texi: Update mingw problems.
46361         * doc/posix-functions/getsockname.texi: Update mingw problems.
46362         * doc/posix-functions/getsockopt.texi: Update mingw problems.
46363         * doc/posix-functions/ioctl.texi: Update mingw problems.
46364         * doc/posix-functions/listen.texi: Update mingw problems.
46365         * doc/posix-functions/recv.texi: Update mingw problems.
46366         * doc/posix-functions/recvfrom.texi: Update mingw problems.
46367         * doc/posix-functions/select.texi: Update mingw problems.
46368         * doc/posix-functions/send.texi: Update mingw problems.
46369         * doc/posix-functions/sendto.texi: Update mingw problems.
46370         * doc/posix-functions/setsockopt.texi: Update mingw problems.
46371         * doc/posix-functions/socket.texi: Update mingw problems.
46372
46373 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
46374             Bruno Haible  <bruno@clisp.org>
46375
46376         * lib/sys_select.in.h: Include sys/time.h.
46377         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
46378         * modules/sys_select: Depend on sys_time.
46379         * tests/test-sys_select.c: Test that sys/select.h defines struct
46380         timeval fully.
46381
46382 2008-09-29  Bruno Haible  <bruno@clisp.org>
46383
46384         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
46385         * lib/sys_select.in.h: Likewise.
46386
46387 2008-09-29  Bruno Haible  <bruno@clisp.org>
46388
46389         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
46390
46391 2008-09-29  Bruno Haible  <bruno@clisp.org>
46392
46393         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
46394         Set LIBSOCKET instead of augmenting LIBS.
46395         * modules/sockets (Link): New section.
46396         * modules/sockets-tests (test_sockets_LDADD): New variable.
46397         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
46398         * modules/poll-tests (test_poll_LDADD): New variable.
46399         * NEWS: Document the change.
46400
46401 2008-09-29  Bruno Haible  <bruno@clisp.org>
46402
46403         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
46404         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
46405         ARPA_INET_H directly.
46406         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
46407
46408 2008-09-28  Bruno Haible  <bruno@clisp.org>
46409
46410         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
46411         from gl_HEADER_SYS_SOCKET.
46412         (gl_HEADER_SYS_SOCKET): Invoke it.
46413         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
46414
46415 2008-09-28  Bruno Haible  <bruno@clisp.org>
46416
46417         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
46418         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
46419         Needed on OSF/1 4.0.
46420
46421 2008-09-28  Bruno Haible  <bruno@clisp.org>
46422
46423         Override open more carefully.
46424         * lib/open.c (orig_open): New function.
46425         (rpl_open): Use orig_open instead of open.
46426         * lib/fcntl.in.h: Add special invocation convention.
46427         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
46428         (gl_FUNC_OPEN): Invoke it.
46429
46430         Override freopen more carefully.
46431         * lib/freopen.c (orig_freopen): New function.
46432         (rpl_freopen): Use orig_freopen instead of freopen.
46433         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
46434         (gl_FUNC_FREOPEN): Invoke it.
46435
46436         Override fopen more carefully.
46437         * lib/fopen.c (orig_fopen): New function.
46438         (rpl_fopen): Use orig_fopen instead of fopen.
46439         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
46440         (gl_FUNC_FOPEN): Invoke it.
46441         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
46442
46443 2008-09-28  Bruno Haible  <bruno@clisp.org>
46444
46445         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
46446         SIGPIPE.
46447
46448 2008-09-28  Bruno Haible  <bruno@clisp.org>
46449
46450         * tests/test-sigaction.c (handler, main): Disable the check whether
46451         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
46452         glibc systems with LinuxThreads.
46453
46454 2008-09-28  Bruno Haible  <bruno@clisp.org>
46455
46456         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
46457
46458         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
46459         with AIX xlc.
46460         * lib/fcntl.in.h (open): Likewise.
46461         Reported by Rainer Tammer <tammer@tammer.net>.
46462
46463 2008-09-28  Bruno Haible  <bruno@clisp.org>
46464
46465         * modules/posix_spawnp-tests: New file.
46466         * tests/test-posix_spawn.c: New file.
46467         * tests/test-posix_spawn.in.sh: New file.
46468
46469         New module 'posix_spawnp'.
46470         * modules/posix_spawnp: New file.
46471         * lib/spawnp.c: New file, from GNU libc with modifications.
46472         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
46473
46474         New module 'posix_spawn'.
46475         * modules/posix_spawn: New file.
46476         * lib/spawn.c: New file, from GNU libc with modifications.
46477         * doc/posix-functions/posix_spawn.texi: Mention the new module.
46478
46479         New module 'posix_spawnattr_destroy'.
46480         * modules/posix_spawnattr_destroy: New file.
46481         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
46482         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
46483         module.
46484
46485         New module 'posix_spawnattr_setsigmask'.
46486         * modules/posix_spawnattr_setsigmask: New file.
46487         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
46488         modifications.
46489         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
46490         new module.
46491
46492         New module 'posix_spawnattr_getsigmask'.
46493         * modules/posix_spawnattr_getsigmask: New file.
46494         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
46495         modifications.
46496         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
46497         new module.
46498
46499         New module 'posix_spawnattr_setsigdefault'.
46500         * modules/posix_spawnattr_setsigdefault: New file.
46501         * lib/spawnattr_setdefault.c: New file, from GNU libc with
46502         modifications.
46503         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
46504         new module.
46505
46506         New module 'posix_spawnattr_getsigdefault'.
46507         * modules/posix_spawnattr_getsigdefault: New file.
46508         * lib/spawnattr_getdefault.c: New file, from GNU libc with
46509         modifications.
46510         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
46511         new module.
46512
46513         New module 'posix_spawnattr_setschedpolicy'.
46514         * modules/posix_spawnattr_setschedpolicy: New file.
46515         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
46516         modifications.
46517         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
46518         new module.
46519
46520         New module 'posix_spawnattr_getschedpolicy'.
46521         * modules/posix_spawnattr_getschedpolicy: New file.
46522         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
46523         modifications.
46524         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
46525         new module.
46526
46527         New module 'posix_spawnattr_setschedparam'.
46528         * modules/posix_spawnattr_setschedparam: New file.
46529         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
46530         modifications.
46531         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
46532         new module.
46533
46534         New module 'posix_spawnattr_getschedparam'.
46535         * modules/posix_spawnattr_getschedparam: New file.
46536         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
46537         modifications.
46538         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
46539         new module.
46540
46541         New module 'posix_spawnattr_setpgroup'.
46542         * modules/posix_spawnattr_setpgroup: New file.
46543         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
46544         modifications.
46545         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
46546         module.
46547
46548         New module 'posix_spawnattr_getpgroup'.
46549         * modules/posix_spawnattr_getpgroup: New file.
46550         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
46551         modifications.
46552         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
46553         module.
46554
46555         New module 'posix_spawnattr_setflags'.
46556         * modules/posix_spawnattr_setflags: New file.
46557         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
46558         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
46559         module.
46560
46561         New module 'posix_spawnattr_getflags'.
46562         * modules/posix_spawnattr_getflags: New file.
46563         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
46564         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
46565         module.
46566
46567         New module 'posix_spawnattr_init'.
46568         * modules/posix_spawnattr_init: New file.
46569         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
46570         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
46571         module.
46572
46573         New module 'posix_spawn_file_actions_destroy'.
46574         * modules/posix_spawn_file_actions_destroy: New file.
46575         * lib/spawn_faction_destroy.c: New file, from GNU libc with
46576         modifications.
46577         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
46578         the new module.
46579
46580         New module 'posix_spawn_file_actions_addopen'.
46581         * modules/posix_spawn_file_actions_addopen: New file.
46582         * lib/spawn_faction_addopen.c: New file, from GNU libc with
46583         modifications.
46584         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
46585         the new module.
46586
46587         New module 'posix_spawn_file_actions_adddup2'.
46588         * modules/posix_spawn_file_actions_adddup2: New file.
46589         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
46590         modifications.
46591         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
46592         the new module.
46593
46594         New module 'posix_spawn_file_actions_addclose'.
46595         * modules/posix_spawn_file_actions_addclose: New file.
46596         * lib/spawn_faction_addclose.c: New file, from GNU libc with
46597         modifications.
46598         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
46599         the new module.
46600
46601         New module 'posix_spawn_file_actions_init'.
46602         * modules/posix_spawn_file_actions_init: New file.
46603         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
46604         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
46605         new module.
46606
46607         New module 'posix_spawn-internal'.
46608         * modules/posix_spawn-internal: New file.
46609         * lib/spawn_int.h: New file, from GNU libc with modifications.
46610         * lib/spawni.c: New file, from GNU libc with modifications.
46611         * m4/posix_spawn.m4: New file.
46612
46613         New module 'spawn'.
46614         * modules/spawn: New file.
46615         * lib/spawn.in.h: New file, from GNU libc with modifications.
46616         * m4/spawn_h.m4: New file.
46617         * doc/posix-headers/spawn.texi: Mention the new module.
46618
46619 2008-09-28  Bruno Haible  <bruno@clisp.org>
46620
46621         * modules/sched-tests: New file.
46622         * tests/test-sched.c: New file.
46623
46624         New module 'sched'.
46625         * modules/sched: New file.
46626         * lib/sched.in.h: New file.
46627         * m4/sched_h.m4: New file.
46628         * doc/posix-headers/sched.texi: Mention the new module.
46629
46630 2008-09-27  Eric Blake  <ebb9@byu.net>
46631
46632         Fix previous patch, and tweak references to $0.
46633         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
46634         (func_version, func_gnulib_dir): Don't call this program
46635         gnulib-tool.
46636         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
46637         with using $0 in function.
46638         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
46639         (func_fatal_error): Reuse the name the user invoked us with.
46640
46641 2008-09-27  Bruno Haible  <bruno@clisp.org>
46642
46643         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
46644         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
46645         (gl_ICONV_H): Not here.
46646         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
46647         instead of assigning ICONV_H directly.
46648
46649         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
46650         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
46651         WCHAR_H directly.
46652
46653 2008-09-27  Bruno Haible  <bruno@clisp.org>
46654
46655         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
46656         * modules/arpa_inet (Depends-on): Add link-warning.
46657         (Makefile.am): Insert the definition of GL_LINK-WARNING.
46658         * modules/unistd (Makefile.am): Likewise.
46659
46660 2008-09-26  Bruno Haible  <bruno@clisp.org>
46661
46662         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
46663         variables.
46664         (func_version): Essentially copied from gnulib-tool.
46665         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
46666         func_readlink): Copied from gnulib-tool.
46667
46668 2008-09-26  Bruno Haible  <bruno@clisp.org>
46669
46670         * gnulib-tool (func_version): Change directory to $gnulib_dir before
46671         invoking git-version-gen.
46672
46673 2008-09-26  Bruno Haible  <bruno@clisp.org>
46674
46675         * posix-modules: Update to directory names changed on 2008-01-19.
46676         Remove commas in output before splitting into words. No more need to
46677         avoid 'ftruncate' since 2007-02-19.
46678
46679 2008-09-26  Bruno Haible  <bruno@clisp.org>
46680
46681         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
46682
46683 2008-09-26  Bruno Haible  <bruno@clisp.org>
46684
46685         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
46686         * modules/fwriteerror (Depends-on): Add errno.
46687
46688 2008-09-26  Bruno Haible  <bruno@clisp.org>
46689
46690         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
46691         * tests/test-vc-list-files-cvs.sh: Likewise.
46692
46693 2008-09-26  Bruno Haible  <bruno@clisp.org>
46694
46695         * doc/posix-headers/sys_resource.texi: Reorder items.
46696
46697 2008-09-26  Jim Meyering  <meyering@redhat.com>
46698
46699         fts: tweak inode comparison function
46700         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
46701         inode numbers, as documented.
46702
46703         fts: sort dirent entries on inode number before traversing
46704         This avoids a quadratic, seek-related performance penalty when
46705         operating on a directory containing many entries (measurable at 10k;
46706         3.5 hours at 2 million entries with a cold cache) on certain types
46707         of file systems, including ext3 and ext4, but not tmpfs.
46708         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
46709         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
46710         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
46711         (fs_handles_readdir_ordered_dirents_efficiently): New function.
46712         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
46713         (fts_build): Set the stat.st_ino member from D_INO.
46714         If it is likely to be useful, sort dirent entries on inode number.
46715
46716         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
46717         and the struct statfs.f_type member.
46718         * modules/fts (Depends-on): Add d-ino.
46719
46720 2008-09-26  Bruno Haible  <bruno@clisp.org>
46721
46722         * modules/sigpipe-die (Depends-on): Add sigpipe.
46723
46724         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
46725         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
46726         and GNULIB_STDIO_H_SIGPIPE are set.
46727         * lib/stdio-write.c: New file.
46728         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
46729         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
46730         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
46731         REPLACE_STDIO_WRITE_FUNCS.
46732         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
46733         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
46734         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
46735         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
46736         * modules/stdio (Files): Add lib/stdio-write.c.
46737         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
46738         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
46739         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
46740         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
46741         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
46742         REPLACE_FPRINTF_POSIX.
46743         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
46744         REPLACE_PRINTF_POSIX.
46745         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
46746         REPLACE_VFPRINTF_POSIX.
46747         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
46748         REPLACE_VPRINTF_POSIX.
46749         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
46750         SIGPIPE issue.
46751         * doc/posix-functions/fputc.texi: Likewise.
46752         * doc/posix-functions/fputs.texi: Likewise.
46753         * doc/posix-functions/fwrite.texi: Likewise.
46754         * doc/posix-functions/printf.texi: Likewise.
46755         * doc/posix-functions/putc.texi: Likewise.
46756         * doc/posix-functions/putchar.texi: Likewise.
46757         * doc/posix-functions/puts.texi: Likewise.
46758         * doc/posix-functions/vfprintf.texi: Likewise.
46759         * doc/posix-functions/vprintf.texi: Likewise.
46760
46761         * modules/safe-write (Depends-on): Add write.
46762
46763         * modules/sigpipe-tests: New file.
46764         * tests/test-sigpipe.c: New file.
46765         * tests/test-sigpipe.sh: New file.
46766
46767         * modules/write: New file.
46768         * lib/unistd.in.h: Include <sys/types.h>.
46769         (write): New declaration.
46770         * lib/write.c: New file.
46771         * m4/write.m4: New file.
46772         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
46773         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
46774         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
46775         GNULIB_WRITE, REPLACE_WRITE.
46776         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
46777         and the SIGPIPE issue.
46778
46779         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
46780         (raise): New declaration.
46781         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
46782         (ext_signal): New function.
46783         (rpl_raise): New function.
46784         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
46785         GNULIB_SIGNAL_H_SIGPIPE.
46786         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
46787         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
46788
46789         * modules/sigpipe: New file.
46790         * m4/sigpipe.m4: New file.
46791
46792 2008-09-25  Derek Price  <derek@ximbiot.com>
46793             Bruno Haible  <bruno@clisp.org>
46794
46795         * gnulib-tool (func_import): Report all license incompatibilities, not
46796         just the first one.
46797
46798 2008-09-25  Bruno Haible  <bruno@clisp.org>
46799
46800         * gnulib-tool (func_import): When computing the edits, consider not
46801         only the Makefile.ams that exist but also those that will be generated.
46802
46803 2008-09-25  Simon Josefsson  <simon@josefsson.org>
46804
46805         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
46806         fixes gnulib-tool --test warning about duplicate dependency.
46807
46808 2008-09-25  Bruno Haible  <bruno@clisp.org>
46809
46810         * gnulib-tool: Don't ask the user to perform edits in the generated
46811         Makefile.ams.
46812         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
46813         apply to the Makefile.am being generated.
46814         (func_emit_tests_Makefile_am): Execute edits that apply to the
46815         Makefile.am being generated.
46816         (func_import): Setup list of Makefile.am edits before emitting the
46817         Makefile.ams, not at the end.
46818         (func_create_testdir): Update.
46819         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
46820
46821 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46822
46823         * gnulib-tool (func_import): Store the --tests-base option in the
46824         comment in gnulib-cache.m4.
46825
46826 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
46827
46828         * NEWS: Document increased portability that sys_select now provides.
46829
46830         * lib/sys_select.in.h: Install select wrapper.
46831         * lib/sys_socket.in.h: Use more descriptive name when there is no
46832         select wrapper.
46833         * lib/winsock-select.c: New.
46834         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
46835         Require gl_HEADER_SYS_SOCKET.
46836         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
46837         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
46838         * tests/test-sys_select.c: Add functional tests.
46839
46840 2008-09-24  Eric Blake  <ebb9@byu.net>
46841
46842         open, fopen: close fd leak in last patch
46843         * lib/open.c (rpl_open): Close fd before returning error.
46844         * lib/fopen.c (rpl_fopen): Close fd before returning error.
46845         * doc/posix-functions/open.texi (open): Document that Irix also
46846         has the bug.
46847         * doc/posix-functions/fopen.texi (fopen): Likewise.
46848         Reported by Paolo Bonzini.
46849
46850 2008-09-24  Bruno Haible  <bruno@clisp.org>
46851
46852         Ensure that a filename ending in a slash cannot be used to access a
46853         non-directory.
46854         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
46855         to check whether it's really a directory.
46856         * lib/fopen.c: Include fcntl.h, unistd.h.
46857         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
46858         and fdopen().
46859         * modules/fopen (Depends-on): Add unistd.
46860         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
46861         * tests/test-fopen.c (main): Likewise.
46862         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
46863         * doc/posix-functions/fopen.texi: Likewise.
46864         Reported by Eric Blake.
46865
46866 2008-09-23  Eric Blake  <ebb9@byu.net>
46867
46868         c-stack: avoid compiler optimizations when provoking overflow
46869         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
46870         recursion harder to optimize, to ensure a stack overflow occurs.
46871         * tests/test-c-stack.c (recurse): Likewise.
46872         Borrowed from libsigsegv.
46873
46874         c-stack: work around Irix sigaltstack bug
46875         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
46876         whether sigaltstack uses wrong end of stack_t (copied in part from
46877         libsigsegv).
46878         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
46879         Irix bug, without requiring an over-allocation.
46880         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
46881         bug.
46882
46883         fopen: document mingw bug on directories
46884         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
46885         not allowing a stream visiting a directory, even though reading
46886         from such a stream is not portable.
46887
46888 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
46889
46890         * lib/poll.c: Rewrite.
46891         * modules/poll: Depend on alloca.
46892
46893 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
46894
46895         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
46896         instead define prototypes for a full set of wrappers.  Ensure
46897         that Cygwin does not use the compatibility code, which is only
46898         for MinGW.
46899         * lib/winsock.c: New.
46900         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
46901         * modules/sys_socket: Add lib/winsock.c.
46902
46903         * modules/poll-tests: Add errno and perror.
46904         * tests/test-poll.c: Use ioctl, not ioctlsocket.
46905
46906 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
46907
46908         * tests/test-poll.c: Downgrade minimum needed Winsock version.
46909
46910 2008-09-23  Bruno Haible  <bruno@clisp.org>
46911
46912         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
46913         * doc/glibc-functions/*: Likewise.
46914
46915 2008-09-23  Simon Josefsson  <simon@josefsson.org>
46916
46917         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
46918         success.
46919
46920 2008-09-22  Eric Blake  <ebb9@byu.net>
46921             Bruno Haible  <bruno@clisp.org>
46922
46923         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
46924         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
46925         supply %A but mishandle pseudo-NaN.
46926         Reported by Simon Josefsson.
46927
46928 2008-09-21  Bruno Haible  <bruno@clisp.org>
46929
46930         * tests/test-lock.c (main): Tweak skip message.
46931         * tests/test-tls.c (main): Likewise.
46932
46933 2008-09-21  Bruno Haible  <bruno@clisp.org>
46934
46935         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
46936         whether 'struct sigaction' has sa_sigaction here...
46937         (gl_PREREQ_SIG_HANDLER_H): ... not here.
46938         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
46939
46940 2008-09-21  Bruno Haible  <bruno@clisp.org>
46941
46942         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
46943         section.
46944         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
46945         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
46946         the new section.
46947         (Support for obsolete systems lacking POSIX:2001): New section.
46948         (String handling <string.h>): Move strdup to the new section.
46949         Suggested by Simon Josefsson and Paolo Bonzini.
46950
46951 2008-09-21  Bruno Haible  <bruno@clisp.org>
46952
46953         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
46954         exponents in %e and %g results on 'long double'. Needed for mingw's
46955         improved *printf functions.
46956         * tests/test-vasprintf-posix.c (test_function): Likewise.
46957         * tests/test-snprintf-posix.h (test_function): Likewise.
46958         * tests/test-sprintf-posix.h (test_function): Likewise.
46959         Reported by Eric Blake.
46960
46961 2008-09-21  Bruno Haible  <bruno@clisp.org>
46962
46963         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
46964         * tests/test-sprintf-posix.h (test_function): Likewise.
46965
46966 2008-09-21  Bruno Haible  <bruno@clisp.org>
46967
46968         * modules/getpass (Depends-on): Add strdup-posix.
46969
46970         New module 'strdup-posix'.
46971         * modules/strdup-posix: New file.
46972         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
46973         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
46974         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
46975         REPLACE_STRDUP.
46976         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
46977         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
46978         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
46979         strdup-posix.
46980
46981         * modules/strdup (Depends-on): Remove malloc-posix.
46982
46983 2008-09-20  Bruno Haible  <bruno@clisp.org>
46984
46985         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
46986         Wildenhues.
46987
46988 2008-09-20  Bruno Haible  <bruno@clisp.org>
46989
46990         Ensure that wint_t gets defined on IRIX 5.3.
46991         * lib/wchar.in.h (wint_t): Define if not defined by the system.
46992         * lib/wctype.in.h (wint_t): Likewise.
46993         (__wctype_wint_t): Remove type.
46994         (isw*): Use wint_t instead of __wctype_wint_t.
46995         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
46996         * modules/wchar (Files): Add m4/wint_t.m4.
46997         (Makefile.am): Substitute HAVE_WINT_T.
46998         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
46999         * tests/test-wctype.c: Check that wint_t is defined.
47000         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
47001         * doc/posix-headers/wctype.texi: Likewise.
47002         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
47003
47004 2008-09-18  Bruno Haible  <bruno@clisp.org>
47005
47006         * gnulib-tool (func_exit): Update comment.
47007
47008 2008-09-18  Simon Josefsson  <simon@josefsson.org>
47009
47010         * modules/getaddrinfo (Depends-on): Remove strdup, this module
47011         assumes strdup exists and does not depend on strdup to return
47012         ENOMEM on out of memory conditions.
47013
47014 2008-09-18  Bruno Haible  <bruno@clisp.org>
47015
47016         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
47017         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
47018         digits for the exponent.
47019
47020 2008-09-18  Jim Meyering  <meyering@redhat.com>
47021             Bruno Haible  <bruno@clisp.org>
47022
47023         * lib/vasnprintf.c (decimal_point_char): Define also if
47024         NEED_PRINTF_INFINITE_LONG_DOUBLE.
47025
47026 2008-09-16  Bruno Haible  <bruno@clisp.org>
47027         and Eric Blake  <ebb9@byu.net>
47028
47029         vasnprintf: support Irix 5.3
47030         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
47031         that mishandle long double infinity.
47032         Reported by Tom G. Christensen.
47033
47034 2008-09-16  Bruno Haible  <bruno@clisp.org>
47035
47036         * doc/glibc-functions/scandir.texi: Mention the function is missing on
47037         Solaris 9.
47038         * doc/glibc-functions/alphasort.texi: Likewise.
47039         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
47040
47041 2008-09-16  Jim Meyering  <meyering@redhat.com>
47042
47043         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
47044         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
47045         a umask modification leak out of a subshell.  Otherwise, the
47046         opensolaris /bin/sh would be accepted and thus cause unwarranted
47047         failures in the coreutils test suite.
47048
47049 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
47050
47051         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
47052         to succeed.
47053
47054 2008-09-16  Jim Meyering  <meyering@redhat.com>
47055
47056         avoid spurious test failure when library is built without ACL support
47057         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
47058         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
47059         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
47060         * tests/test-copy-acl.sh: Likewise.
47061
47062 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47063
47064         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
47065         based on character occurrence counts.
47066
47067 2008-09-15  Eric Blake  <ebb9@byu.net>
47068
47069         tests: avoid some compiler warnings
47070         * tests/test-memchr.c (main): Pass NULL indirectly.
47071         * tests/test-closein.c (main): Avoid unused variable.
47072
47073 2008-09-15  Bruno Haible  <bruno@clisp.org>
47074
47075         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
47076         are missing on OpenBSD 4.0 individually.
47077         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
47078
47079 2008-09-15  Bruno Haible  <bruno@clisp.org>
47080
47081         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
47082         * doc/posix-functions/strerror.texi: Mention also Cygwin.
47083         * doc/posix-functions/perror.texi: Likewise.
47084         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
47085         is missing.
47086         Reported by Eric Blake.
47087
47088         * lib/errno.in.h: Use replacement values >= 2000.
47089         Reported by Eric Blake.
47090
47091 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47092
47093         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
47094         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
47095         limit.
47096         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
47097         compareseq was aborted.
47098
47099 2008-09-14  Bruno Haible  <bruno@clisp.org>
47100
47101         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
47102         yvec_edit_count.
47103         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
47104         (fstrcmp_bounded): Simplify result computation accordingly.
47105
47106 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47107
47108         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
47109         (fstrcmp): Define in terms of fstrcmp_bounded.
47110         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
47111         lower_bound argument.
47112         Return quickly if the result is certainly < lower_bound.
47113         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
47114
47115 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47116
47117         * lib/diffseq.h (EARLY_ABORT): New macro.
47118         (compareseq): Change return type to bool. Return true when EARLY_ABORT
47119         evaluates to true.
47120
47121 2008-09-14  Bruno Haible  <bruno@clisp.org>
47122
47123         * modules/perror-tests: New file.
47124         * tests/test-perror.sh: New file.
47125         * tests/test-perror.c: New file.
47126
47127         New module 'perror'.
47128         * lib/stdio.in.h (perror): New declaration.
47129         * lib/perror.c: New file.
47130         * m4/perror.m4: New file.
47131         * modules/perror: New file.
47132         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
47133         * doc/posix-functions/perror.texi: Mention the perror module.
47134         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
47135         REPLACE_PERROR.
47136         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
47137         REPLACE_PERROR.
47138
47139 2008-09-14  Bruno Haible  <bruno@clisp.org>
47140
47141         * modules/stdio (Makefile.am): Reorder to match the order in
47142         lib/stdio.in.h.
47143         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
47144
47145 2008-09-13  Bruno Haible  <bruno@clisp.org>
47146
47147         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
47148
47149 2008-09-13  Bruno Haible  <bruno@clisp.org>
47150
47151         Extend strerror to cover the added errno values.
47152         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
47153         (rpl_strerror): Provide error messages for the added errno values and
47154         for the WSA* values.
47155         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
47156         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
47157         strerror.
47158         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
47159         * modules/strerror (Depends-on): Add errno.
47160         * doc/posix-functions/strerror.texi: Document the change.
47161         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
47162         and EOVERFLOW.
47163
47164 2008-09-13  Bruno Haible  <bruno@clisp.org>
47165
47166         * modules/EOVERFLOW: Remove file.
47167         * m4/eoverflow.m4: Remove file.
47168         * modules/EOVERFLOW-tests: Remove file.
47169         * tests/test-EOVERFLOW.c: Remove file.
47170         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
47171         * modules/ftell (Depends-on): Likewise.
47172         * modules/getdelim (Depends-on): Likewise.
47173         * modules/getugroups (Depends-on): Likewise.
47174         * modules/poll (Depends-on): Likewise.
47175         * modules/snprintf (Depends-on): Likewise.
47176         * modules/sprintf-posix (Depends-on): Likewise.
47177         * modules/vasnprintf (Depends-on): Likewise.
47178         * modules/vasprintf (Depends-on): Likewise.
47179         * modules/vfprintf-posix (Depends-on): Likewise.
47180         * modules/vsnprintf (Depends-on): Likewise.
47181         * modules/vsprintf-posix (Depends-on): Likewise.
47182         * modules/xvasprintf (Depends-on): Likewise.
47183         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
47184         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
47185         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
47186         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
47187         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
47188         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
47189         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
47190         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
47191         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
47192         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
47193         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
47194         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
47195         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
47196         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
47197         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
47198         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
47199         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
47200         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
47201         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
47202         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
47203         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
47204         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
47205         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
47206         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
47207         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
47208         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
47209         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
47210         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
47211         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
47212         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
47213         * MODULES.html.sh: Remove EOVERFLOW.
47214         * NEWS: Mention the change.
47215
47216 2008-09-13  Bruno Haible  <bruno@clisp.org>
47217
47218         * modules/errno-tests: New file.
47219         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
47220
47221         * lib/errno.in.h: New file.
47222         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
47223         * modules/errno: New file.
47224         * doc/posix-headers/errno.texi: Update documentation.
47225         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
47226
47227 2008-09-13  Bruno Haible  <bruno@clisp.org>
47228
47229         * tests/test-poll.c: Use #if for native Windows, rather than testing
47230         __MSVCRT__.
47231
47232 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47233             Bruno Haible  <bruno@clisp.org>
47234
47235         * lib/glob.c: Don't include <pwd.h> on native Windows.
47236         (WINDOWS32): New macro.
47237         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
47238
47239 2008-09-13  Bruno Haible  <bruno@clisp.org>
47240
47241         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
47242         (ETIMEDOUT): Remove macro.
47243         (glthread_cond_timedwait_multithreaded): New declaration.
47244         (glthread_cond_timedwait): Use it.
47245         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
47246         (glthread_cond_timedwait_multithreaded): New function.
47247
47248 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
47249
47250         * modules/poll-tests: Do not check for io.h.
47251         * tests/test-poll.c: Check for __MSVCRT__ instead.
47252
47253 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
47254
47255         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
47256         * modules/poll-tests: Add inet_pton, stdbool, sockets.
47257         * tests/test-poll.c: Use them.  Use _pipe on Windows.
47258
47259 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
47260
47261         * modules/poll-tests: New.
47262         * tests/test-poll.c: New.
47263
47264 2008-09-12  Eric Blake  <ebb9@byu.net>
47265
47266         frexp: test for NetBSD failure on -0.0
47267         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
47268         not all, bugs from NetBSD 3.0 have been fixed.
47269         * doc/posix-functions/frexp.texi (frexp): Document bug.
47270         Reported by Thomas Klausner.
47271
47272         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
47273         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
47274         literal -0.0.
47275         Reported by Jonathan C. Patschke <jp@centtech.com>.
47276
47277 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47278
47279         * lib/glthread/cond.h: Use dummy implementation also if
47280         USE_WIN32_THREADS.
47281
47282 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47283
47284         * modules/fnmatch-posix (License): Change to LGPLv2+.
47285         * modules/fnmatch-gnu (License): Likewise.
47286
47287 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47288
47289         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
47290
47291 2008-09-11  Jim Meyering  <meyering@redhat.com>
47292
47293         * users.txt: Add gtk-vnc.
47294
47295 2008-09-08  Simon Josefsson  <simon@josefsson.org>
47296
47297         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
47298         rotate amounts.
47299
47300         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
47301         required for 16-bit and 8-bit rotates.
47302         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
47303         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
47304         UINT8_MAX instead of hard-coded constants.
47305         Suggested by Paul Eggert.
47306
47307 2008-09-07  Bruno Haible  <bruno@clisp.org>
47308
47309         * tests/test-striconveh.c (main): Check behaviour when converting from
47310         UTF-7.
47311
47312         Make striconveh work better with stateful encodings.
47313         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
47314         that iconv does not increment the inptr when returning -1/EINVAL.
47315
47316 2008-09-07  Bruno Haible  <bruno@clisp.org>
47317
47318         * build-aux/config.rpath: Update according to libtool-2.2.6.
47319         * build-aux/config.libpath: Likewise.
47320
47321 2008-09-06  Bruno Haible  <bruno@clisp.org>
47322
47323         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
47324         * lib/freadptr.c (freadptr): Likewise.
47325         * lib/freadseek.c (freadptrinc): Likewise.
47326         Reported by Simon Josefsson.
47327
47328 2008-09-06  Bruno Haible  <bruno@clisp.org>
47329
47330         * modules/freadptr (License): Change to LGPLv2+.
47331         * modules/freadseek (License): Likewise.
47332         Suggested by Eric Blake.
47333
47334         * modules/memchr2 (License): Change to LGPLv2+.
47335         Approved by Eric Blake.
47336
47337 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47338             Bruno Haible  <bruno@clisp.org>
47339
47340         Make gnulib-tool work with native 'sed' on AIX.
47341         * gnulib-tool (sed_noop): New variable.
47342         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
47343         func_add_or_update, func_create_testdir): Use it to initialize sed
47344         script variables.
47345         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
47346
47347 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
47348             Bruno Haible  <bruno@clisp.org>
47349
47350         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
47351         also works after #include directives.
47352
47353 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
47354
47355         getdate.y: reject an out-of-range timezone value
47356         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
47357         the range [-24...+24].  When specified with only one or two digits,
47358         * tests/test-getdate.c: Tests for the fix.
47359         * doc/getdate.texi: Document this change.
47360
47361 2008-09-03  Bruno Haible  <bruno@clisp.org>
47362
47363         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
47364
47365 2008-09-02  Simon Josefsson  <simon@josefsson.org>
47366
47367         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
47368         <bruce.korb@gmail.com> with ideas from Ben Pfaff
47369         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
47370         Blake <ebb9@byu.net>.
47371
47372         * tests/test-bitrotate.c: Add more test vectors.
47373
47374 2008-09-02  Eric Blake  <ebb9@byu.net>
47375
47376         vasnprintf-posix: handle large precision via %.*d
47377         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
47378         when handling it ourselves.
47379         * tests/test-vasnprintf-posix.c (test_function): Add test.
47380         * tests/test-snprintf-posix.h (test_function): Likewise.
47381         * tests/test-sprintf-posix.h (test_function): Likewise.
47382         * tests/test-vasprintf-posix.c (test_function): Likewise.
47383         Reported by Alain Guibert.
47384
47385 2008-09-01  Eric Blake  <ebb9@byu.net>
47386
47387         c-stack: make configure-time check more robust
47388         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
47389         successful sigaction call.
47390         Reported by Tom G. Christensen.
47391
47392 2008-09-01  Bruno Haible  <bruno@clisp.org>
47393
47394         New module 'findprog-lgpl'.
47395         * modules/findprog-lgpl: New file.
47396         * lib/findprog-lgpl.c: New file.
47397         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
47398         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
47399         to decide whether to use strdup or xstrdup, concatenated_filename or
47400         xconcatenated_filename.
47401
47402 2008-09-01  Bruno Haible  <bruno@clisp.org>
47403
47404         Split module 'concat-filename' into 'concat-filename' (LGPL) and
47405         'xconcat-filename' (GPL).
47406         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
47407         (License): Change to LGPLv2+.
47408         * modules/xconcat-filename: New file.
47409         * lib/concat-filename.h (concatenated_filename): Change specification.
47410         (xconcatenated_filename): New declaration.
47411         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
47412         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
47413         memory situations.
47414         * lib/xconcat-filename.c: New file.
47415         * NEWS: Mention the change.
47416         * lib/findprog.c: Include concat-filename.h, not filename.h.
47417         (find_in_path): Use xconcatenated_filename instead of
47418         concatenated_filename.
47419         * lib/javacomp.c: Include concat-filename.h, not filename.h.
47420         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
47421         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
47422         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
47423         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
47424         instead of concatenated_filename.
47425         * lib/javaexec.c: Include concat-filename.h, not filename.h.
47426         (execute_java_class): Use xconcatenated_filename instead of
47427         concatenated_filename.
47428         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
47429         * modules/javacomp (Depends-on): Likewise.
47430         * modules/javaexec (Depends-on): Likewise.
47431
47432 2008-09-01  Bruno Haible  <bruno@clisp.org>
47433
47434         Split module 'filename' into 'filename' and 'concat-filename'.
47435         * modules/filename: Keep only lib/filename.h.
47436         (License): Change to LGPLv2+.
47437         * modules/concat-filename: New file, extracted from modules/filename.
47438         * lib/filename.h (concatenated_filename): Remove declaration.
47439         * lib/concat-filename.h: New file, extracted from lib/filename.h.
47440         * lib/concat-filename.c: Include concat-filename.h.
47441         * NEWS: Mention the change.
47442
47443 2008-09-01  Simon Josefsson  <simon@josefsson.org>
47444
47445         * lib/bitrotate.h (rotl8, rotr8): Add.
47446
47447         * modules/bitrotate (configure.ac): Need
47448         AC_REQUIRE([AC_C_INLINE]).
47449         (Description): Mention stdint.h.  Reported by Bruno Haible
47450         <bruno@clisp.org>.
47451
47452         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
47453         Paolo Bonzini <bonzini@gnu.org>.
47454
47455 2008-08-31  Bruno Haible  <bruno@clisp.org>
47456
47457         Assume Solaris specific bi-arch conventions on Solaris systems.
47458         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
47459         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
47460         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
47461         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
47462         like acl_libdirstem.
47463         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
47464         acl_libdirstem.
47465         * NEWS: Mention the change.
47466         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
47467
47468 2008-08-31  Jim Meyering  <meyering@redhat.com>
47469
47470         * lib/strftime.h: Add comments describing the two added arguments.
47471
47472         remove duplicate #include directives
47473         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
47474         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
47475
47476 2008-08-31  Bruno Haible  <bruno@clisp.org>
47477
47478         New module 'sigpipe-die'.
47479         * modules/sigpipe-die: New file.
47480         * lib/sigpipe-die.h: New file.
47481         * lib/sigpipe-die.c: New file.
47482         * MODULES.html.sh (Signal handling): Add sigpipe-die.
47483
47484 2008-08-31  Bruno Haible  <bruno@clisp.org>
47485
47486         Don't override previously installed signal handlers.
47487         * lib/fatal-signal.c (saved_sigactions): New variable.
47488         (uninstall_handlers): Reset the signal to the saved handler, not
47489         to SIG_DFL (except when ignored).
47490         (install_handlers): Save the previous handlers.
47491
47492 2008-08-30  Bruno Haible  <bruno@clisp.org>
47493
47494         * gnulib-tool (func_reset_sigpipe): New function.
47495         (func_get_automake_snippet, func_modules_transitive_closure,
47496         func_import): Invoke it before a join command that reads from stdin,
47497         to avoid "echo: write error: Broken pipe" error messages on stderr.
47498         Reported by Sam Steingold <sds@gnu.org>.
47499
47500 2008-08-30  Bruno Haible  <bruno@clisp.org>
47501
47502         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
47503         Code copied from m4/open.m4.
47504         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
47505         access and the filename ends in a slash. Code copied from lib/open.c.
47506         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
47507         * tests/test-fopen.c (main): Check against bug with trailing slash.
47508
47509 2008-08-29  Bruno Haible  <bruno@clisp.org>
47510
47511         Avoid some "gcc -pedantic" warnings.
47512         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
47513         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
47514         * lib/dirent.in.h: Likewise.
47515         * lib/fcntl.in.h: Likewise.
47516         * lib/float.in.h: Likewise.
47517         * lib/iconv.in.h: Likewise.
47518         * lib/inttypes.in.h: Likewise.
47519         * lib/locale.in.h: Likewise.
47520         * lib/math.in.h: Likewise.
47521         * lib/netinet_in.in.h: Likewise.
47522         * lib/search.in.h: Likewise.
47523         * lib/signal.in.h: Likewise.
47524         * lib/stdarg.in.h: Likewise.
47525         * lib/stdint.in.h: Likewise.
47526         * lib/stdio.in.h: Likewise.
47527         * lib/stdlib.in.h: Likewise.
47528         * lib/string.in.h: Likewise.
47529         * lib/strings.in.h: Likewise.
47530         * lib/sys_select.in.h: Likewise.
47531         * lib/sys_socket.in.h: Likewise.
47532         * lib/sys_stat.in.h: Likewise.
47533         * lib/sys_time.in.h: Likewise.
47534         * lib/sysexits.in.h: Likewise.
47535         * lib/time.in.h: Likewise.
47536         * lib/unistd.in.h: Likewise.
47537         * lib/wchar.in.h: Likewise.
47538         * lib/wctype.in.h: Likewise.
47539         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
47540         * modules/fchdir (Makefile.am): Likewise.
47541         * modules/fcntl (Makefile.am): Likewise.
47542         * modules/float (Makefile.am): Likewise.
47543         * modules/iconv_open (Makefile.am): Likewise.
47544         * modules/inttypes (Makefile.am): Likewise.
47545         * modules/locale (Makefile.am): Likewise.
47546         * modules/math (Makefile.am): Likewise.
47547         * modules/netinet_in (Makefile.am): Likewise.
47548         * modules/search (Makefile.am): Likewise.
47549         * modules/signal (Makefile.am): Likewise.
47550         * modules/stdarg (Makefile.am): Likewise.
47551         * modules/stdint (Makefile.am): Likewise.
47552         * modules/stdio (Makefile.am): Likewise.
47553         * modules/stdlib (Makefile.am): Likewise.
47554         * modules/string (Makefile.am): Likewise.
47555         * modules/strings (Makefile.am): Likewise.
47556         * modules/sys_select (Makefile.am): Likewise.
47557         * modules/sys_socket (Makefile.am): Likewise.
47558         * modules/sys_stat (Makefile.am): Likewise.
47559         * modules/sys_time (Makefile.am): Likewise.
47560         * modules/sysexits (Makefile.am): Likewise.
47561         * modules/time (Makefile.am): Likewise.
47562         * modules/unistd (Makefile.am): Likewise.
47563         * modules/wchar (Makefile.am): Likewise.
47564         * modules/wctype (Makefile.am): Likewise.
47565         Reported by Reuben Thomas <rrt@sc3d.org>.
47566
47567 2008-08-29  Bruno Haible  <bruno@clisp.org>
47568
47569         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
47570         any more.
47571
47572 2008-08-29  Simon Josefsson  <simon@josefsson.org>
47573
47574         * MODULES.html.sh (Misc): Add bitrotate.
47575
47576         * modules/bitrotate: New file.
47577
47578         * lib/bitrotate.h: New file.
47579
47580         * modules/bitrotate-tests: New file.
47581
47582         * tests/test-bitrotate.c: New file.
47583
47584         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
47585         on the bitrotate module.
47586
47587         * lib/arctwo.c: Use new bitrotate module.
47588
47589 2008-08-29  Jim Meyering  <meyering@redhat.com>
47590
47591         bootstrap: merge changes from coreutils
47592         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
47593         of copied files.  Remove a kludge, now that this is fixed.
47594         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
47595         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
47596         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
47597
47598 2008-08-29  Bruno Haible  <bruno@clisp.org>
47599
47600         * MODULES.html.sh: Remove --cvs-urls option.
47601
47602 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
47603
47604         maint.mk: adjust to file name change
47605         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
47606
47607 2008-08-28  Jim Meyering  <meyering@redhat.com>
47608
47609         * modules/getndelim2 (License): Relicense to LGPLv2+.
47610         Approved by Richard Stallman for the version of 1995, and by
47611         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
47612
47613 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
47614
47615         * lib/getdelim.c (flockfile, funlockfile): Make all of them
47616         dummy if one is not available.  Do not touch them if
47617         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
47618         (getc_maybe_unlocked): New.
47619         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
47620
47621 2008-08-26  Eric Blake  <ebb9@byu.net>
47622
47623         doc/INSTALL: resync from autoconf
47624         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
47625         (INSTALL_PRELUDE): Delete; this is done more efficiently by
47626         moving...
47627         * install.texi [!autoconf]: ...here.  Resync from autoconf.
47628         * INSTALL: Regenerate.
47629         * INSTALL.ISO: New file.
47630         * INSTALL.UTF-8: Likewise.
47631
47632 2008-08-26  Jim Meyering  <meyering@redhat.com>
47633
47634         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
47635         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
47636         these definitions conditional, so that they may be overridden, too.
47637
47638 2008-08-26  Bruno Haible  <bruno@clisp.org>
47639
47640         Generate INSTALL file variants with prettier quotes.
47641         * doc/Makefile (INSTALL_PRELUDE): New macro.
47642         (INSTALL): Use it.
47643         (INSTALL.ISO, INSTALL.UTF-8): New rules.
47644
47645 2008-08-26  Bruno Haible  <bruno@clisp.org>
47646
47647         Run makeinfo in an English locale.
47648         * doc/Makefile (MAKEINFO): New variable.
47649
47650 2008-08-26  Bruno Haible  <bruno@clisp.org>
47651
47652         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
47653         Suggested by Eric Blake.
47654
47655 2008-08-25  Bruno Haible  <bruno@clisp.org>
47656
47657         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
47658
47659 2008-08-25  Eric Blake  <ebb9@byu.net>
47660
47661         c-stack: test that stack overflow can be caught
47662         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
47663         that platform allows handling stack overflow; at least OS/2 EMX
47664         has sigaltstack, but crashes before transferring control to
47665         handler on stack overflow.
47666         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
47667         check for HAVE_STACK_OVERFLOW_HANDLING.
47668         Reported by Elbert Pol.
47669
47670 2008-08-25  Bruno Haible  <bruno@clisp.org>
47671
47672         * doc/posix-functions/strftime.texi: Fix description of strftime
47673         module.
47674
47675 2008-08-24  Bruno Haible  <bruno@clisp.org>
47676
47677         * tests/uniwidth/test-uc_width2.c: New file.
47678         * tests/uniwidth/test-uc_width2.sh: New file.
47679         * modules/uniwidth/width-tests (Files): Add the new files.
47680         (TESTS): Add uniwidth/test-uc_width2.sh.
47681         (TESTS_ENVIRONMENT): New variable.
47682         (check_PROGRAMS): Add test-uc_width2.
47683         (test_uc_width2_SOURCES): New variable.
47684
47685         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
47686         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
47687         not 0x00AB.
47688         Reported by Alexander V. Lukyanov <lav@netis.ru>.
47689
47690 2008-08-22  Eric Blake  <ebb9@byu.net>
47691
47692         test-lock, test-tls: mention why a test is skipped
47693         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
47694         skipped.
47695         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
47696
47697         count-one-bits: relax license
47698         * modules/count-one-bits (License): Relicense to LGPLv2+.
47699         Suggested by Ludovic Courtès, approved by Ben Pfaff.
47700
47701 2008-08-22  Andreas Schwab  <schwab@suse.de>
47702
47703         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
47704         Remove spurious space in assignment.
47705
47706 2008-08-21  Simon Josefsson  <simon@josefsson.org>
47707
47708         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
47709         Paul Eggert <eggert@CS.UCLA.EDU>.
47710
47711 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
47712
47713         * modules/gettext: Add m4/threadlib.m4.
47714
47715 2008-08-19  Eric Blake  <ebb9@byu.net>
47716
47717         test-c-stack: fix compilation failure on FreeBSD 5.0
47718         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
47719         headers before <sys/resource.h>.
47720         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
47721         the bug.
47722         Reported by Nelson H. F. Beebe.
47723
47724         strverscmp: migrate from "strverscmp.h" to <string.h>
47725         * modules/string (Makefile.am): Add new hooks.
47726         * modules/strverscmp (Files): Remove strverscmp.h.
47727         (Depends-on): Add string.
47728         (configure.ac): Add indicator.
47729         (Include): Mention new header.
47730         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
47731         defaults.
47732         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
47733         results.
47734         * lib/strverscmp.h: Delete.
47735         * lib/string.in.h (strverscmp): Provide declaration, when needed.
47736         * tests/test-strverscmp.c (includes): Adjust client.
47737         * lib/check-version.c (includes): Likewise.
47738         * NEWS: Document the change.
47739
47740         strverscmp: add unit test
47741         * modules/strverscmp-tests: New file.
47742         * tests/test-strverscmp.c: Likewise.
47743
47744 2008-08-19  Simon Josefsson  <simon@josefsson.org>
47745
47746         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
47747         regarding Windows crypto stuff, from Mono.
47748
47749 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
47750
47751         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
47752         if present, for intel RND.  Return error on failures.
47753
47754 2008-08-18  Ben Pfaff  <blp@gnu.org>
47755
47756         gitlog-to-changelog: give better diagnostic for failed pipe-open
47757         * build-aux/gitlog-to-changelog: Improve error message: suggest
47758         that the version of Git may be too old.
47759
47760 2008-08-18  Simon Josefsson  <simon@josefsson.org>
47761
47762         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
47763         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
47764
47765 2008-08-18  Bruno Haible  <bruno@clisp.org>
47766
47767         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
47768         pthread_in_use().
47769
47770 2008-08-18  Bruno Haible  <bruno@clisp.org>
47771
47772         * lib/glthread/threadlib.c: Include <pthread.h>.
47773
47774 2008-08-18  Bruno Haible  <bruno@clisp.org>
47775
47776         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
47777         glthread_recursive_lock_* macros.
47778         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
47779         Fix syntax error.
47780
47781 2008-08-18  Bruno Haible  <bruno@clisp.org>
47782
47783         * lib/glthread/thread.c: Avoid forcing a context switch right after
47784         thread creation.
47785
47786 2008-08-17  Bruno Haible  <bruno@clisp.org>
47787
47788         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
47789         * lib/glthread/thread.h: Provide Win32 specific implementation.
47790         * modules/thread (Files): Add lib/glthread/thread.c.
47791         (Depends-on): Add lock.
47792         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
47793
47794 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47795
47796         New module 'yield'.
47797         * modules/yield: New file.
47798         * lib/glthread/yield.h: New file.
47799         * m4/yield.m4: New file.
47800         * MODULES.html.sh (Multithreading): Add yield.
47801
47802 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47803
47804         New module 'thread'.
47805         * modules/thread: New file.
47806         * lib/glthread/thread.h: New file.
47807         * m4/thread.m4: New file.
47808         * MODULES.html.sh (Multithreading): Add thread.
47809
47810 2008-08-17  Bruno Haible  <bruno@clisp.org>
47811
47812         * lib/glthread/lock.h: Include <stdlib.h> always.
47813         * lib/glthread/tls.h: Likewise.
47814         * lib/glthread/cond.h: Likewise.
47815
47816 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47817
47818         New module 'cond'.
47819         * modules/cond: New file.
47820         * lib/glthread/cond.h: New file.
47821         * lib/glthread/cond.c: New file.
47822         * m4/cond.m4: New file.
47823         * MODULES.html.sh (Multithreading): Add cond.
47824
47825 2008-08-16  Eric Blake  <ebb9@byu.net>
47826
47827         c-stack: fix regression on Irix 5.3 from 2008-06-21
47828         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
47829         sa_sigaction...
47830         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
47831         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
47832         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
47833         * modules/signal (Makefile.am): Use the value.
47834         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
47835         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
47836         * doc/posix-headers/signal.texi (signal.h): Document this
47837         portability issue.
47838         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
47839         Reported by Tom G. Christensen.
47840
47841 2008-08-17  Bruno Haible  <bruno@clisp.org>
47842
47843         New module 'threadlib'.
47844         * modules/threadlib: New file.
47845         * lib/glthread/threadlib.c: New file, extracted from
47846         lib/glthread/lock.c.
47847         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
47848         functions.
47849         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
47850         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
47851         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
47852         macros.
47853         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
47854         (gl_DISABLE_THREADS): Remove macro.
47855         * modules/lock (Files): Remove build-aux/config.rpath.
47856         (Depends-on): Remove havelib. Add threadlib.
47857         (configure.ac-early): Remove section.
47858         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
47859         * modules/tls (Depends-on): Remove lock. Add threadlib.
47860         (Link): New section, copied from threadlib.
47861         * MODULES.html.sh (Multithreading): Add threadlib.
47862
47863 2008-08-14  Bruno Haible  <bruno@clisp.org>
47864
47865         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
47866         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
47867         glthread_rwlock_unlock, glthread_rwlock_destroy,
47868         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
47869         glthread_recursive_lock_destroy): Define as macros always.
47870         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
47871         glthread_lock_lock.
47872         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
47873         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
47874         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
47875         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
47876         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
47877         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
47878         (glthread_recursive_lock_lock_func): Renamed from
47879         glthread_recursive_lock_lock.
47880         (glthread_recursive_lock_unlock_func): Renamed from
47881         glthread_recursive_lock_unlock.
47882         (glthread_recursive_lock_destroy_func): Renamed from
47883         glthread_recursive_lock_destroy.
47884
47885 2008-08-14  Bruno Haible  <bruno@clisp.org>
47886
47887         * lib/glthread/lock.h: Renamed from lib/lock.h.
47888         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
47889         * lib/glthread/tls.h: Renamed from lib/tls.h.
47890         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
47891         * lib/fstrcmp.c: Update includes.
47892         * lib/strsignal.c: Update includes.
47893         * modules/lock (Files, Makefile.am): Update.
47894         (Include): Change to "glthread/lock.h".
47895         * modules/tls (Files, Makefile.am): Update.
47896         (Include): Change to "glthread/tls.h".
47897         * tests/test-lock.c: Update includes.
47898         * tests/test-tls.c: Update includes.
47899         * NEWS: Mention the renamed header files.
47900
47901 2008-08-11  Jim Meyering  <meyering@redhat.com>
47902
47903         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
47904
47905 2008-08-11  Eric Blake  <ebb9@byu.net>
47906
47907         test-c-stack: avoid C99-ism
47908         * tests/test-c-stack.c (main): Fix whitespace, move declaration
47909         before statement.
47910         Reported by Alain Guibert.
47911
47912 2008-08-10  Jim Meyering  <meyering@redhat.com>
47913
47914         ensure that return value of uinttostr et al are not ignored
47915         * lib/inttostr.h (__GNUC_PREREQ): Define.
47916         (__attribute_warn_unused_result__): Define.
47917         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
47918
47919 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
47920
47921         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
47922         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
47923
47924 2008-08-07  Jim Meyering  <meyering@redhat.com>
47925
47926         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
47927
47928         * modules/mkstemp (License): Relicense under LGPLv2+.
47929         * modules/tempname (License): Likewise.
47930
47931 2008-08-06  Bruno Haible  <bruno@clisp.org>
47932
47933         * lib/poll.c (poll): Further micro-optimization.
47934
47935 2008-08-06  Jim Meyering  <meyering@redhat.com>
47936
47937         inet_pton.c: use locale-independent tolower
47938         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
47939         (inet_pton6): Use c_tolower rather than tolower.
47940         * modules/inet_pton (Depends-on): Add c-ctype.
47941
47942 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
47943
47944         * lib/poll.c (poll): Avoid division when timeout is 0, cache
47945         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
47946
47947 2008-08-06  Jim Meyering  <meyering@redhat.com>
47948
47949         * modules/inet_pton (License): Relicense under LGPLv2+.
47950
47951 2008-08-03  Bruno Haible  <bruno@clisp.org>
47952
47953         Additional non-aborting API for lock and tls.
47954         * lib/lock.h: Include <errno.h>.
47955         (glthread_lock_init): New macro/function.
47956         (gl_lock_init): Define as wrapper around glthread_lock_init.
47957         (glthread_lock_lock): New macro/function.
47958         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
47959         (glthread_lock_unlock): New macro/function.
47960         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
47961         (glthread_lock_destroy): New macro/function.
47962         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
47963         (glthread_rwlock_init): New macro/function.
47964         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
47965         (glthread_rwlock_rdlock): New macro/function.
47966         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
47967         (glthread_rwlock_wrlock): New macro/function.
47968         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
47969         (glthread_rwlock_unlock): New macro/function.
47970         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
47971         (glthread_rwlock_destroy): New macro/function.
47972         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
47973         (glthread_recursive_lock_init): New macro/function.
47974         (gl_recursive_lock_init): Define as wrapper around
47975         glthread_recursive_lock_init.
47976         (glthread_recursive_lock_lock): New macro/function.
47977         (gl_recursive_lock_lock): Define as wrapper around
47978         glthread_recursive_lock_lock.
47979         (glthread_recursive_lock_unlock): New macro/function.
47980         (gl_recursive_lock_unlock): Define as wrapper around
47981         glthread_recursive_lock_unlock.
47982         (glthread_recursive_lock_destroy): New macro/function.
47983         (gl_recursive_lock_destroy): Define as wrapper around
47984         glthread_recursive_lock_destroy.
47985         (glthread_once): New macro/function.
47986         (gl_once): Define as wrapper around glthread_once.
47987         Update function declarations.
47988         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
47989         glthread_rwlock_init. Return error code.
47990         (glthread_rwlock_rdlock_multithreaded): Renamed from
47991         glthread_rwlock_rdlock. Return error code.
47992         (glthread_rwlock_wrlock_multithreaded): Renamed from
47993         glthread_rwlock_wrlock. Return error code.
47994         (glthread_rwlock_unlock_multithreaded): Renamed from
47995         glthread_rwlock_unlock. Return error code.
47996         (glthread_rwlock_destroy_multithreaded): Renamed from
47997         glthread_rwlock_destroy. Return error code.
47998         (glthread_recursive_lock_init_multithreaded): Renamed from
47999         glthread_recursive_lock_init. Return error code.
48000         (glthread_recursive_lock_lock_multithreaded): Renamed from
48001         glthread_recursive_lock_lock. Return error code.
48002         (glthread_recursive_lock_unlock_multithreaded): Renamed from
48003         glthread_recursive_lock_unlock. Return error code.
48004         (glthread_recursive_lock_destroy_multithreaded): Renamed from
48005         glthread_recursive_lock_destroy. Return error code.
48006         (glthread_once_call): Make static.
48007         (glthread_once_multithreaded): Renamed from glthread_once.
48008         * lib/tls.h: Include <errno.h>.
48009         (glthread_tls_key_init): New macro/function.
48010         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
48011         (glthread_tls_set): New macro/function.
48012         (gl_tls_set): Define as wrapper around glthread_tls_set.
48013         (glthread_tls_key_destroy): New macro/function.
48014         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
48015         Update function declarations.
48016         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
48017         glthread_tls_get.
48018         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
48019
48020 2008-08-04  Eric Blake  <ebb9@byu.net>
48021
48022         gnumakefile: use space, not TAB, outside of targets
48023         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
48024
48025 2008-08-02  Jim Meyering  <meyering@redhat.com>
48026
48027         getdate.y: avoid locale-dependent date parsing failure
48028         In Turkish locales, getdate would fail to recognize keywords
48029         containing a lowercase "i".  The solution is not to rely on
48030         locale-sensitive case-conversion.
48031         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
48032         (lookup_word): Use c_toupper in place of toupper.
48033         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
48034         Reported by Vefa Bicakci <bicave@superonline.com> in
48035         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
48036         * modules/getdate (Depends-on): Add c-ctype.
48037
48038 2008-08-02  Bruno Haible  <bruno@clisp.org>
48039
48040         * gnulib-tool (func_import): When updating or creating a .gitignore
48041         file, prepend each added line with a slash, and ignore leading slashes
48042         from the existing lines.
48043         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
48044
48045 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48046
48047         Portability fix for GNU make 3.79.1.
48048         * top/GNUmakefile: Avoid 'else COND', which older GNU make
48049         versions do not understand.
48050
48051 2008-08-01  Bruno Haible  <bruno@clisp.org>
48052
48053         Work around bug of HP-UX 10.20 cc with -0.0 literal.
48054         * tests/test-isnanf.h (zero): New variable.
48055         (main): Avoid literal -0.0f.
48056         * tests/test-isnand.h (zero): New variable.
48057         (main): Avoid literal -0.0.
48058         * tests/test-isnanl.h (zero): New variable.
48059         (main): Avoid literal -0.0L.
48060         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
48061         (test_float, test_double, test_long_double): Avoid literals -0.0f,
48062         -0.0, -0.0L.
48063         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
48064         (test_signbitd): Avoid literal -0.0.
48065         (test_signbitl): Avoid literal -0.0L.
48066         * tests/test-ceilf1.c (zero): New variable.
48067         (main): Avoid literal -0.0f.
48068         * tests/test-ceill.c (zero): New variable.
48069         (main): Avoid literal -0.0L.
48070         * tests/test-floorf1.c (zero): New variable.
48071         (main): Avoid literal -0.0f.
48072         * tests/test-floorl.c (zero): New variable.
48073         (main): Avoid literal -0.0L.
48074         * tests/test-roundf1.c (zero): New variable.
48075         (main): Avoid literal -0.0f.
48076         * tests/test-round1.c (zero): New variable.
48077         (main): Avoid literal -0.0.
48078         * tests/test-roundl.c (zero): New variable.
48079         (main): Avoid literal -0.0L.
48080         * tests/test-truncf1.c (zero): New variable.
48081         (main): Avoid literal -0.0f.
48082         * tests/test-trunc1.c (zero): New variable.
48083         (main): Avoid literal -0.0.
48084         * tests/test-truncl.c (zero): New variable.
48085         (main): Avoid literal -0.0L.
48086         * tests/test-frexp.c (zero): New variable.
48087         (main): Avoid literal -0.0.
48088         * tests/test-frexpl.c (zero): New variable.
48089         (main): Avoid literal -0.0L.
48090         * tests/test-ldexpl.c (zero): New variable.
48091         (main): Avoid literal -0.0L.
48092         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
48093         (zerod, zerol): New variables.
48094         (test_function): Avoid literals -0.0, -0.0L.
48095         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
48096         (zerod, zerol): New variables.
48097         (test_function): Avoid literals -0.0, -0.0L.
48098         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
48099         (zerod, zerol): New variables.
48100         (test_function): Avoid literals -0.0, -0.0L.
48101         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
48102         (zerod, zerol): New variables.
48103         (test_function): Avoid literals -0.0, -0.0L.
48104         * tests/test-strtod.c (zero): New variable.
48105         (main): Avoid literal -0.0.
48106         Reported by Jonathan C. Patschke <jp@centtech.com>.
48107
48108 2008-07-31  Jim Meyering  <meyering@redhat.com>
48109
48110         sha256.h: correct definition of SHA224_DIGEST_SIZE
48111         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
48112         Reported by Paulie Pena IV <paulie4@gmail.com>.
48113         Define as 224 / 8, rather than as a literal.
48114         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
48115         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
48116         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
48117
48118 2008-07-31  Bruno Haible  <bruno@clisp.org>
48119
48120         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
48121         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
48122         Reported by Jonathan Patschke <jp@centtech.com>.
48123
48124 2008-07-31  Bruno Haible  <bruno@clisp.org>
48125
48126         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
48127         Reported by Paolo Bonzini <bonzini@gnu.org>.
48128
48129 2008-07-30  Eric Blake  <ebb9@byu.net>
48130
48131         test-strtod: allow compilation without -lm
48132         * tests/test-strtod.c (main): Avoid link dependence on fabs.
48133         Reported by Dennis Clarke <blastwave@gmail.com>.
48134
48135 2008-07-28  Jim Meyering  <meyering@redhat.com>
48136
48137         bootstrap: work also when there are no .po files in po/
48138         * build-aux/bootstrap (update_po_files): Complete the change
48139         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
48140
48141 2008-07-27  Jim Meyering  <meyering@redhat.com>
48142
48143         * users.txt: Add zile.
48144
48145 2008-07-26  Ben Pfaff  <blp@gnu.org>
48146
48147         Add missing dependencies on new m4/exponent[fdl].m4 files.
48148         * modules/isnanf-nolibm: Add m4/exponentf.m4.
48149         * modules/isnand-nolibm: Add m4/exponentd.m4.
48150         * modules/isnanl-nolibm: Add m4/exponentl.m4.
48151         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
48152         m4/isnan[fdl].m4, because the macros actually used moved.
48153         Reported by Jim Meyering.
48154
48155 2008-07-14  Ben Pfaff  <blp@gnu.org>
48156
48157         Add isinf module.
48158         * lib/isinf.c: New file.
48159         * lib/math.in.h: Define isinf macro if we have decided to replace
48160         it.
48161         * m4/isinf.m4: New file.
48162         * m4/math_h.m4: Initialize and substitute variables for isinf
48163         module.
48164         * modules/isinf: New file.
48165         * modules/isinf-tests: New file.
48166         * modules/math: Add substitutions for new module.
48167         * tests/test-isinf.c: New file.
48168         * doc/posix-functions/isinf.texi: Mention new module.
48169         * MODULES.html.sh: Mention new module.
48170
48171 2008-07-14  Ben Pfaff  <blp@gnu.org>
48172
48173         Factor out some macros for use by additional modules.
48174         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
48175         exponentf.m4.
48176         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
48177         exponentd.m4.
48178         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
48179         file exponentl.m4.
48180         * m4/exponentf.m4: New file.
48181         * m4/exponentd.m4: New file.
48182         * m4/exponentl.m4: New file.
48183         * modules/isnanf: Use new file m4/exponentf.m4.
48184         * modules/isnand: Use new file m4/exponentd.m4.
48185         * modules/isnanl: Use new file m4/exponentl.m4.
48186
48187 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
48188
48189         mktime.c: normalize tp->tm_isdst value to -1/0/1.
48190         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
48191         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
48192         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
48193
48194         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
48195         readlink on platforms without PATH_MAX.
48196
48197 2008-07-21  Eric Blake  <ebb9@byu.net>
48198
48199         Warn, not fail, on stale version.
48200         * top/GNUmakefile (_curr-ver): Tone down previous patch.
48201
48202         Don't allow installation with stale devel version number.
48203         * top/GNUmakefile (_is-install-target): New macro.
48204         (_curr-ver): Forbid installation with stale version number.
48205
48206 2008-07-20  Bruno Haible  <bruno@clisp.org>
48207
48208         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
48209         TESTS_ENVIRONMENT.
48210         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
48211
48212 2008-07-20  Bruno Haible  <bruno@clisp.org>
48213
48214         * lib/c-stack.h (c_stack_action): Add documentation.
48215         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
48216
48217 2008-07-20  Bruno Haible  <bruno@clisp.org>
48218
48219         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
48220         * modules/readlink (License): Likewise.
48221
48222 2008-07-17  Eric Blake  <ebb9@byu.net>
48223
48224         * modules/c-stack (Link): Fix typo.
48225
48226         Make c-stack use libsigsegv, when available.
48227         * modules/c-stack (Depends-on): Add libsigsegv.
48228         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
48229         needed.
48230         * lib/c-stack.c (SIGSTKSZ): Define fallback.
48231         (segv_handler, overflow_handler, c_stack_action)
48232         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
48233         implementation when libsigsegv is available, but only when using
48234         the library is necessary.
48235         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
48236         comment, explaining why XSI check fails on Linux.
48237         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
48238         * tests/test-c-stack2.sh: Tweak skip message.
48239         * NEWS: Document new link-time requirements.
48240
48241 2008-07-16  Eric Blake  <ebb9@byu.net>
48242
48243         c-stack: Expose false positives when not using libsigsegv.
48244         * modules/c-stack-tests (Files): Expand test.
48245         * tests/test-c-stack.c (main): Add means to conditionally trigger
48246         non-overflow SIGSEGV.
48247         * tests/test-c-stack2.sh: New file.
48248
48249 2008-07-14  Bruno Haible  <bruno@clisp.org>
48250
48251         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
48252         Reported by Eric Blake.
48253
48254 2008-07-14  Sam Steingold  <sds@gnu.org>
48255             Bruno Haible  <bruno@clisp.org>
48256
48257         New module libsigsegv.
48258         * modules/libsigsegv: New file.
48259         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
48260         modifications.
48261         * MODULES.html.sh (Signal handling): New section.
48262
48263 2008-07-14  Bruno Haible  <bruno@clisp.org>
48264
48265         * modules/unictype/ctype-* (Description): Add the word "function".
48266         Improves the resulting doc in MODULES.html.
48267
48268 2008-07-12  Ben Pfaff  <blp@gnu.org>
48269
48270         Add longlong module.
48271         * modules/longlong: New file.
48272
48273 2008-07-12  Bruno Haible  <bruno@clisp.org>
48274
48275         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
48276         to empty.
48277
48278 2008-07-10  Ben Pfaff  <blp@gnu.org>
48279
48280         Add isnan module.
48281         * doc/posix-functions/isnan.texi: Mention new module.
48282         * lib/math.in.h: Define isnan macro if we have decided to replace
48283         it.
48284         * m4/isnan.m4: New file.
48285         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
48286         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
48287         also.
48288         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
48289         redundancy.
48290         * m4/math_h.m4: Initialize and substitute variables for isnan
48291         module.
48292         * modules/isnan: New file.
48293         * modules/isnan-tests: New file.
48294         * modules/math: Add substitutions for new module.
48295         * tests/test-isnan.c: New file.
48296         * MODULES.html.sh: Mention new module.
48297
48298 2008-07-10  Ben Pfaff  <blp@gnu.org>
48299
48300         Add isnanf module.
48301         * lib/isnanf.m4: New file.
48302         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
48303         (gl_HAVE_ISNANF_IN_LIBM): New macro.
48304         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
48305         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
48306         * modules/isnanf: New file.
48307         * modules/isnanf-tests: New file.
48308         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
48309         files.
48310         * tests/test-isnanf-nolibm.c: factored most of its contents into
48311         new file tests/test-isnanf.h.
48312         * tests/test-isnanf.h: New file.
48313         * tests/test-isnanf.c: New file.
48314         * MODULES.html.sh: Mention new module.
48315         * doc/glibc-functions/isnanf.texi: Mention new module.
48316
48317 2008-07-10  Ben Pfaff  <blp@gnu.org>
48318
48319         Add isnand module.
48320         * lib/isnand.h: New file.
48321         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
48322         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
48323         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
48324         functionality also.
48325         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
48326         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
48327         (gl_HAVE_ISNAND_IN_LIBM): New macro.
48328         * modules/isnand: New file.
48329         * modules/isnand-tests: New file.
48330         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
48331         files.
48332         * tests/test-isnand-nolibm.c: factored most of its contents into
48333         new file tests/test-isnand.h.
48334         * tests/test-isnand.h: New file.
48335         * tests/test-isnand.c: New file.
48336         * MODULES.html.sh: Mention new module.
48337
48338 2008-07-10  Ben Pfaff  <blp@gnu.org>
48339
48340         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
48341         * lib/isnand.h: Rename lib/isnand-nolibm.h.
48342         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
48343         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
48344         * modules/isnanf-nolibm: Update references to renamed files.
48345         * modules/isnand-nolibm: Likewise.
48346         * modules/isnanf-nolibm-tests: Likewise.
48347         * modules/isnand-nolibm-tests: Likewise.
48348         * lib/frexp.c: Likewise.
48349         * lib/isfinite.c: Likewise.
48350         * lib/signbitd.c: Likewise.
48351         * lib/signbitf.c: Likewise.
48352         * lib/vasnprintf.c: Likewise.
48353         * tests/test-ceilf1.c: Likewise.
48354         * tests/test-ceilf2.c: Likewise.
48355         * tests/test-floorf1.c: Likewise.
48356         * tests/test-floorf2.c: Likewise.
48357         * tests/test-frexp.c: Likewise.
48358         * tests/test-round1.c: Likewise.
48359         * tests/test-round2.c: Likewise.
48360         * tests/test-roundf1.c: Likewise.
48361         * tests/test-strtod.c: Likewise.
48362         * tests/test-trunc1.c: Likewise.
48363         * tests/test-trunc2.c: Likewise.
48364         * tests/test-truncf1.c: Likewise.
48365         * tests/test-truncf2.c: Likewise.
48366         * NEWS: Mention the renamed header files.
48367
48368 2008-07-11  Jim Meyering  <meyering@redhat.com>
48369
48370         vc-list-files: make the last-resort awk code more portable
48371         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
48372         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
48373         does not support it.
48374
48375 2008-07-10  Eric Blake  <ebb9@byu.net>
48376
48377         Work with tar's bootstrap.
48378         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
48379         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
48380         an m4 comment.
48381
48382 2008-07-09  Jim Meyering  <meyering@redhat.com>
48383
48384         posix-shell.m4: fix typo that made this test malfunction
48385         * m4/posix-shell.m4: Remove capitalization in variable name.
48386
48387 2008-07-08  Bruno Haible  <bruno@clisp.org>
48388
48389         * m4/onceonly.m4: Update comments.
48390         Reported by Ben Pfaff <blp@cs.stanford.edu>.
48391
48392 2008-07-04  Jim Meyering  <meyering@redhat.com>
48393
48394         * users.txt: Add vc-dwim.
48395         (bison, coreutils): Use the gitweb URL.
48396
48397 2008-07-03  Jim Meyering  <meyering@redhat.com>
48398
48399         * users.txt: Add libffcall.  From Sam Steingold.
48400
48401 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
48402
48403         getdate.y: do not ignore TZ with relative day, month or year offset
48404         * lib/getdate.y (get_date): Move the tz-handling block to follow the
48405         relative-date-handling, since otherwise, the latter would clobber the
48406         sole output (an updated Start value) of the tz-handling block.
48407         * tests/test-getdate.c: Tests for the fix
48408
48409 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48410
48411         Recognize 'foo_LIBRARIES += libgnu.a'.
48412         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
48413         makefile snippet has already specified an installation location,
48414         also using '+='.
48415
48416 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
48417
48418         getdate.y: factor out common actions
48419         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
48420         Use them in place of open-coded actions.
48421
48422 2008-07-01  Simon Josefsson  <simon@josefsson.org>
48423
48424         Add self-test for getdate module.
48425         * modules/getdate-tests: New file.
48426         * tests/test-getdate.c: New file.
48427
48428 2008-06-29  Bruno Haible  <bruno@clisp.org>
48429
48430         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
48431         .gitignore.
48432         Reported by Sylvain Beucler <beuc@beuc.net>.
48433
48434 2008-06-29  Bruno Haible  <bruno@clisp.org>
48435
48436         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
48437         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
48438
48439 2008-06-29  Bruno Haible  <bruno@clisp.org>
48440
48441         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
48442         EXTRA_DIST.
48443         Reported by Sylvain Beucler <beuc@beuc.net>.
48444
48445 2008-06-26  Jim Meyering  <meyering@redhat.com>
48446
48447         make several modules depend on the "open" module
48448         This provides slightly increased consistency when opening-for-write
48449         the name of a non-directory spelled with a trailing slash.
48450         * modules/chdir-safer: Likewise.
48451         * modules/chown: Likewise.
48452         * modules/clean-temp: Likewise.
48453         * modules/copy-file: Likewise.
48454         * modules/fchdir: Likewise.
48455         * modules/fcntl-safer: Likewise.
48456         * modules/pipe: Likewise.
48457         * modules/utime: Likewise.
48458         Prompted by Eric Blake and Bruno Haible.
48459
48460 2008-06-24  Andreas Schwab  <schwab@suse.de>
48461
48462         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
48463         literals can be used as initializers for global variables.
48464
48465 2008-06-23  Eric Blake  <ebb9@byu.net>
48466
48467         Make gnulib-cache.m4 easier to diff.
48468         * gnulib-tool (func_import): Allow newlines when reading cached
48469         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
48470
48471 2008-06-23  Bruno Haible  <bruno@clisp.org>
48472
48473         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
48474         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
48475         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
48476         m4/signalblocking.m4.
48477         (gl_PREREQ_SIGACTION): Don't invoke it.
48478         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
48479         gl_PREREQ_SIG_HANDLER_H.
48480         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
48481         Don't check for sigaction here.
48482
48483 2008-06-23  Bruno Haible  <bruno@clisp.org>
48484
48485         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
48486         (install_handlers): Don't set the SA_RESETHAND flag.
48487
48488 2008-06-23  Bruno Haible  <bruno@clisp.org>
48489
48490         * m4/sigaction.m4: Comment fixes.
48491         * lib/signal.in.h: Likewise.
48492
48493 2008-06-23  Eric Blake  <ebb9@byu.net>
48494
48495         Fix typo.
48496         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
48497
48498         Avoid SA_ namespace.
48499         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
48500         Reported by Ralf Wildenhues.
48501
48502         Avoid test failure due to SA_RESTORER.
48503         * tests/test-sigaction.c (SA_MASK): New macro.
48504         (main): Avoid failing due to extension flags being set.
48505         Reported by Jim Meyering.
48506
48507         Revert use of sig-handler.h in sigprocmask.c.
48508         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
48509         it requires the existence of struct sigaction.
48510         * lib/sigprocmask.c (handler_t): Restore typedef.
48511         (rpl_signal, old_handlers): Use local type.
48512
48513 2008-06-22  Bruno Haible  <bruno@clisp.org>
48514
48515         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
48516         conditionally.
48517         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
48518
48519 2008-06-22  Bruno Haible  <bruno@clisp.org>
48520
48521         * doc/posix-functions/siginterrupt.texi: Move note.
48522
48523         * lib/signal.in.h (SA_RESTART): New macro.
48524         * lib/sigaction.c: Update comment.
48525
48526         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
48527
48528         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
48529         (gl_PREREQ_SIGPROCMASK): Invoke it.
48530         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
48531
48532         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
48533
48534         * lib/sigprocmask.c: Update a comment.
48535
48536 2008-06-21  Eric Blake  <ebb9@byu.net>
48537
48538         Use sigaction module rather than signal().
48539         * modules/c-stack (Depends-on): Add sigaction.
48540         * modules/fatal-signal (Depends-on): Likewise.
48541         * modules/nanosleep (Depends-on): Likewise.
48542         * modules/sigprocmask (Files): Add sig-handler.h.
48543         * modules/sigaction (Files): Likewise.
48544         * lib/sig-handler.h (get_handler): New file, suggested by Paul
48545         Eggert.
48546         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
48547         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
48548         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
48549         (init_fatal_signals): Likewise.
48550         * lib/nanosleep.c (rpl_nanosleep): Likewise.
48551         (siginterrupt): Delete fallback.
48552         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
48553         instead.
48554         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
48555         siginterrupt.
48556
48557         New module sigaction, for mingw.
48558         * modules/sigaction: New module...
48559         * modules/sigaction-tests: ...and its test.
48560         * m4/sigaction.m4: New file.
48561         * lib/sigaction.c: Likewise.
48562         * tests/test-sigaction.c: Likewise.
48563         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
48564         * modules/signal (Makefile.am): Likewise.
48565         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
48566         needed.
48567         * doc/posix-headers/signal.texi (signal.h): Mention provided
48568         types.
48569         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
48570         that sigaction is preferable.
48571         * doc/posix-functions/sigaction.texi (sigaction): Mention new
48572         module.
48573         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
48574         sigaction.
48575
48576         Improve robustness of sigprocmask by overriding signal.
48577         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
48578         is in use.
48579         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
48580         (SIGKILL, SIGSTOP): Provide fallbacks.
48581         (rpl_signal): Implement.
48582         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
48583         signal can be called inside handlers.
48584
48585         Fix nanosleep module on mingw.
48586         * modules/nanosleep (Depends-on): Add sys_select.
48587         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
48588
48589         Fix licensing of sigprocmask.
48590         * modules/raise (License): Relicense as LGPL.
48591
48592 2008-06-21  Bruno Haible  <bruno@clisp.org>
48593
48594         * lib/propername.c (proper_name_utf8): Don't use the transliterated
48595         result if it contains question marks.
48596         Reported by Michael Geng <linux@michaelgeng.de>.
48597
48598 2008-06-19  Bruno Haible  <bruno@clisp.org>
48599
48600         Fix CVS-ism.
48601         * doc/gnulib.texi: Include updated-stamp.texi.
48602         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
48603         (updated-stamp.texi): New rule.
48604         (gnulib.info): Depend on it.
48605         * doc/.gitignore: Add updated-stamp.texi.
48606         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
48607
48608 2008-06-19  Bruno Haible  <bruno@clisp.org>
48609
48610         * doc/Makefile (gnulib.info): Update and simplify dependencies.
48611         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
48612
48613 2008-06-19  Eric Blake  <ebb9@byu.net>
48614
48615         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
48616         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
48617         Reported by Stepan Kasal.
48618
48619 2008-06-18  Bruno Haible  <bruno@clisp.org>
48620
48621         * lib/fatal-signal.c (init_fatal_signals): Add comment.
48622         Reported by Eric Blake.
48623
48624 2008-06-18  Eric Blake  <ebb9@byu.net>
48625
48626         Work around cygwin 1.5.25 strsignal bug.
48627         * tests/test-strsignal.c: Allow for const char *.
48628         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
48629
48630 2008-06-18  Simon Josefsson  <simon@josefsson.org>
48631
48632         * users.txt: Update URL to article and add author/date
48633         information.
48634
48635 2008-06-17  Bruno Haible  <bruno@clisp.org>
48636
48637         New macro gl_DISABLE_THREADS.
48638         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
48639         if the user did not pass --enable-threads or --disable-threads option.
48640         (gl_DISABLE_THREADS): New macro.
48641         Reported by Eric Blake <ebb9@byu.net>.
48642
48643 2008-06-17  Bruno Haible  <bruno@clisp.org>
48644
48645         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
48646         when the macro ignores it.
48647         Based on a patch by Eric Blake <ebb9@byu.net>.
48648
48649 2008-06-17  Bruno Haible  <bruno@clisp.org>
48650
48651         * modules/tls (License): Change to LGPLv2+.
48652         Reported by Eric Blake.
48653
48654 2008-06-17  Eric Blake  <ebb9@byu.net>
48655
48656         Simplify c-stack prerequisites.
48657         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
48658         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
48659         no longer requires <ucontext.h> to exist.  Optimize setrlimit
48660         check.
48661         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
48662         <sys/resource.h>.
48663
48664         Move c-stack test into testsuite.
48665         * modules/c-stack-tests: New file.
48666         * lib/c-stack.c [DEBUG]: Move test program...
48667         * tests/test-c-stack.c: ...into this new file.  Skip rather than
48668         fail test if sigaltstack is lacking.
48669         * tests/test-c-stack.sh: New driver file.
48670
48671 2008-06-16  Eric Blake  <ebb9@byu.net>
48672
48673         Use raise module consistently.
48674         * modules/fatal-signal (Depends-on): Add raise.
48675         * modules/sigprocmask (Depends-on): Likewise.
48676         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
48677         * lib/sigprocmask.c (sigprocmask): Likewise.
48678         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
48679         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
48680
48681         Fix compliance bug in sigpending.
48682         * lib/sigprocmask.c (sigpending): Return pending array via
48683         parameter, not return value.
48684
48685 2008-06-14  Eric Blake  <ebb9@byu.net>
48686
48687         Improve obstack-printf test code.
48688         * tests/test-obstack-printf.c (test_function): Fix comment, and
48689         simplify usage of obstack_* in macros.  Add a test for coverage.
48690         Reported by Bruno Haible.
48691
48692 2008-06-14  Bruno Haible  <bruno@clisp.org>
48693
48694         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
48695         array size as a constant, not as a const variable.
48696         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
48697         AC_USE_SYSTEM_EXTENSIONS.
48698         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
48699         Test whether the obstack_printf function actually exists.
48700         * modules/obstack-printf (Depends-on): Add extensions.
48701         (Include): Remove obstack.h.
48702         * modules/obstack-printf-posix (Depends-on): Add extensions.
48703         (Include): Remove obstack.h.
48704
48705 2008-06-13  Eric Blake  <ebb9@byu.net>
48706
48707         Add obstack-printf and obstack-printf-posix modules.
48708         * modules/obstack-printf: New file.
48709         * modules/obstack-printf-posix: Likewise.
48710         * MODULES.html.sh (Misc): Mention them.
48711         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
48712         Likewise.
48713         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
48714         Likewise.
48715         * modules/stdio (Makefile.am): Accomodate new modules.
48716         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
48717         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
48718         Declare.
48719         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
48720         functions.
48721         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
48722         (gl_REPLACE_OBSTACK_PRINTF): New macros
48723         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
48724         * tests/test-obstack-printf.c: New file.
48725         * modules/obstack-printf-tests: Likewise.
48726         * modules/obstack-printf-posix-tests: Likewise.
48727
48728 2008-06-11  Bruno Haible  <bruno@clisp.org>
48729
48730         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
48731         * lib/open.c: Include errno.h.
48732         (open): Fail when attempting to write to a file that has a trailing
48733         slash.
48734         * tests/test-open.c (main): Test against trailing slash bug.
48735         * doc/posix-functions/open.texi: Mention the trailing slash bug.
48736
48737 2008-06-10  Bruno Haible  <bruno@clisp.org>
48738
48739         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
48740         for $? to work inside the trap command, with various /bin/sh-s.
48741         * tests/test-vc-list-files-cvs.sh: Likewise.
48742
48743 2008-06-10  Bruno Haible  <bruno@clisp.org>
48744
48745         * lib/acl-internal.h: Don't include gettext.h here.
48746         * lib/set-mode-acl.c: Include gettext.h here.
48747         * lib/copy-acl.c: Likewise.
48748
48749 2008-06-10  Bruno Haible  <bruno@clisp.org>
48750
48751         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
48752         * lib/wait-process.c (wait_subprocess): Likewise.
48753         * lib/execute.h (execute): Add termsigp argument.
48754         * lib/execute.c (execute): Likewise.
48755         * lib/csharpcomp.c (compile_csharp_using_pnet,
48756         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
48757         * lib/csharpexec.c (execute_csharp_using_pnet,
48758         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
48759         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
48760         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
48761         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
48762         is_jikes_present): Update.
48763         * lib/javaexec.c (execute_java_class): Update.
48764         * lib/javaversion.c (execute_and_read_line): Update.
48765         * NEWS: Document the changes.
48766         Reported by Eric Blake.
48767
48768 2008-06-10  Eric Blake  <ebb9@byu.net>
48769
48770         Add missing include.
48771         * tests/test-strstr.c (includes): Add <signal.h>.
48772         * tests/test-strcasestr.c (includes): Likewise.
48773         * tests/test-memmem.c (includes): Likewise.
48774
48775 2008-06-10  Bruno Haible  <bruno@clisp.org>
48776
48777         * lib/wait-process.c (wait_subprocess): Add an assertion.
48778
48779 2008-06-10  Bruno Haible  <bruno@clisp.org>
48780
48781         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
48782
48783 2008-06-10  Bruno Haible  <bruno@clisp.org>
48784
48785         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
48786         using alarm().
48787         * tests/test-strcasestr.c (main): Likewise.
48788         * tests/test-strstr.c (main): Likewise.
48789
48790 2008-06-09  Bruno Haible  <bruno@clisp.org>
48791
48792         Work around the Solaris 10 ACE ACLs ABI change.
48793         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
48794         declare if ACL_NO_TRIVIAL is present.
48795         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
48796         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
48797         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
48798         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
48799         define if ACL_NO_TRIVIAL is present.
48800         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
48801         and use the current ABI.
48802         (file_has_acl): Use same #if condition as elsewhere.
48803         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
48804         in use, and use the current ABI.
48805         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
48806         Reported by Jim Meyering.
48807
48808 2008-06-09  Eric Blake  <ebb9@byu.net>
48809
48810         Work around environments that (stupidly) ignore SIGALRM.
48811         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
48812         before using alarm().
48813         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
48814         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
48815         Reported by Ian Beckwith <ianb@erislabs.net>.
48816
48817         Produce autobuild blurb earlier in log.
48818         * modules/autobuild (configure.ac-early): Move AB_INIT here.
48819
48820 2008-06-09  Jim Meyering  <meyering@redhat.com>
48821         and OndÅ™ej Vašík  <ovasik@redhat.com>
48822
48823         utimens.c: correct kernel bug work-around
48824         OndÅ™ej Vašík found that the invalid return value of 280 indicates
48825         failure, not success, and the kernel bug we're trying to work
48826         around affects not just the utimensat call, but also the fallback
48827         futimens call.
48828         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
48829         not success.
48830         [HAVE_FUTIMENS]: Use the same work-around, here.
48831
48832 2008-06-09  Jim Meyering  <meyering@redhat.com>
48833
48834         add more guards around definition of ACE_-related code
48835         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
48836         ALLOW and ACE_OWNER are also defined.
48837
48838 2008-06-08  Bruno Haible  <bruno@clisp.org>
48839
48840         * lib/acl-internal.h: Add me as co-author.
48841         * lib/file-has-acl.c: Likewise.
48842         * lib/set-mode-acl.c: Likewise.
48843         * lib/copy-acl.c: Likewise.
48844
48845 2008-06-08  Bruno Haible  <bruno@clisp.org>
48846
48847         Add support for AIX ACLs.
48848         * lib/acl-internal.h (acl_nontrivial): New declaration.
48849         * lib/file-has-acl.c (acl_nontrivial): New function.
48850         (file_has_acl): Add implementation using AIX 4 ACL API.
48851         * lib/set-mode-acl.c (qset_acl): Likewise.
48852         * lib/copy-acl.c (qcopy_acl): Likewise.
48853
48854 2008-06-08  Bruno Haible  <bruno@clisp.org>
48855
48856         Add support for HP-UX ACLs.
48857         * lib/acl-internal.h (acl_nontrivial): New declaration.
48858         * lib/file-has-acl.c (acl_nontrivial): New function.
48859         (file_has_acl): Add implementation using HP-UX 11 ACL API.
48860         * lib/set-mode-acl.c (qset_acl): Likewise.
48861         * lib/copy-acl.c (qcopy_acl): Likewise.
48862
48863 2008-06-08  Bruno Haible  <bruno@clisp.org>
48864
48865         Add support for Cygwin ACLs.
48866         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
48867         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
48868         the chmod_or_fchmod call.
48869         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
48870
48871 2008-06-08  Bruno Haible  <bruno@clisp.org>
48872
48873         Fix bug with setuid modes in Solaris 10+ code.
48874         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
48875         succeeded, when the mode contains some special bits.
48876
48877 2008-06-08  Bruno Haible  <bruno@clisp.org>
48878
48879         Add support for Solaris 7..10 ACLs.
48880         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
48881         declarations.
48882         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
48883         functions.
48884         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
48885         * lib/set-mode-acl.c (qset_acl): Likewise.
48886         * lib/copy-acl.c (qcopy_acl): Likewise.
48887
48888 2008-06-08  Bruno Haible  <bruno@clisp.org>
48889
48890         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
48891         declaration.
48892         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
48893         (acl_access_nontrivial): Remove MacOS X case.
48894         (file_has_acl): Use acl_extended_nontrivial.
48895         * lib/copy-acl.c (qcopy_acl): Likewise.
48896
48897 2008-06-08  Bruno Haible  <bruno@clisp.org>
48898
48899         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
48900
48901 2008-06-08  Jim Meyering  <meyering@redhat.com>
48902
48903         * modules/acl (Maintainer): Add Bruno Haible.
48904
48905 2008-06-07  Bruno Haible  <bruno@clisp.org>
48906
48907         Improve support for Tru64 ACLs.
48908         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
48909         ACL on OSF/1.
48910
48911 2008-06-07  Bruno Haible  <bruno@clisp.org>
48912
48913         Add support for MacOS X ACLs.
48914         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
48915         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
48916         * lib/set-mode-acl.c (qset_acl): Likewise.
48917         * lib/copy-acl.c (qcopy_acl): Likewise.
48918
48919 2008-06-07  Bruno Haible  <bruno@clisp.org>
48920
48921         Fix memory leak introduced on 2008-05-22.
48922         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
48923         use.
48924
48925 2008-06-07  Bruno Haible  <bruno@clisp.org>
48926
48927         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
48928         to construct an empty ACL.
48929
48930 2008-06-07  Bruno Haible  <bruno@clisp.org>
48931
48932         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
48933         precisely.
48934         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
48935
48936 2008-06-07  Bruno Haible  <bruno@clisp.org>
48937
48938         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
48939         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
48940
48941 2008-06-07  Bruno Haible  <bruno@clisp.org>
48942
48943         * doc/posix-functions/_setjmp.texi: Explain the use of this function
48944         regardless of POSIX.
48945         * doc/posix-functions/_longjmp.texi: Likewise.
48946         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
48947         SystemV platform in this case.
48948
48949 2008-06-06  Eric Blake  <ebb9@byu.net>
48950
48951         Document abort() bugs.
48952         * doc/posix-functions/abort.texi (abort): Mention anomalies.
48953
48954         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
48955         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
48956         sigsetjmp.
48957         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
48958         siglongjmp, but only as a macro.
48959         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
48960         is obsolete.
48961         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
48962
48963         Tweak documentation to cover cygwin argz bugs.
48964         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
48965         argz bug fix; no code change needed since no cygwin releases
48966         occurred between the last fix and the bug being tested.
48967         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
48968         module and recently fixed cygwin bugs.
48969         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
48970         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
48971         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
48972         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
48973         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
48974         Likewise.
48975         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
48976         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
48977         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
48978         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
48979         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
48980         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
48981         Likewise.
48982
48983         Avoid gcc warning on cygwin.
48984         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
48985         !ACL_NO_TRIVIAL]: Avoid unused variable.
48986
48987 2008-06-05  Eric Blake  <ebb9@byu.net>
48988
48989         Be tolerant of UNKNOWN version in gnulib-tool test dir.
48990         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
48991         git-version-gen fails to come up with a version.
48992         Reported by Simon Josefsson.
48993
48994 2008-06-05  Jim Meyering  <meyering@redhat.com>
48995             Paul Eggert  <eggert@cs.ucla.edu>
48996
48997         utimens.c: work around a probable Linux kernel bug
48998         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
48999         appears to be a kernel bug that causes utimensat to return 280
49000         instead of 0, indicating success.
49001
49002 2008-06-04  Bruno Haible  <bruno@clisp.org>
49003
49004         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
49005         2008-06-01 commit.
49006
49007 2008-06-04  Bruno Haible  <bruno@clisp.org>
49008
49009         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
49010         * lib/file-has-acl.c (acl_access_nontrivial): New function.
49011         (file_has_acl): Use it. Save errno afterwards.
49012         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
49013
49014 2008-06-03  Bruno Haible  <bruno@clisp.org>
49015
49016         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
49017         draft code. Simplify #ifs.
49018         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
49019         Put Solaris code after POSIX-draft code. Fix comments regarding
49020         Solaris 10, HP-UX. Mention Cygwin.
49021         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
49022
49023 2008-06-03  Eric Blake  <ebb9@byu.net>
49024
49025         Provide fallback for older kernels.
49026         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
49027         Provide runtime fallback if kernel lacks support.
49028         Reported by Mike Frysinger.
49029
49030 2008-06-02  Bruno Haible  <bruno@clisp.org>
49031
49032         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
49033         it exists.
49034
49035 2008-06-02  Bruno Haible  <bruno@clisp.org>
49036
49037         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
49038         * lib/copy-acl.c (qcopy_acl): Update comment.
49039
49040 2008-06-02  Bruno Haible  <bruno@clisp.org>
49041
49042         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
49043         like ACL APIs.
49044
49045 2008-06-02  Bruno Haible  <bruno@clisp.org>
49046
49047         * tests/test-file-has-acl.sh: Use different code for Cygwin.
49048         * tests/test-set-mode-acl.sh: Likewise.
49049         * tests/test-copy-acl.sh: Likewise.
49050         * tests/test-copy-file.sh: Likewise.
49051
49052 2008-06-02  Bruno Haible  <bruno@clisp.org>
49053
49054         * tests/test-file-has-acl.sh: Remove unused code.
49055
49056 2008-06-01  Bruno Haible  <bruno@clisp.org>
49057
49058         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
49059         (copy_acl): Just a wrapper around qcopy_acl that emits the error
49060         messages.
49061         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
49062
49063 2008-06-01  Bruno Haible  <bruno@clisp.org>
49064
49065         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
49066         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
49067         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
49068         APIs.
49069         * modules/acl-tests (configure.ac): Remove tests now contained in
49070         m4/acl.m4.
49071
49072 2008-06-02  Jim Meyering  <meyering@redhat.com>
49073
49074         announce-gen: use a better key-server host name
49075         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
49076         it may be more consistently reliable.  Suggested by Werner Koch
49077         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
49078
49079 2008-06-01  Bruno Haible  <bruno@clisp.org>
49080
49081         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
49082         Reported by Voroskoi Andras <voroskoi@gmail.com>.
49083
49084 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
49085
49086         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
49087
49088 2008-06-01  Bruno Haible  <bruno@clisp.org>
49089
49090         New ACL tests.
49091         * tests/test-file-has-acl.sh: New file.
49092         * tests/test-file-has-acl.c: New file.
49093         * tests/test-set-mode-acl.sh: New file.
49094         * tests/test-set-mode-acl.c: New file.
49095         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
49096         * tests/test-copy-acl.c: New file.
49097         * modules/acl-tests: New file, based on modules/copy-file-tests.
49098         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
49099         (Depends-on): Add acl-tests.
49100         (configure.ac): Remove checks.
49101         (Makefile.am): Don't create test-sameacls program here any more.
49102
49103 2008-06-01  Bruno Haible  <bruno@clisp.org>
49104
49105         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
49106         * tests/test-sameacls.c: Include progname.h.
49107         (main): Invoke set_program_name. Portability fixes for MacOS X,
49108         Solaris, HP-UX.
49109
49110 2008-06-01  Bruno Haible  <bruno@clisp.org>
49111
49112         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
49113         function.
49114         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
49115
49116 2008-06-01  Bruno Haible  <bruno@clisp.org>
49117
49118         * modules/rpmatch (Depends-on): Add strdup.
49119
49120 2008-06-01  Bruno Haible  <bruno@clisp.org>
49121
49122         * lib/pipe.c: Include unistd-safer.h.
49123         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
49124         * modules/pipe (Depends-on): Add unistd-safer.
49125
49126 2008-05-30  Simon Josefsson  <simon@josefsson.org>
49127
49128         * modules/autobuild (configure.ac): Call AB_INIT.
49129
49130 2008-05-30  Simon Josefsson  <simon@josefsson.org>
49131
49132         * tests/test-getaddrinfo.c: Don't print debug messages by default.
49133         Suggested by Bruno Haible <bruno@clisp.org>.
49134
49135 2008-05-30  Simon Josefsson  <simon@josefsson.org>
49136
49137         * tests/test-base64.c: Cast size_t to unsigned long when invoking
49138         printf.  Use %lu instead of %d.  Reported by Bruno Haible
49139         <bruno@clisp.org>.
49140
49141 2008-05-29  Eric Blake  <ebb9@byu.net>
49142
49143         Prefer new POSIX 200x interfaces over futimesat.
49144         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
49145         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
49146         when available.
49147         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
49148
49149 2008-05-28  Bruno Haible  <bruno@clisp.org>
49150
49151         * modules/stpcpy (License): Change to LGPLv2+.
49152         Requested by David Lutterkort <dlutter@redhat.com>.
49153
49154 2008-05-27  Bruno Haible  <bruno@clisp.org>
49155
49156         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
49157         current mingw.
49158         Reported by Jose E. Marchesi <jemarch@gnu.org>.
49159
49160 2008-05-27  Bruno Haible  <bruno@clisp.org>
49161
49162         * modules/iconv_open (Link): New section, from module 'iconv'.
49163         * modules/striconv (Link): Likewise.
49164         * modules/striconveh (Link): Likewise.
49165         * modules/xstriconv (Link): Likewise.
49166         * modules/unicodeio (Link): Likewise.
49167         * modules/propername (Link): Likewise.
49168         Reported by Jim Meyering.
49169
49170 2008-05-26  Jim Meyering  <meyering@redhat.com>
49171
49172         sha256: do not artificially restrict buffer length to be < 2^32
49173         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
49174         uint32_t to size_t.
49175         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
49176         to match.
49177
49178         avoid unaligned access errors, e.g., on sparc
49179         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
49180         direct access through a possibly-unaligned uint64* pointer.
49181         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
49182         direct access through a possibly-unaligned uint32* pointer.
49183         Prompted by this patch from Tom "spot" Callaway:
49184         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
49185
49186         sha512.c: fix typo in comment
49187         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
49188
49189 2008-05-25  Bruno Haible  <bruno@clisp.org>
49190
49191         * lib/set-mode-acl.c: Renamed from lib/acl.c.
49192         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
49193         (Makefile.am): Update lib_SOURCES.
49194
49195 2008-05-25  Bruno Haible  <bruno@clisp.org>
49196
49197         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
49198
49199 2008-05-25  Jim Meyering  <meyering@redhat.com>
49200
49201         useless-if-before-free: freed expr may have white-space differences
49202         * build-aux/useless-if-before-free: Recognize cases in which the
49203         freed expression differs from the tested one in embedded white
49204         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
49205         $1 was used, so we can't make any regexp shy.  Improved tests now
49206         detect this.
49207
49208         useless-if-before-free: accept white space in the expression.
49209         * build-aux/useless-if-before-free: For now, any white space
49210         in the expression must be identical in the free argument.
49211
49212         useless-if-before-free: efficiency tweak
49213         * build-aux/useless-if-before-free: Make the expression-matching
49214         regexp "shy".
49215         Make the *outer* regexp shy, not the expr-matching one.
49216
49217         update code-in-comment to accept cast of free arg
49218         * build-aux/useless-if-before-free: Update regexp.
49219
49220 2008-05-25  Bruno Haible  <bruno@clisp.org>
49221
49222         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
49223         * modules/copy-file-tests (Files, Makefile.am): Update.
49224         * tests/test-copy-file.c (func_test_copy): Update.
49225
49226 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
49227
49228         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
49229
49230 2008-05-23  Bruno Haible  <bruno@clisp.org>
49231
49232         Improve support for ACLs on OSF/1.
49233         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
49234         Remove fallback for unknown flavors of ACLs.
49235
49236 2008-05-22  Bruno Haible  <bruno@clisp.org>
49237
49238         Add support for ACLs on OSF/1.
49239         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
49240         replacements.
49241         (acl_free_text): New macro fallback.
49242         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
49243         acl_free.
49244         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
49245         acl_free_text function. Require AC_C_INLINE.
49246
49247 2008-05-22  Bruno Haible  <bruno@clisp.org>
49248
49249         Make copy_acl work on MacOS X 10.5.
49250         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
49251         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
49252         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
49253         If MODE_INSIDE_ACL, don't assume that every system has the same text
49254         representation for ACLs as FreeBSD.
49255         * lib/copy-acl.c (copy_acl): Add support for platforms with
49256         !MODE_INSIDE_ACL.
49257         * lib/file-has-acl.c (file_has_acl): Likewise.
49258         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
49259         FreeBSD, MacOS X, or IRIX, respectively.
49260
49261 2008-05-22  Bruno Haible  <bruno@clisp.org>
49262
49263         * lib/acl.h: Don't include <sys/acl.h>.
49264         (GETACLCNT): Move fallback to lib/acl-internal.h.
49265         * lib/acl-internal.h: Include <sys/acl.h> here.
49266         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
49267
49268 2008-05-22  Bruno Haible  <bruno@clisp.org>
49269
49270         Split off copy_acl function to separate file.
49271         * lib/copy-acl.c: New file, extracted from lib/acl.c.
49272         * lib/acl.c (copy_acl): Moved function to separate file.
49273         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
49274         * modules/acl (Files): Add lib/copy-acl.c.
49275         (Makefiles.am): Augment lib_SOURCES.
49276
49277 2008-05-22  Bruno Haible  <bruno@clisp.org>
49278
49279         * modules/copy-file-tests: New file.
49280         * tests/test-copy-file.sh: New file.
49281         * tests/test-copy-file.c: New file.
49282         * tests/test-copy-file-sameacls.c: New file.
49283
49284 2008-05-22  Eric Blake  <ebb9@byu.net>
49285
49286         Avoid gcc warning.
49287         * tests/test-memcmp.c (main): Pass NULL indirectly.
49288
49289 2008-05-21  Bruno Haible  <bruno@clisp.org>
49290
49291         Add reference doc about ACLs.
49292         * doc/acl-resources.txt: New file.
49293         * doc/acl-cygwin.txt: New file.
49294
49295 2008-05-21  Bruno Haible  <bruno@clisp.org>
49296
49297         Avoid one more warning from gcc.
49298         * lib/vasnprintf.c (IF_LINT): Update comments.
49299         (VASNPRINTF): Use it also for the 'prefix' array initializer.
49300
49301 2008-05-21  Jim Meyering  <meyering@redhat.com>
49302
49303         avoid a warning from gcc
49304         * lib/vasnprintf.c (IF_LINT): Define.
49305         (scale10_round_decimal_long_double):
49306         Use it to avoid a "may be used uninitialized" warning.
49307         (scale10_round_decimal_double): Likewise.
49308
49309 2008-05-21  Simon Josefsson  <simon@josefsson.org>
49310
49311         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
49312         declared.
49313
49314 2008-05-20  Bruno Haible  <bruno@clisp.org>
49315
49316         * tests/test-memcmp.c (main): Test also the sign of the result. Test
49317         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
49318
49319 2008-05-20  Simon Josefsson  <simon@josefsson.org>
49320
49321         * modules/memcmp-tests: New file.
49322         * tests/test-memcmp.c: New file.
49323
49324 2008-05-19  Bruno Haible  <bruno@clisp.org>
49325
49326         * modules/propername (Notice, configure.ac): Put quoted "..." into
49327         --keyword option.
49328         * lib/propername.h: Update comments accordingly.
49329         Reported by Eric Blake.
49330
49331 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
49332
49333         * modules/getpass-gnu (Depends-on): Add fseeko.
49334
49335 2008-05-19  Simon Josefsson  <simon@josefsson.org>
49336
49337         * modules/base64-tests: New file.
49338
49339 2008-05-19  Bo Borgerson <gigabo@gmail.com>
49340
49341         * lib/base64.c (base64_decode_ctx): If a decode context structure
49342         was passed in use it to ignore newlines.  If a context structure
49343         was _not_ passed in, continue to treat newlines as garbage (this
49344         is the historical behavior).  Formerly base64_decode.
49345         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
49346         takes a decode context structure.
49347         * lib/base64.h (base64_decode): Macro for four-argument calls.
49348         (base64_decode_alloc): Likewise.
49349         * lib/base64.c (base64_decode_ctx): If a decode context structure
49350         was passed in use it to ignore newlines.  If a context structure
49351         was _not_ passed in, continue to treat newlines as garbage (this
49352         is the historical behavior).  Formerly base64_decode.
49353         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
49354         takes a decode context structure.
49355         * lib/base64.h (base64_decode): Macro for four-argument calls.
49356         (base64_decode_alloc): Likewise.
49357
49358 2008-05-19  Jim Meyering  <meyering@redhat.com>
49359
49360         avoid a warning from gcc
49361         * lib/trim.c (IF_LINT): Define.
49362         (trim2): Use it to avoid a "may be used uninitialized" warning.
49363
49364         Fix doc typo.
49365         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
49366
49367 2008-05-19  Bruno Haible  <bruno@clisp.org>
49368
49369         * doc/glibc-functions/getpass.texi: Document limits of other
49370         implementations.
49371
49372 2008-05-19  Simon Josefsson  <simon@josefsson.org>
49373             Bruno Haible <bruno@clisp.org>
49374
49375         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
49376
49377 2008-05-18  Bruno Haible  <bruno@clisp.org>
49378
49379         * modules/propername: New file, from GNU gettext.
49380         * lib/propername.h: New file, from GNU gettext.
49381         * lib/propername.c: New file, from GNU gettext.
49382         * MODULES.html.sh (Internationalization functions): Add propername.
49383
49384 2008-05-16  Jim Meyering  <meyering@redhat.com>
49385             Bruno Haible  <bruno@clisp.org>
49386
49387         Avoid some warnings from "gcc -Wshadow".
49388         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
49389
49390 2008-05-15  Eric Blake  <ebb9@byu.net>
49391
49392         Extend previous patch to cygwin 1.7.0.
49393         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
49394         fast implementation in cygwin >= 1.7.0.
49395         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
49396         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
49397
49398 2008-05-15  Bruno Haible  <bruno@clisp.org>
49399
49400         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
49401         implementation in glibc >= 2.9.
49402         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
49403         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
49404
49405 2008-05-15  Bruno Haible  <bruno@clisp.org>
49406
49407         * MODULES.html.sh (Internationalization functions): Remove linebreak.
49408         (Unicode string functions): Add unilbrk/*.
49409         Reported by Karl Berry.
49410
49411 2008-05-15  Eric Blake  <ebb9@byu.net>
49412
49413         Fix violation of <stdbool.h> replacement in regex.
49414         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
49415         * lib/regexec.c (re_search_internal): Likewise.
49416         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
49417
49418 2008-05-15  Jim Meyering  <meyering@redhat.com>
49419
49420         avoid distracting test output when git or cvs is not found
49421         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
49422         * tests/test-vc-list-files-git.sh: Likewise.
49423
49424 2008-05-15  Eric Blake  <ebb9@byu.net>
49425
49426         Glibc finally accepted the memmem speedup code, bugzilla #5514.
49427         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
49428         glibc version.
49429         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
49430         * doc/posix-functions/strstr.texi (strstr): Likewise.
49431         * lib/str-two-way.h (MAX): Sychronize with glibc.
49432
49433 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
49434
49435         * lib/regcomp.c (optimize_utf8): Add a note on why we test
49436         opr.ctx_type.
49437         (calc_first): Initialize constraint field.
49438         (duplicate_node_closure): Use it instead of special casing ANCHORS.
49439         Fix grammar.
49440         (duplicate_node): Merge constraint field for all node types.
49441         (calc_eclosure_iter): Look at constraint field for all node types.
49442         * lib/regex_internal.c (create_cd_newstate): Don't look at
49443         opr.ctx_type.
49444
49445 2008-05-14  Bruno Haible  <bruno@clisp.org>
49446
49447         Help GCC to do better code generation.
49448         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
49449         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
49450         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
49451         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
49452         Declare with attribute 'malloc' if supported.
49453
49454 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
49455
49456         use "echo STR|wc -c" rather than unportable "expr length STR"
49457         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
49458         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
49459
49460 2008-05-14  Jim Meyering  <meyering@redhat.com>
49461
49462         use dd ibs=$n count=1 ... rather than less-portable head -c$n
49463         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
49464         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
49465         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
49466         via Collin Lasse.
49467
49468 2008-05-14  Eric Blake  <ebb9@byu.net>
49469
49470         Avoid quadratic growth in gl_LIBSOURCES.
49471         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
49472         Suggested by Bruno Haible.
49473
49474         Test xmemdup0.
49475         * modules/xmemdup0-tests: New file.
49476         * tests/test-xmemdup0.c: Likewise.
49477
49478 2008-05-13  Eric Blake  <ebb9@byu.net>
49479
49480         Split xmemdup0 into its own module.
49481         * modules/xmemdup0: New file.
49482         * lib/xmemdup0.h: Likewise.
49483         * lib/xmemdup0.c: Likewise.
49484         * MODULES.html.sh (Memory management functions): Add xmemdup0.
49485         * lib/xalloc.h (xmemdup0): Remove.
49486         * lib/xmalloc.c (xmemdup0): Likewise.
49487
49488 2008-05-13  Eric Blake  <ebb9@byu.net>
49489             Bruno Haible  <bruno@clisp.org>
49490
49491         Reduce number of forks required during autoconf.
49492         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
49493         and gl_LIBSOURCES_DIR.
49494         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
49495         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
49496         m4_syscmd per file.
49497         <m4_foreach_w>: Move...
49498         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
49499
49500 2008-05-13  Eric Blake  <ebb9@byu.net>
49501
49502         * gnulib-tool: Fix various comment typos.
49503
49504 2008-05-12  Bruno Haible  <bruno@clisp.org>
49505
49506         Tailor the linebreaking algorithm.
49507         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
49508
49509 2008-05-12  Bruno Haible  <bruno@clisp.org>
49510
49511         Update to Unicode 5.0.0.
49512         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
49513         LBP_JV, LBP_JT. Redistribute values.
49514         (unilbrk_table): Change size.
49515         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
49516         Unicode TR#14 rev. 22.
49517         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
49518         LBP_JV, LBP_JT. Redistribute values.
49519         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
49520         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
49521         Update.
49522         * lib/unilbrk/lbrkprop1.h: Regenerated.
49523         * lib/unilbrk/lbrkprop2.h: Regenerated.
49524         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
49525         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
49526         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
49527         Likewise.
49528         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
49529         Likewise.
49530         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
49531         result.
49532         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
49533         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
49534         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
49535         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
49536         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
49537         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
49538
49539 2008-05-11  Bruno Haible  <bruno@clisp.org>
49540
49541         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
49542
49543 2008-05-11  Bruno Haible  <bruno@clisp.org>
49544
49545         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
49546         * modules/unilbrk/gen-lbrk: New file.
49547
49548 2008-05-11  Bruno Haible  <bruno@clisp.org>
49549
49550         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
49551         * m4/sha512.m4 (gl_SHA512): Likewise.
49552
49553 2008-05-11  Jim Meyering  <meyering@redhat.com>
49554
49555         New modules: crypto/sha256, crypto/sha512 (from coreutils)
49556         * modules/crypto/sha256: New file.
49557         * modules/crypto/sha512: Likewise.
49558         * lib/sha256.c: Likewise.
49559         * lib/sha256.h: Likewise.
49560         * lib/sha512.c: Likewise.
49561         * lib/sha512.h: Likewise.
49562         * lib/u64.h: Likewise.
49563         * m4/sha256.m4: Likewise.
49564         * m4/sha512.m4: Likewise.
49565         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
49566
49567 2008-05-10  Bruno Haible  <bruno@clisp.org>
49568
49569         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
49570         (Input/Output <stdio.h>): Add xprintf.
49571         (Signal handling <signal.h>): Add strsignal.
49572         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
49573         (Core language properties): Add func.
49574         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
49575         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
49576         strings.
49577         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
49578         (Input/output): New section.
49579         (File system functions): Add openat-die, stat-macros.
49580         (Networking functions): Add sockets.
49581         (Unicode string functions): Add unictype/*.
49582         (Support for building libraries and executables): Add gperf.
49583         (Support for building documentation): Add agpl-3.0.
49584         (Misc): Add nocrash.
49585
49586 2008-05-10  Bruno Haible  <bruno@clisp.org>
49587
49588         * modules/unictype/gen-ctype: New file.
49589
49590 2008-05-10  Jim Meyering  <meyering@redhat.com>
49591
49592         Make chdir-safer.c more efficient on a system with no symlinks.
49593         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
49594         also if ELOOP is zero.  Suggested by Bruno Haible.
49595
49596         Make chdir-safer.c slightly safer.
49597         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
49598         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
49599
49600         Avoid compile failure on systems without ELOOP (like mingw).
49601         * lib/chdir-safer.c (ELOOP): Define if not already defined.
49602         Reported by Bruno Haible.
49603
49604 2008-05-10  Bruno Haible  <bruno@clisp.org>
49605
49606         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
49607         (is_utf8_encoding): Use a case-insensitive comparison.
49608         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
49609         streq.
49610
49611 2008-05-10  Bruno Haible  <bruno@clisp.org>
49612
49613         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
49614         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
49615         * lib/unilbrk/ulc-common.h (iconv_string_length,
49616         iconv_string_keeping_offsets): Remove declarations.
49617         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
49618         Don't include <iconv.h>, streq.h, xsize.h.
49619         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
49620         conversion.
49621         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
49622         <iconv.h>, streq.h, xsize.h.
49623         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
49624         conversion.
49625         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
49626         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
49627         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
49628         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
49629
49630 2008-05-10  Bruno Haible  <bruno@clisp.org>
49631
49632         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
49633         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
49634
49635         * modules/unilbrk/u32-width-linebreaks-tests: New file.
49636         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
49637
49638         * modules/unilbrk/u16-width-linebreaks-tests: New file.
49639         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
49640
49641         * modules/unilbrk/u8-width-linebreaks-tests: New file.
49642         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
49643
49644         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
49645         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
49646
49647         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
49648         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
49649
49650         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
49651         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
49652
49653         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
49654         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
49655
49656 2008-05-10  Bruno Haible  <bruno@clisp.org>
49657
49658         Split up 'linebreak' module.
49659         * lib/unilbrk.h: New file, based on lib/linebreak.h.
49660         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
49661         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
49662         modifications.
49663         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
49664         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
49665         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
49666         lib/linebreak.c.
49667         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
49668         lib/linebreak.c.
49669         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
49670         lib/linebreak.c.
49671         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
49672         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
49673         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
49674         lib/linebreak.c.
49675         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
49676         lib/linebreak.c.
49677         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
49678         lib/linebreak.c.
49679         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
49680         lib/linebreak.c.
49681         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
49682         lib/linebreak.c.
49683         * modules/unilbrk/base: New file.
49684         * modules/unilbrk/tables: New file.
49685         * modules/unilbrk/u8-possible-linebreaks: New file.
49686         * modules/unilbrk/u16-possible-linebreaks: New file.
49687         * modules/unilbrk/u32-possible-linebreaks: New file.
49688         * modules/unilbrk/ulc-common: New file.
49689         * modules/unilbrk/ulc-possible-linebreaks: New file.
49690         * modules/unilbrk/u8-width-linebreaks: New file.
49691         * modules/unilbrk/u16-width-linebreaks: New file.
49692         * modules/unilbrk/u32-width-linebreaks: New file.
49693         * modules/unilbrk/ulc-width-linebreaks: New file.
49694         * lib/linebreak.h: Remove file.
49695         * lib/linebreak.c: Remove file.
49696         * m4/linebreak.m4: Remove file.
49697         * modules/linebreak: Remove file.
49698         * NEWS: Mention the changes.
49699
49700 2008-05-09  Eric Blake  <ebb9@byu.net>
49701
49702         Add xmemdup0.
49703         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
49704         implementation.
49705         * lib/xmalloc.c (xmemdup0): New C implementation.
49706
49707 2008-05-08  Bruno Haible  <bruno@clisp.org>
49708
49709         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
49710
49711 2008-05-07  Eric Blake  <ebb9@byu.net>
49712
49713         Support cross-compilation of <wctype.h>.
49714         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
49715         AC_CACHE_CHECK.
49716
49717 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
49718
49719         * build-aux/vc-list-files: Add support for bzr.
49720
49721 2008-05-03  Jim Meyering  <meyering@redhat.com>
49722
49723         avoid failed assertion with tight malloc
49724         * tests/test-getndelim2.c: Correct an off-by-one assertion.
49725
49726 2008-05-03  Simon Josefsson  <simon@josefsson.org>
49727
49728         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
49729         are needed from arpa/inet.h.
49730         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
49731         Reported by Bruno Haible.
49732
49733 2008-05-02  Jim Meyering  <meyering@redhat.com>
49734
49735         avoid compilation error on FreeBSD 6
49736         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
49737
49738 2008-05-01  Jim Meyering  <meyering@redhat.com>
49739
49740         useless-if-before-free: correct --help's exit status description
49741         * build-aux/useless-if-before-free (usage): Like grep, exit 0
49742         for one or more matches, etc.  Reported by Bruno Haible.
49743
49744         vc-list-files: make the stand-alone gnulib test work
49745         * modules/vc-list-files-tests (configure.ac):
49746         Define and AC_SUBST abs_aux_dir.
49747         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
49748         $(abs_top_srcdir) to each script and having each of them
49749         duplicate the work of setting PATH, set PATH here, using
49750         the new variable, abs_aux_dir instead.
49751         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
49752         * tests/test-vc-list-files-git.sh: Likewise.
49753         Reported by Bruno Haible.
49754
49755 2008-05-01  Bruno Haible  <bruno@clisp.org>
49756
49757         * lib/getndelim2.c (getndelim2): Fix newsize computation during
49758         reallocation. Rename 'done' to 'found_delimiter'.
49759
49760 2008-05-01  Jim Meyering  <meyering@redhat.com>
49761
49762         vc-list-files: accommodate /bin/sh like the one from Solaris 10
49763         * build-aux/vc-list-files: Use `...`, not $(...).
49764
49765 2008-04-30  Jim Meyering  <meyering@redhat.com>
49766
49767         add tests for vc-list-files
49768         * modules/vc-list-files-tests: New module.
49769         * tests/test-vc-list-files-cvs.sh: New file.
49770         * tests/test-vc-list-files-git.sh: New file.
49771
49772         avoid a warning from gcc
49773         * lib/getndelim2.c (IF_LINT): Define.
49774         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
49775
49776         vc-list-files: work properly with build-aux/cvsu, too
49777         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
49778         to all cvs-based clauses.
49779
49780         vc-list-files: work properly in the CVS+awk case, too
49781         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
49782
49783         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
49784         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
49785         take more than one file argument, so .  Add quotes, just in case $dir
49786         ever contains a shell meta-character.  Prompted by Soren Hansen in
49787         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
49788
49789 2008-04-29  Eric Blake  <ebb9@byu.net>
49790
49791         Optimize getndelim2 to use block operations when possible.
49792         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
49793         freadseek, and memchr2.
49794         * lib/getndelim2.c (getndelim2): Use them for block reads.
49795
49796 2008-04-29  Bruno Haible  <bruno@clisp.org>
49797
49798         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
49799         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
49800         * modules/inet_ntop (Depends-on): Add extensions.
49801         * modules/inet_pton (Depends-on): Likewise.
49802         Reported by Simon Josefsson.
49803
49804 2008-04-29  Jim Meyering  <meyering@redhat.com>
49805
49806         When the is more than one match in a block, match all of them.
49807         * build-aux/useless-if-before-free: Iterate through each block
49808         until there are no more matches.
49809
49810         Fix broken useless-if-before-free script.
49811         * build-aux/useless-if-before-free: Fix typo: missing "?" after
49812         the expression to match cast of argument to free-like function.
49813
49814 2008-04-29  Eric Blake  <ebb9@byu.net>
49815
49816         Use new header.
49817         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
49818
49819 2008-04-29  Jim Meyering  <meyering@redhat.com>
49820
49821         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
49822         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
49823         by gnulib to exist and to declare e.g., inet_ntop.
49824         Don't include "inet_ntop.h", now removed.
49825
49826         * m4/arpa_inet_h.m4: Remove trailing blanks.
49827
49828 2008-04-29  Eric Blake  <ebb9@byu.net>
49829
49830         Silence valgrind on safe reads beyond potential array bounds.
49831         * lib/rawmemchr.valgrind: New file.
49832         * lib/strchrnul.valgrind: Likewise.
49833         * modules/rawmemchr (Files): Distribute new file.
49834         * modules/strchrnul (Files): Likewise.
49835         Suggested by Bruno Haible.
49836
49837 2008-04-29  Bruno Haible  <bruno@clisp.org>
49838
49839         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
49840         (inet_ntop, inet_pton): Change portability warning's wording.
49841         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
49842         Invoke gl_CHECK_NEXT_HEADERS.
49843         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
49844         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
49845         set ARPA_INET_H.
49846         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
49847         * modules/arpa_inet (Description): No longer only for systems that
49848         lack it.
49849         (Depends-on): Add include_next.
49850         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
49851         HAVE_ARPA_INET_H.
49852
49853 2008-04-29  Jim Meyering  <meyering@redhat.com>
49854
49855         * modules/mkdir (License): Re-license as LGPLv2+.
49856
49857 2008-04-29  Bruno Haible  <bruno@clisp.org>
49858
49859         * modules/rawmemchr (Maintainer): Set to Eric.
49860         * modules/strchrnul (Maintainer): Likewise.
49861
49862 2008-04-29  Simon Josefsson  <simon@josefsson.org>
49863
49864         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
49865         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
49866
49867         * modules/arpa_inet (arpa/inet.h): Use them.
49868
49869 2008-04-28  Eric Blake  <ebb9@byu.net>
49870
49871         Test getndelim2.
49872         * modules/getndelim2-tests: New file.
49873         * tests/test-getndelim2.c: Likewise.
49874         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
49875         stream.
49876         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
49877
49878         * MODULES.html.sh: Document new module.
49879
49880 2008-04-20  Bruno Haible  <bruno@clisp.org>
49881
49882         * lib/c-stack.c (die): Use raise.
49883         * modules/c-stack (Depends-on): Add raise.
49884
49885 2008-04-28  Bruno Haible  <bruno@clisp.org>
49886
49887         Expect rpmatch to be declared.
49888         * lib/yesno.c (rpmatch): Remove declaration.
49889
49890         Declare rpmatch.
49891         * lib/stdlib.in.h (rpmatch): New declaration.
49892         * lib/rpmatch.c: Include <stdlib.h> first.
49893         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
49894         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
49895         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
49896         HAVE_RPMATCH.
49897         * modules/rpmatch (Depends-on): Add stdlib, extensions.
49898         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
49899         (Include): Set to <stdlib.h>.
49900         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
49901         HAVE_RPMATCH.
49902         * NEWS: Document the change.
49903
49904 2008-04-28  Bruno Haible  <bruno@clisp.org>
49905
49906         Change rpmatch to use nl_langinfo when appropriate.
49907         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
49908         (N_): New macro.
49909         (localized_pattern): New function/macro.
49910         (try): Remove match, nomatch arguments. Copy the pattern into safe
49911         memory before caching it.
49912         (rpmatch): Use localized_pattern. Add translator comments.
49913         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
49914         Suggested by Eric Blake.
49915         * modules/rpmatch (Depends-on): Add stdbool.
49916
49917 2008-04-28  Eric Blake  <ebb9@byu.net>
49918
49919         Add rawmemchr module, matching glibc.
49920         * modules/string (Makefile.am): New indicator.
49921         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
49922         * lib/string.in.h (rawmemchr): Declare when appropriate.
49923         * modules/rawmemchr: New file.
49924         * m4/rawmemchr.m4: Likewise.
49925         * lib/rawmemchr.c: Likewise.
49926         * modules/rawmemchr-tests: Likewise.
49927         * tests/test-rawmemchr.c: Likewise.
49928         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
49929         module.
49930         * modules/strchrnul (Depends-on): Add rawmemchr.
49931         * lib/strchrnul.c (strchrnul): Optimize a corner case.
49932
49933         Whitespace cleanup.
49934         * tests/test-strchrnul.c: Reindent.
49935         * lib/strchrnul.c: Likewise.
49936
49937         Optimize and test strchrnul.
49938         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
49939         * modules/strchrnul-tests: New file.
49940         * tests/test-strchrnul.c: Likewise.
49941
49942         Remove intprops dependency.
49943         * modules/memchr (Depends-on): Remove intprops.
49944         * modules/memrchr (Depends-on): Likewise.
49945         * modules/memchr2 (Depends-on): Likewise.
49946         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
49947         * lib/memrchr.c (__memrchr): Likewise.
49948         * lib/memrchr2.c (memchr2): Likewise.
49949         Reported by Simon Josefsson.
49950
49951 2008-04-28  Simon Josefsson  <simon@josefsson.org>
49952
49953         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
49954         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
49955
49956 2008-04-28  Simon Josefsson  <simon@josefsson.org>
49957
49958         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
49959
49960         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
49961
49962         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
49963
49964         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
49965         declarations.
49966         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
49967
49968         * m4/inet_pton.m4: Don't check for header files.
49969
49970         * m4/inet_ntop.m4: Don't check for header files.
49971
49972 2008-04-28  Simon Josefsson  <simon@josefsson.org>
49973
49974         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
49975         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
49976         trigger for cygwin).
49977         Reported by Bruno Haible  <bruno@clisp.org>.
49978
49979 2008-04-28  Bruno Haible  <bruno@clisp.org>
49980
49981         * doc/posix-functions/strdup.texi: Mention mingw problem.
49982
49983 2008-04-27  Bruno Haible  <bruno@clisp.org>
49984
49985         * modules/stat-time-tests (Depends-on): Add sleep.
49986         * tests/test-stat-time.c (force_unlink): New function.
49987         (cleanup): Use it.
49988         (test_mtime): Remove the ctime related tests.
49989         (test_ctime): New function, containing the ctime related tests.
49990         (main): Call test_ctime, except on native Windows platforms.
49991
49992 2008-04-27  Bruno Haible  <bruno@clisp.org>
49993
49994         * lib/rpmatch.c (rpmatch): Add some comments.
49995         Reported by James Youngman <jay@gnu.org>.
49996
49997 2008-04-27  Bruno Haible  <bruno@clisp.org>
49998
49999         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
50000         quiet NaNs.
50001
50002 2008-04-27  Bruno Haible  <bruno@clisp.org>
50003
50004         Make test-yesno.sh work on mingw.
50005         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
50006         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
50007         (main): Set stdin to binary mode.
50008         * modules/yesno-tests (Depends-on): Add binary-io.
50009
50010 2008-04-27  Bruno Haible  <bruno@clisp.org>
50011
50012         Fix 'isfinite' on x86, x86_64, ia64 platforms.
50013         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
50014         argument that lie outside the IEEE 854 domain.
50015         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
50016         (gl_ISFINITE): Use it.
50017         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
50018
50019 2008-04-27  Bruno Haible  <bruno@clisp.org>
50020
50021         Allow local renaming in config.h.
50022         * lib/memrchr.c (memrchr): Don't undefine outside libc.
50023
50024 2008-04-27  Bruno Haible  <bruno@clisp.org>
50025
50026         * lib/memchr.c (__memchr): Change type of 'i'.
50027         * lib/memchr2.c (memchr2): Likewise.
50028
50029 2008-04-26  Eric Blake  <ebb9@byu.net>
50030         and Bruno Haible  <bruno@clisp.org>
50031
50032         Optimize and test memrchr.
50033         * modules/memrchr (Depends-on): Add intprops.
50034         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
50035         * modules/memrchr-tests: New file.
50036         * tests/test-memrchr.c: New file.
50037
50038 2008-04-26  Bruno Haible  <bruno@clisp.org>
50039
50040         Add tentative support for DragonFly BSD.
50041         * lib/stdio-impl.h: Add macros for DragonFly BSD.
50042         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
50043         fp.
50044         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
50045         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
50046         * lib/fpurge.c (fpurge): Likewise.
50047         * lib/freadable.c (freaadable): Likewise.
50048         * lib/freadahead.c (freadahead): Likewise.
50049         * lib/freading.c (freading): Likewise.
50050         * lib/freadptr.c (freadptr): Likewise.
50051         * lib/freadseek.c (freadptrinc): Likewise.
50052         * lib/fseeko.c (fseeko): Likewise.
50053         * lib/fseterr.c (fseterr): Likewise.
50054         * lib/fwritable.c (fwritable): Likewise.
50055         * lib/fwriting.c (fwriting): Likewise.
50056
50057 2008-04-26  Bruno Haible  <bruno@clisp.org>
50058
50059         * lib/stdio-impl.h: New file.
50060         * lib/fbufmode.c: Include stdio-impl.h.
50061         (fbufmode): Use fp_, remove redundant #defines.
50062         * lib/fflush.c: Include stdio-impl.h.
50063         (clear_ungetc_buffer): Remove redundant #defines.
50064         * lib/fpurge.c: Include stdio-impl.h.
50065         (fpurge): Remove redundant #defines.
50066         * lib/freadable.c: Include stdio-impl.h.
50067         (freadable): Remove redundant #defines.
50068         * lib/freadahead.c: Include stdio-impl.h.
50069         (freadahead): Remove redundant #defines.
50070         * lib/freading.c: Include stdio-impl.h.
50071         (freading): Remove redundant #defines.
50072         * lib/freadptr.c: Include stdio-impl.h.
50073         (freadptr): Remove redundant #defines.
50074         * lib/freadseek.c: Include stdio-impl.h.
50075         (freadptrinc): Remove redundant #defines.
50076         * lib/fseeko.c: Include stdio-impl.h.
50077         (rpl_fseeko): Remove redundant #defines.
50078         * lib/fseterr.c: Include stdio-impl.h.
50079         (fseterr): Remove redundant #defines.
50080         * lib/fwritable.c: Include stdio-impl.h.
50081         (fwritable: Remove redundant #defines.
50082         * lib/fwriting.c: Include stdio-impl.h.
50083         (fwriting): Remove redundant #defines.
50084         * modules/fbufmode (Files): Add lib/stdio-impl.h.
50085         * modules/fflush (Files): Likewise.
50086         * modules/fpurge (Files): Likewise.
50087         * modules/freadable (Files): Likewise.
50088         * modules/freadahead (Files): Likewise.
50089         * modules/freading (Files): Likewise.
50090         * modules/freadptr (Files): Likewise.
50091         * modules/freadseek (Files): Likewise.
50092         * modules/fseeko (Files): Likewise.
50093         * modules/fseterr (Files): Likewise.
50094         * modules/fwritable (Files): Likewise.
50095         * modules/fwriting (Files): Likewise.
50096
50097 2008-04-26  Bruno Haible  <bruno@clisp.org>
50098
50099         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
50100         restore_seek_optimization, update_fpos_cache): New functions, extracted
50101         from rpl_fflush.
50102         (rpl_fflush): Use them.
50103         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
50104         (gl_REPLACE_FFLUSH): Use it.
50105
50106 2008-04-26  Bruno Haible  <bruno@clisp.org>
50107
50108         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
50109         on Solaris.
50110         * tests/test-xstrtoimax.sh: Likewise.
50111         * tests/test-xstrtoumax.sh: Likewise.
50112         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
50113
50114 2008-04-26  Bruno Haible  <bruno@clisp.org>
50115
50116         * modules/memchr-tests: New file.
50117         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
50118
50119 2008-04-26  Eric Blake  <ebb9@byu.net>
50120             Bruno Haible  <bruno@clisp.org>
50121
50122         * lib/memchr.c: Include intprops.h.
50123         (__memchr): Optimize parallel detection of matching bytes. Rename local
50124         variables. Add explanatory comments.
50125
50126 2008-04-26  Bruno Haible  <bruno@clisp.org>
50127
50128         Fix module 'memchr', broken since 2000-10-28.
50129         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
50130
50131 2008-04-26  Bruno Haible  <bruno@clisp.org>
50132
50133         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
50134         comments.
50135
50136 2008-04-25  Eric Blake  <ebb9@byu.net>
50137
50138         Use native fstatat on cygwin 1.7.0.
50139         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
50140         first.
50141
50142 2008-04-23  Eric Blake  <ebb9@byu.net>
50143
50144         Improve memchr2 performance.
50145         * lib/memchr2.c (memchr2): Further optimize parallel detection of
50146         NUL bytes.
50147         * modules/memchr2 (Depends-on): Use intprops.h.
50148
50149 2008-04-23  Simon Josefsson  <simon@josefsson.org>
50150
50151         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
50152         an inline function instead of a CPP macro.  Patch by Ben Pfaff
50153         <blp@cs.stanford.edu>.
50154
50155 2008-04-23  Simon Josefsson  <simon@josefsson.org>
50156
50157         * lib/arpa_inet.in.h: New file.
50158
50159         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
50160         (Makefile.am): Sed in substitute header file.
50161
50162         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
50163         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
50164
50165         * modules/inet_ntop (configure.ac): Use
50166         gl_ARPA_INET_MODULE_INDICATOR.
50167
50168         * modules/inet_pton (configure.ac): Use
50169         gl_ARPA_INET_MODULE_INDICATOR.
50170
50171 2008-04-22  Jim Meyering  <meyering@redhat.com>
50172
50173         * modules/verify (License): Re-license as LGPLv2+.
50174
50175 2008-04-22  Simon Josefsson  <simon@josefsson.org>
50176
50177         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
50178         parameter to void* as per POSIX standard (MinGW uses char*).
50179
50180 2008-04-21  Bruno Haible  <bruno@clisp.org>
50181
50182         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
50183         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
50184         Define to replacements if REPLACE_ISWCNTRL is 1.
50185         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
50186         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
50187         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
50188         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
50189         what it fixes.
50190         * doc/posix-functions/iswalpha.texi: Likewise.
50191         * doc/posix-functions/iswblank.texi: Likewise.
50192         * doc/posix-functions/iswcntrl.texi: Likewise.
50193         * doc/posix-functions/iswdigit.texi: Likewise.
50194         * doc/posix-functions/iswgraph.texi: Likewise.
50195         * doc/posix-functions/iswlower.texi: Likewise.
50196         * doc/posix-functions/iswprint.texi: Likewise.
50197         * doc/posix-functions/iswpunct.texi: Likewise.
50198         * doc/posix-functions/iswspace.texi: Likewise.
50199         * doc/posix-functions/iswupper.texi: Likewise.
50200         * doc/posix-functions/iswxdigit.texi: Likewise.
50201         Reported by Alain Guibert.
50202
50203 2008-04-21  Bruno Haible  <bruno@clisp.org>
50204
50205         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
50206         Patch by Alain Guibert.
50207
50208 2008-04-21  Bruno Haible  <bruno@clisp.org>
50209
50210         Fix test failures on mingw.
50211         * tests/test-xstrtol.c (print_no_progname): New function.
50212         (main): Install it in error_print_progname hook.
50213         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
50214         * tests/test-xstrtoimax.sh: Likewise.
50215         * tests/test-xstrtoumax.sh: Likewise.
50216
50217 2008-04-21  Bruno Haible  <bruno@clisp.org>
50218
50219         Fix test failure on mingw.
50220         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
50221
50222 2008-04-21  Bruno Haible  <bruno@clisp.org>
50223
50224         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
50225         Actually assign a value.
50226
50227 2008-04-20  Bruno Haible  <bruno@clisp.org>
50228
50229         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
50230         take 2.
50231         * lib/canonicalize.c (canonicalize_file_name): Elide if the
50232         'canonicalize-lgpl' module is also used.
50233         * lib/canonicalize-lgpl.c: Undo last change.
50234         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
50235
50236 2008-04-20  Bruno Haible  <bruno@clisp.org>
50237
50238         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
50239         config.h. Provide _mkdir based fallback for mingw.
50240         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
50241         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
50242         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
50243         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
50244         rather than defining mkdir in config.h.
50245         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
50246         (gl_SYS_STAT_H_DEFAULTS): New macro.
50247         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
50248         HAVE_IO_H any more.
50249         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
50250         HAVE_DECL_MKDIR and HAVE_IO_H.
50251
50252 2008-04-20  Bruno Haible  <bruno@clisp.org>
50253
50254         * lib/isapipe.c: Port to native Windows platforms.
50255
50256 2008-04-20  Bruno Haible  <bruno@clisp.org>
50257
50258         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
50259
50260 2008-04-21  Eric Blake  <ebb9@byu.net>
50261
50262         Work around preprocessors that don't handle UINTMAX_MAX.
50263         * lib/memchr2.c (memchr2): Avoid embedded #if.
50264         Reported by Alain Guibert, fix suggested by Bruno Haible.
50265
50266 2008-04-21  Simon Josefsson  <simon@josefsson.org>
50267
50268         * doc/posix-functions/strftime.texi (strftime): Explain better
50269         Windows incompatibility.  Suggested by Micah Cowan
50270         <micah@cowan.name>.
50271
50272 2008-04-20  Bruno Haible  <bruno@clisp.org>
50273
50274         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
50275         unistr/u8-mblen.
50276
50277 2008-04-20  Bruno Haible  <bruno@clisp.org>
50278
50279         Fix test failure on platforms with non-GNU iconv.
50280         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
50281         (U_TO_U8): Use it, rather than u16_to_u8.
50282         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
50283         units at the end of the input string.
50284         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
50285
50286 2008-04-20  Bruno Haible  <bruno@clisp.org>
50287
50288         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
50289         when the resulting length is 0.
50290         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
50291
50292 2008-04-20  Bruno Haible  <bruno@clisp.org>
50293
50294         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
50295         works.
50296         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
50297
50298 2008-04-20  Bruno Haible  <bruno@clisp.org>
50299
50300         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
50301         * modules/tsearch-tests (configure.ac): Test for initstate function.
50302
50303 2008-04-20  Bruno Haible  <bruno@clisp.org>
50304
50305         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
50306         for nlink_t if missing.
50307         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
50308
50309 2008-04-19  Bruno Haible  <bruno@clisp.org>
50310
50311         Work around snprintf bug on Linux libc5.
50312         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
50313         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
50314         gl_SNPRINTF_SIZE1.
50315         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
50316         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
50317         that test failed.
50318         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
50319         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
50320         * modules/snprintf (Files): Add m4/printf.m4.
50321         * modules/vsnprintf (Files): Likewise.
50322         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
50323         * doc/posix-functions/vsnprintf.texi: Likewise.
50324
50325 2008-04-19  Bruno Haible  <bruno@clisp.org>
50326
50327         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
50328         from 0.0058 to less than 10^-7.
50329
50330 2008-04-19  Bruno Haible  <bruno@clisp.org>
50331
50332         Fix rounding when a precision is given.
50333         * lib/vasnprintf.c (is_borderline): New function.
50334         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
50335         9...9x.
50336         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
50337         %e, %g.
50338         * tests/test-vasprintf-posix.c (test_function): Likewise.
50339         * tests/test-snprintf-posix.h (test_function): Likewise.
50340         * tests/test-sprintf-posix.h (test_function): Likewise.
50341         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
50342         * tests/test-printf-posix.h (test_function): Likewise.
50343         * tests/test-printf-posix.output: Update.
50344         Reported by John Darrington <john@darrington.wattle.id.au> via
50345         Ben Pfaff <blp@cs.stanford.edu>.
50346
50347 2008-04-18  Simon Josefsson  <simon@josefsson.org>
50348
50349         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
50350         Suggested by Bruno Haible <bruno@clisp.org>.
50351
50352 2008-04-17  Bruno Haible  <bruno@clisp.org>
50353
50354         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
50355         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
50356         implementation.
50357         Patch by Bruce Merry <bmerry@gmail.com>.
50358
50359 2008-04-17  Simon Josefsson  <simon@josefsson.org>
50360
50361         * doc/posix-functions/strftime.texi (strftime): Mention that %e
50362         doesn't work under Windows.
50363
50364 2008-04-16  Bruno Haible  <bruno@clisp.org>
50365
50366         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
50367         New macros.
50368         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
50369         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
50370         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
50371         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
50372         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
50373         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
50374         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
50375         macros.
50376         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
50377         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
50378         Northern Sotho, Uighur.
50379
50380 2008-04-16  Bruno Haible  <bruno@clisp.org>
50381
50382         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
50383         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
50384         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
50385         Reported by Daniel Bergström <daniel@octocode.com>.
50386
50387 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
50388             Bruno Haible  <bruno@clisp.org>
50389
50390         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
50391         function.
50392         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
50393         New functions, mostly extracted from gl_locale_name_default.
50394         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
50395
50396 2008-04-16  Eric Blake  <ebb9@byu.net>
50397
50398         Adjust strtod detection to catch glibc 2.7 bug.
50399         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
50400         Reported by John Gatewood Ham.
50401
50402 2008-04-16  Bruno Haible  <bruno@clisp.org>
50403
50404         Add tentative support for Linux libc5.
50405         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
50406         * lib/fpurge.c (fpurge): Likewise.
50407         * lib/freadable.c (freadable): Likewise.
50408         * lib/freadahead.c (freadahead): Likewise.
50409         * lib/freading.c (freading): Likewise.
50410         * lib/freadptr.c (freadptr): Likewise.
50411         * lib/freadseek.c (freadptrinc): Likewise.
50412         * lib/fseeko.c (rpl_fseeko): Likewise.
50413         * lib/fseterr.c (fseterr): Likewise.
50414         * lib/fwritable.c (fwritable): Likewise.
50415         * lib/fwriting.c (fwriting): Likewise.
50416         Reported by Alain Guibert <alguibert+bts@free.fr>.
50417
50418 2008-04-15  Bruno Haible  <bruno@clisp.org>
50419
50420         * modules/mathl (configure.ac): Define module indicator.
50421
50422 2008-04-15  Bruno Haible  <bruno@clisp.org>
50423
50424         * lib/logl.c (logl): Remove unused variables.
50425
50426 2008-04-15  Bruno Haible  <bruno@clisp.org>
50427
50428         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
50429         fails.
50430
50431 2008-04-15  Bruno Haible  <bruno@clisp.org>
50432
50433         * lib/trim.c (trim2): Fix argument of isspace() macro.
50434
50435 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
50436
50437         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
50438         to 0.
50439         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
50440
50441 2008-04-14  Bruno Haible  <bruno@clisp.org>
50442
50443         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
50444         AC_LANG_PROGRAM argument.
50445         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
50446         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
50447         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
50448         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
50449         * m4/math_h.m4 (gl_MATH_H): Likewise.
50450         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
50451         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
50452         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
50453         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
50454         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
50455         * m4/regex.m4 (gl_REGEX): Likewise.
50456         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
50457         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
50458         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
50459         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
50460         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
50461         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
50462         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
50463         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
50464
50465 2008-04-14  Jim Meyering  <meyering@redhat.com>
50466
50467         test-strtod: fix typos: s/abs/fabs/
50468         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
50469
50470 2008-04-13  Bruno Haible  <bruno@clisp.org>
50471
50472         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
50473         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
50474         module is also used and while not building the reloc-wrapper.
50475
50476 2008-04-13  Bruno Haible  <bruno@clisp.org>
50477
50478         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
50479
50480 2008-04-13  Bruno Haible  <bruno@clisp.org>
50481
50482         Fix AIX compilation failure introduced on 2008-04-02.
50483         * tests/test-frexp.c (exp): Undefine before redefining.
50484         * tests/test-frexpl.c (exp): Likewise.
50485
50486 2008-04-13  Bruno Haible  <bruno@clisp.org>
50487
50488         Work around a HP-UX stdio bug.
50489         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
50490         * tests/test-ftello.c (main): Likewise.
50491         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
50492         * doc/posix-functions/ftello.texi: Likewise.
50493
50494 2008-04-13  Bruno Haible  <bruno@clisp.org>
50495
50496         Make test-signbit pass on HP-UX/hppa.
50497         * tests/test-signbit.c (minus_zerol): New variable.
50498         (test_signbitl): Use it.
50499
50500 2008-04-13  Bruno Haible  <bruno@clisp.org>
50501
50502         Make truncl work on OSF/1 4.0.
50503         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
50504         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
50505         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
50506         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
50507         HAVE_DECL_TRUNCL.
50508         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
50509         HAVE_DECL_TRUNCL.
50510         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
50511
50512 2008-04-13  Bruno Haible  <bruno@clisp.org>
50513
50514         * lib/unictype.h: Remove trailing comma from enumeration definitions.
50515
50516 2008-04-13  Bruno Haible  <bruno@clisp.org>
50517
50518         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
50519         expression, so as to avoid HP-UX 11 cc compiler bug.
50520
50521 2008-04-13  Bruno Haible  <bruno@clisp.org>
50522
50523         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
50524
50525 2008-04-13  Bruno Haible  <bruno@clisp.org>
50526
50527         * lib/git-merge-changelog.c: Remove empty declaration outside of
50528         functions.
50529
50530 2008-04-13  Bruno Haible  <bruno@clisp.org>
50531
50532         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
50533
50534 2008-04-13  Bruno Haible  <bruno@clisp.org>
50535
50536         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
50537         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
50538         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
50539         also if it exists but lacks definitions of the SHUT_* macros.
50540         * modules/sys_socket (Description): Update.
50541         Reported by Elbert Pol <e.pol@chello.nl>.
50542
50543 2008-04-13  Bruno Haible  <bruno@clisp.org>
50544
50545         * lib/localcharset.c (OS2): Don't redefine if already defined.
50546         Reported by Elbert Pol <e.pol@chello.nl>.
50547
50548 2008-04-13  Bruno Haible  <bruno@clisp.org>
50549
50550         * lib/binary-io.h [__EMX__]: Include <io.h>.
50551         Reported by Elbert Pol <e.pol@chello.nl>.
50552
50553 2008-04-12  Bruno Haible  <bruno@clisp.org>
50554
50555         * lib/fpucw.h: Enable the definitions also for x86_64.
50556         Needed for NetBSD/x86_64.
50557         Reported by Thomas Klausner <tk@giga.or.at>.
50558
50559 2008-04-12  Bruno Haible  <bruno@clisp.org>
50560
50561         * tests/test-strtod.c: Include isnand.h.
50562         (main): Use isnand instead of isnan.
50563         Reported by Jim Meyering.
50564
50565 2008-04-12  Bruno Haible  <bruno@clisp.org>
50566
50567         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
50568         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
50569
50570 2008-04-12  Jim Meyering  <meyering@redhat.com>
50571
50572         * m4/math_h.m4 (gl_MATH_H): Fix typos.
50573
50574 2008-04-12  Bruno Haible  <bruno@clisp.org>
50575
50576         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
50577         Reported by Elbert Pol <e.pol@chello.nl>.
50578
50579 2008-04-12  Eric Blake  <ebb9@byu.net>
50580
50581         Work around Solaris 10 math.h bug.
50582         * m4/math_h.m4 (gl_MATH_H): Check for bug.
50583         (gl_MATH_H_DEFAULTS): Set up default.
50584         * modules/math (Makefile.am): Replace new indicators.
50585         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
50586         * tests/test-math.c (main): Test this.
50587         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
50588         * doc/posix-headers/math.texi (math.h): Mention bug.
50589         Reported by Nelson H. F. Beebe and Jim Meyering.
50590
50591 2008-04-11  Bruno Haible  <bruno@clisp.org>
50592
50593         Adapt to future versions of Apple GCC.
50594         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
50595         Reported by Peter O'Gorman <peter@pogma.com>.
50596
50597 2008-04-11  Bruno Haible  <bruno@clisp.org>
50598
50599         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
50600
50601 2008-04-11  Bruno Haible  <bruno@clisp.org>
50602
50603         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
50604
50605         * modules/getaddrinfo-tests (Makefile.am): Define
50606         test_getaddrinfo_LDADD.
50607
50608 2008-04-11  Bruno Haible  <bruno@clisp.org>
50609
50610         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
50611         (init): Fix syntax error.
50612         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
50613         is declared.
50614
50615 2008-04-11  Bruno Haible  <bruno@clisp.org>
50616
50617         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
50618         * modules/glob (Depends-on): Add stdbool.
50619
50620 2008-04-11  Bruno Haible  <bruno@clisp.org>
50621
50622         * lib/trim.c: Include <string.h>.
50623
50624 2008-04-11  Eric Blake  <ebb9@byu.net>
50625
50626         Avoid compile failure on OS/2.
50627         * lib/regex_internal.h (internal_function): Disable optimization
50628         on OS/2 (__EMX__), where it caused compiler error.
50629         Reported by Elbert Pol.
50630
50631 2008-04-11  Bruno Haible  <bruno@clisp.org>
50632
50633         Flush the standard error stream before aborting. Needed on mingw.
50634         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
50635         * tests/test-array_list.c (ASSERT): Likewise.
50636         * tests/test-array_oset.c (ASSERT): Likewise.
50637         * tests/test-avltree_list.c (ASSERT): Likewise.
50638         * tests/test-avltree_oset.c (ASSERT): Likewise.
50639         * tests/test-avltreehash_list.c (ASSERT): Likewise.
50640         * tests/test-binary-io.c (ASSERT): Likewise.
50641         * tests/test-byteswap.c (ASSERT): Likewise.
50642         * tests/test-c-ctype.c (ASSERT): Likewise.
50643         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
50644         * tests/test-c-strcasestr.c (ASSERT): Likewise.
50645         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
50646         * tests/test-c-strstr.c (ASSERT): Likewise.
50647         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
50648         * tests/test-canonicalize.c (ASSERT): Likewise.
50649         * tests/test-carray_list.c (ASSERT): Likewise.
50650         * tests/test-ceilf1.c (ASSERT): Likewise.
50651         * tests/test-ceilf2.c (ASSERT): Likewise.
50652         * tests/test-ceill.c (ASSERT): Likewise.
50653         * tests/test-count-one-bits.c (ASSERT): Likewise.
50654         * tests/test-fbufmode.c (ASSERT): Likewise.
50655         * tests/test-fflush2.c (ASSERT): Likewise.
50656         * tests/test-floorf1.c (ASSERT): Likewise.
50657         * tests/test-floorf2.c (ASSERT): Likewise.
50658         * tests/test-floorl.c (ASSERT): Likewise.
50659         * tests/test-fopen.c (ASSERT): Likewise.
50660         * tests/test-fpending.c (ASSERT): Likewise.
50661         * tests/test-fprintf-posix.c (ASSERT): Likewise.
50662         * tests/test-fpurge.c (ASSERT): Likewise.
50663         * tests/test-freadable.c (ASSERT): Likewise.
50664         * tests/test-freadahead.c (ASSERT): Likewise.
50665         * tests/test-freading.c (ASSERT): Likewise.
50666         * tests/test-freadptr.c (ASSERT): Likewise.
50667         * tests/test-freadptr2.c (ASSERT): Likewise.
50668         * tests/test-freadseek.c (ASSERT): Likewise.
50669         * tests/test-freopen.c (ASSERT): Likewise.
50670         * tests/test-frexp.c (ASSERT): Likewise.
50671         * tests/test-frexpl.c (ASSERT): Likewise.
50672         * tests/test-fseek.c (ASSERT): Likewise.
50673         * tests/test-fseeko.c (ASSERT): Likewise.
50674         * tests/test-fstrcmp.c (ASSERT): Likewise.
50675         * tests/test-ftell.c (ASSERT): Likewise.
50676         * tests/test-ftello.c (ASSERT): Likewise.
50677         * tests/test-func.c (ASSERT): Likewise.
50678         * tests/test-fwritable.c (ASSERT): Likewise.
50679         * tests/test-fwriting.c (ASSERT): Likewise.
50680         * tests/test-getdelim.c (ASSERT): Likewise.
50681         * tests/test-getline.c (ASSERT): Likewise.
50682         * tests/test-i-ring.c (ASSERT): Likewise.
50683         * tests/test-iconv-utf.c (ASSERT): Likewise.
50684         * tests/test-iconv.c (ASSERT): Likewise.
50685         * tests/test-isfinite.c (ASSERT): Likewise.
50686         * tests/test-isnand.c (ASSERT): Likewise.
50687         * tests/test-isnanf.c (ASSERT): Likewise.
50688         * tests/test-isnanl.h (ASSERT): Likewise.
50689         * tests/test-ldexpl.c (ASSERT): Likewise.
50690         * tests/test-linked_list.c (ASSERT): Likewise.
50691         * tests/test-linkedhash_list.c (ASSERT): Likewise.
50692         * tests/test-localename.c (ASSERT): Likewise.
50693         * tests/test-lseek.c (ASSERT): Likewise.
50694         * tests/test-mbscasecmp.c (ASSERT): Likewise.
50695         * tests/test-mbscasestr1.c (ASSERT): Likewise.
50696         * tests/test-mbscasestr2.c (ASSERT): Likewise.
50697         * tests/test-mbscasestr3.c (ASSERT): Likewise.
50698         * tests/test-mbscasestr4.c (ASSERT): Likewise.
50699         * tests/test-mbschr.c (ASSERT): Likewise.
50700         * tests/test-mbscspn.c (ASSERT): Likewise.
50701         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
50702         * tests/test-mbspbrk.c (ASSERT): Likewise.
50703         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
50704         * tests/test-mbsrchr.c (ASSERT): Likewise.
50705         * tests/test-mbsspn.c (ASSERT): Likewise.
50706         * tests/test-mbsstr1.c (ASSERT): Likewise.
50707         * tests/test-mbsstr2.c (ASSERT): Likewise.
50708         * tests/test-mbsstr3.c (ASSERT): Likewise.
50709         * tests/test-memchr2.c (ASSERT): Likewise.
50710         * tests/test-memmem.c (ASSERT): Likewise.
50711         * tests/test-open.c (ASSERT): Likewise.
50712         * tests/test-printf-frexp.c (ASSERT): Likewise.
50713         * tests/test-printf-frexpl.c (ASSERT): Likewise.
50714         * tests/test-printf-posix.c (ASSERT): Likewise.
50715         * tests/test-quotearg.c (ASSERT): Likewise.
50716         * tests/test-rbtree_list.c (ASSERT): Likewise.
50717         * tests/test-rbtree_oset.c (ASSERT): Likewise.
50718         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
50719         * tests/test-round1.c (ASSERT): Likewise.
50720         * tests/test-roundf1.c (ASSERT): Likewise.
50721         * tests/test-roundl.c (ASSERT): Likewise.
50722         * tests/test-signbit.c (ASSERT): Likewise.
50723         * tests/test-sleep.c (ASSERT): Likewise.
50724         * tests/test-snprintf-posix.c (ASSERT): Likewise.
50725         * tests/test-snprintf.c (ASSERT): Likewise.
50726         * tests/test-sprintf-posix.c (ASSERT): Likewise.
50727         * tests/test-stat-time.c (ASSERT): Likewise.
50728         * tests/test-strcasestr.c (ASSERT): Likewise.
50729         * tests/test-strerror.c (ASSERT): Likewise.
50730         * tests/test-striconv.c (ASSERT): Likewise.
50731         * tests/test-striconveh.c (ASSERT): Likewise.
50732         * tests/test-striconveha.c (ASSERT): Likewise.
50733         * tests/test-strsignal.c (ASSERT): Likewise.
50734         * tests/test-strstr.c (ASSERT): Likewise.
50735         * tests/test-strtod.c (ASSERT): Likewise.
50736         * tests/test-trunc1.c (ASSERT): Likewise.
50737         * tests/test-trunc2.c (ASSERT): Likewise.
50738         * tests/test-truncf1.c (ASSERT): Likewise.
50739         * tests/test-truncf2.c (ASSERT): Likewise.
50740         * tests/test-truncl.c (ASSERT): Likewise.
50741         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
50742         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
50743         * tests/test-vasnprintf.c (ASSERT): Likewise.
50744         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
50745         * tests/test-vasprintf.c (ASSERT): Likewise.
50746         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
50747         * tests/test-vprintf-posix.c (ASSERT): Likewise.
50748         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
50749         * tests/test-vsnprintf.c (ASSERT): Likewise.
50750         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
50751         * tests/test-wcwidth.c (ASSERT): Likewise.
50752         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
50753         * tests/test-xprintf-posix.c (ASSERT): Likewise.
50754         * tests/test-xvasprintf.c (ASSERT): Likewise.
50755         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
50756         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
50757         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
50758         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
50759         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
50760         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
50761         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
50762         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
50763         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
50764         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
50765         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
50766         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
50767         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
50768         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
50769         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
50770         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
50771         * tests/unictype/test-block_list.c (ASSERT): Likewise.
50772         * tests/unictype/test-block_of.c (ASSERT): Likewise.
50773         * tests/unictype/test-block_test.c (ASSERT): Likewise.
50774         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
50775         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
50776         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
50777         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
50778         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
50779         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
50780         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
50781         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
50782         * tests/unictype/test-combining.c (ASSERT): Likewise.
50783         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
50784         * tests/unictype/test-digit.c (ASSERT): Likewise.
50785         * tests/unictype/test-mirror.c (ASSERT): Likewise.
50786         * tests/unictype/test-numeric.c (ASSERT): Likewise.
50787         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
50788         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
50789         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
50790         * tests/unictype/test-scripts.c (ASSERT): Likewise.
50791         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
50792         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
50793         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
50794         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
50795         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
50796         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
50797         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
50798         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
50799         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
50800         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
50801         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
50802         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
50803         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
50804         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
50805         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
50806         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
50807         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
50808         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
50809         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
50810         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
50811         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
50812         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
50813         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
50814         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
50815         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
50816         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
50817         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
50818         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
50819         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
50820         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
50821         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
50822         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
50823         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
50824         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
50825         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
50826         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
50827         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
50828         Reported by Eric Blake.
50829
50830 2008-04-11  Bruno Haible  <bruno@clisp.org>
50831
50832         * lib/wchar.in.h: Tweak comment.
50833
50834 2008-04-11  Bruno Haible  <bruno@clisp.org>
50835
50836         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
50837         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
50838         gl_COMMON.
50839         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
50840
50841 2008-04-11  Bruno Haible  <bruno@clisp.org>
50842
50843         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
50844
50845 2008-04-11  Simon Josefsson  <simon@josefsson.org>
50846
50847         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
50848         of attempting to use non-existing /dev/*random.  Based on patch
50849         from Adam Strzelecki <ono@java.pl> in
50850         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
50851
50852 2008-04-08  Bruno Haible  <bruno@clisp.org>
50853
50854         Add tentative support for emx+gcc.
50855         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
50856         * lib/fpurge.c (fpurge): Likewise.
50857         * lib/freadable.c (freadable): Likewise.
50858         * lib/freadahead.c (freadahead): Likewise.
50859         * lib/freading.c (freading): Likewise.
50860         * lib/freadptr.c (freadptr): Likewise.
50861         * lib/freadseek.c (freadptrinc): Likewise.
50862         * lib/fseeko.c (rpl_fseeko): Likewise.
50863         * lib/fseterr.c (fseterr): Likewise.
50864         * lib/fwritable.c (fwritable): Likewise.
50865         * lib/fwriting.c (fwriting): Likewise.
50866         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
50867
50868 2008-04-09  Eric Blake  <ebb9@byu.net>
50869
50870         Avoid some autoconf warnings.
50871         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
50872         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
50873         * m4/afs.m4 (gl_AFS): Likewise.
50874         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
50875         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
50876         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
50877         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
50878         (gl_INTEGER_TYPE_SUFFIX): Likewise.
50879         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
50880         (AC_CHECK_DECLS_ONCE): Likewise.
50881         Rename file...
50882         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
50883         gnulib-tool requires autoconf 2.59 or better.
50884         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
50885
50886 2008-04-08  Eric Blake  <ebb9@byu.net>
50887
50888         Use 'git describe --match' if present (added in git 1.5.5).
50889         * build-aux/git-version-gen: Limit result to tags that match 'v*'
50890         if possible.
50891
50892 2008-04-08  Bruno Haible  <bruno@clisp.org>
50893
50894         Add tentative support for OpenServer.
50895         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
50896         _ptr, _cnt.
50897         * lib/fpurge.c (fpurge): Likewise.
50898         * lib/freadable.c (freadable): Likewise.
50899         * lib/freadahead.c (freadahead): Likewise.
50900         * lib/freading.c (freading): Likewise.
50901         * lib/freadptr.c (freadptr): Likewise.
50902         * lib/freadseek.c (freadptrinc): Likewise.
50903         * lib/fseeko.c (rpl_fseeko): Likewise.
50904         * lib/fseterr.c (fseterr): Likewise.
50905         * lib/fwritable.c (fwritable): Likewise.
50906         * lib/fwriting.c (fwriting): Likewise.
50907         Reported by Roger Cornelius <rac@tenzing.org> and
50908         Brian K. White <brian@aljex.com>.
50909
50910 2008-04-06  Jim Meyering  <meyering@redhat.com>
50911
50912         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
50913
50914 2008-04-06  Bruno Haible  <bruno@clisp.org>
50915
50916         Avoid possible error with non-ASCII bytes in UTF-8 locales.
50917         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
50918         * tests/test-printf-posix.sh: Likewise.
50919         * tests/test-vfprintf-posix.sh: Likewise.
50920         * tests/test-vprintf-posix.sh: Likewise.
50921         * tests/test-xprintf-posix.sh: Likewise.
50922
50923 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50924
50925         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
50926         hide error from 'ls', needed on OS/2.
50927         Report by Elbert Pol <elbert.pol@gmail.com>.
50928
50929 2008-04-04  Eric Blake  <ebb9@byu.net>
50930
50931         Make test-fseeko.c failures meaningful.
50932         * tests/test-fseeko.c: Print line number on failure.
50933         * tests/test-fseek.c: Likewise.
50934         Reported by Nelson H. F. Beebe.
50935
50936         Improve strtod bug detection check.
50937         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
50938         required for Solaris 10.
50939         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
50940
50941 2008-04-04  Bruno Haible  <bruno@clisp.org>
50942
50943         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
50944         by m4/setenv.m4.
50945
50946 2008-04-03  Eric Blake  <ebb9@byu.net>
50947
50948         Ensure sane .version contents.
50949         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
50950         version string.
50951         * build-aux/git-version-gen: Improve documentation.
50952
50953         Make GNU make output nicer.
50954         * top/GNUmakefile [!_have-Makefile]: Add dependency on
50955         MAKECMDGOALS to enforce message for all command line targets.  Set
50956         srcdir for use in maint.mk.
50957
50958         Another maintainer tweak.
50959         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
50960         a target that regenerates version.
50961
50962 2008-04-03  Jim Meyering  <meyering@redhat.com>
50963
50964         vc-list-files: don't cause coreutils "make po-check" failure
50965         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
50966
50967 2008-04-03  Eric Blake  <ebb9@byu.net>
50968
50969         Allow VPATH usage of vc-list-files.
50970         * build-aux/vc-list-files (scriptversion): Add timestamp.
50971         (options): Add --help, --version, -C.
50972         (CVS): Support installed cvsu.
50973
50974 2008-04-02  Bruno Haible  <bruno@clisp.org>
50975
50976         Avoid some "statement with no effect" warnings from gcc.
50977         * tests/test-wctype.c (main): Explicitly ignore unused values.
50978         Reported by Jim Meyering.
50979
50980 2008-04-02  Jim Meyering  <meyering@redhat.com>
50981
50982         Avoid some warnings from "gcc -Wshadow".
50983         * tests/test-frexp.c (exp): Define to a different identifier.
50984         * tests/test-frexpl.c (exp): Likewise.
50985
50986 2008-04-03  Jim Meyering  <meyering@redhat.com>
50987
50988         bootstrap: remove dangling *.[ch] symlinks from lib
50989         * build-aux/bootstrap [dangling symlink removal]: Move find's
50990         -depth option to precede all others, to avoid a warning.
50991         Remove *.[ch] files too, and from "$source_base" (usually lib/).
50992
50993 2008-04-02  Bruno Haible  <bruno@clisp.org>
50994
50995         Avoid some warnings from "gcc -Wshadow".
50996         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
50997         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
50998         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
50999         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
51000         Reported by Jim Meyering.
51001
51002 2008-04-01  Bruno Haible  <bruno@clisp.org>
51003
51004         Fix test to work on IRIX 6.5 with cc.
51005         * tests/test-math.c (numeric_equal): New function.
51006         (main): Use it.
51007
51008 2008-04-01  Bruno Haible  <bruno@clisp.org>
51009
51010         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
51011
51012 2008-04-01  Bruno Haible  <bruno@clisp.org>
51013
51014         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
51015         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
51016         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
51017         (Depends-on): Remove math.
51018
51019         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
51020         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
51021         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
51022         (Depends-on): Remove math.
51023
51024         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
51025         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
51026         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
51027         (Depends-on): Remove math.
51028         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
51029         (Depends-on): Remove math.
51030
51031         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
51032         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
51033         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
51034         (Depends-on): Remove math.
51035         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
51036         (Depends-on): Remove math.
51037
51038         * tests/test-round1.c: Include nan.h.
51039         (main): Use NaNd instead of NAN.
51040         * modules/round-tests (Files): Add tests/nan.h.
51041
51042         * tests/test-trunc1.c: Include nan.h.
51043         (main): Use NaNd instead of NAN.
51044         * modules/trunc-tests (Files): Add tests/nan.h.
51045
51046         * tests/test-roundf1.c: Include nan.h.
51047         (main): Use NaNf instead of NAN.
51048         * modules/roundf-tests (Files): Add tests/nan.h.
51049
51050         * tests/test-truncf1.c: Include nan.h.
51051         (main): Use NaNf instead of NAN.
51052         * modules/truncf-tests (Files): Add tests/nan.h.
51053
51054         * tests/test-ceilf1.c: Include nan.h.
51055         (main): Use NaNf instead of NAN.
51056         * modules/ceilf-tests (Files): Add tests/nan.h.
51057
51058         * tests/test-floorf1.c: Include nan.h.
51059         (main): Use NaNf instead of NAN.
51060         * modules/floorf-tests (Files): Add tests/nan.h.
51061
51062         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
51063         (main): Use NaNf instead of NAN.
51064         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
51065
51066         * tests/test-isnand.c: Include nan.h instead of <math.h>.
51067         (main): Use NaNd instead of NAN.
51068         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
51069
51070         * tests/test-frexp.c: Include nan.h.
51071         (main): Use NaNd instead of NAN.
51072         * modules/frexp-tests (Files): Add tests/nan.h.
51073
51074         * lib/isnan.c: Don't include <math.h>.
51075         (FUNC): Don't use NAN macro.
51076         * modules/isnand-nolibm (Depends-on): Remove math.
51077         * modules/isnanf-nolibm (Depends-on): Remove math.
51078         * modules/isnanl (Depends-on): Remove math.
51079         * modules/isnanl-nolibm (Depends-on): Remove math.
51080
51081         * tests/nan.h: New file.
51082
51083 2008-04-01  Eric Blake  <ebb9@byu.net>
51084
51085         Fix typos.
51086         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
51087         values to be the right type.
51088
51089         For now, cater to gnulib strtod inaccuracies.
51090         * tests/test-strtod.c (main): Allow 1-ulp error on expected
51091         fractional results.  While not as nice from a QoI perspective, it
51092         is a quicker patch than correctly implementing decimal to binary
51093         rounding.
51094
51095 2008-03-31  Eric Blake  <ebb9@byu.net>
51096
51097         Guarantee a definition of NAN.
51098         * lib/math.in.h (NAN): Define if missing.
51099         * tests/test-math.c (main): Test it.
51100         * doc/posix-headers/math.texi (math.h): Document this.
51101         * lib/isnan.c (rpl_isnand): Use it.
51102         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
51103         * tests/test-floorf1.c (NaN): Likewise.
51104         * tests/test-frexp.c (NaN): Likewise.
51105         * tests/test-isnand.c (NaN): Likewise.
51106         * tests/test-isnanf.c (NaN): Likewise.
51107         * tests/test-round1.c (NaN): Likewise.
51108         * tests/test-roundf1.c (NaN): Likewise.
51109         * tests/test-snprintf-posix.h (NaN): Likewise.
51110         * tests/test-sprintf-posix.h (NaN): Likewise.
51111         * tests/test-trunc1.c (NaN): Likewise.
51112         * tests/test-truncf1.c (NaN): Likewise.
51113         * tests/test-vasnprintf-posix.c (NaN): Likewise.
51114         * tests/test-vasprintf-posix.c (NaN): Likewise.
51115         * modules/isnand-nolibm (Depends-on): Add math.
51116         * modules/isnanf-nolibm (Depends-on): Likewise.
51117         * modules/isnanl (Depends-on): Likewise.
51118         * modules/isnanl-nolibm (Depends-on): Likewise.
51119         * modules/snprintf-posix-tests (Depends-on): Likewise.
51120         * modules/sprintf-posix-tests (Depends-on): Likewise.
51121         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
51122         * modules/vsprintf-posix-tests (Depends-on): Likewise.
51123         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
51124         * modules/vasprintf-posix-tests (Depends-on): Likewise.
51125
51126 2008-03-31  Bruno Haible  <bruno@clisp.org>
51127
51128         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
51129         * doc/posix-functions/strtod.texi: Likewise.
51130
51131 2008-03-31  Bruno Haible  <bruno@clisp.org>
51132
51133         * tests/test-strtod.c (main): Don't use C99 syntax.
51134
51135 2008-03-31  Bruno Haible  <bruno@clisp.org>
51136
51137         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
51138         Reported by Eric Blake.
51139
51140 2008-03-31  Jim Meyering  <meyering@redhat.com>
51141
51142         Don't compare actual signbit return values.
51143         * tests/test-strtod.c (main): Rather, compare only their
51144         zero/non-zero nature.
51145
51146 2008-03-31  Eric Blake  <ebb9@byu.net>
51147
51148         More strtod documentation.
51149         * doc/posix-functions/strtod.texi (strtod): Interpret more test
51150         failures as distinct bugs.
51151
51152 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
51153
51154         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
51155         Problem reported by Erik Benada in
51156         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
51157
51158 2008-03-30  Bruno Haible  <bruno@clisp.org>
51159
51160         * tests/test-strtod.c: Add comments about which assertion fails on which
51161         platform.
51162         * doc/posix-functions/strtod.texi: Add info about many more platforms.
51163
51164 2008-03-30  Eric Blake  <ebb9@byu.net>
51165
51166         Test signbit behavior on zeros.
51167         * tests/test-signbit.c (test_signbitf): Add tests for zero.
51168         (test_signbitd, test_signbitl): Likewise.
51169
51170         More strtod touchups.
51171         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
51172         sign of negative underflow, for now.  Use .5, not .1.
51173         * doc/posix-functions/strtod.texi (strtod): Mention these
51174         limitations.
51175         Reported by Jim Meyering.
51176
51177 2008-03-30  Bruno Haible  <bruno@clisp.org>
51178
51179         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
51180         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
51181
51182 2008-03-30  Bruno Haible  <bruno@clisp.org>
51183
51184         Avoid failure when attempting to return empty iconv results on some
51185         platforms.
51186         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
51187         allocation, don't report ENOMEM when the resulting string is empty.
51188
51189 2008-03-30  Bruno Haible  <bruno@clisp.org>
51190
51191         Fix buffer overrun.
51192         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
51193         Don't consider the width for tmp_length. Check count against tmp_length
51194         before doing the padding. Ensure enough allocation during padding.
51195
51196 2008-03-30  Eric Blake  <ebb9@byu.net>
51197
51198         strtod touchups.
51199         * lib/strtod.c (strtod): Avoid compiler warnings.
51200         Reported by Jim Meyering.
51201
51202 2008-03-30  Bruno Haible  <bruno@clisp.org>
51203
51204         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
51205         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
51206         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
51207         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
51208         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
51209         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
51210         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
51211         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
51212
51213         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
51214         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
51215         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
51216         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
51217         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
51218         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
51219         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
51220         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
51221
51222         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
51223         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
51224         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
51225         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
51226         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
51227         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
51228         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
51229         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
51230
51231         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
51232         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
51233
51234         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
51235         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
51236
51237         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
51238         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
51239
51240         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
51241         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
51242         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
51243
51244         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
51245         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
51246         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
51247
51248         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
51249         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
51250         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
51251
51252         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
51253         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
51254         * modules/vasprintf (Depends-on): Add EOVERFLOW.
51255
51256         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
51257         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
51258         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
51259         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
51260         (Depends-on): Add EOVERFLOW.
51261         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
51262         (Depends-on): Add EOVERFLOW.
51263         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
51264         (Depends-on): Add EOVERFLOW.
51265         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
51266         (Depends-on): Add EOVERFLOW.
51267         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
51268         (Depends-on): Add EOVERFLOW.
51269         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
51270         (Depends-on): Add EOVERFLOW.
51271         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
51272         (Depends-on): Add EOVERFLOW.
51273         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
51274         (Depends-on): Add EOVERFLOW.
51275
51276         * lib/sprintf.c (EOVERFLOW): Remove fallback.
51277         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
51278         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
51279
51280         * lib/snprintf.c (EOVERFLOW): Remove fallback.
51281         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
51282         * modules/snprintf (Depends-on): Add EOVERFLOW.
51283
51284         * lib/poll.c (EOVERFLOW): Remove fallback.
51285         * modules/poll (Depends-on): Add EOVERFLOW.
51286
51287         * lib/getugroups.c (EOVERFLOW): Remove fallback.
51288         * modules/getugroups (Depends-on): Add EOVERFLOW.
51289
51290         * lib/getdelim.c (EOVERFLOW): Remove fallback.
51291         * modules/getdelim (Depends-on): Add EOVERFLOW.
51292
51293         * lib/ftell.c (EOVERFLOW): Remove fallback.
51294         * modules/ftell (Depends-on): Add EOVERFLOW.
51295
51296         * lib/fprintf.c (EOVERFLOW): Remove fallback.
51297         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
51298         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
51299
51300         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
51301
51302         * modules/EOVERFLOW-tests: New file.
51303         * tests/test-EOVERFLOW.c: New file.
51304
51305         * modules/EOVERFLOW: New file.
51306         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
51307
51308 2008-03-30  Bruno Haible  <bruno@clisp.org>
51309
51310         Fix bug introduced on 2007-06-10.
51311         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
51312         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
51313
51314 2008-03-30  Bruno Haible  <bruno@clisp.org>
51315
51316         Improve freadseek's efficiency after ungetc.
51317         * lib/freadseek.c: Include freadahead.h.
51318         (freadptrinc): New function, extracted from freadseek.
51319         (freadseek): Use it in a loop. Use freadahead to determine the number
51320         of loop iterations.
51321         * modules/freadseek (Depends-on): Add freadahead.
51322         (configure.ac): Require AC_C_INLINE.
51323
51324 2008-03-30  Bruno Haible  <bruno@clisp.org>
51325
51326         * lib/freadseek.c (freadseek): Don't ignore the return value of
51327         freadptr.
51328
51329 2008-03-29  Eric Blake  <ebb9@byu.net>
51330
51331         Add hex float support.
51332         * modules/strtod (Depends-on): Add c-ctype.
51333         (Link): Mention POW_LIB.
51334         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
51335         whitespace between 'e' and exponent.
51336         * tests/test-strtod.c (main): Enable hex float tests.
51337         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
51338         now provides.
51339
51340         Document various strtod bugs, with some fixes.
51341         * doc/posix-functions/strtod.texi (strtod): Document bugs with
51342         "-0x", "inf", "nan", and hex constants.
51343         * doc/posix-functions/atof.texi (atof): Likewise.
51344         * modules/stdlib (Makefile.am): Support strtod.
51345         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
51346         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
51347         detect additional strtod bugs.
51348         * lib/stdlib.in.h (rpl_strtod): Add declarations.
51349         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
51350         bool where appropriate.  Parse 'inf' and 'nan'.
51351         * tests/test-strtod.c: New file.
51352         * modules/strtod (Depends-on): Add stdbool, stdlib.
51353         (configure.ac): Turn on module indicator.
51354         * modules/strtod-tests: New module.
51355
51356 2008-03-29  Eric Blake  <ebb9@byu.net>
51357
51358         Fix ftell on mingw.
51359         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
51360         * modules/ftell-tests (Depends-on): Add binary-io.
51361         * modules/ftello-tests (Depends-on): Likewise.
51362         * tests/test-ftell.c (main): Enhance test to cover behavior after
51363         ungetc.  Enforce binary mode.
51364         * tests/test-ftello.c (main): Likewise.
51365
51366         Pass test-freadseek on cygwin.
51367         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
51368         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
51369         ungetc buffer.
51370
51371         * tests/test-fflush2.c (main): Fix typo.
51372
51373 2008-03-29  Bruno Haible  <bruno@clisp.org>
51374
51375         * tests/test-fflush2.c (main): Temporarily disable the contents of
51376         this test.
51377         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
51378         Reported by Eric Blake.
51379
51380 2008-03-28  Simon Josefsson  <simon@josefsson.org>
51381
51382         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
51383         (GC_SHA224_DIGEST_SIZE): Add.
51384
51385         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
51386         (gc_hash_digest_length): Likewise.
51387         (gc_hash_buffer): Likewise.
51388
51389 2008-03-25  Bruno Haible  <bruno@clisp.org>
51390
51391         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
51392         detail which gettext release to use.
51393         Reported by Simon Josefsson.
51394
51395 2008-03-26  Jim Meyering  <meyering@redhat.com>
51396
51397         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
51398         * modules/gnumakefile (clean-GNUmakefile): Also, use
51399         test ... && ... || : syntax rather than if-then ... fi.
51400
51401         gnumakefile: Don't double-quote-expand $(VPATH) value.
51402         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
51403
51404 2008-03-24  Eric Blake  <ebb9@byu.net>
51405
51406         Alter GNUmakefile to install into top directory.
51407         * modules/maintainer-makefile: Split, and add dependency...
51408         * modules/gnumakefile: to this new module.
51409         * build-aux/GNUmakefile: Move...
51410         * top/GNUmakefile: ...here.
51411         * build-aux/maint.mk: Move...
51412         * top/maint.mk: ...here.
51413         * MODULES.html.sh (Support for maintaining...): Document new
51414         module.
51415
51416 2008-03-23  Bruno Haible  <bruno@clisp.org>
51417
51418         * gnulib-tool: New options --vc-files, --no-vc-files.
51419         (func_usage): Document them.
51420         (vc_files): New variable.
51421         (func_import): Consider vc_files.
51422         (func_create_testdir): Set vc_files to empty.
51423         Suggested by Jim Meyering and Karl Berry.
51424
51425 2008-03-23  Bruno Haible  <bruno@clisp.org>
51426
51427         Fix regex compilation error on HP-UX 11.
51428         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
51429         * modules/regex (Files): Add m4/mbstate_t.m4.
51430         Reported by Ton Voon <ton.voon@altinity.com>.
51431
51432 2008-03-23  Bruno Haible  <bruno@clisp.org>
51433
51434         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
51435
51436 2008-03-23  Eric Blake  <ebb9@byu.net>
51437             Bruno Haible  <bruno@clisp.org>
51438
51439         Install files from top/ in the destination directory.
51440         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
51441         augmentation also for the files from top/.
51442         (func_import, func_create_testdir): Rewrite file names:
51443         top/filename -> filename.
51444
51445 2008-03-23  Bruno Haible  <bruno@clisp.org>
51446
51447         Tweak "gnulib --version" output.
51448         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
51449
51450 2008-03-23  Bruno Haible  <bruno@clisp.org>
51451
51452         Tweak "gnulib --version" output.
51453         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
51454         rather than contents of ChangeLog, when possible.
51455
51456 2008-03-21  Eric Blake  <ebb9@byu.net>
51457
51458         More --version tweaks.
51459         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
51460         date of last ChangeLog entry.
51461
51462 2008-03-21  Jim Meyering  <meyering@redhat.com>
51463
51464         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
51465
51466 2008-03-20  Eric Blake  <ebb9@byu.net>
51467
51468         VPATH fix.
51469         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
51470
51471 2008-03-20  Simon Josefsson  <simon@josefsson.org>
51472
51473         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
51474         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
51475
51476 2008-03-20  Eric Blake  <ebb9@byu.net>
51477
51478         Sync GNUmakefile with coreutils.
51479         * build-aux/GNUmakefile (have-Makefile): Rename...
51480         (_have-Makefile): ...to this, for namespace consideration.
51481         (GNUmakefile.cfg): Include, if present.
51482         (_autoreconf): Define a default.
51483         (_is-dist-target): New rule for rebuilds to pick up intra-release
51484         version.
51485         (maint-cfg.mk): Rename...
51486         (cfg.mk): ...to this.
51487
51488 2008-03-18  Jim Meyering  <meyering@redhat.com>
51489
51490         New script and module: mktempd
51491         * MODULES.html.sh (maint+release support): Add mktempd.
51492         * build-aux/mktempd: New file.
51493         * modules/mktempd: New file.
51494
51495 2008-03-15  Jim Meyering  <meyering@redhat.com>
51496
51497         Undo last change.
51498         * lib/sha1.c, lib/md5.c: 63 != ~63.
51499         Reported by Andreas Schwab.
51500
51501         sha1.c, md5.c: Hoist a redundant expression.
51502         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
51503         "ctx->buflen" only once, before calling *_process_block.
51504         * lib/md5.c (md5_process_bytes): Likewise.
51505
51506 2008-03-14  Eric Blake  <ebb9@byu.net>
51507
51508         Bump copyright year in files generated by gnulib-tool.
51509         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
51510         gnulib-tool, rather than hard-coding it.
51511
51512         Fix 'gnulib-tool --version' output to work with git.
51513         * gnulib-tool (func_gnulib_dir): New function, extracted from...
51514         (startup): ...here.
51515         (func_version): Use it to invoke git-version-gen, rather than
51516         relying on CVS keyword expansion.  Modernize wording.
51517         (cvsdatestamp, last_checkin_date, version): Kill unused
51518         variables.
51519
51520 2008-03-12  Jim Meyering  <meyering@redhat.com>
51521
51522         Recognize optional cast of the argument to free.
51523         * build-aux/useless-if-before-free: Update regexps.
51524
51525         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
51526
51527 2008-03-11  Bruno Haible  <bruno@clisp.org>
51528
51529         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
51530         by a single package.
51531         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
51532         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
51533         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
51534         Reported by Sam Steingold <sds@gnu.org>.
51535
51536 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
51537
51538         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
51539         repositories.
51540
51541 2008-03-11  Bruno Haible  <bruno@clisp.org>
51542
51543         Avoid conflicts between local macro definitions.
51544         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
51545         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
51546
51547 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
51548             Bruno Haible  <bruno@clisp.org>
51549
51550         Make va_copy work with some version of xlc on AIX 5.1.
51551         * lib/stdarg.in.h: New file.
51552         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
51553         On AIX, use a <stdarg.h> file substitute.
51554         * modules/stdarg (Files): Add lib/stdarg.in.h.
51555         (Depends-on): Add include_next.
51556         (Makefile.am): Build a stdarg.h substitute if requested.
51557         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
51558
51559 2008-03-10  Bruno Haible  <bruno@clisp.org>
51560
51561         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
51562         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
51563         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
51564
51565 2008-03-10  Bruno Haible  <bruno@clisp.org>
51566
51567         * modules/stdlib (Depends-on): Add include_next, remove
51568         absolute-header.
51569
51570 2008-03-09  Bruno Haible  <bruno@clisp.org>
51571
51572         * lib/freadahead.h (freadahead): Document more precisely.
51573         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
51574         the sum of both buffer sizes.
51575         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
51576         * NEWS: Document the change.
51577
51578 2008-03-09  Bruno Haible  <bruno@clisp.org>
51579
51580         Extend freadptr to return also the buffer size.
51581         * lib/freadptr.h (freadptr): Add sizep argument.
51582         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
51583         (freadptr): Add sizep argument. Determine buffer size like freadahead
51584         does.
51585         * tests/test-freadptr.c: Don't include freadahead.h.
51586         (main): Adapt for new calling convention of freadptr.
51587         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
51588         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
51589         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
51590         tests/test-freadptr2.sh.
51591         (Depends): Remove freadahead.
51592         (TESTS): Add test-freadptr2.sh.
51593         (check_PROGRAMS): Add test-freadptr2.
51594
51595 2008-03-09  Bruno Haible  <bruno@clisp.org>
51596
51597         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
51598         Report and solution by Simon Josefsson.
51599
51600 2008-03-06  Bruno Haible  <bruno@clisp.org>
51601
51602         Make fflush after ungetc work on BSD platforms.
51603         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
51604         * tests/test-fflush2.c: New file.
51605         * tests/test-fflush2.sh: New file.
51606         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
51607         tests/test-fflush2.c.
51608         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
51609         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
51610
51611 2008-03-06  Eric Blake  <ebb9@byu.net>
51612
51613         Likewise for ftello.
51614         * modules/ftello (Dependencies): Add extensions.
51615         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
51616
51617 2008-03-06  Bruno Haible  <bruno@clisp.org>
51618
51619         * modules/fseeko (Dependencies): Add extensions.
51620         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
51621         Needed on glibc systems.
51622
51623 2008-03-06  Bruno Haible  <bruno@clisp.org>
51624
51625         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
51626         email address.
51627         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
51628
51629 2008-03-06  Bruno Haible  <bruno@clisp.org>
51630
51631         * users.txt: Add libgnupdf.
51632
51633 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
51634
51635         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
51636         (Header File Substitutes, Function Substitutes,
51637         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
51638         (Build robot for gnulib): Fix typo.
51639
51640 2008-03-06  Bruno Haible  <bruno@clisp.org>
51641
51642         * doc/gnulib-tool.texi (VCS Issues): Small updates.
51643         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
51644
51645 2008-03-06  Bruno Haible  <bruno@clisp.org>
51646
51647         * doc/func.texi: New file, extracted from doc/gnulib.texi.
51648         * doc/gnulib.texi: Include it.
51649
51650 2008-03-06  Simon Josefsson  <simon@josefsson.org>
51651
51652         * modules/func (License): Change license to unlimited; there was
51653         no LGPL parts in the module anyway.
51654
51655 2008-03-06  Simon Josefsson  <simon@josefsson.org>
51656
51657         * modules/__func__: Renamed to modules/func.
51658         * modules/__func__-tests: Renamed to modules/func-tests.
51659         * tests/test-__func__.c: Renamed to tests/test-func.c.
51660         * m4/__func__.m4: Renamed to m4/func.m4.
51661         * doc/gnulib.texi (__func__): Section renamed to func.
51662         Suggested by Eric Blake <ebb9@byu.net>.
51663
51664 2008-03-06  Simon Josefsson  <simon@josefsson.org>
51665
51666         * doc/gnulib.texi (__func__): Use C99 terminology when talking
51667         about __func__.  Make example self-contained.  Suggested by Eric
51668         Blake <ebb9@byu.net>.
51669
51670         * tests/test-__func__.c (main): Avoid extraneous () around __func.
51671         Suggested by Eric Blake <ebb9@byu.net>.
51672
51673 2008-03-06  Simon Josefsson  <simon@josefsson.org>
51674
51675         * modules/__func__: New file.
51676         * modules/__func__-tests: New file.
51677         * tests/test-__func__.c: New file.
51678         * m4/__func__.m4: New file.
51679         * doc/gnulib.texi (__func__): Document __func__ module.
51680
51681 2008-03-05  Simon Josefsson  <simon@josefsson.org>
51682
51683         * modules/byteswap (License): Re-license as LGPLv2+.
51684
51685 2008-03-05  Simon Josefsson  <simon@josefsson.org>
51686
51687         * doc/Makefile: Add pdf target.
51688
51689 2008-03-05  Simon Josefsson  <simon@josefsson.org>
51690
51691         * modules/inline (License): Use 'unlimited', since there are only
51692         *.m4 files in this module.
51693
51694 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
51695             Bruno Haible  <bruno@clisp.org>
51696
51697         Add support for HP C 7.1 on OpenVMS 8.3.
51698         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
51699
51700 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
51701
51702         Update VMS specifics.
51703         * lib/getopt.c [VMS]: Remove include of unixlib.h.
51704
51705 2008-03-02  Jim Meyering  <meyering@redhat.com>
51706
51707         Remove the last dependency on the "free" module.
51708         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
51709         Reported by Bob Proulx.
51710
51711         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
51712
51713         Remove useless "if" tests before free.  Deprecate "free" module.
51714         * doc/posix-functions/free.texi: Mention that this
51715         module is no longer useful.
51716         * modules/free (Notice): Say this module is obsolete.
51717         * modules/readutmp (Depends-on): Remove free.
51718         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
51719         * lib/putenv.c (putenv): Likewise.
51720         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
51721         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
51722         * tests/test-c-strcasestr.c (main): Likewise.
51723         * tests/test-c-strstr.c (main): Likewise.
51724         * tests/test-mbscasestr1.c (main): Likewise.
51725         * tests/test-mbscasestr2.c (main): Likewise.
51726         * tests/test-mbsstr1.c (main): Likewise.
51727         * tests/test-mbsstr2.c (main): Likewise.
51728         * tests/test-memmem.c (main): Likewise.
51729         * tests/test-strcasestr.c (main): Likewise.
51730         * tests/test-striconv.c (main): Likewise.
51731         * tests/test-striconveh.c (main): Likewise.
51732         * tests/test-striconveha.c (main): Likewise.
51733         * tests/test-strstr.c (main): Likewise.
51734
51735         * build-aux/git-version-gen: Adjust a comment and the Usage string.
51736
51737         bootstrap: sync from coreutils again
51738         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
51739
51740 2008-03-01  Jim Meyering  <meyering@redhat.com>
51741
51742         bootstrap: sync from coreutils
51743         * build-aux/bootstrap (update_po_files): Copy a .po file into place
51744         also when the target doesn't exist.
51745
51746 2008-03-01  Eric Blake  <ebb9@byu.net>
51747
51748         Fix bugs in last patch.
51749         * lib/memchr2.c (memchr2): Fix typo.
51750         * tests/test-memchr2.c: Test previous bug, and don't use GNU
51751         extension.
51752         Reported by Bruce Korb.
51753
51754         New module 'memchr2'.
51755         * modules/memchr2: New file.
51756         * modules/memchr2-tests: Likewise.
51757         * lib/memchr2.h: Likewise.
51758         * lib/memchr2.c: Likewise, based on memchr.c.
51759         * tests/test-memchr2.c: New test.
51760         * MODULES.html.sh (String handling): Add memchr2.
51761
51762 2008-02-29  Bruno Haible  <bruno@clisp.org>
51763
51764         * modules/freadseek-tests: New file.
51765         * tests/test-freadseek.sh: New file.
51766         * tests/test-freadseek.c: New file.
51767
51768         New module 'freadseek'.
51769         * modules/freadseek: New file.
51770         * lib/freadseek.h: New file.
51771         * lib/freadseek.c: New file.
51772         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
51773
51774 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
51775
51776         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
51777         wydawca.
51778
51779         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
51780         program_invocation_name and program_invocation_short_name are
51781         present.
51782
51783 2008-02-28  Bruno Haible  <bruno@clisp.org>
51784
51785         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
51786         * tests/test-freadptr.sh: Also test non-seekable stdin.
51787
51788 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
51789
51790         * build-aux/bootstrap (source_base, m4_base)
51791         (doc_base, tests_base): New variables.
51792         (gnulib_tool_options): Do not hardcode base directories, use
51793         the above variables instead.
51794
51795 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
51796
51797         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
51798
51799 2008-02-28  Bruno Haible  <bruno@clisp.org>
51800
51801         * modules/freadptr-tests: New file.
51802         * tests/test-freadptr.sh: New file.
51803         * tests/test-freadptr.c: New file.
51804
51805         New module 'freadptr'.
51806         * modules/freadptr: New file.
51807         * lib/freadptr.h: New file.
51808         * lib/freadptr.c: New file.
51809         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
51810
51811 2008-02-26  Karl Berry  <karl@freefriends.org>
51812
51813         Sync from Libtool:
51814         * libltdl/argz.c (argz_add, argz_count): New functions.
51815         * libltdl/argz.in.h: Declare them.
51816         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
51817
51818 2008-02-22  Bruno Haible  <bruno@clisp.org>
51819
51820         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
51821         is a pointer type.  Needed for HP-UX 10.
51822         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
51823         * doc/posix-functions/gmtime_r.texi: Likewise.
51824         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
51825
51826 2008-02-24  Bruno Haible  <bruno@clisp.org>
51827
51828         * modules/environ-tests: New file.
51829         * tests/test-environ.c: New file.
51830
51831         New module 'environ'.
51832         * modules/environ: New file.
51833         * lib/unistd.in.h (environ): New declaration.
51834         * m4/environ.m4: New file.
51835         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
51836         after use.
51837         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
51838         HAVE_DECL_ENVIRON.
51839         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
51840         HAVE_DECL_ENVIRON.
51841         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
51842         wrong claim that 'environ' is missing on some systems.
51843         * modules/execute (Depends-on): Add environ.
51844         * lib/execute.c (environ): Remove fallback declaration.
51845         * modules/pipe (Depends-on): Add environ.
51846         * lib/pipe.c (environ): Remove fallback declaration.
51847         * modules/setenv (Depends-on): Add environ.
51848         * lib/setenv.c (environ): Remove fallback declaration.
51849         * modules/unsetenv (Depends-on): Add environ.
51850         * lib/unsetenv.c (environ): Remove fallback declaration.
51851         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
51852         m4/environ.m4.
51853         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
51854         (gl_PREREQ_UNSETENV): Likewise.
51855
51856 2008-02-24  Bruno Haible  <bruno@clisp.org>
51857
51858         * doc/posix-functions/environ.texi: Document the MacOS X problem.
51859
51860 2008-02-20  Bob Proulx  <bob@proulx.com>
51861
51862         Enable use of older two part flavor 'git describe'.
51863         * build-aux/git-version-gen: If using the older two part flavor of
51864         git version then recreate the third part now present in the
51865         newer three part flavor of git describe.
51866
51867 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
51868
51869         * lib/fts.c (fts_build): Typo correction to comment.
51870
51871 2008-02-17  Bruno Haible  <bruno@clisp.org>
51872
51873         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
51874         generating no-op conflicts.
51875
51876 2008-02-17  Bruno Haible  <bruno@clisp.org>
51877
51878         Speed up by 10%.
51879         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
51880         result_entries, rather than an index-based loop.
51881
51882 2008-02-17  Bruno Haible  <bruno@clisp.org>
51883
51884         Speed up by 25%.
51885         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
51886         'hashcode_cached'.
51887         (entry_create): New function.
51888         (entry_hashcode): Use the cached hashcode if possible.
51889         (read_changelog_file, try_split_merged_entry): Use entry_create.
51890
51891 2008-02-17  Bruno Haible  <bruno@clisp.org>
51892
51893         Speed up from O(n^2) to O(n) for long ChangeLog files.
51894         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
51895         (read_changelog_file): Change implementation of entries_reversed list
51896         to rbtreehash.
51897         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
51898
51899 2008-02-17  Bruno Haible  <bruno@clisp.org>
51900
51901         New option --split-merged-entry.
51902         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
51903         (find_paragraph_end, try_split_merged_entry): New functions.
51904         (long_options): Add option --split-merged-entry.
51905         (usage): Document option --split-merged-entry.
51906         (main): Implement option --split-merged-entry.
51907         Reported by Eric Blake.
51908
51909 2008-02-17  Bruno Haible  <bruno@clisp.org>
51910
51911         * lib/git-merge-changelog.c: Include c-strstr.h.
51912         (main): Support the "git pull --rebase" situation.
51913         * modules/git-merge-changelog (Depends-on): Add c-strstr.
51914         Reported by Eric Blake.
51915
51916 2008-02-16  Eric Blake  <ebb9@byu.net>
51917
51918         Avoid doubling \ in common case of "c-maybe" quoting style.
51919         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
51920         eliding outer quotes.
51921         * lib/quotearg.h: Document this.
51922         * tests/test-quotearg.c (result_strings, inputs, results_g)
51923         (flag_results, locale_results): Test it by adding a new string to
51924         each test group.
51925         (compare_strings): Test new string.
51926
51927 2008-02-13  Eric Blake  <ebb9@byu.net>
51928
51929         Avoid trigraph quoting in default output.
51930         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
51931         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
51932         unless explicitly requested.
51933         * tests/test-quotearg.c (flag_results, main): Add additional tests.
51934
51935 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
51936
51937         Don't rely on signed integer overflowing to negative value.
51938         * lib/getugroups.c (getugroups): Include <limits.h>.
51939         Instead, compare against INT_MAX, and increment only if the test passes.
51940
51941 2008-02-13  Jim Meyering  <meyering@redhat.com>
51942         and Eric Blake  <ebb9@byu.net>
51943
51944         Avoid shadowing warning and compile errors on Linux.
51945         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
51946         forwarding macros on Linux.
51947         (dcgettext): Define a stub, for Linux.
51948         (results_g, main): Avoid warnings.
51949
51950 2008-02-12  Eric Blake  <ebb9@byu.net>
51951
51952         Silence warning in last patch.
51953         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
51954
51955         Quotearg part 4: add tests, fix c-maybe colon quoting.
51956         * lib/quotearg.h: Improve documentation.
51957         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
51958         escapes when adding outer quotes.  When quoting trigraphs, use
51959         valid C notation.  When quoting NUL, omit extra characters if next
51960         character is not digit.  Alter prototype.
51961         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
51962         callers.
51963         * modules/quotearg-tests: New module.
51964         * tests/test-quotearg.c: New test.
51965
51966 2008-02-07  Eric Blake  <ebb9@byu.net>
51967
51968         Quotearg part 3: add flag to control outer quote elision.
51969         * lib/quotearg.h (c_maybe_quoting_style): New style.
51970         (enum quoting_flags): Better documentation of flags.
51971         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
51972         c-maybe style.
51973         (quotearg_buffer_restyled): Handle new flag to elide outer
51974         quotes.
51975
51976         Quotearg part 2: add flag that can control NUL elision.
51977         * lib/quotearg.h (set_quoting_flags): New prototype.
51978         * lib/quotearg.c (struct quoting_options): Add flag field.
51979         (set_quoting_flags): New function.
51980         (quotearg_buffer_restyled): Add flags parameter.
51981         (quotearg_alloc_mem): Set the flag if length cannot be returned.
51982         (quotearg_n_options): Set the flag, since length cannot be
51983         returned.
51984         (quoting_options_from_style): Default flags correctly.
51985
51986         Quotearg part 1: more wrappers, restore quotearg_char state.
51987         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
51988         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
51989         (quotearg_colon_mem): New wrappers.
51990         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
51991         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
51992         functions.
51993         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
51994         (quotearg_colon_mem): New functions.
51995
51996 2008-02-11  Bruno Haible  <bruno@clisp.org>
51997
51998         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
51999         library in the current directory: it does not work with parallel make.
52000         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
52001
52002 2008-02-11  Bruno Haible  <bruno@clisp.org>
52003
52004         * .gitattributes: New file.
52005
52006 2008-02-11  Jim Meyering  <meyering@redhat.com>
52007
52008         useless-if-before-free: Fix reversed exit values.
52009         * build-aux/useless-if-before-free: Use correct values
52010         for EXIT_MATCH and EXIT_NO_MATCH.
52011
52012         * build-aux/useless-if-before-free: Close stdout carefully.
52013
52014 2008-02-10  Bruno Haible  <bruno@clisp.org>
52015
52016         New module 'git-merge-changelog'.
52017         * modules/git-merge-changelog: New file.
52018         * lib/git-merge-changelog.c: New file.
52019
52020 2008-02-10  Jim Meyering  <meyering@redhat.com>
52021
52022         useless-if-before-free: New option: --list (-l).
52023
52024         useless-if-before-free: Don't exit immediately upon open failure.
52025         * build-aux/useless-if-before-free: Exit 2 for errors.
52026         Upon failure to open a file, don't exit immediately.
52027         Rather, just warn and continue with any remaining files.
52028
52029 2008-02-10  Bruno Haible  <bruno@clisp.org>
52030
52031         New abstract list operation 'node_set_value'.
52032         * lib/gl_list.h (gl_list_node_set_value): New function.
52033         (struct gl_list_implementation): New field node_set_value.
52034         * lib/gl_list.c (gl_list_node_set_value): New function.
52035         * lib/gl_array_list.c (gl_array_node_set_value): New function.
52036         (gl_array_list_implementation): Update.
52037         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
52038         (gl_carray_list_implementation): Update.
52039         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
52040         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
52041         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
52042         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
52043         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
52044         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
52045         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
52046         Update.
52047         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
52048         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
52049         (gl_sublist_list_implementation): Update.
52050
52051 2008-02-10  Bruno Haible  <bruno@clisp.org>
52052
52053         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
52054         Needed when ELEMENT is #defined to 'some_type *'.
52055
52056 2008-02-10  Jim Meyering  <meyering@redhat.com>
52057
52058         New script and module: useless-if-before-free
52059         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
52060         * build-aux/useless-if-before-free: New file.
52061         * modules/useless-if-before-free: New file.
52062
52063         * build-aux/gitlog-to-changelog: Use committer date, not author date.
52064
52065         xstrtol_error: Fix typo.
52066         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
52067         s/exit_failure/exit_status/.
52068
52069 2008-02-09  Jim Meyering  <meyering@redhat.com>
52070
52071         New script and module: gitlog-to-changelog
52072         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
52073         * modules/gitlog-to-changelog: New file.
52074         * build-aux/gitlog-to-changelog: New file.
52075
52076 2008-02-08  Jim Meyering  <meyering@redhat.com>
52077
52078         Avoid two "parameter unused" warnings.
52079         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
52080         Mark "st" as used.
52081
52082         Use "git COMMAND", not "git-COMMAND".
52083         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
52084         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
52085         * build-aux/git-version-gen: Use "git status", not "git-status".
52086
52087 2008-02-07  Bruno Haible  <bruno@clisp.org>
52088
52089         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
52090         Avoids a crash on Windows Vista.
52091         Reported by Adam Strzelecki <ono@java.pl> via
52092         Simon Josefsson <simon@josefsson.org>.
52093
52094 2008-02-06  Bruno Haible  <bruno@clisp.org>
52095
52096         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
52097         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
52098         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
52099         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
52100         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
52101         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
52102         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
52103         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
52104         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
52105         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
52106         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
52107         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
52108         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
52109         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
52110         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
52111         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
52112         left-adjust flag.
52113         * tests/test-snprintf-posix.h (test_function): Likewise.
52114         * tests/test-sprintf-posix.h (test_function): Likewise.
52115         * tests/test-vasprintf-posix.c (test_function): Likewise.
52116         * doc/posix-functions/fprintf.texi: Update.
52117         * doc/posix-functions/printf.texi: Update.
52118         * doc/posix-functions/snprintf.texi: Update.
52119         * doc/posix-functions/sprintf.texi: Update.
52120         * doc/posix-functions/vfprintf.texi: Update.
52121         * doc/posix-functions/vprintf.texi: Update.
52122         * doc/posix-functions/vsnprintf.texi: Update.
52123         * doc/posix-functions/vsprintf.texi: Update.
52124         Reported by Peter Fales <psfales@alcatel-lucent.com>.
52125
52126 2008-02-06  Bruno Haible  <bruno@clisp.org>
52127
52128         Fix bug introduced on 2008-01-26.
52129         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
52130
52131 2008-02-06  Bruno Haible  <bruno@clisp.org>
52132
52133         Fix bug introduced on 2007-06-10.
52134         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
52135         !NEED_PRINTF_FLAG_ZERO.
52136
52137 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
52138
52139         getloadavg: use libperfstat on AIX5
52140         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
52141
52142 2008-02-03  Bruno Haible  <bruno@clisp.org>
52143
52144         * lib/diffseq.h: Add comments about required #includes.
52145         Reported by Michael Biggs <gnulib@doubleplum.net>.
52146
52147 2008-02-01  Bruno Haible  <bruno@clisp.org>
52148
52149         * users.txt: Add gnuit.
52150
52151 2008-01-31  Bruno Haible  <bruno@clisp.org>
52152
52153         * lib/md4.c (set_uint32): Mark as inline.
52154         * lib/md5.c (set_uint32): Likewise.
52155         * lib/sha1.c (set_uint32): Likewise.
52156         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
52157         * m4/md5.m4 (gl_MD5): Likewise.
52158         * m4/sha1.m4 (gl_SHA1): Likewise.
52159
52160 2008-01-31  Jim Meyering  <meyering@redhat.com>
52161
52162         Use "sizeof VAR", rather than a literal "4".
52163         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
52164         * lib/md4.c (md4_read_ctx): Likewise.
52165         * lib/sha1.c (sha1_read_ctx): Likewise.
52166
52167 2008-01-31  Simon Josefsson  <simon@josefsson.org>
52168
52169         * tests/test-sha1.c: New file, based on test-md5.c.
52170
52171         * modules/crypto/sha1-tests: New file.
52172
52173 2008-01-31  Simon Josefsson  <simon@josefsson.org>
52174
52175         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
52176
52177 2008-01-31  Jim Meyering  <meyering@redhat.com>
52178
52179         Prefer "sizeof v" over the equivalent "4".
52180         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
52181         * lib/md5.c (set_uint32): Likewise.
52182         * lib/sha1.c (set_uint32): Likewise.
52183
52184 2008-01-31  Simon Josefsson  <simon@josefsson.org>
52185
52186         * lib/sha1.c (set_uint32): Mark function as static.
52187
52188 2008-01-31  Simon Josefsson  <simon@josefsson.org>
52189
52190         md2: clarify comments to say that alignment is not required.
52191         * lib/md2.h: Remove warning about alignment in comment.
52192         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
52193         never been required.
52194
52195 2008-01-31  Simon Josefsson  <simon@josefsson.org>
52196
52197         md4: adapt alignment constraint fix from sha1.
52198         * lib/md4.c (set_uint32): New function, from sha1.c
52199         (md4_read_ctx): Use it.
52200         (md4_finish_ctx): Doc fix.
52201         * lib/md4.h: Doc fix.
52202
52203 2008-01-31  Simon Josefsson  <simon@josefsson.org>
52204
52205         md5: adapt alignment constraint fix from sha1.
52206         * lib/md5.c (set_uint32): New function, from sha1.c
52207         (md5_read_ctx): Use it.
52208         (md5_finish_ctx): Doc fix.
52209         * lib/md5.h: Doc fix.
52210
52211 2008-01-30  Peter Palfrader  <weasel@debian.org>
52212
52213         sha1: remove the result buffer alignment constraint
52214         * lib/sha1.c (set_uint32): New function.
52215         (sha1_read_ctx): Rewrite to remove the result buffer alignment
52216         constraint.
52217         (sha1_finish_ctx): Remove comment warning about alignment constraint.
52218         * lib/sha1.h: Likewise.
52219
52220 2008-01-30  Andreas Schwab  <schwab@suse.de>
52221             Bruno Haible  <bruno@clisp.org>
52222
52223         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
52224         correct definition of LDBL_MIN_EXP.
52225
52226 2008-01-30  Karl Berry  <karl@gnu.org>
52227
52228         * config/srclist-update: try to preserve x bit on updates.
52229         * config/srclistvars.sh: update for karl.
52230
52231 2008-01-29  Jim Meyering  <meyering@redhat.com>
52232
52233         vasnprintf.c: Avoid warning about unused label
52234         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
52235         "overflow" label definition and associated code with the
52236         same cpp condition that guards the sole use of that label.
52237
52238 2008-01-26  Bruno Haible  <bruno@clisp.org>
52239
52240         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
52241         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
52242         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
52243         * lib/isnanl-nolibm.h (isnanl): Likewise.
52244         Reported by Paul Eggert <eggert@cs.ucla.edu>.
52245
52246 2008-01-26  Bruno Haible  <bruno@clisp.org>
52247
52248         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
52249         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
52250
52251 2008-01-26  Bruno Haible  <bruno@clisp.org>
52252
52253         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
52254         GCC >= 4.0 built-in.
52255         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
52256
52257 2008-01-26  Bruno Haible  <bruno@clisp.org>
52258
52259         Rename isnan, applicable to 'double' only, to isnand.
52260         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
52261         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
52262         (configure.ac): Update.
52263         (Include): Replace "isnan.h" with "isnand.h".
52264         * m4/isnand.m4: Renamed from m4/isnan.m4.
52265         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
52266         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
52267         instead of isnan.c.
52268         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
52269         instead of HAVE_ISNAN_IN_LIBC.
52270         (isnand): Renamed from isnan.
52271         * lib/isnand.c: New file.
52272         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
52273         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
52274         (Makefile.am): Update.
52275         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
52276         Include isnand.h instead of isnan.h.
52277         (main): Test isnand instead of isnan.
52278         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
52279         isnan-nolibm.
52280         * modules/frexp (Depends-on): Likewise.
52281         * modules/frexp-tests (Depends-on): Likewise.
52282         * modules/frexp-nolibm (Depends-on): Likewise.
52283         * modules/frexp-nolibm-tests (Depends-on): Likewise.
52284         * modules/isfinite (Depends-on): Likewise.
52285         * modules/round-tests (Depends-on): Likewise.
52286         * modules/signbit (Depends-on): Likewise.
52287         * modules/signbit-tests (Depends-on): Likewise.
52288         * modules/snprintf-posix (Depends-on): Likewise.
52289         * modules/sprintf-posix (Depends-on): Likewise.
52290         * modules/trunc-tests (Depends-on): Likewise.
52291         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
52292         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
52293         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
52294         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
52295         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
52296         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
52297         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
52298         * modules/vasnprintf-posix (Depends-on): Likewise.
52299         * modules/vasprintf-posix (Depends-on): Likewise.
52300         * modules/vfprintf-posix (Depends-on): Likewise.
52301         * modules/vsnprintf-posix (Depends-on): Likewise.
52302         * modules/vsprintf-posix (Depends-on): Likewise.
52303         * lib/frexp.c: Include isnand.h instead of isnan.h.
52304         (ISNAN): Set to isnand instead of isnan.
52305         * lib/isfinite.c: Include isnand.h instead of isnan.h.
52306         (gl_isfinited): Use isnand instead of isnan.
52307         * lib/signbitd.c: Include isnand.h instead of isnan.h.
52308         (gl_signbitd): Use isnand instead of isnan.
52309         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
52310         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
52311         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
52312         (main): Use isnand instead of isnan.
52313         * tests/test-round1.c: Include isnand.h.
52314         (main): Use isnand instead of isnan.
52315         * tests/test-round2.c: Include isnand.h instead of isnan.h.
52316         (ISNAN): Set to isnand instead of isnan.
52317         * tests/test-trunc1.c: Include isnand.h.
52318         (main): Use isnand instead of isnan.
52319         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
52320         (equal): Use isnand instead of isnan.
52321         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
52322         isnand-nolibm.
52323         * NEWS: Mention the change.
52324
52325 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
52326             Bruno Haible  <bruno@clisp.org>
52327
52328         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
52329         the GCC builtins for signbits are present and set
52330         REPLACE_SIGNBIT_USING_GCC if so.
52331         * lib/math.in.h (signbit): Define using GCC builtins if
52332         REPLACE_SIGNBIT_USING_GCC is set.
52333         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
52334         REPLACE_SIGNBIT_USING_GCC.
52335         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
52336
52337 2008-01-25  Jim Meyering  <meyering@redhat.com>
52338
52339         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
52340         * lib/poll.c: Include <config.h>, not "config.h".
52341         * tests/test-getaddrinfo.c: Likewise.
52342
52343 2008-01-25  Simon Josefsson  <simon@josefsson.org>
52344
52345         * modules/sockets-tests: New file.
52346
52347 2008-01-24  Simon Josefsson  <simon@josefsson.org>
52348
52349         * modules/sockets: New module, can be used to call WSA_Startup and
52350         WSA_Cleanup when needed.
52351
52352         * lib/sockets.h, lib/sockets.c: New files.
52353
52354         * m4/sockets.m4: New file.
52355
52356         * tests/test-sockets.c: New file.
52357
52358 2008-01-19  Bruno Haible  <bruno@clisp.org>
52359
52360         * doc/posix-headers: Renamed from doc/headers.
52361         * doc/posix-functions: Renamed from doc/functions.
52362         * doc/gnulib.texi: Update.
52363
52364 2008-01-19  Bruno Haible  <bruno@clisp.org>
52365
52366         * doc/glibc-functions/strcasestr.texi: Include contents of
52367         doc/functions/strcasestr.texi, fixing the list of platforms.
52368         * doc/functions/strcasestr.texi: Remove file.
52369
52370 2008-01-19  Bruno Haible  <bruno@clisp.org>
52371
52372         * doc/glibc-functions/memmem.texi: Include contents of
52373         doc/functions/memmem.texi.
52374         * doc/functions/memmem.texi: Remove file.
52375
52376 2008-01-18  Bruno Haible  <bruno@clisp.org>
52377
52378         * doc/glibc-functions/*.texi: New files.
52379         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
52380         to use the new files.
52381
52382 2008-01-17  Bruno Haible  <bruno@clisp.org>
52383
52384         * tests/test-gethostname.c (main): Fix printf statement.
52385
52386 2008-01-17  Simon Josefsson  <simon@josefsson.org>
52387
52388         * modules/gethostname-tests: New file.
52389
52390         * tests/test-gethostname.c: New file.
52391
52392 2008-01-17  Simon Josefsson  <simon@josefsson.org>
52393
52394         * lib/gethostname.c: Include string.h unconditionally, strncpy is
52395         used by the UNAME case.  Reported by Bruno Haible
52396         <bruno@clisp.org>.
52397
52398 2008-01-17  Eric Blake  <ebb9@byu.net>
52399
52400         Convert c-strcasestr to be more efficient.
52401         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
52402         (Depends-on): Add c-strcase, remove malloca, strnlen.
52403         * tests/test-c-strcasestr.c (main): Enhance test.
52404         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
52405
52406 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
52407
52408         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
52409         Use it in creating po/Makevars.
52410
52411 2008-01-15  Simon Josefsson  <simon@josefsson.org>
52412
52413         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
52414         Applications that requires it should initialize libgcrypt
52415         manually.
52416
52417 2008-01-16  Simon Josefsson  <simon@josefsson.org>
52418
52419         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
52420
52421 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
52422
52423         Fix problem with getdate on mingw32 reported by Simon Josefsson
52424         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
52425         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
52426         tzname", when deciding whether to declare tzname.
52427         * lib/strftime.c (tzname): Likewise.
52428
52429 2008-01-15  Bruno Haible  <bruno@clisp.org>
52430
52431         Work around a MacOS X 10.5 bug in frexpl().
52432         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
52433         * doc/functions/frexpl.texi: Document the bug.
52434         Reported by Elias Pipping <pipping@gentoo.org>.
52435
52436 2008-01-14  Eric Blake  <ebb9@byu.net>
52437
52438         Touch up previous patch.
52439         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
52440         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
52441
52442         Convert strcasestr module to use Two-Way algorithm.
52443         * modules/strcasestr-simple: New module, based on the old
52444         strcasestr, but with Two-Way rather than KMP.
52445         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
52446         * lib/string.in.h (rpl_strcasestr): Declare.
52447         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
52448         performance.
52449         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
52450         * modules/string (Makefile.am): Support strcasestr.
52451         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
52452         * modules/strcasestr-tests (Depends-on): Check for alarm.
52453         * tests/test-strcasestr.c: Augment test.
52454         * lib/str-two-way.h: Clean up stray macro.
52455         * NEWS: Document new module.
52456         * MODULES.html.sh (string handling): Likewise.
52457         * doc/functions/strcasestr.texi: New file.
52458         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
52459         here, since it is not a POSIX function.
52460
52461 2008-01-14  Colin Watson  <cjwatson@debian.org>
52462             Bruno Haible  <bruno@clisp.org>
52463
52464         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
52465         works fine; if not, set REPLACE_STRSIGNAL.
52466         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
52467         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
52468         REPLACE_STRSIGNAL.
52469         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
52470         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
52471         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
52472
52473 2008-01-14  Bruno Haible  <bruno@clisp.org>
52474
52475         * modules/strsignal (Include): Change to <string.h>.
52476
52477 2008-01-14  Colin Watson  <cjwatson@debian.org>
52478
52479         * modules/argp (Notice): Add a notice recommending to change
52480         XGETTEXT_OPTIONS.
52481         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
52482
52483 2008-01-13  Colin Watson  <cjwatson@debian.org>
52484
52485         * modules/strsignal-tests: New file.
52486         * tests/test-strsignal.c: New file.
52487
52488         * lib/strsignal.c: New file, from glibc with modifications.
52489         * lib/siglist.h: New file, from glibc with modifications.
52490         * lib/string.in.h (strsignal): New declaration.
52491         * m4/strsignal.m4: New file.
52492         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
52493         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
52494         * modules/strsignal: New file.
52495         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
52496         HAVE_DECL_STRSIGNAL.
52497
52498 2008-01-13  Bruno Haible  <bruno@clisp.org>
52499
52500         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
52501         locale encoding is not ASCII. Needed for OpenBSD 4.0.
52502         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
52503         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
52504
52505 2008-01-13  Bruno Haible  <bruno@clisp.org>
52506
52507         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
52508         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
52509         * lib/argp.h (__attribute__): Likewise.
52510         * lib/c-stack.c (__attribute__): Likewise.
52511         * lib/error.h (__attribute__): Likewise.
52512         * lib/fts.c (__attribute__): Likewise.
52513         * lib/openat.h (__attribute__): Likewise.
52514         * lib/stdio.in.h (__attribute__): Likewise.
52515         * lib/string.in.h (__attribute__): Likewise.
52516         * lib/utimens.c (__attribute__): Likewise.
52517         * lib/vasnprintf.h (__attribute__): Likewise.
52518         * lib/xalloc.h (__attribute__): Likewise.
52519         * lib/xprintf.h (__attribute__): Likewise.
52520         * lib/xstrtol.h (__attribute__): Likewise.
52521         * lib/xvasprintf.h (__attribute__): Likewise.
52522
52523 2008-01-12  Bruno Haible  <bruno@clisp.org>
52524
52525         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
52526         * doc/glibc-headers/a.out.texi: New file.
52527         * doc/glibc-headers/aliases.texi: New file.
52528         * doc/glibc-headers/alloca.texi: New file.
52529         * doc/glibc-headers/ar.texi: New file.
52530         * doc/glibc-headers/argp.texi: New file.
52531         * doc/glibc-headers/argz.texi: New file.
52532         * doc/glibc-headers/byteswap.texi: New file.
52533         * doc/glibc-headers/crypt.texi: New file.
52534         * doc/glibc-headers/endian.texi: New file.
52535         * doc/glibc-headers/envz.texi: New file.
52536         * doc/glibc-headers/err.texi: New file.
52537         * doc/glibc-headers/error.texi: New file.
52538         * doc/glibc-headers/execinfo.texi: New file.
52539         * doc/glibc-headers/fpu_control.texi: New file.
52540         * doc/glibc-headers/fstab.texi: New file.
52541         * doc/glibc-headers/fts.texi: New file.
52542         * doc/glibc-headers/getopt.texi: New file.
52543         * doc/glibc-headers/ieee754.texi: New file.
52544         * doc/glibc-headers/ifaddrs.texi: New file.
52545         * doc/glibc-headers/libintl.texi: New file.
52546         * doc/glibc-headers/mcheck.texi: New file.
52547         * doc/glibc-headers/mntent.texi: New file.
52548         * doc/glibc-headers/obstack.texi: New file.
52549         * doc/glibc-headers/paths.texi: New file.
52550         * doc/glibc-headers/printf.texi: New file.
52551         * doc/glibc-headers/pty.texi: New file.
52552         * doc/glibc-headers/resolv.texi: New file.
52553         * doc/glibc-headers/shadow.texi: New file.
52554         * doc/glibc-headers/sysexits.texi: New file.
52555         * doc/glibc-headers/ttyent.texi: New file.
52556
52557 2008-01-12  Jim Meyering  <meyering@redhat.com>
52558
52559         announce-gen: emit Gnulib's git-based version string.
52560         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
52561         New option --gnulib-version=V, where V is expected to be
52562         the output of running git describe in the gnulib directory.
52563         (get_tool_versions): Request feedback on xdelta.  I suspect it's
52564         not useful, and plan to stop publishing an xdelta file with each
52565         coreutils release.
52566
52567         * build-aux/announce-gen: Also check for lzma-compressed files.
52568
52569 2008-01-11  Bruno Haible  <bruno@clisp.org>
52570
52571         * tests/test-memmem.c (main): Increase maximum allowed time.
52572         * tests/test-strstr.c (main): Likewise.
52573
52574 2008-01-11  Bruno Haible  <bruno@clisp.org>
52575
52576         * doc/functions/memmem.texi: Add more precisions about platforms.
52577         * doc/functions/strstr.texi: Likewise.
52578
52579 2008-01-10  Eric Blake  <ebb9@byu.net>
52580
52581         * m4/strstr.m4: Delete cruft from copy-n-paste.
52582         Reported by Bruno Haible.
52583
52584 2008-01-10  Bruno Haible  <bruno@clisp.org>
52585
52586         Make c-strstr rely on strstr.
52587         * lib/c-strstr.c: Don't include str-kmp.h.
52588         (c_strstr): Define in terms of strstr.
52589         * modules/c-strstr (Files): Remove lib/str-kmp.h.
52590         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
52591
52592 2008-01-10  Bruno Haible  <bruno@clisp.org>
52593
52594         * doc/gnulib.texi (String Functions in C Locale): New section.
52595         * doc/c-ctype.texi: New file.
52596         * doc/c-strcase.texi: New file.
52597         * doc/c-strcaseeq.texi: New file.
52598         * doc/c-strcasestr.texi: New file.
52599         * doc/c-strstr.texi: New file.
52600         * doc/c-strtod.texi: New file.
52601         * doc/c-strtold.texi: New file.
52602
52603 2008-01-10  Eric Blake  <ebb9@byu.net>
52604
52605         * lib/relocatable.h: Fix a comment.
52606
52607 2008-01-10  Eric Blake  <ebb9@byu.net>
52608
52609         Share two-way algorithm.
52610         * lib/str-two-way.h: New file, merged from...
52611         * lib/memmem.c: ...here...
52612         * lib/strstr.c: ...and here.
52613         * modules/memmem (Files): Use it.
52614         * modules/strstr (Files): Likewise.
52615
52616         Avoid quadratic strstr implementations.
52617         * lib/strstr.c: New file.
52618         * m4/strstr.m4: Likewise.
52619         * modules/strstr: Likewise.
52620         * modules/strstr-tests: Likewise.
52621         * tests/test-strstr.c: Likewise.
52622         * lib/string.in.h (rpl_strstr): Declare.
52623         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
52624         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
52625         * modules/string (Makefile.am): Likewise.
52626         * MODULES.html.sh (string handling): Mention new module.
52627         * doc/functions/strstr.texi (strstr): Document the bug.
52628
52629 2008-01-10  Bruno Haible  <bruno@clisp.org>
52630
52631         * lib/relocatable.h (relocate): State whether result is freshly
52632         allocated or not.
52633         * lib/relocatable.c (relocate): Return a freshly allocated string
52634         instead of a pointer to a privately held string.
52635         Reported by Sylvain Beucler <beuc@gnu.org>.
52636
52637 2008-01-10  Colin Watson  <cjwatson@debian.org>
52638
52639         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
52640         s/S_ISNLK/S_ISLNK/.
52641
52642 2008-01-09  Bruno Haible  <bruno@clisp.org>
52643
52644         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
52645         and other files.
52646         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
52647         if it's only a guess.
52648         * modules/memmem: Simplify by depending on memmem-simple.
52649
52650 2008-01-09  Bruno Haible  <bruno@clisp.org>
52651
52652         Work around OpenBSD 4.0 tdelete() bug.
52653         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
52654         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
52655         macros and don't redefine the enum values.
52656         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
52657         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
52658         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
52659
52660 2008-01-09  Bruno Haible  <bruno@clisp.org>
52661
52662         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
52663         (main): Don't perform the tests if setlocale did not install a UTF-8
52664         locale. Needed on OpenBSD 4.0.
52665         * modules/wcwidth-tests (Depends-on): Add localcharset.
52666
52667 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
52668
52669         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
52670         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
52671         * NEWS: announce this.
52672         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
52673
52674 2008-01-09  Simon Josefsson  <simon@josefsson.org>
52675         and Eric Blake  <ebb9@byu.net>
52676
52677         Add memmem-simple module.
52678         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
52679         (gl_FUNC_MEMMEM): Separate performance from presence checks.
52680         * modules/memmem-simple: New file.
52681         * modules/memmem (Description): Tweak.
52682         * MODULES.html.sh (string handling): Mention new module.
52683         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
52684         addressed by memmem-simple.
52685         * NEWS: Document the difference.
52686
52687 2008-01-09  Eric Blake  <ebb9@byu.net>
52688
52689         Give gcc some memmem optimization hints.
52690         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
52691         (strcasestr): Declare as pure.
52692         * modules/memmem (Maintainer): Claim my implementation.
52693
52694 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52695
52696         Support AIX 6.1 and higher.
52697         * build-aux/config.libpath: Likewise.
52698         * build-aux/config.rpath: Likewise.
52699
52700 2008-01-08  Jim Meyering  <meyering@redhat.com>
52701             Bruno Haible  <bruno@clisp.org>
52702
52703         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
52704         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
52705         Reported by Peter Fales in
52706         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
52707
52708 2008-01-08  Bruno Haible  <bruno@clisp.org>
52709
52710         * modules/unictype/category-of (Depends-on): Add
52711         unictype/category-none.
52712         * modules/unictype/category-and-tests (Depends-on): Add
52713         unictype/category-{L,N,Lu,Nd}.
52714         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
52715         * modules/unictype/category-or-tests (Depends-on): Add
52716         unictype/category-{L,N}.
52717         * modules/unictype/category-name-tests (Depends-on): Add
52718         unictype/category-{Z,Nl}.
52719         Reported by Simon Josefsson.
52720
52721 2008-01-08  Bruno Haible  <bruno@clisp.org>
52722
52723         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
52724         convention better.
52725         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
52726         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
52727         Reported by Peter Miller <millerp@canb.auug.org.au>.
52728
52729 2008-01-08  Eric Blake  <ebb9@byu.net>
52730
52731         Rewrite memmem to guarantee linear complexity without malloc.
52732         * lib/memmem.c (memmem): Use Two-Way rather than
52733         Knuth-Morris-Pratt, to allow O(1) space usage.
52734         (critical_factorization, two_way_short_needle)
52735         (two_way_long_needle): New functions.
52736         (knuth_morris_pratt): Delete.
52737         * modules/memmem (Depends-on): No longer need malloca or stdbool.
52738         Add stdint.
52739         * tests/test-memmem.c (main): Add tests for periodic needle and
52740         sublinear performance.
52741         * doc/functions/memmem.texi (memmem): Document other deficiencies
52742         in cygwin and older glibc.
52743
52744 2008-01-08  Bruno Haible  <bruno@clisp.org>
52745
52746         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
52747         augmentation.
52748
52749 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
52750
52751         Add a configure time option: --disable-acl.
52752         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
52753         AC_ARG_ENABLE(acl).
52754
52755 2008-01-06  Simon Josefsson  <simon@josefsson.org>
52756
52757         * tests/test-localename.c: Don't include obsolete "setenv.h".
52758
52759         * modules/localename-tests (Depends-on): Need unsetenv.
52760
52761 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52762
52763         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
52764
52765 2008-01-06  Colin Watson  <cjwatson@debian.org>
52766
52767         * users.txt: Add man-db.
52768
52769 2008-01-07  Bruno Haible  <bruno@clisp.org>
52770
52771         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
52772         previous section name.
52773
52774 2008-01-07  Bruno Haible  <bruno@clisp.org>
52775
52776         * lib/progname.c (set_program_name): Don't strip off a leading
52777         "lt-" prefix outside a .libs directory.
52778         Suggested by Paul Eggert.
52779
52780 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
52781             Bruno Haible  <bruno@clisp.org>
52782
52783         Improve memory cleanup in 'relocatable' module.
52784         * lib/relocatable.h (compute_curr_prefix): Change return type to
52785         'char *'.
52786         * lib/relocatable.c (compute_curr_prefix): Change return type to
52787         'char *'. Free curr_installdir after use.
52788         (relocate): Free curr_prefix_better after use.
52789         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
52790
52791 2008-01-01  Bruno Haible  <bruno@clisp.org>
52792
52793         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
52794         failure on older glibc systems.
52795         Reported by Peter Fales <psfales@alcatel-lucent.com>.
52796
52797 2008-01-05  Eric Blake  <ebb9@byu.net>
52798
52799         Avoid quadratic system memmem.
52800         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
52801         Reported by Ralf Wildenhues.
52802
52803         Fix memmem test for mingw.
52804         * modules/memmem-tests (configure.ac): Check for alarm.
52805         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
52806         it.
52807         * doc/functions/memmem.texi: New file.
52808         * doc/gnulib.texi (Function Substitutes): Add memmem.
52809         Reported by Bruno Haible.
52810
52811 2008-01-04  Bruno Haible  <bruno@clisp.org>
52812
52813         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
52814         Require gl_HEADER_STRINGS_H_DEFAULTS, not
52815         gl_HEADER_STRING_H_DEFAULTS.
52816
52817 2008-01-04  Eric Blake  <ebb9@byu.net>
52818
52819         Shorten duration of memmem test.
52820         * tests/test-memmem.c (main): Use alarm to declare failure if test
52821         is taking too long.
52822         Reported by Ralf Wildenhues.
52823
52824 2007-12-21  Simon Josefsson  <simon@josefsson.org>
52825
52826         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
52827         string, needed by strerror.
52828
52829 2008-01-03  Colin Watson  <cjwatson@debian.org>
52830             Bruno Haible  <bruno@clisp.org>
52831
52832         * doc/gnulib-tool.texi (Localization): New section.
52833
52834 2008-01-02  Bruno Haible  <bruno@clisp.org>
52835
52836         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
52837         variables to 'unsigned char *' type.
52838         Reported by Paul Eggert.
52839
52840 2008-01-02  Jim Meyering  <jim@meyering.net>
52841
52842         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
52843
52844 2007-12-31  Jim Meyering  <jim@meyering.net>
52845
52846         Avoid use of private FTS type name.
52847         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
52848
52849 2007-12-30  Karl Berry  <karl@gnu.org>
52850
52851         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
52852         work around defect in Texinfo and/or the standalone Info browser.
52853
52854 2007-12-30  Bruno Haible  <bruno@clisp.org>
52855
52856         Unify 5 copies of the KMP code.
52857         * lib/str-kmp.h: New file.
52858         * lib/c-strcasestr.c: Include str-kmp.h.
52859         (knuth_morris_pratt): Remove function.
52860         (c_strcasestr): Update.
52861         * lib/c-strstr.c: Include str-kmp.h.
52862         (knuth_morris_pratt): Remove function.
52863         (c_strcasestr): Update.
52864         * lib/mbscasestr.c: Include str-kmp.h.
52865         (knuth_morris_pratt_unibyte): Remove function.
52866         * lib/mbsstr.c: Include str-kmp.h.
52867         (knuth_morris_pratt_unibyte): Remove function.
52868         * lib/strcasestr.c: Include str-kmp.h.
52869         (knuth_morris_pratt): Remove function.
52870         (strcasestr): Update.
52871         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
52872         * modules/c-strstr (Files): Likewise.
52873         * modules/mbscasestr (Files): Likewise.
52874         * modules/mbsstr (Files): Likewise.
52875         * modules/strcasestr (Files): Likewise.
52876         Suggested by Paul Eggert.
52877
52878 2007-12-30  Bruno Haible  <bruno@clisp.org>
52879
52880         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
52881         defined.
52882
52883 2007-12-30  Bruno Haible  <bruno@clisp.org>
52884
52885         * lib/xmalloca.h: Include xalloc.h.
52886         (xnmalloca): New macro.
52887
52888 2007-12-30  Bruno Haible  <bruno@clisp.org>
52889
52890         * lib/malloca.h (nmalloca): New macro.
52891         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
52892         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
52893         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
52894         knuth_morris_pratt_multibyte): Likewise.
52895         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
52896         knuth_morris_pratt_multibyte): Likewise.
52897         * lib/memmem.c (knuth_morris_pratt): Likewise.
52898         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
52899
52900 2007-12-25  Bruno Haible  <bruno@clisp.org>
52901
52902         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
52903         * lib/glob.c: Don't include openat.h.
52904         (link_exists2_p): Add back the code that deals with the
52905         !GLOB_ALTDIRFUNC case.
52906         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
52907         let it do the filename concatenation.
52908         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
52909         * modules/glob (Depends-on): Remove openat.
52910
52911 2007-12-31  Bruno Haible  <bruno@clisp.org>
52912
52913         * modules/dirfd (License): Change to LGPLv2+.
52914         Approved by Jim Meyering.
52915
52916 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
52917
52918         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
52919         when multiplying M by sizeof (size_t).
52920
52921 2007-12-10  Martin Lambers  <marlam@marlam.de>
52922
52923         Override getpagesize on mingw.
52924         * lib/getpagesize.c: New file.
52925         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
52926         * modules/getpagesize (Files): Add lib/getpagesize.c.
52927         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
52928         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
52929         REPLACE_GETPAGESIZE.
52930         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
52931
52932 2007-12-25  Bruno Haible  <bruno@clisp.org>
52933
52934         * modules/localcharset (Notice): New field.
52935         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
52936         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
52937
52938 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
52939             Bruno Haible  <bruno@clisp.org>
52940
52941         Avoid using the syntax symbol() in formatted documentation.
52942         * MODULES.html.sh (func_module): When replacing symbol() with a
52943         hyperlink, remove the parentheses. Show an error if some remain.
52944         Recognize and render the '...' syntax.
52945         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
52946         Rework. Add paragraph about GCC's inlining.
52947         * doc/alloca.texi: Likewise.
52948         * doc/error.texi: Remove parentheses from symbol reference.
52949         * doc/gnulib-intro.texi: Likewise.
52950         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
52951         * modules/fnmatch (Description): Reword to say "the ... function".
52952         * modules/full-read (Description): Likewise.
52953         * modules/full-write (Description): Likewise.
52954         * modules/safe-read (Description): Likewise.
52955         * modules/safe-write (Description): Likewise.
52956         * modules/strchrnul (Description): Likewise.
52957         * modules/trim (Description): Likewise.
52958         * modules/error (Description): Remove parentheses from symbol
52959         references.
52960         * modules/verror (Description): Likewise.
52961         Reported by Karl Berry.
52962
52963 2007-12-25  Bruno Haible  <bruno@clisp.org>
52964
52965         Fixup after 2007-10-16 commit.
52966         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
52967
52968 2007-12-24  Bruno Haible  <bruno@clisp.org>
52969
52970         Make --enable-relocatable work with DESTDIR.
52971         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
52972         to compute installdir from destprog.
52973         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
52974         also set the RELOC_DESTDIR variable.
52975         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
52976
52977 2007-12-24  Bruno Haible  <bruno@clisp.org>
52978
52979         Fix link error due to xalloc_die().
52980         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
52981         of xreadlink.
52982         * lib/relocwrapper.c: Update comments.
52983         * build-aux/install-reloc: Remove xreadlink.c from file list.
52984         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
52985         xreadlink.c.
52986         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
52987
52988 2007-12-24  Bruno Haible  <bruno@clisp.org>
52989
52990         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
52991         * lib/setenv.h: Remove file.
52992         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
52993         lib/setenv.h.
52994         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
52995         (Depends-on): Add stdlib.
52996         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
52997         gl_FUNC_UNSETENV.
52998         (Include): Replace setenv.h with <stdlib.h>.
52999         * modules/unsetenv: New file.
53000         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
53001         * lib/unsetenv.c: Include <stdlib.h> first.
53002         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
53003         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
53004         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
53005         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
53006         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
53007         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
53008         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
53009         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
53010         * doc/functions/unsetenv.texi: Update.
53011         * modules/xsetenv (Depends-on): Add unsetenv.
53012         * modules/getdate (Depends-on): Likewise.
53013         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
53014         * lib/xsetenv.c: Don't include setenv.h.
53015         * lib/getdate.y: Likewise.
53016         * lib/relocwrapper.c: Likewise.
53017         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
53018         (Depends-on): Add stdlib.
53019         * NEWS: Mention the changes.
53020         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
53021
53022 2007-12-23  Bruno Haible  <bruno@clisp.org>
53023
53024         * lib/memmem.c (memmem): Use lowercase variable names. Tab
53025         indentation.
53026
53027 2007-12-23  Bruno Haible  <bruno@clisp.org>
53028
53029         * lib/c-strcasestr.c: Add more comments.
53030         * lib/c-strstr.c: Likewise.
53031         * lib/mbscasestr.c: Likewise.
53032         * lib/mbsstr.c: Likewise.
53033         * lib/strcasestr.c: Likewise.
53034         * lib/memmem.c: Likewise.
53035
53036 2007-12-23  Bruno Haible  <bruno@clisp.org>
53037
53038         * tests/test-memmem.c: Include <string.h> first.
53039
53040 2007-12-22  Bruno Haible  <bruno@clisp.org>
53041
53042         * gnulib-tool (func_create_testdir): Change $auxdir while generating
53043         the contents of $testsbase.
53044         Reported by Ralf Wildenhues.
53045
53046 2007-12-22  Bruno Haible  <bruno@clisp.org>
53047
53048         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
53049         two variables local_ldadd_before, local_ldadd_last.
53050
53051 2007-12-20  Eric Blake  <ebb9@byu.net>
53052
53053         Work around circular library issue when cross-compiling.
53054         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
53055         that progname.o does not need to pull in rpl_memcmp.
53056
53057 2007-12-19  Eric Blake  <ebb9@byu.net>
53058
53059         Fix memmem to avoid O(n^2) worst-case complexity.
53060         * lib/memmem.c (knuth_morris_pratt): New function.
53061         (memmem): Use it if first few naive iterations fail.
53062         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
53063         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
53064         * modules/memchr (License): Likewise.
53065         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
53066         malloca.
53067         * tests/test-memmem.c: Rewrite, borrowing ideas from
53068         test-mbsstr1.c; the old version wouldn't even compile!
53069         * modules/memmem-tests: New file.
53070         * lib/string.in.h (rpl_memmem): Add declaration.
53071         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
53072         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
53073         REPLACE_MEMMEM.
53074
53075 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
53076
53077         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
53078         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
53079         before any system include files, and undef after them all.  This
53080         should fix a problem on VMS reported by John E. Malmberg in
53081         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
53082
53083 2007-12-17  Eric Blake  <ebb9@byu.net>
53084
53085         Revert addition of verify, for BSD/OS.
53086         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
53087         can't handle large files, for the sake of obsolete platforms.
53088         * modules/fseeko (Depends-on): Remove verify.
53089         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
53090         * doc/functions/ftello.texi (ftello): Likewise.
53091         * doc/functions/fgetpos.texi (fgetpos): Likewise.
53092         Reported by Larry Jones.
53093
53094 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
53095
53096         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
53097         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
53098
53099 2007-12-17  Jim Meyering  <meyering@redhat.com>
53100
53101         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
53102         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
53103         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
53104         * modules/getcwd (Depends-on): Add openat.
53105         Reported by Petr Salinger.
53106
53107 2007-12-17  Bruno Haible  <bruno@clisp.org>
53108
53109         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
53110         avoid a segmentation fault of the configure test on x86_64 systems.
53111
53112 2007-12-15  Jim Meyering  <meyering@redhat.com>
53113
53114         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
53115
53116 2007-12-13  Eric Blake  <ebb9@byu.net>
53117
53118         Another fseek test.
53119         * tests/test-fseek.c (main): Also test ungetc handling.
53120         * tests/test-fseeko.c (main): Likewise.
53121         * modules/fseeko (Depends-on): Add verify.
53122         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
53123         large.
53124         Reported by Larry Jones.
53125
53126         Fix fseeko on mingw.
53127         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
53128         seek.
53129
53130         Beef up fseek tests.
53131         * tests/test-fseek.c (main): Also test eof handling.
53132         * tests/test-fseeko.c (main): Likewise.
53133         Reported by Larry Jones.
53134
53135 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
53136
53137         Fix fseeko on BSD-based platforms.
53138         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
53139         successful seek.
53140
53141 2007-12-12  Eric Blake  <ebb9@byu.net>
53142
53143         Allow circular dependency of separate libtests.a
53144         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
53145         when use_libtests.
53146
53147 2007-12-11  Eric Blake  <ebb9@byu.net>
53148
53149         Fix bug with -0.0L in previous patch.
53150         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
53151         * tests/test-isnan.c (main): Also test on zeroes.
53152         * tests/test-isnanf.c (main): Likewise.
53153         * tests/test-isnanl.h (main): Likewise.
53154
53155         Detect pseudo-denormals on x86 even when cross-compiling.
53156         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
53157         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
53158         invalid bit patterns that happen to satisfy ==.
53159
53160         Avoid link failures with separate libtests.a.
53161         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
53162         last, to satisfy circular dependencies.
53163
53164 2007-12-11  Eric Blake  <ebb9@byu.net>
53165         and Bruno Haible  <bruno@clisp.org>
53166
53167         Fix OpenBSD 4.0 <float.h> handling of long double.
53168         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
53169         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
53170         * doc/headers/float.texi (float.h): Document OpenBSD bug.
53171
53172 2007-12-11  Jim Meyering  <meyering@redhat.com>
53173
53174         * users.txt: Add libvirt.
53175
53176         Support versions of autoconf prior to 2.59c.
53177         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
53178         if it is not already defined.
53179
53180 2007-12-09  Bruno Haible  <bruno@clisp.org>
53181
53182         Let 'gnulib-tool --import' collect sources needed for the tests in
53183         tests/ rather than in lib/.
53184         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
53185         argument. If true, add rules to generate libtests.a, and put libtests.a
53186         into $(LDADD). Consider source files in subdirectories and set
53187         uses_subdirs.
53188         (func_emit_initmacro_start, func_emit_initmacro_end,
53189         func_emit_initmacro_done): Pass all arguments explicitly.
53190         (func_import): Determine two module lists main_modules,
53191         testsrelated_modules. Determine use_libtests. Determine two variables
53192         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
53193         instead of just sed_transform_lib_file. Determine two variables
53194         main_files and testsrelated_files. Compute 'files' as the union of
53195         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
53196         func_add_or_update. In the generated gnulib-comp.m4, collect the
53197         object files for tests/ in different variables than those for lib/.
53198         Substitute LIBTESTS_LIBDEPS.
53199         (func_create_testdir): Combine the uses_subdirs results from
53200         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
53201
53202 2007-12-09  Bruno Haible  <bruno@clisp.org>
53203
53204         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
53205         the build-aux directory.
53206
53207 2007-12-09  Bruno Haible  <bruno@clisp.org>
53208
53209         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
53210         introduced on 2006-09-09.
53211
53212 2007-12-07  Jim Meyering  <meyering@redhat.com>
53213
53214         Let these macros work also with autoconf-2.59.
53215         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
53216         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
53217         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
53218
53219 2007-12-06  Jim Meyering  <meyering@redhat.com>
53220
53221         Avoid a configure-time syntax error in gl_FUNC_ACL.
53222         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
53223         function in each branch, before testing the cache variable.
53224
53225 2007-12-04  Eric Blake  <ebb9@byu.net>
53226
53227         Make scripts executable.
53228         * build-aux/config.guess: Add execute permissions.
53229         * build-aux/config.sub: Likewise.
53230         * build-aux/gendocs.sh: Likewise.
53231
53232         Fix frexp on mingw.
53233         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
53234         cross-compiling.
53235         * doc/functions/frexp.texi (frexp): Document the bug.
53236
53237         Make cygwin fseeko check more reliable.
53238         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
53239         version numbers, rather than unrelated feature check.
53240         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
53241         * doc/functions/ftello.texi (ftello): Likewise.
53242         Reported by Bruno Haible.
53243
53244         * m4/strerror.m4: Bump version number.
53245
53246 2007-12-03  Bruno Haible  <bruno@clisp.org>
53247
53248         * doc/functions/mprotect.texi: Mention the mingw problem.
53249
53250 2007-12-03  Eric Blake  <ebb9@byu.net>
53251
53252         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
53253         REPLACE_STRERROR is initialized before this macro.
53254
53255 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
53256
53257         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
53258         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
53259         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
53260         put -lsec in even for programs other than 'ls'.  This fixes a problem
53261         for gettext reported by Bruno Haible in
53262         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
53263         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
53264         Add support for Solaris 10.  This isn't efficient, but should get the
53265         job done for now.
53266
53267 2007-12-03  James Youngman  <jay@gnu.org>
53268
53269         * doc/regexprops-generic.texi: change "an close-group" to "a
53270         close-group" and "illegal" to "not allowed".
53271
53272 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53273
53274         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
53275         pr_byname.h. Needed for the rare case when the maintainer has done
53276         "make maintainer-clean" in the source directory and then attempts a
53277         build outside the source directory.
53278         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
53279         scripts_byname.h.
53280
53281 2007-12-02  Martin Lambers <marlam@marlam.de>
53282             Bruno Haible  <bruno@clisp.org>
53283
53284         * lib/getpagesize.h: Remove file.
53285         * lib/unistd.in.h: Include declaration of getpagesize here.
53286         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
53287         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
53288         HAVE_SYS_PARAM_H.
53289         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
53290         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
53291         * modules/getpagesize (Files): Remove lib/getpagesize.h.
53292         (Depends-on): Add unistd.
53293         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
53294         (Include): Use <unistd.h> instead of getpagesize.h.
53295         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
53296         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
53297         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
53298         gl_GETPAGESIZE invocation, already handled by module dependency.
53299         * lib/pagealign_alloc.c: Don't include getpagesize.h.
53300
53301 2007-12-02  Bruno Haible  <bruno@clisp.org>
53302
53303         * modules/strings-tests: New file.
53304         * tests/test-strings.c: New file.
53305
53306         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
53307         * lib/strings.in.h: New file.
53308         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
53309         * m4/strings_h.m4: New file.
53310         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
53311         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
53312         * modules/strings: New file.
53313         * modules/string (Makefile.am): Update.
53314         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
53315         Reported by Karl Berry.
53316
53317 2007-12-01  Eric Blake  <ebb9@byu.net>
53318
53319         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
53320         accomodate fix in cygwin 1.5.25.
53321
53322 2007-12-01  Jim Meyering  <meyering@redhat.com>
53323
53324         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
53325         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
53326         that would inhibit utf8-optimization of a regexp containing line-
53327         or buffer-anchors, e.g., `^', `$'.
53328
53329 2007-11-30  Bruno Haible  <bruno@clisp.org>
53330
53331         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
53332         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
53333         glthread_recursive_lock_init.
53334         * lib/lock.c (glthread_recursive_lock_init)
53335         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
53336         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
53337
53338 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
53339
53340         New function qset_acl, like set_acl but with syscall semantics.
53341         * lib/acl.h (qset_acl): New decl.
53342         * lib/acl.c (qset_acl): New function.
53343         (set_acl): Use new function.  Use more-consistent diagnostics.
53344
53345 2007-11-28  Jim Meyering  <meyering@redhat.com>
53346
53347         * modules/physmem (License): Change from GPL to LGPLv2+.
53348
53349 2007-11-26  Bruno Haible  <bruno@clisp.org>
53350
53351         * lib/vasnprintf.c (decode_long_double): Don't abort if the
53352         'long double' type has excess precision.
53353         Reported by Jim Meyering in
53354         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
53355
53356 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53357
53358         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
53359         Sync from <http://gnu.org/licenses>.
53360         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
53361         with license text from same location.
53362         * doc/maintain.texi, doc/standards.texi:  Sync from
53363         <http://savannah.gnu.org/projects/gnustandards>.
53364
53365 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
53366         and Jim Meyering  <meyering@redhat.com>
53367
53368         Adjust getdate' grammar to accept a slightly more regular language.
53369         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
53370         Before, the former was rejected.
53371         * lib/getdate.y (digits_to_date_time): New function, factored
53372         out of ...
53373         (number): ...here.  Just call digits_to_date_time.
53374         (hybrid): New non-terminal to handle an <unsigned number,
53375         signed relative offset> sequence consistently.
53376
53377 2007-11-18  Jim Meyering  <meyering@redhat.com>
53378
53379         Pull my changes from coreutils:
53380         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
53381         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
53382         use of $gnulib_tool_option_extras, so that it's separated from the
53383         preceding argument.
53384
53385         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
53386         * build-aux/bootstrap (cp_mark_as_generated): Create any required
53387         parent destination directories before copying a file into place.
53388
53389 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
53390
53391         bootstrap: work also with 4-argument variant of AC_INIT
53392         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
53393
53394 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
53395
53396         Port test-getaddrinfo to Solaris.
53397         Problem reported by Bruno Haible in
53398         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
53399         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
53400         explanation of setting 'hints'.
53401         Don't reject an implementation merely because it returns EAI_SERVICE.
53402         (EAI_SERVICE): Define to 0 if not defined.
53403
53404 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
53405
53406         The license of gnu-make and posix-shell is now "GPLed build tool".
53407         * modules/gnu-make (License): Likewise.
53408         * modules/posix-shell (License): Likewise.
53409
53410         New module posix-shell, for determining a POSIX shell
53411         or perhaps something that is close enough to a POSIX shell.
53412         * m4/posix-shell.m4: New file.
53413         * modules/posix-shell: New file.
53414
53415         * MODULES.html.sh: Mention new module.
53416
53417         New module gnu-make, for determining whether we're using GNU Make.
53418         * m4/gnu-make.m4: New file.
53419         * modules/gnu-make: New file.
53420         * MODULES.html.sh: Mention new module.
53421
53422 2007-11-14  Jim Meyering  <meyering@redhat.com>
53423
53424         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
53425         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
53426         use this macro to create a function _definition_.
53427         Remove useless "#undef ARGMATCH_DIE".
53428
53429 2007-11-14  Bruno Haible  <bruno@clisp.org>
53430
53431         * lib/config.charset: Update for OpenBSD 4.1.
53432         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
53433
53434 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
53435
53436         Document 64-bit #if problems in stdint.texi.
53437         * doc/headers/stdint.texi (stdint.h): Mention problems with
53438         64-bit-#if, and how to work around them.
53439
53440         Don't insist on 'long long int' support in the preprocessor.  It
53441         breaks too many things.  For example, PRIdMAX still uses a 'long
53442         long int' format with the latest Sun compiler, even though
53443         HAVE_LONG_LONG_INT isn't defined due to that compiler's
53444         preprocessor problem.  This causes the latest coreutils to dump
53445         core on Solaris 10 sparc with the Sun C compiler.
53446         Instead, fix the 2007-10-16 problem in a different way, by evaluating
53447         the troublesome expressions at configure-time, not at #if-time.
53448         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
53449         preprocessor.
53450         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
53451         compile-time C checks, done at 'configure'-time.
53452         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
53453         * modules/inttypes (Makefile): Substitute the new symbols that
53454         gl_INTTYPES_H now generates.
53455         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
53456
53457 2007-11-12  Bruno Haible  <bruno@clisp.org>
53458
53459         Tests for Unicode character classification functions.
53460
53461         * modules/unictype/bidicategory-byname-tests: New file.
53462         * modules/unictype/bidicategory-name-tests: New file.
53463         * modules/unictype/bidicategory-of-tests: New file.
53464         * modules/unictype/bidicategory-test-tests: New file.
53465         * modules/unictype/block-list-tests: New file.
53466         * modules/unictype/block-of-tests: New file.
53467         * modules/unictype/block-test-tests: New file.
53468         * modules/unictype/category-C-tests: New file.
53469         * modules/unictype/category-Cc-tests: New file.
53470         * modules/unictype/category-Cf-tests: New file.
53471         * modules/unictype/category-Cn-tests: New file.
53472         * modules/unictype/category-Co-tests: New file.
53473         * modules/unictype/category-Cs-tests: New file.
53474         * modules/unictype/category-L-tests: New file.
53475         * modules/unictype/category-Ll-tests: New file.
53476         * modules/unictype/category-Lm-tests: New file.
53477         * modules/unictype/category-Lo-tests: New file.
53478         * modules/unictype/category-Lt-tests: New file.
53479         * modules/unictype/category-Lu-tests: New file.
53480         * modules/unictype/category-M-tests: New file.
53481         * modules/unictype/category-Mc-tests: New file.
53482         * modules/unictype/category-Me-tests: New file.
53483         * modules/unictype/category-Mn-tests: New file.
53484         * modules/unictype/category-N-tests: New file.
53485         * modules/unictype/category-Nd-tests: New file.
53486         * modules/unictype/category-Nl-tests: New file.
53487         * modules/unictype/category-No-tests: New file.
53488         * modules/unictype/category-P-tests: New file.
53489         * modules/unictype/category-Pc-tests: New file.
53490         * modules/unictype/category-Pd-tests: New file.
53491         * modules/unictype/category-Pe-tests: New file.
53492         * modules/unictype/category-Pf-tests: New file.
53493         * modules/unictype/category-Pi-tests: New file.
53494         * modules/unictype/category-Po-tests: New file.
53495         * modules/unictype/category-Ps-tests: New file.
53496         * modules/unictype/category-S-tests: New file.
53497         * modules/unictype/category-Sc-tests: New file.
53498         * modules/unictype/category-Sk-tests: New file.
53499         * modules/unictype/category-Sm-tests: New file.
53500         * modules/unictype/category-So-tests: New file.
53501         * modules/unictype/category-Z-tests: New file.
53502         * modules/unictype/category-Zl-tests: New file.
53503         * modules/unictype/category-Zp-tests: New file.
53504         * modules/unictype/category-Zs-tests: New file.
53505         * modules/unictype/category-and-not-tests: New file.
53506         * modules/unictype/category-and-tests: New file.
53507         * modules/unictype/category-byname-tests: New file.
53508         * modules/unictype/category-name-tests: New file.
53509         * modules/unictype/category-none-tests: New file.
53510         * modules/unictype/category-of-tests: New file.
53511         * modules/unictype/category-or-tests: New file.
53512         * modules/unictype/category-test-withtable-tests: New file.
53513         * modules/unictype/combining-class-tests: New file.
53514         * modules/unictype/ctype-alnum-tests: New file.
53515         * modules/unictype/ctype-alpha-tests: New file.
53516         * modules/unictype/ctype-blank-tests: New file.
53517         * modules/unictype/ctype-cntrl-tests: New file.
53518         * modules/unictype/ctype-digit-tests: New file.
53519         * modules/unictype/ctype-graph-tests: New file.
53520         * modules/unictype/ctype-lower-tests: New file.
53521         * modules/unictype/ctype-print-tests: New file.
53522         * modules/unictype/ctype-punct-tests: New file.
53523         * modules/unictype/ctype-space-tests: New file.
53524         * modules/unictype/ctype-upper-tests: New file.
53525         * modules/unictype/ctype-xdigit-tests: New file.
53526         * modules/unictype/decimal-digit-tests: New file.
53527         * modules/unictype/digit-tests: New file.
53528         * modules/unictype/mirror-tests: New file.
53529         * modules/unictype/numeric-tests: New file.
53530         * modules/unictype/property-alphabetic-tests: New file.
53531         * modules/unictype/property-ascii-hex-digit-tests: New file.
53532         * modules/unictype/property-bidi-arabic-digit-tests: New file.
53533         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
53534         * modules/unictype/property-bidi-block-separator-tests: New file.
53535         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
53536         * modules/unictype/property-bidi-common-separator-tests: New file.
53537         * modules/unictype/property-bidi-control-tests: New file.
53538         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
53539         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
53540         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
53541         * modules/unictype/property-bidi-european-digit-tests: New file.
53542         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
53543         * modules/unictype/property-bidi-left-to-right-tests: New file.
53544         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
53545         * modules/unictype/property-bidi-other-neutral-tests: New file.
53546         * modules/unictype/property-bidi-pdf-tests: New file.
53547         * modules/unictype/property-bidi-segment-separator-tests: New file.
53548         * modules/unictype/property-bidi-whitespace-tests: New file.
53549         * modules/unictype/property-byname-tests: New file.
53550         * modules/unictype/property-combining-tests: New file.
53551         * modules/unictype/property-composite-tests: New file.
53552         * modules/unictype/property-currency-symbol-tests: New file.
53553         * modules/unictype/property-dash-tests: New file.
53554         * modules/unictype/property-decimal-digit-tests: New file.
53555         * modules/unictype/property-default-ignorable-code-point-tests: New file.
53556         * modules/unictype/property-deprecated-tests: New file.
53557         * modules/unictype/property-diacritic-tests: New file.
53558         * modules/unictype/property-extender-tests: New file.
53559         * modules/unictype/property-format-control-tests: New file.
53560         * modules/unictype/property-grapheme-base-tests: New file.
53561         * modules/unictype/property-grapheme-extend-tests: New file.
53562         * modules/unictype/property-grapheme-link-tests: New file.
53563         * modules/unictype/property-hex-digit-tests: New file.
53564         * modules/unictype/property-hyphen-tests: New file.
53565         * modules/unictype/property-id-continue-tests: New file.
53566         * modules/unictype/property-id-start-tests: New file.
53567         * modules/unictype/property-ideographic-tests: New file.
53568         * modules/unictype/property-ids-binary-operator-tests: New file.
53569         * modules/unictype/property-ids-trinary-operator-tests: New file.
53570         * modules/unictype/property-ignorable-control-tests: New file.
53571         * modules/unictype/property-iso-control-tests: New file.
53572         * modules/unictype/property-join-control-tests: New file.
53573         * modules/unictype/property-left-of-pair-tests: New file.
53574         * modules/unictype/property-line-separator-tests: New file.
53575         * modules/unictype/property-logical-order-exception-tests: New file.
53576         * modules/unictype/property-lowercase-tests: New file.
53577         * modules/unictype/property-math-tests: New file.
53578         * modules/unictype/property-non-break-tests: New file.
53579         * modules/unictype/property-not-a-character-tests: New file.
53580         * modules/unictype/property-numeric-tests: New file.
53581         * modules/unictype/property-other-alphabetic-tests: New file.
53582         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
53583         * modules/unictype/property-other-grapheme-extend-tests: New file.
53584         * modules/unictype/property-other-id-continue-tests: New file.
53585         * modules/unictype/property-other-id-start-tests: New file.
53586         * modules/unictype/property-other-lowercase-tests: New file.
53587         * modules/unictype/property-other-math-tests: New file.
53588         * modules/unictype/property-other-uppercase-tests: New file.
53589         * modules/unictype/property-paired-punctuation-tests: New file.
53590         * modules/unictype/property-paragraph-separator-tests: New file.
53591         * modules/unictype/property-pattern-syntax-tests: New file.
53592         * modules/unictype/property-pattern-white-space-tests: New file.
53593         * modules/unictype/property-private-use-tests: New file.
53594         * modules/unictype/property-punctuation-tests: New file.
53595         * modules/unictype/property-quotation-mark-tests: New file.
53596         * modules/unictype/property-radical-tests: New file.
53597         * modules/unictype/property-sentence-terminal-tests: New file.
53598         * modules/unictype/property-soft-dotted-tests: New file.
53599         * modules/unictype/property-space-tests: New file.
53600         * modules/unictype/property-terminal-punctuation-tests: New file.
53601         * modules/unictype/property-test-tests: New file.
53602         * modules/unictype/property-titlecase-tests: New file.
53603         * modules/unictype/property-unassigned-code-value-tests: New file.
53604         * modules/unictype/property-unified-ideograph-tests: New file.
53605         * modules/unictype/property-uppercase-tests: New file.
53606         * modules/unictype/property-variation-selector-tests: New file.
53607         * modules/unictype/property-white-space-tests: New file.
53608         * modules/unictype/property-xid-continue-tests: New file.
53609         * modules/unictype/property-xid-start-tests: New file.
53610         * modules/unictype/property-zero-width-tests: New file.
53611         * modules/unictype/scripts-tests: New file.
53612         * modules/unictype/syntax-c-ident-tests: New file.
53613         * modules/unictype/syntax-c-whitespace-tests: New file.
53614         * modules/unictype/syntax-java-ident-tests: New file.
53615         * modules/unictype/syntax-java-whitespace-tests: New file.
53616         * tests/unictype/test-bidi_byname.c: New file.
53617         * tests/unictype/test-bidi_name.c: New file.
53618         * tests/unictype/test-bidi_of.c: New file.
53619         * tests/unictype/test-bidi_test.c: New file.
53620         * tests/unictype/test-block_list.c: New file.
53621         * tests/unictype/test-block_of.c: New file.
53622         * tests/unictype/test-block_test.c: New file.
53623         * tests/unictype/test-categ_and.c: New file.
53624         * tests/unictype/test-categ_and_not.c: New file.
53625         * tests/unictype/test-categ_byname.c: New file.
53626         * tests/unictype/test-categ_name.c: New file.
53627         * tests/unictype/test-categ_none.c: New file.
53628         * tests/unictype/test-categ_of.c: New file.
53629         * tests/unictype/test-categ_or.c: New file.
53630         * tests/unictype/test-categ_test_withtable.c: New file.
53631         * tests/unictype/test-combining.c: New file.
53632         * tests/unictype/test-decdigit.c: New file.
53633         * tests/unictype/test-digit.c: New file.
53634         * tests/unictype/test-mirror.c: New file.
53635         * tests/unictype/test-numeric.c: New file.
53636         * tests/unictype/test-pr_byname.c: New file.
53637         * tests/unictype/test-pr_test.c: New file.
53638         * tests/unictype/test-predicate-part1.h: New file.
53639         * tests/unictype/test-predicate-part2.h: New file.
53640         * tests/unictype/test-scripts.c: New file.
53641         * tests/unictype/test-sy_c_ident.c: New file.
53642         * tests/unictype/test-sy_java_ident.c: New file.
53643
53644         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
53645         for Unicode 5.0.0.
53646         * tests/unictype/test-categ_Cc.c: Likewise.
53647         * tests/unictype/test-categ_Cf.c: Likewise.
53648         * tests/unictype/test-categ_Cn.c: Likewise.
53649         * tests/unictype/test-categ_Co.c: Likewise.
53650         * tests/unictype/test-categ_Cs.c: Likewise.
53651         * tests/unictype/test-categ_L.c: Likewise.
53652         * tests/unictype/test-categ_Ll.c: Likewise.
53653         * tests/unictype/test-categ_Lm.c: Likewise.
53654         * tests/unictype/test-categ_Lo.c: Likewise.
53655         * tests/unictype/test-categ_Lt.c: Likewise.
53656         * tests/unictype/test-categ_Lu.c: Likewise.
53657         * tests/unictype/test-categ_M.c: Likewise.
53658         * tests/unictype/test-categ_Mc.c: Likewise.
53659         * tests/unictype/test-categ_Me.c: Likewise.
53660         * tests/unictype/test-categ_Mn.c: Likewise.
53661         * tests/unictype/test-categ_N.c: Likewise.
53662         * tests/unictype/test-categ_Nd.c: Likewise.
53663         * tests/unictype/test-categ_Nl.c: Likewise.
53664         * tests/unictype/test-categ_No.c: Likewise.
53665         * tests/unictype/test-categ_P.c: Likewise.
53666         * tests/unictype/test-categ_Pc.c: Likewise.
53667         * tests/unictype/test-categ_Pd.c: Likewise.
53668         * tests/unictype/test-categ_Pe.c: Likewise.
53669         * tests/unictype/test-categ_Pf.c: Likewise.
53670         * tests/unictype/test-categ_Pi.c: Likewise.
53671         * tests/unictype/test-categ_Po.c: Likewise.
53672         * tests/unictype/test-categ_Ps.c: Likewise.
53673         * tests/unictype/test-categ_S.c: Likewise.
53674         * tests/unictype/test-categ_Sc.c: Likewise.
53675         * tests/unictype/test-categ_Sk.c: Likewise.
53676         * tests/unictype/test-categ_Sm.c: Likewise.
53677         * tests/unictype/test-categ_So.c: Likewise.
53678         * tests/unictype/test-categ_Z.c: Likewise.
53679         * tests/unictype/test-categ_Zl.c: Likewise.
53680         * tests/unictype/test-categ_Zp.c: Likewise.
53681         * tests/unictype/test-categ_Zs.c: Likewise.
53682         * tests/unictype/test-ctype_alnum.c: Likewise.
53683         * tests/unictype/test-ctype_alpha.c: Likewise.
53684         * tests/unictype/test-ctype_blank.c: Likewise.
53685         * tests/unictype/test-ctype_cntrl.c: Likewise.
53686         * tests/unictype/test-ctype_digit.c: Likewise.
53687         * tests/unictype/test-ctype_graph.c: Likewise.
53688         * tests/unictype/test-ctype_lower.c: Likewise.
53689         * tests/unictype/test-ctype_print.c: Likewise.
53690         * tests/unictype/test-ctype_punct.c: Likewise.
53691         * tests/unictype/test-ctype_space.c: Likewise.
53692         * tests/unictype/test-ctype_upper.c: Likewise.
53693         * tests/unictype/test-ctype_xdigit.c: Likewise.
53694         * tests/unictype/test-decdigit.h: Likewise.
53695         * tests/unictype/test-digit.h: Likewise.
53696         * tests/unictype/test-numeric.h: Likewise.
53697         * tests/unictype/test-pr_alphabetic.c: Likewise.
53698         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
53699         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
53700         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
53701         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
53702         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
53703         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
53704         * tests/unictype/test-pr_bidi_control.c: Likewise.
53705         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
53706         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
53707         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
53708         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
53709         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
53710         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
53711         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
53712         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
53713         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
53714         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
53715         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
53716         * tests/unictype/test-pr_combining.c: Likewise.
53717         * tests/unictype/test-pr_composite.c: Likewise.
53718         * tests/unictype/test-pr_currency_symbol.c: Likewise.
53719         * tests/unictype/test-pr_dash.c: Likewise.
53720         * tests/unictype/test-pr_decimal_digit.c: Likewise.
53721         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
53722         * tests/unictype/test-pr_deprecated.c: Likewise.
53723         * tests/unictype/test-pr_diacritic.c: Likewise.
53724         * tests/unictype/test-pr_extender.c: Likewise.
53725         * tests/unictype/test-pr_format_control.c: Likewise.
53726         * tests/unictype/test-pr_grapheme_base.c: Likewise.
53727         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
53728         * tests/unictype/test-pr_grapheme_link.c: Likewise.
53729         * tests/unictype/test-pr_hex_digit.c: Likewise.
53730         * tests/unictype/test-pr_hyphen.c: Likewise.
53731         * tests/unictype/test-pr_id_continue.c: Likewise.
53732         * tests/unictype/test-pr_id_start.c: Likewise.
53733         * tests/unictype/test-pr_ideographic.c: Likewise.
53734         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
53735         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
53736         * tests/unictype/test-pr_ignorable_control.c: Likewise.
53737         * tests/unictype/test-pr_iso_control.c: Likewise.
53738         * tests/unictype/test-pr_join_control.c: Likewise.
53739         * tests/unictype/test-pr_left_of_pair.c: Likewise.
53740         * tests/unictype/test-pr_line_separator.c: Likewise.
53741         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
53742         * tests/unictype/test-pr_lowercase.c: Likewise.
53743         * tests/unictype/test-pr_math.c: Likewise.
53744         * tests/unictype/test-pr_non_break.c: Likewise.
53745         * tests/unictype/test-pr_not_a_character.c: Likewise.
53746         * tests/unictype/test-pr_numeric.c: Likewise.
53747         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
53748         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
53749         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
53750         * tests/unictype/test-pr_other_id_continue.c: Likewise.
53751         * tests/unictype/test-pr_other_id_start.c: Likewise.
53752         * tests/unictype/test-pr_other_lowercase.c: Likewise.
53753         * tests/unictype/test-pr_other_math.c: Likewise.
53754         * tests/unictype/test-pr_other_uppercase.c: Likewise.
53755         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
53756         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
53757         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
53758         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
53759         * tests/unictype/test-pr_private_use.c: Likewise.
53760         * tests/unictype/test-pr_punctuation.c: Likewise.
53761         * tests/unictype/test-pr_quotation_mark.c: Likewise.
53762         * tests/unictype/test-pr_radical.c: Likewise.
53763         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
53764         * tests/unictype/test-pr_soft_dotted.c: Likewise.
53765         * tests/unictype/test-pr_space.c: Likewise.
53766         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
53767         * tests/unictype/test-pr_titlecase.c: Likewise.
53768         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
53769         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
53770         * tests/unictype/test-pr_uppercase.c: Likewise.
53771         * tests/unictype/test-pr_variation_selector.c: Likewise.
53772         * tests/unictype/test-pr_white_space.c: Likewise.
53773         * tests/unictype/test-pr_xid_continue.c: Likewise.
53774         * tests/unictype/test-pr_xid_start.c: Likewise.
53775         * tests/unictype/test-pr_zero_width.c: Likewise.
53776         * tests/unictype/test-sy_c_whitespace.c: Likewise.
53777         * tests/unictype/test-sy_java_whitespace.c: Likewise.
53778
53779 2007-11-12  Bruno Haible  <bruno@clisp.org>
53780
53781         Unicode character classification functions.
53782         * lib/unictype.h: New file.
53783         * modules/unictype/base: New file.
53784         * modules/unictype/category-L: New file.
53785         * modules/unictype/category-Lu: New file.
53786         * modules/unictype/category-Ll: New file.
53787         * modules/unictype/category-Lt: New file.
53788         * modules/unictype/category-Lm: New file.
53789         * modules/unictype/category-Lo: New file.
53790         * modules/unictype/category-M: New file.
53791         * modules/unictype/category-Mn: New file.
53792         * modules/unictype/category-Mc: New file.
53793         * modules/unictype/category-Me: New file.
53794         * modules/unictype/category-N: New file.
53795         * modules/unictype/category-Nd: New file.
53796         * modules/unictype/category-Nl: New file.
53797         * modules/unictype/category-No: New file.
53798         * modules/unictype/category-P: New file.
53799         * modules/unictype/category-Pc: New file.
53800         * modules/unictype/category-Pd: New file.
53801         * modules/unictype/category-Ps: New file.
53802         * modules/unictype/category-Pe: New file.
53803         * modules/unictype/category-Pi: New file.
53804         * modules/unictype/category-Pf: New file.
53805         * modules/unictype/category-Po: New file.
53806         * modules/unictype/category-S: New file.
53807         * modules/unictype/category-Sm: New file.
53808         * modules/unictype/category-Sc: New file.
53809         * modules/unictype/category-Sk: New file.
53810         * modules/unictype/category-So: New file.
53811         * modules/unictype/category-Z: New file.
53812         * modules/unictype/category-Zs: New file.
53813         * modules/unictype/category-Zl: New file.
53814         * modules/unictype/category-Zp: New file.
53815         * modules/unictype/category-C: New file.
53816         * modules/unictype/category-Cc: New file.
53817         * modules/unictype/category-Cf: New file.
53818         * modules/unictype/category-Cs: New file.
53819         * modules/unictype/category-Co: New file.
53820         * modules/unictype/category-Cn: New file.
53821         * modules/unictype/category-or: New file.
53822         * modules/unictype/category-of: New file.
53823         * modules/unictype/category-test: New file.
53824         * modules/unictype/category-test-withtable: New file.
53825         * modules/unictype/category-byname: New file.
53826         * modules/unictype/category-none: New file.
53827         * modules/unictype/category-and: New file.
53828         * modules/unictype/category-and-not: New file.
53829         * modules/unictype/category-name: New file.
53830         * modules/unictype/combining-class: New file.
53831         * modules/unictype/category-all: New file.
53832         * modules/unictype/bidicategory-all: New file.
53833         * modules/unictype/bidicategory-byname: New file.
53834         * modules/unictype/bidicategory-name: New file.
53835         * modules/unictype/bidicategory-of: New file.
53836         * modules/unictype/bidicategory-test: New file.
53837         * modules/unictype/decimal-digit: New file.
53838         * modules/unictype/digit: New file.
53839         * modules/unictype/numeric: New file.
53840         * modules/unictype/mirror: New file.
53841         * modules/unictype/property-white-space: New file.
53842         * modules/unictype/property-alphabetic: New file.
53843         * modules/unictype/property-other-alphabetic: New file.
53844         * modules/unictype/property-not-a-character: New file.
53845         * modules/unictype/property-default-ignorable-code-point: New file.
53846         * modules/unictype/property-other-default-ignorable-code-point: New
53847         file.
53848         * modules/unictype/property-deprecated: New file.
53849         * modules/unictype/property-logical-order-exception: New file.
53850         * modules/unictype/property-variation-selector: New file.
53851         * modules/unictype/property-private-use: New file.
53852         * modules/unictype/property-unassigned-code-value: New file.
53853         * modules/unictype/property-uppercase: New file.
53854         * modules/unictype/property-other-uppercase: New file.
53855         * modules/unictype/property-lowercase: New file.
53856         * modules/unictype/property-other-lowercase: New file.
53857         * modules/unictype/property-titlecase: New file.
53858         * modules/unictype/property-soft-dotted: New file.
53859         * modules/unictype/property-id-start: New file.
53860         * modules/unictype/property-other-id-start: New file.
53861         * modules/unictype/property-id-continue: New file.
53862         * modules/unictype/property-other-id-continue: New file.
53863         * modules/unictype/property-xid-start: New file.
53864         * modules/unictype/property-xid-continue: New file.
53865         * modules/unictype/property-pattern-white-space: New file.
53866         * modules/unictype/property-pattern-syntax: New file.
53867         * modules/unictype/property-join-control: New file.
53868         * modules/unictype/property-grapheme-base: New file.
53869         * modules/unictype/property-grapheme-extend: New file.
53870         * modules/unictype/property-other-grapheme-extend: New file.
53871         * modules/unictype/property-grapheme-link: New file.
53872         * modules/unictype/property-bidi-control: New file.
53873         * modules/unictype/property-bidi-left-to-right: New file.
53874         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
53875         * modules/unictype/property-bidi-arabic-right-to-left: New file.
53876         * modules/unictype/property-bidi-european-digit: New file.
53877         * modules/unictype/property-bidi-eur-num-separator: New file.
53878         * modules/unictype/property-bidi-eur-num-terminator: New file.
53879         * modules/unictype/property-bidi-arabic-digit: New file.
53880         * modules/unictype/property-bidi-common-separator: New file.
53881         * modules/unictype/property-bidi-block-separator: New file.
53882         * modules/unictype/property-bidi-segment-separator: New file.
53883         * modules/unictype/property-bidi-whitespace: New file.
53884         * modules/unictype/property-bidi-non-spacing-mark: New file.
53885         * modules/unictype/property-bidi-boundary-neutral: New file.
53886         * modules/unictype/property-bidi-pdf: New file.
53887         * modules/unictype/property-bidi-embedding-or-override: New file.
53888         * modules/unictype/property-bidi-other-neutral: New file.
53889         * modules/unictype/property-hex-digit: New file.
53890         * modules/unictype/property-ascii-hex-digit: New file.
53891         * modules/unictype/property-ideographic: New file.
53892         * modules/unictype/property-unified-ideograph: New file.
53893         * modules/unictype/property-radical: New file.
53894         * modules/unictype/property-ids-binary-operator: New file.
53895         * modules/unictype/property-ids-trinary-operator: New file.
53896         * modules/unictype/property-zero-width: New file.
53897         * modules/unictype/property-space: New file.
53898         * modules/unictype/property-non-break: New file.
53899         * modules/unictype/property-iso-control: New file.
53900         * modules/unictype/property-format-control: New file.
53901         * modules/unictype/property-dash: New file.
53902         * modules/unictype/property-hyphen: New file.
53903         * modules/unictype/property-punctuation: New file.
53904         * modules/unictype/property-line-separator: New file.
53905         * modules/unictype/property-paragraph-separator: New file.
53906         * modules/unictype/property-quotation-mark: New file.
53907         * modules/unictype/property-sentence-terminal: New file.
53908         * modules/unictype/property-terminal-punctuation: New file.
53909         * modules/unictype/property-currency-symbol: New file.
53910         * modules/unictype/property-math: New file.
53911         * modules/unictype/property-other-math: New file.
53912         * modules/unictype/property-paired-punctuation: New file.
53913         * modules/unictype/property-left-of-pair: New file.
53914         * modules/unictype/property-combining: New file.
53915         * modules/unictype/property-composite: New file.
53916         * modules/unictype/property-decimal-digit: New file.
53917         * modules/unictype/property-numeric: New file.
53918         * modules/unictype/property-diacritic: New file.
53919         * modules/unictype/property-extender: New file.
53920         * modules/unictype/property-ignorable-control: New file.
53921         * modules/unictype/property-test: New file.
53922         * modules/unictype/property-byname: New file.
53923         * modules/unictype/property-all: New file.
53924         * modules/unictype/scripts: New file.
53925         * modules/unictype/scripts-all: New file.
53926         * modules/unictype/block-of: New file.
53927         * modules/unictype/block-test: New file.
53928         * modules/unictype/block-list: New file.
53929         * modules/unictype/block-all: New file.
53930         * modules/unictype/syntax-c-whitespace: New file.
53931         * modules/unictype/syntax-java-whitespace: New file.
53932         * modules/unictype/syntax-c-ident: New file.
53933         * modules/unictype/syntax-java-ident: New file.
53934         * modules/unictype/ctype-alnum: New file.
53935         * modules/unictype/ctype-alpha: New file.
53936         * modules/unictype/ctype-cntrl: New file.
53937         * modules/unictype/ctype-digit: New file.
53938         * modules/unictype/ctype-graph: New file.
53939         * modules/unictype/ctype-lower: New file.
53940         * modules/unictype/ctype-print: New file.
53941         * modules/unictype/ctype-punct: New file.
53942         * modules/unictype/ctype-space: New file.
53943         * modules/unictype/ctype-upper: New file.
53944         * modules/unictype/ctype-xdigit: New file.
53945         * modules/unictype/ctype-blank: New file.
53946         * lib/unictype/bidi_byname.c: New file.
53947         * lib/unictype/bidi_name.c: New file.
53948         * lib/unictype/bidi_of.c: New file.
53949         * lib/unictype/bidi_test.c: New file.
53950         * lib/unictype/bitmap.h: New file.
53951         * lib/unictype/block_test.c: New file.
53952         * lib/unictype/blocks.c: New file.
53953         * lib/unictype/categ_C.c: New file.
53954         * lib/unictype/categ_Cc.c: New file.
53955         * lib/unictype/categ_Cf.c: New file.
53956         * lib/unictype/categ_Cn.c: New file.
53957         * lib/unictype/categ_Co.c: New file.
53958         * lib/unictype/categ_Cs.c: New file.
53959         * lib/unictype/categ_L.c: New file.
53960         * lib/unictype/categ_Ll.c: New file.
53961         * lib/unictype/categ_Lm.c: New file.
53962         * lib/unictype/categ_Lo.c: New file.
53963         * lib/unictype/categ_Lt.c: New file.
53964         * lib/unictype/categ_Lu.c: New file.
53965         * lib/unictype/categ_M.c: New file.
53966         * lib/unictype/categ_Mc.c: New file.
53967         * lib/unictype/categ_Me.c: New file.
53968         * lib/unictype/categ_Mn.c: New file.
53969         * lib/unictype/categ_N.c: New file.
53970         * lib/unictype/categ_Nd.c: New file.
53971         * lib/unictype/categ_Nl.c: New file.
53972         * lib/unictype/categ_No.c: New file.
53973         * lib/unictype/categ_P.c: New file.
53974         * lib/unictype/categ_Pc.c: New file.
53975         * lib/unictype/categ_Pd.c: New file.
53976         * lib/unictype/categ_Pe.c: New file.
53977         * lib/unictype/categ_Pf.c: New file.
53978         * lib/unictype/categ_Pi.c: New file.
53979         * lib/unictype/categ_Po.c: New file.
53980         * lib/unictype/categ_Ps.c: New file.
53981         * lib/unictype/categ_S.c: New file.
53982         * lib/unictype/categ_Sc.c: New file.
53983         * lib/unictype/categ_Sk.c: New file.
53984         * lib/unictype/categ_Sm.c: New file.
53985         * lib/unictype/categ_So.c: New file.
53986         * lib/unictype/categ_Z.c: New file.
53987         * lib/unictype/categ_Zl.c: New file.
53988         * lib/unictype/categ_Zp.c: New file.
53989         * lib/unictype/categ_Zs.c: New file.
53990         * lib/unictype/categ_and.c: New file.
53991         * lib/unictype/categ_and_not.c: New file.
53992         * lib/unictype/categ_byname.c: New file.
53993         * lib/unictype/categ_name.c: New file.
53994         * lib/unictype/categ_none.c: New file.
53995         * lib/unictype/categ_of.c: New file.
53996         * lib/unictype/categ_or.c: New file.
53997         * lib/unictype/categ_test.c: New file.
53998         * lib/unictype/combining.c: New file.
53999         * lib/unictype/ctype_alnum.c: New file.
54000         * lib/unictype/ctype_alpha.c: New file.
54001         * lib/unictype/ctype_blank.c: New file.
54002         * lib/unictype/ctype_cntrl.c: New file.
54003         * lib/unictype/ctype_digit.c: New file.
54004         * lib/unictype/ctype_graph.c: New file.
54005         * lib/unictype/ctype_lower.c: New file.
54006         * lib/unictype/ctype_print.c: New file.
54007         * lib/unictype/ctype_punct.c: New file.
54008         * lib/unictype/ctype_space.c: New file.
54009         * lib/unictype/ctype_upper.c: New file.
54010         * lib/unictype/ctype_xdigit.c: New file.
54011         * lib/unictype/decdigit.c: New file.
54012         * lib/unictype/digit.c: New file.
54013         * lib/unictype/identsyntaxmap.h: New file.
54014         * lib/unictype/mirror.c: New file.
54015         * lib/unictype/numeric.c: New file.
54016         * lib/unictype/pr_alphabetic.c: New file.
54017         * lib/unictype/pr_ascii_hex_digit.c: New file.
54018         * lib/unictype/pr_bidi_arabic_digit.c: New file.
54019         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
54020         * lib/unictype/pr_bidi_block_separator.c: New file.
54021         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
54022         * lib/unictype/pr_bidi_common_separator.c: New file.
54023         * lib/unictype/pr_bidi_control.c: New file.
54024         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
54025         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
54026         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
54027         * lib/unictype/pr_bidi_european_digit.c: New file.
54028         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
54029         * lib/unictype/pr_bidi_left_to_right.c: New file.
54030         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
54031         * lib/unictype/pr_bidi_other_neutral.c: New file.
54032         * lib/unictype/pr_bidi_pdf.c: New file.
54033         * lib/unictype/pr_bidi_segment_separator.c: New file.
54034         * lib/unictype/pr_bidi_whitespace.c: New file.
54035         * lib/unictype/pr_byname.c: New file.
54036         * lib/unictype/pr_byname.gperf: New file.
54037         * lib/unictype/pr_combining.c: New file.
54038         * lib/unictype/pr_composite.c: New file.
54039         * lib/unictype/pr_currency_symbol.c: New file.
54040         * lib/unictype/pr_dash.c: New file.
54041         * lib/unictype/pr_decimal_digit.c: New file.
54042         * lib/unictype/pr_default_ignorable_code_point.c: New file.
54043         * lib/unictype/pr_deprecated.c: New file.
54044         * lib/unictype/pr_diacritic.c: New file.
54045         * lib/unictype/pr_extender.c: New file.
54046         * lib/unictype/pr_format_control.c: New file.
54047         * lib/unictype/pr_grapheme_base.c: New file.
54048         * lib/unictype/pr_grapheme_extend.c: New file.
54049         * lib/unictype/pr_grapheme_link.c: New file.
54050         * lib/unictype/pr_hex_digit.c: New file.
54051         * lib/unictype/pr_hyphen.c: New file.
54052         * lib/unictype/pr_id_continue.c: New file.
54053         * lib/unictype/pr_id_start.c: New file.
54054         * lib/unictype/pr_ideographic.c: New file.
54055         * lib/unictype/pr_ids_binary_operator.c: New file.
54056         * lib/unictype/pr_ids_trinary_operator.c: New file.
54057         * lib/unictype/pr_ignorable_control.c: New file.
54058         * lib/unictype/pr_iso_control.c: New file.
54059         * lib/unictype/pr_join_control.c: New file.
54060         * lib/unictype/pr_left_of_pair.c: New file.
54061         * lib/unictype/pr_line_separator.c: New file.
54062         * lib/unictype/pr_logical_order_exception.c: New file.
54063         * lib/unictype/pr_lowercase.c: New file.
54064         * lib/unictype/pr_math.c: New file.
54065         * lib/unictype/pr_non_break.c: New file.
54066         * lib/unictype/pr_not_a_character.c: New file.
54067         * lib/unictype/pr_numeric.c: New file.
54068         * lib/unictype/pr_other_alphabetic.c: New file.
54069         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
54070         * lib/unictype/pr_other_grapheme_extend.c: New file.
54071         * lib/unictype/pr_other_id_continue.c: New file.
54072         * lib/unictype/pr_other_id_start.c: New file.
54073         * lib/unictype/pr_other_lowercase.c: New file.
54074         * lib/unictype/pr_other_math.c: New file.
54075         * lib/unictype/pr_other_uppercase.c: New file.
54076         * lib/unictype/pr_paired_punctuation.c: New file.
54077         * lib/unictype/pr_paragraph_separator.c: New file.
54078         * lib/unictype/pr_pattern_syntax.c: New file.
54079         * lib/unictype/pr_pattern_white_space.c: New file.
54080         * lib/unictype/pr_private_use.c: New file.
54081         * lib/unictype/pr_punctuation.c: New file.
54082         * lib/unictype/pr_quotation_mark.c: New file.
54083         * lib/unictype/pr_radical.c: New file.
54084         * lib/unictype/pr_sentence_terminal.c: New file.
54085         * lib/unictype/pr_soft_dotted.c: New file.
54086         * lib/unictype/pr_space.c: New file.
54087         * lib/unictype/pr_terminal_punctuation.c: New file.
54088         * lib/unictype/pr_test.c: New file.
54089         * lib/unictype/pr_titlecase.c: New file.
54090         * lib/unictype/pr_unassigned_code_value.c: New file.
54091         * lib/unictype/pr_unified_ideograph.c: New file.
54092         * lib/unictype/pr_uppercase.c: New file.
54093         * lib/unictype/pr_variation_selector.c: New file.
54094         * lib/unictype/pr_white_space.c: New file.
54095         * lib/unictype/pr_xid_continue.c: New file.
54096         * lib/unictype/pr_xid_start.c: New file.
54097         * lib/unictype/pr_zero_width.c: New file.
54098         * lib/unictype/scripts.c: New file.
54099         * lib/unictype/sy_c_ident.c: New file.
54100         * lib/unictype/sy_c_whitespace.c: New file.
54101         * lib/unictype/sy_java_ident.c: New file.
54102         * lib/unictype/sy_java_whitespace.c: New file.
54103
54104         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
54105         Unicode 5.0.0.
54106         * lib/unictype/blocks.h: Likewise.
54107         * lib/unictype/categ_C.h: Likewise.
54108         * lib/unictype/categ_Cc.h: Likewise.
54109         * lib/unictype/categ_Cf.h: Likewise.
54110         * lib/unictype/categ_Cn.h: Likewise.
54111         * lib/unictype/categ_Co.h: Likewise.
54112         * lib/unictype/categ_Cs.h: Likewise.
54113         * lib/unictype/categ_L.h: Likewise.
54114         * lib/unictype/categ_Ll.h: Likewise.
54115         * lib/unictype/categ_Lm.h: Likewise.
54116         * lib/unictype/categ_Lo.h: Likewise.
54117         * lib/unictype/categ_Lt.h: Likewise.
54118         * lib/unictype/categ_Lu.h: Likewise.
54119         * lib/unictype/categ_M.h: Likewise.
54120         * lib/unictype/categ_Mc.h: Likewise.
54121         * lib/unictype/categ_Me.h: Likewise.
54122         * lib/unictype/categ_Mn.h: Likewise.
54123         * lib/unictype/categ_N.h: Likewise.
54124         * lib/unictype/categ_Nd.h: Likewise.
54125         * lib/unictype/categ_Nl.h: Likewise.
54126         * lib/unictype/categ_No.h: Likewise.
54127         * lib/unictype/categ_P.h: Likewise.
54128         * lib/unictype/categ_Pc.h: Likewise.
54129         * lib/unictype/categ_Pd.h: Likewise.
54130         * lib/unictype/categ_Pe.h: Likewise.
54131         * lib/unictype/categ_Pf.h: Likewise.
54132         * lib/unictype/categ_Pi.h: Likewise.
54133         * lib/unictype/categ_Po.h: Likewise.
54134         * lib/unictype/categ_Ps.h: Likewise.
54135         * lib/unictype/categ_S.h: Likewise.
54136         * lib/unictype/categ_Sc.h: Likewise.
54137         * lib/unictype/categ_Sk.h: Likewise.
54138         * lib/unictype/categ_Sm.h: Likewise.
54139         * lib/unictype/categ_So.h: Likewise.
54140         * lib/unictype/categ_Z.h: Likewise.
54141         * lib/unictype/categ_Zl.h: Likewise.
54142         * lib/unictype/categ_Zp.h: Likewise.
54143         * lib/unictype/categ_Zs.h: Likewise.
54144         * lib/unictype/categ_of.h: Likewise.
54145         * lib/unictype/combining.h: Likewise.
54146         * lib/unictype/ctype_alnum.h: Likewise.
54147         * lib/unictype/ctype_alpha.h: Likewise.
54148         * lib/unictype/ctype_blank.h: Likewise.
54149         * lib/unictype/ctype_cntrl.h: Likewise.
54150         * lib/unictype/ctype_digit.h: Likewise.
54151         * lib/unictype/ctype_graph.h: Likewise.
54152         * lib/unictype/ctype_lower.h: Likewise.
54153         * lib/unictype/ctype_print.h: Likewise.
54154         * lib/unictype/ctype_punct.h: Likewise.
54155         * lib/unictype/ctype_space.h: Likewise.
54156         * lib/unictype/ctype_upper.h: Likewise.
54157         * lib/unictype/ctype_xdigit.h: Likewise.
54158         * lib/unictype/decdigit.h: Likewise.
54159         * lib/unictype/digit.h: Likewise.
54160         * lib/unictype/mirror.h: Likewise.
54161         * lib/unictype/numeric.h: Likewise.
54162         * lib/unictype/pr_alphabetic.h: Likewise.
54163         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
54164         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
54165         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
54166         * lib/unictype/pr_bidi_block_separator.h: Likewise.
54167         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
54168         * lib/unictype/pr_bidi_common_separator.h: Likewise.
54169         * lib/unictype/pr_bidi_control.h: Likewise.
54170         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
54171         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
54172         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
54173         * lib/unictype/pr_bidi_european_digit.h: Likewise.
54174         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
54175         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
54176         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
54177         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
54178         * lib/unictype/pr_bidi_pdf.h: Likewise.
54179         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
54180         * lib/unictype/pr_bidi_whitespace.h: Likewise.
54181         * lib/unictype/pr_combining.h: Likewise.
54182         * lib/unictype/pr_composite.h: Likewise.
54183         * lib/unictype/pr_currency_symbol.h: Likewise.
54184         * lib/unictype/pr_dash.h: Likewise.
54185         * lib/unictype/pr_decimal_digit.h: Likewise.
54186         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
54187         * lib/unictype/pr_deprecated.h: Likewise.
54188         * lib/unictype/pr_diacritic.h: Likewise.
54189         * lib/unictype/pr_extender.h: Likewise.
54190         * lib/unictype/pr_format_control.h: Likewise.
54191         * lib/unictype/pr_grapheme_base.h: Likewise.
54192         * lib/unictype/pr_grapheme_extend.h: Likewise.
54193         * lib/unictype/pr_grapheme_link.h: Likewise.
54194         * lib/unictype/pr_hex_digit.h: Likewise.
54195         * lib/unictype/pr_hyphen.h: Likewise.
54196         * lib/unictype/pr_id_continue.h: Likewise.
54197         * lib/unictype/pr_id_start.h: Likewise.
54198         * lib/unictype/pr_ideographic.h: Likewise.
54199         * lib/unictype/pr_ids_binary_operator.h: Likewise.
54200         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
54201         * lib/unictype/pr_ignorable_control.h: Likewise.
54202         * lib/unictype/pr_iso_control.h: Likewise.
54203         * lib/unictype/pr_join_control.h: Likewise.
54204         * lib/unictype/pr_left_of_pair.h: Likewise.
54205         * lib/unictype/pr_line_separator.h: Likewise.
54206         * lib/unictype/pr_logical_order_exception.h: Likewise.
54207         * lib/unictype/pr_lowercase.h: Likewise.
54208         * lib/unictype/pr_math.h: Likewise.
54209         * lib/unictype/pr_non_break.h: Likewise.
54210         * lib/unictype/pr_not_a_character.h: Likewise.
54211         * lib/unictype/pr_numeric.h: Likewise.
54212         * lib/unictype/pr_other_alphabetic.h: Likewise.
54213         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
54214         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
54215         * lib/unictype/pr_other_id_continue.h: Likewise.
54216         * lib/unictype/pr_other_id_start.h: Likewise.
54217         * lib/unictype/pr_other_lowercase.h: Likewise.
54218         * lib/unictype/pr_other_math.h: Likewise.
54219         * lib/unictype/pr_other_uppercase.h: Likewise.
54220         * lib/unictype/pr_paired_punctuation.h: Likewise.
54221         * lib/unictype/pr_paragraph_separator.h: Likewise.
54222         * lib/unictype/pr_pattern_syntax.h: Likewise.
54223         * lib/unictype/pr_pattern_white_space.h: Likewise.
54224         * lib/unictype/pr_private_use.h: Likewise.
54225         * lib/unictype/pr_punctuation.h: Likewise.
54226         * lib/unictype/pr_quotation_mark.h: Likewise.
54227         * lib/unictype/pr_radical.h: Likewise.
54228         * lib/unictype/pr_sentence_terminal.h: Likewise.
54229         * lib/unictype/pr_soft_dotted.h: Likewise.
54230         * lib/unictype/pr_space.h: Likewise.
54231         * lib/unictype/pr_terminal_punctuation.h: Likewise.
54232         * lib/unictype/pr_titlecase.h: Likewise.
54233         * lib/unictype/pr_unassigned_code_value.h: Likewise.
54234         * lib/unictype/pr_unified_ideograph.h: Likewise.
54235         * lib/unictype/pr_uppercase.h: Likewise.
54236         * lib/unictype/pr_variation_selector.h: Likewise.
54237         * lib/unictype/pr_white_space.h: Likewise.
54238         * lib/unictype/pr_xid_continue.h: Likewise.
54239         * lib/unictype/pr_xid_start.h: Likewise.
54240         * lib/unictype/pr_zero_width.h: Likewise.
54241         * lib/unictype/scripts.h: Likewise.
54242         * lib/unictype/scripts_byname.gperf: Likewise.
54243         * lib/unictype/sy_c_ident.h: Likewise.
54244         * lib/unictype/sy_c_whitespace.h: Likewise.
54245         * lib/unictype/sy_java_ident.h: Likewise.
54246         * lib/unictype/sy_java_whitespace.h: Likewise.
54247
54248         * lib/unictype/Makefile: New file.
54249         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
54250         glibc.
54251         * lib/unictype/3level.h: New file, copied from glibc.
54252         * lib/unictype/3levelbit.h: New file.
54253
54254 2007-11-11  Bruno Haible  <bruno@clisp.org>
54255
54256         * modules/gperf: New file.
54257         * modules/iconv_open (Depends-on): Add it.
54258         (Makefile.am): Remove the GPERF definition.
54259
54260 2007-11-11  Bruno Haible  <bruno@clisp.org>
54261
54262         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
54263         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
54264
54265 2007-11-11  Bruno Haible  <bruno@clisp.org>
54266
54267         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
54268         (usage): Remove function.
54269
54270 2007-11-11  Bruno Haible  <bruno@clisp.org>
54271
54272         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
54273         gl_FUNC_CEILF_LIBS.
54274         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
54275         gl_FUNC_CEIL_LIBS.
54276         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
54277         gl_FUNC_CEILL_LIBS.
54278         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
54279         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
54280         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
54281
54282 2007-11-11  Bruno Haible  <bruno@clisp.org>
54283
54284         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
54285         roundf were declared but do not exist on functions.
54286         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
54287         roundl were declared but do not exist on functions.
54288         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
54289         HAVE_FLOORL_AND_CEILL, respectively.
54290         Needed for Sun C on Solaris 10.
54291
54292 2007-11-11  Bruno Haible  <bruno@clisp.org>
54293
54294         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
54295         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
54296         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
54297         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
54298         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
54299         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
54300         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
54301         HAVE_DECL_ROUNDF.
54302         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
54303         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
54304         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
54305         of HAVE_DECL_ROUND*.
54306         * modules/math (Makefile.am): Update.
54307
54308 2007-11-10  Bruno Haible  <bruno@clisp.org>
54309
54310         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
54311         ptrdiff_t as m4/intl.m4.
54312
54313 2007-11-10  Jim Meyering  <meyering@redhat.com>
54314
54315         Avoid link failure for the argmatch test.
54316         * tests/test-argmatch.c (usage): Define function to avoid a link
54317         failure: argmatch_die requires a usage function.
54318
54319 2007-11-09  Bruno Haible  <bruno@clisp.org>
54320
54321         * doc/functions/snprintf.texi: Mention BeOS deficiency.
54322         * doc/functions/vsnprintf.texi: Likewise.
54323         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
54324         with a size argument < 2.
54325
54326 2007-11-09  Bruno Haible  <bruno@clisp.org>
54327
54328         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
54329         buffer. Fixes an inefficiency introduced on 2007-11-03.
54330
54331 2007-11-09  Bruno Haible  <bruno@clisp.org>
54332
54333         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
54334         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
54335
54336 2007-11-08  Jim Meyering  <meyering@redhat.com>
54337
54338         Change cache variable name prefix "jm_" to "gl_" everywhere.
54339         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
54340         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
54341         * m4/uptime.m4: s/gl_/jm_/
54342
54343 2007-11-07  Bruno Haible  <bruno@clisp.org>
54344
54345         Update to GNU gettext 0.17.
54346         * m4/intl.m4: Update to GNU gettext 0.17.
54347         * m4/po.m4: Likewise.
54348         * modules/gettext (Files): Remove m4/ulonglong.m4.
54349         (configure.ac): Require gettext infrastructure from version 0.17.
54350
54351 2007-11-06  Bruno Haible  <bruno@clisp.org>
54352
54353         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
54354         symbolic values are not defined in a public header.
54355         * lib/freadable.c (freadable) [QNX]: Likewise.
54356         * lib/freadahead.c (freadahead) [QNX]: Likewise.
54357         * lib/freading.c (freading) [QNX]: Likewise.
54358         * lib/fseterr.c (fseterr) [QNX]: Likewise.
54359         * lib/fwritable.c (fwritable) [QNX]: Likewise.
54360         * lib/fwriting.c (fwriting) [QNX]: Likewise.
54361         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
54362         Reported by Alain Magloire.
54363
54364         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
54365
54366 2007-11-05  Bruno Haible  <bruno@clisp.org>
54367
54368         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
54369         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
54370         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
54371         Reported by Eric Blake.
54372
54373 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54374             Bruno Haible  <bruno@clisp.org>
54375
54376         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
54377         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
54378         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
54379         (malloc): Undefine also before including <stdlib.h>.
54380         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
54381         Needed on OSF/1 4.0.
54382
54383 2007-11-05  Jim Meyering  <meyering@redhat.com>
54384
54385         git-version-gen: sync from coreutils.
54386         * build-aux/git-version-gen: Add comments.
54387         Change the first '-' to '.' in the snapshot version string,
54388         e.g., 6.9-377-08144 -> 6.9.377-08144
54389         Remove first parameter.
54390         Don't declare a version "-dirty" merely because a time
54391         stamp has changed.
54392
54393 2007-11-04  Bruno Haible  <bruno@clisp.org>
54394
54395         * lib/lock.h: Protect all macro definitions containing an 'if'
54396         statement through a "do { ... } while (0)".
54397         * lib/tls.h: Likewise.
54398
54399 2007-11-04  Bruno Haible  <bruno@clisp.org>
54400
54401         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
54402
54403 2007-11-04  Bruno Haible  <bruno@clisp.org>
54404
54405         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
54406         * modules/fprintf-posix (Depends-on): Add nocrash.
54407         * modules/snprintf-posix (Depends-on): Likewise.
54408         * modules/sprintf-posix (Depends-on): Likewise.
54409         * modules/vasnprintf-posix (Depends-on): Likewise.
54410         * modules/vasprintf-posix (Depends-on): Likewise.
54411         * modules/vfprintf-posix (Depends-on): Likewise.
54412         * modules/vsnprintf-posix (Depends-on): Likewise.
54413         * modules/vsprintf-posix (Depends-on): Likewise.
54414         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
54415         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
54416         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
54417         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
54418         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
54419         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
54420         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
54421
54422 2007-11-04  Bruno Haible  <bruno@clisp.org>
54423
54424         * modules/nocrash: New file.
54425         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
54426         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
54427
54428 2007-11-04  Bruno Haible  <bruno@clisp.org>
54429
54430         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
54431         precision handling.
54432         * tests/test-vasprintf-posix.c (test_function): Likewise.
54433         * tests/test-snprintf-posix.h (test_function): Likewise.
54434         * tests/test-sprintf-posix.h (test_function): Likewise.
54435
54436         Fix *printf behaviour for large precisions on mingw and BeOS.
54437         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
54438         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
54439         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
54440         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
54441         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
54442         gl_PRINTF_PRECISION and test its result. Invoke
54443         gl_PREREQ_VASNPRINTF_PRECISION.
54444         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
54445         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
54446         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
54447         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
54448         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
54449         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
54450         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
54451         * doc/functions/fprintf.texi: Update.
54452         * doc/functions/printf.texi: Update.
54453         * doc/functions/snprintf.texi: Update.
54454         * doc/functions/sprintf.texi: Update.
54455         * doc/functions/vfprintf.texi: Update.
54456         * doc/functions/vprintf.texi: Update.
54457         * doc/functions/vsnprintf.texi: Update.
54458         * doc/functions/vsprintf.texi: Update.
54459
54460 2007-11-04  Bruno Haible  <bruno@clisp.org>
54461
54462         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
54463
54464 2007-11-04  Bruno Haible  <bruno@clisp.org>
54465
54466         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
54467         Reported by Sylvain Beucler <beuc@gnu.org>.
54468
54469 2007-11-03  Bruno Haible  <bruno@clisp.org>
54470
54471         * tests/test-fprintf-posix2.sh: New file.
54472         * tests/test-fprintf-posix2.c: New file.
54473         * modules/fprintf-posix-tests (Files): Add them.
54474         (TESTS): Add test-fprintf-posix2.sh.
54475         (configure.ac): Check for getrlimit and setrlimit.
54476         (check_PROGRAMS): Add test-fprintf-posix2.
54477
54478         * tests/test-printf-posix2.sh: New file.
54479         * tests/test-printf-posix2.c: New file.
54480         * modules/printf-posix-tests (Files): Add them.
54481         (TESTS): Add test-printf-posix2.sh.
54482         (configure.ac): Check for getrlimit and setrlimit.
54483         (check_PROGRAMS): Add test-printf-posix2.
54484
54485         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
54486         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
54487         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
54488         (decode_double): New function, copied from decode_long_double.
54489         (scale10_round_decimal_decoded): New function, extracted from
54490         scale10_round_decimal_long_double.
54491         (scale10_round_decimal_long_double): Use it.
54492         (scale10_round_decimal_double): New function.
54493         (floorlog10): New function.
54494         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
54495         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
54496         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
54497         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
54498         gl_PRINTF_ENOMEM and test its result. Invoke
54499         gl_PREREQ_VASNPRINTF_ENOMEM.
54500         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
54501         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
54502         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
54503         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
54504         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
54505         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
54506         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
54507         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
54508         * modules/snprintf-posix (Depends-on): Likewise.
54509         * modules/sprintf-posix (Depends-on): Likewise.
54510         * modules/vasnprintf-posix (Depends-on): Likewise.
54511         * modules/vasprintf-posix (Depends-on): Likewise.
54512         * modules/vfprintf-posix (Depends-on): Likewise.
54513         * modules/vsnprintf-posix (Depends-on): Likewise.
54514         * modules/vsprintf-posix (Depends-on): Likewise.
54515         * doc/functions/fprintf.texi: Update.
54516         * doc/functions/printf.texi: Update.
54517         * doc/functions/snprintf.texi: Update.
54518         * doc/functions/sprintf.texi: Update.
54519         * doc/functions/vfprintf.texi: Update.
54520         * doc/functions/vprintf.texi: Update.
54521         * doc/functions/vsnprintf.texi: Update.
54522         * doc/functions/vsprintf.texi: Update.
54523
54524 2007-11-03  Bruno Haible  <bruno@clisp.org>
54525
54526         * modules/frexp-nolibm-tests: New file.
54527
54528         * modules/frexp-nolibm: New file.
54529         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
54530
54531 2007-11-03  Bruno Haible  <bruno@clisp.org>
54532
54533         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
54534         value is C99 compliant.
54535         Needed for OSF/1 5.1.
54536
54537 2007-11-03  Bruno Haible  <bruno@clisp.org>
54538
54539         Fix out-of-memory handling of vasnprintf.
54540         * lib/printf-parse.c: Include <errno.h>.
54541         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
54542         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
54543         is already set.
54544
54545 2007-11-02  Eric Blake  <ebb9@byu.net>
54546
54547         Fix tests on cygwin.
54548         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
54549
54550 2007-11-01  Bruno Haible  <bruno@clisp.org>
54551
54552         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
54553         warning.
54554         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
54555         needed for POSIX compatibility.
54556
54557 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
54558
54559         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
54560         for compatibility with GNU.
54561
54562 2007-11-01  Bruno Haible  <bruno@clisp.org>
54563
54564         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
54565         (putenv): Renamed from rpl_putenv. Change argument type from
54566         'const char *' to 'char *'.
54567         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
54568         of defining putenv in config.h, just set REPLACE_PUTENV.
54569         * modules/putenv (Depends-on): Add stdlib.
54570         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
54571         (Include): Use <stdlib.h>.
54572         * lib/stdlib.in.h (putenv): New declaration.
54573         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
54574         REPLACE_PUTENV.
54575         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
54576         REPLACE_PUTENV.
54577         Needed for MacOS X 10.5.0.
54578         Reported by Peter O'Gorman <peter@pogma.com>.
54579
54580 2007-11-01  Jim Meyering  <meyering@redhat.com>
54581
54582         Treat an empty date string exactly like "0".
54583         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
54584         if the remaining date string (to be parsed) is empty, use "0".
54585         Reported by Mischa Molhoek and discussed in this thread:
54586         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
54587
54588 2007-10-31  Bruno Haible  <bruno@clisp.org>
54589
54590         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
54591         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
54592         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
54593         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
54594         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
54595         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
54596
54597 2007-10-31  Bruno Haible  <bruno@clisp.org>
54598
54599         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
54600         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
54601         (AC_TYPE_LONG_LONG_INT): Use it.
54602         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
54603         it as well.
54604         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
54605         to m4/longlong.m4.
54606         * modules/stdint (Files): Remove m4/ulonglong.m4.
54607         * modules/strtoull (Files): Use m4/longlong.m4 instead of
54608         m4/ulonglong.m4.
54609         * modules/strtoumax (Files): Likewise.
54610
54611 2007-10-30  Bruno Haible  <bruno@clisp.org>
54612
54613         * modules/xvasprintf-posix: New file.
54614         Suggested by Eric Blake.
54615
54616 2007-10-30  Bruno Haible  <bruno@clisp.org>
54617
54618         * modules/xprintf-posix-tests: New file.
54619         * tests/test-xprintf-posix.sh: New file.
54620         * tests/test-xprintf-posix.c: New file.
54621         * tests/test-xfprintf-posix.c: New file.
54622
54623         * modules/xprintf-posix: New file.
54624
54625 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54626
54627         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
54628         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
54629         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
54630
54631 2007-10-29  Bruno Haible  <bruno@clisp.org>
54632
54633         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
54634         contain the special marker '_cv_'.
54635         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
54636         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
54637         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
54638         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
54639         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
54640         Reported by Ralf Wildenhues.
54641
54642 2007-10-29  Bruno Haible  <bruno@clisp.org>
54643
54644         * gnulib-tool (func_import): When --lgpl is not specified, set
54645         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
54646         GPLv3.
54647         Reported by Simon Josefsson.
54648
54649 2007-10-28  Bruno Haible  <bruno@clisp.org>
54650
54651         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
54652         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
54653         HAVE_DECL_ISFINITE.
54654         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
54655         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
54656         HAVE_DECL_ISFINITE.
54657
54658 2007-10-28  Bruno Haible  <bruno@clisp.org>
54659
54660         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
54661         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
54662
54663 2007-10-28  Bruno Haible  <bruno@clisp.org>
54664
54665         Fix link errors with Sun C 5.0 on Solaris 10.
54666         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
54667         function is declared but not present in the compiler's libm.
54668         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
54669         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
54670         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
54671         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
54672         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
54673         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
54674         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
54675         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
54676         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
54677         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
54678         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
54679         HAVE_DECL_FLOORL.
54680
54681 2007-10-28  Bruno Haible  <bruno@clisp.org>
54682
54683         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
54684         gl_FUNC_FLOORL. Cache the result.
54685         (gl_FUNC_FLOORL): Use it.
54686         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
54687         gl_FUNC_CEILL. Cache the result.
54688         (gl_FUNC_CEILL): Use it.
54689
54690         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
54691         gl_FUNC_FLOOR. Cache the result.
54692         (gl_FUNC_FLOOR): Use it.
54693         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
54694         gl_FUNC_CEIL. Cache the result.
54695         (gl_FUNC_CEIL): Use it.
54696
54697         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
54698         gl_FUNC_FLOORF. Cache the result.
54699         (gl_FUNC_FLOORF): Use it.
54700         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
54701         gl_FUNC_CEILF. Cache the result.
54702         (gl_FUNC_CEILF): Use it.
54703
54704 2007-10-28  Bruno Haible  <bruno@clisp.org>
54705
54706         * gnulib-tool: Allow specifying the LGPL version number through
54707         --lgpl=2 or --lgpl=3.
54708         (func_usage): Document --lgpl with argument.
54709         Handle --lgpl=... arguments.
54710         (func_import): Recognize also gl_LGPL calls with an argument. When
54711         --lgpl=2 is used and the module's license is just LGPL, report an
54712         error. Set sed_transform_lib_file according to the lgpl variable. In
54713         the generated files, use --lgpl or gl_LGPL invocations with argument,
54714         if necessary.
54715         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
54716         an LGPv2+ license.
54717         * doc/gnulib-tool.texi (Modified imports): Update explanation of
54718         gl_LGPL macro.
54719
54720 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54721             Bruno Haible  <bruno@clisp.org>
54722
54723         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
54724         (u16_uctomb_aux): Likewise.
54725         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
54726         !HAVE_INLINE.
54727         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
54728
54729 2007-10-28  Bruno Haible  <bruno@clisp.org>
54730
54731         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
54732         Invoke AM_GETTEXT_OPTION if it exists.
54733         * modules/vasprintf: Likewise.
54734         * modules/verror: Likewise.
54735         * modules/xprintf: Likewise.
54736         * modules/xvasprintf: Likewise.
54737
54738 2007-10-27  Ben Pfaff  <blp@gnu.org>
54739
54740         * lib/math.in.h: Define isfinite macro and prototypes for
54741         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
54742         implementations.
54743         * m4/math_h.m4: New substitutions for isfinite module.
54744         * lib/isfinite.c: New file.
54745         * m4/isfinite.m4: New file.
54746         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
54747         * modules/isfinite: New file.
54748         * modules/isfinite-tests: New file.
54749         * tests/tests-isfinite.c: New file.
54750         * doc/functions/isfinite.texi: Mention isfinite module.
54751         * MODULES.html.sh: Mention new module.
54752
54753 2007-10-27  Ben Pfaff  <blp@gnu.org>
54754
54755         Ralf Wildenhues reported that Tru64 4.0D declares the round
54756         functions but does not have definitions.
54757         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
54758         cannot be found in any library, set the output variable to
54759         "missing" instead of "".
54760         * m4/round.m4: Also use our substitute if we cannot find round in
54761         any library, even if it is declared.
54762         * m4/roundf.m4: Likewise for roundf.
54763         * m4/roundl.m4: Likewise for roundl.
54764         * lib/math.in.h: Undefine roundf, round, roundl before defining
54765         their replacements, to allow for hypothetical systems where these
54766         may be defined as macros but not available in libraries.
54767
54768 2007-10-27  Bruno Haible  <bruno@clisp.org>
54769
54770         * doc/gnulib.texi: Invoke @firstparagraphindent.
54771         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
54772         changes in gnulib.
54773         (Source changes): New section.
54774
54775 2007-10-26  Bruno Haible  <bruno@clisp.org>
54776
54777         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
54778         borrowed from autoconf.
54779
54780 2007-10-26  Bruno Haible  <bruno@clisp.org>
54781
54782         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
54783         strerror returned the empty string. Needed on HP-UX 11.00.
54784
54785 2007-10-24  Micah Cowan  <micah@cowan.name>
54786
54787         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
54788         * build-aux/bootstrap: Remove support for now-unnecessary option,
54789         --cvs-user, and envvars CVS_USER, CVS_RSH.
54790
54791 2007-10-24  Jim Meyering  <meyering@redhat.com>
54792
54793         Avoid diagnostics from sha1sum when there is no cached checksum.
54794         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
54795         if the po.s1 file hasn't been created yet.
54796
54797         * build-aux/bootstrap: Sync from coreutils:
54798         2007-10-24  Jim Meyering  <meyering@redhat.com>
54799         Get gnulib from the git repository, not from an obsolete cvs one.
54800         * build-aux/bootstrap: Suggestion from Micah Cowan.
54801         2007-10-04  Jim Meyering  <jim@meyering.net>
54802         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
54803         (update_po_files): Work also when there are no .po files in po/.
54804
54805 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
54806
54807         * README: Append ".git" to git and cg examples.
54808         Problem reported by Benoit Sigoure.
54809
54810 2007-10-23  Micah Cowan  <micah@cowan.name>
54811
54812         * users.txt: Add wget.
54813
54814 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54815
54816         Fix linking of some unistdio tests on FreeBSD.
54817         * modules/unistdio/u16-vsnprintf-tests
54818         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
54819         * modules/unistdio/u16-vsprintf-tests
54820         (test_u16_vsnprintf1_LDADD): Likewise.
54821         * modules/unistdio/u32-vsnprintf-tests
54822         (test_u32_vsnprintf1_LDADD): Likewise.
54823         * modules/unistdio/u32-vsprintf-tests
54824         (test_u32_vsprintf1_LDADD): Likewise.
54825         * modules/unistdio/u8-vsnprintf-tests
54826         (test_u8_vsnprintf1_LDADD): Likewise.
54827         * modules/unistdio/u8-vsprintf-tests
54828         (test_u8_vsprintf1_LDADD): Likewise.
54829         * modules/unistdio/ulc-vsnprintf-tests
54830         (test_ulc_vsnprintf1_LDADD): Likewise.
54831         * modules/unistdio/ulc-vsprintf-tests
54832         (test_ulc_vsprintf1_LDADD): Likewise.
54833
54834         Fix linking of some uniconv tests on FreeBSD.
54835         * modules/uniconv/u16-conv-from-enc-tests
54836         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
54837         * modules/uniconv/u16-conv-to-enc-tests
54838         (test_u16_conv_to_enc_LDADD): Likewise.
54839         * modules/uniconv/u16-strconv-from-enc-tests
54840         (test_u16_strconv_from_enc_LDADD): Likewise.
54841         * modules/uniconv/u16-strconv-to-enc-tests
54842         (test_u16_strconv_to_enc_LDADD): Likewise.
54843         * modules/uniconv/u32-conv-from-enc-tests
54844         (test_u32_conv_from_enc_LDADD): Likewise.
54845         * modules/uniconv/u32-conv-to-enc-tests
54846         (test_u32_conv_to_enc_LDADD): Likewise.
54847         * modules/uniconv/u32-strconv-from-enc-tests
54848         (test_u32_strconv_from_enc_LDADD): Likewise.
54849         * modules/uniconv/u32-strconv-to-enc-tests
54850         (test_u32_strconv_to_enc_LDADD): Likewise.
54851         * modules/uniconv/u8-conv-from-enc-tests
54852         (test_u8_conv_from_enc_LDADD): Likewise.
54853         * modules/uniconv/u8-conv-to-enc-tests
54854         (test_u8_conv_to_enc_LDADD): Likewise.
54855         * modules/uniconv/u8-strconv-from-enc-tests
54856         (test_u8_strconv_from_enc_LDADD): Likewise.
54857         * modules/uniconv/u8-strconv-to-enc-tests
54858         (test_u8_strconv_to_enc_LDADD): Likewise.
54859
54860 2007-10-22  Bruno Haible  <bruno@clisp.org>
54861
54862         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
54863         size.
54864
54865 2007-10-22  Eric Blake  <ebb9@byu.net>
54866
54867         Tweak x*printf documentation.
54868         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
54869         variable name and comments.
54870         Suggested by Bruno Haible.
54871
54872 2007-10-22  Bruno Haible  <bruno@clisp.org>
54873
54874         * lib/acl.c (copy_acl): Fix file name in comment.
54875
54876 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
54877
54878         Fix Tru64 problem with stdbool.h.
54879         * lib/stdbool.in.h (false, true):
54880         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
54881         Don't declare as an enum in this situation; it runs afoul of Tru64.
54882         Problem reported by Steven M. Schweda in
54883         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
54884
54885 2007-10-22  Eric Blake  <ebb9@byu.net>
54886
54887         Also wrap vf?printf.
54888         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
54889         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
54890         (xvprintf, xvfprintf): New functions.
54891
54892 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54893
54894         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
54895         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
54896
54897         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
54898         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
54899
54900 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
54901
54902         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
54903         by Bruno Haible.
54904
54905 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54906
54907         * lib/getloadavg.c
54908         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
54909         Undef `sys' after including sys/table.h, for Tru64 4.0D.
54910
54911         * tests/test-i-ring.c: Work for C89.
54912
54913 2007-10-22  Bruno Haible  <bruno@clisp.org>
54914
54915         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
54916         -1u, in preprocessor expression, so that we don't test for the bug
54917         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
54918         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
54919
54920 2007-10-22  Eric Blake  <ebb9@byu.net>
54921
54922         * tests/test-yesno.sh: Silence stderr during test.
54923
54924 2007-10-22  Simon Josefsson  <simon@josefsson.org>
54925
54926         * modules/crypto/gc-camellia: New file.
54927
54928         * m4/gc-camellia.m4: New file.
54929
54930         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
54931
54932         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
54933
54934 2007-10-22  Simon Josefsson  <simon@josefsson.org>
54935
54936         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
54937         --help to stdout.  Reported by sms@antinode.org (Steven
54938         M. Schweda).
54939
54940 2007-10-22  Simon Josefsson  <simon@josefsson.org>
54941
54942         * users.txt: Fix link to libksba.
54943
54944 2007-10-21  Ben Pfaff  <blp@gnu.org>
54945
54946         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
54947         round.c roundf implementation that depends on floorf and ceilf to
54948         be tested unconditionally.
54949
54950 2007-10-21  Ben Pfaff  <blp@gnu.org>
54951
54952         * m4/check-libm-func.m4: Removed.
54953         * m4/check-math-lib.m4: New file.
54954         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
54955         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
54956         definition and lack of AC_LIBOBJ([roundf]).
54957         * m4/roundl.m4: Ditto, and similarly for roundl.
54958         * modules/round: Reference new m4 file.
54959         * modules/roundf: Ditto.
54960         * modules/roundl: Ditto.
54961         * tests/test-round2.c (main): Use ROUND instead of round.
54962         Bug report from Bruno Haible.
54963
54964 2007-10-21  Bruno Haible  <bruno@clisp.org>
54965
54966         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
54967         context.
54968
54969 2007-10-21  Bruno Haible  <bruno@clisp.org>
54970
54971         * tests/test-wcwidth.c (main): Allow negative result for some control
54972         characters.
54973
54974         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
54975         Needed on OSF/1 5.1.
54976
54977 2007-10-21  Bruno Haible  <bruno@clisp.org>
54978
54979         * tests/test-floorf1.c: Include isnanf.h.
54980         (main): Use isnanf() instead of isnan().
54981         * tests/test-ceilf1.c: Include isnanf.h.
54982         (main): Use isnanf() instead of isnan().
54983         * tests/test-truncf1.c: Include isnanf.h.
54984         (main): Use isnanf() instead of isnan().
54985         * tests/test-roundf1.c: Include isnanf.h.
54986         (main): Use isnanf() instead of isnan().
54987
54988 2007-10-21  Eric Blake  <ebb9@byu.net>
54989
54990         * users.txt: Update URL for m4.
54991
54992 2007-10-21  Bruno Haible  <bruno@clisp.org>
54993
54994         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
54995
54996 2007-10-21  Bruno Haible  <bruno@clisp.org>
54997
54998         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
54999         Git's management files if the CVS files are not present.
55000
55001 2007-10-20  Bruno Haible  <bruno@clisp.org>
55002
55003         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
55004         gcc-3.4.x.
55005
55006 2007-10-20  Ben Pfaff  <blp@gnu.org>
55007
55008         * lib/math.in.h: Declare round, roundf, roundl if we are providing
55009         implementations.
55010         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
55011         * lib/round.c: New file.
55012         * lib/roundf.c: New file.
55013         * lib/roundl.c: New file.
55014         * m4/round.m4: New file.
55015         * m4/roundf.m4: New file.
55016         * m4/roundl.m4: New file.
55017         * m4/check-libm-func-m4: New file.
55018         * modules/math: Replace round, roundf, roundl related @VARS@ in
55019         math.in.h.
55020         * modules/round: New file.
55021         * modules/round-tests: New file.
55022         * modules/roundf: New file.
55023         * modules/roundf-tests: New file.
55024         * modules/roundl: New file.
55025         * modules/roundl-tests: New file.
55026         * tests/test-round1.c: New file.
55027         * tests/test-round2.c: New file.
55028         * tests/test-roundf1.c: New file.
55029         * tests/test-roundf2.c: New file.
55030         * tests/test-roundl.c: New file.
55031         * doc/functions/round.texi: Mention round module.
55032         * doc/functions/roundf.texi: Mention roundf module.
55033         * doc/functions/roundl.texi: Mention roundl module.
55034         * MODULES.html.sh: Mention new modules.
55035         Thanks to Bruno Haible for suggestions.
55036
55037 2007-10-20  Jim Meyering  <meyering@redhat.com>
55038
55039         * lib/xprintf.c: Include <config.h> unconditionally.
55040
55041         Change xprintf's license to GPL.
55042         * modules/xprintf (License): s/LGPL/GPL/, since this module
55043         depends on modules (exit and exitfail) which are GPL.
55044         Suggestion from Bruno Haible.
55045
55046         xprintf fixes.
55047         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
55048         Use a clearer diagnostic.
55049         Patch from Bruno Haible.
55050
55051 2007-10-20  Bruno Haible  <bruno@clisp.org>
55052
55053         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
55054         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
55055         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
55056
55057 2007-10-20  Bruno Haible  <bruno@clisp.org>
55058
55059         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
55060         precision in the comparison result > x - 1 or similar.
55061         * tests/test-ceilf2.c (correct_result_p): Likewise.
55062         * tests/test-truncf2.c (correct_result_p): Likewise.
55063         * tests/test-trunc2.c (correct_result_p): Likewise.
55064         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
55065
55066 2007-10-20  Bruno Haible  <bruno@clisp.org>
55067
55068         * modules/ceil: New file.
55069         * m4/ceil.m4: New file.
55070         * doc/functions/ceil.texi: Mention the 'ceil' module.
55071
55072 2007-10-20  Bruno Haible  <bruno@clisp.org>
55073
55074         * modules/floor: New file.
55075         * m4/floor.m4: New file.
55076         * doc/functions/floor.texi: Mention the 'floor' module.
55077
55078 2007-10-20  Bruno Haible  <bruno@clisp.org>
55079
55080         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
55081         of %a.
55082         * modules/floorf-tests (Depends-on): Likewise.
55083         * modules/truncf-tests (Depends-on): Likewise.
55084         * modules/trunc-tests (Depends-on): Likewise.
55085         Reported by Ben Pfaff.
55086
55087 2007-10-19  Jim Meyering  <meyering@redhat.com>
55088
55089         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
55090         Don't bother testing specific errno values.  Just test ferror.
55091
55092         New module: xprintf
55093         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
55094
55095 2007-10-19  Bruno Haible  <bruno@clisp.org>
55096
55097         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
55098         syntax.
55099         * modules/javaexec (Makefile.am): Likewise.
55100         * modules/relocatable-prog (Makefile.am): Likewise.
55101         Suggested by Jim Meyering.
55102
55103 2007-10-18  Bruno Haible  <bruno@clisp.org>
55104
55105         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
55106         Reported by Jim Meyering.
55107
55108 2007-10-18  Eric Blake  <ebb9@byu.net>
55109
55110         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
55111
55112 2007-10-18  Bruno Haible  <bruno@clisp.org>
55113
55114         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
55115         the format string into writable memory. Needed in Fortify conditions.
55116
55117 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
55118             Bruno Haible  <bruno@clisp.org>
55119
55120         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
55121         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
55122         * modules/trim (Depends-on): Add mbchar.
55123         (configure.ac): Add gl_FUNC_MBRTOWC.
55124         (Makefile.am): Augment lib_SOURCES.
55125
55126 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
55127
55128         Modify glob.c to use fstatat and dirfd, to simplify it.
55129         Suggested by Eric Blake.
55130         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
55131         Don't include <stdbool.h>; not used.
55132         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
55133         (link_exists_p): Simplify implementation, since we can now assume
55134         dirfd and fstatat.
55135         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
55136
55137 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55138
55139         * gnulib-tool (func_get_dependencies): Fix sed script to
55140         match only tests.
55141
55142 2007-10-17  Bruno Haible  <bruno@clisp.org>
55143
55144         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
55145         allow locale names without encoding suffix.
55146         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
55147         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
55148
55149 2007-10-16  Bruno Haible  <bruno@clisp.org>
55150
55151         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
55152         * lib/getgroups.c (getgroups): Likewise.
55153         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
55154
55155 2007-10-16  Bruno Haible  <bruno@clisp.org>
55156
55157         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
55158         * modules/malloc-posix (License): Likewise.
55159         * modules/realloc-posix (License): Likewise.
55160         * modules/calloc-posix (License): Likewise.
55161         * modules/intprops (License): Change from GPL to LGPL, with
55162         Paul Eggert's approval.
55163
55164 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
55165
55166         Merge glibc changes into lib/glob.c.
55167
55168         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
55169         2007-10-15 04:59:03 UTC.  Here are the changes:
55170
55171         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
55172
55173         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
55174
55175         * lib/glob.c: Add some branch prediction throughout.
55176
55177         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
55178
55179         [BZ #5103]
55180         * lib/glob.c (glob): Recognize patterns starting \/.
55181
55182         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
55183
55184         [BZ #3996]
55185         * lib/glob.c (attribute_hidden): Define if not defined.
55186         (glob): Unescape dirname, filename or username when needed and not
55187         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
55188         is NULL.  Handle unescaped [ in pattern without closing ].
55189         Don't pass GLOB_CHECK down to recursive glob for directories.
55190         (__glob_pattern_type): New function.
55191         (__glob_pattern_p): Implement using __glob_pattern_type.
55192         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
55193         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
55194         Remove unreachable code.
55195
55196         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
55197
55198         * lib/glob.c (glob_in_dir): Add some comments and asserts to
55199         explain why there are no leaks.
55200
55201         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
55202
55203         [BZ #3253]
55204         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
55205         time, rather allocate increasingly bigger arrays of pointers, if
55206         possible with alloca, if too large with malloc.
55207
55208 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
55209
55210         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
55211         Problem reported by H.Merijn Brand in
55212         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
55213         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
55214         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
55215
55216 2007-10-15  Bruno Haible  <bruno@clisp.org>
55217
55218         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
55219         with explicit rpl_ prefix.
55220         * lib/fopen.c (fopen): Likewise.
55221         * lib/freopen.c (freopen): Likewise.
55222         * lib/iconv.c (iconv): Likewise.
55223         * lib/iconv_close.c (iconv_close): Likewise.
55224
55225 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55226
55227         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
55228
55229 2007-10-15  Bruno Haible  <bruno@clisp.org>
55230
55231         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
55232         <stddef.h> instead of <stdlib.h> since we only need NULL.
55233         Reported by Ben Pfaff <blp@cs.stanford.edu>.
55234
55235 2007-10-15  Bruno Haible  <bruno@clisp.org>
55236
55237         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
55238         Replace paragraph talking about LIBOBJS.
55239         Reported by Colin Watson <cjwatson@debian.org>.
55240
55241 2007-10-15  Bruno Haible  <bruno@clisp.org>
55242
55243         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
55244         <stdlib.h> before using NULL.
55245
55246 2007-10-15  Simon Josefsson  <simon@josefsson.org>
55247
55248         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
55249         Reported by Albert Chin <china@thewrittenword.com>.
55250
55251 2007-10-14  Bruno Haible  <bruno@clisp.org>
55252
55253         * modules/iconv_open-utf-tests: New file.
55254         * tests/test-iconv-utf.c: New file.
55255
55256         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
55257         * modules/iconv_open-utf: New file.
55258         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
55259         (iconv, iconv_close): New declarations.
55260         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
55261         be defined.
55262         (iconv_open): Add special handling of conversion between UTF-8 and
55263         UTF-{16,32}{BE,LE}.
55264         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
55265         * lib/iconv_close.c: New file.
55266         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
55267         gl_FUNC_ICONV_OPEN.
55268         (gl_FUNC_ICONV_OPEN): Use it.
55269         (gl_FUNC_ICONV_OPEN_UTF): New macro.
55270         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
55271         and REPLACE_ICONV_UTF.
55272         * modules/iconv_open (Depends-on): Add c-strcase.
55273         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
55274         ICONV_CONST.
55275         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
55276
55277 2007-10-13  Albert Chin  <china@thewrittenword.com>
55278             Bruno Haible  <bruno@clisp.org>
55279
55280         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
55281         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
55282
55283 2007-10-13  Bruno Haible  <bruno@clisp.org>
55284
55285         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
55286         defined, use the ISO C99 inline semantics.
55287         * lib/argp.h (ARGP_EI): Likewise.
55288
55289 2007-10-13  Bruno Haible  <bruno@clisp.org>
55290
55291         Handle 'inline' change in gcc 4.3.0.
55292         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
55293         argp_fmtstream_write, argp_fmtstream_set_lmargin,
55294         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
55295         argp_fmtstream_point): Disable 'extern' declaration if the function
55296         definition is going to be provided inline.
55297         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
55298         semantics, not the ISO C99 inline semantics.
55299         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
55300         'extern' declaration if the function definition is going to be provided
55301         inline.
55302         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
55303         the GNU C inline semantics, not the ISO C99 inline semantics. With
55304         GCC 4.2, avoid a warning.
55305
55306 2007-10-13  Bruno Haible  <bruno@clisp.org>
55307
55308         * lib/freading.h (freading): Enable the use of __freading for
55309         glibc >= 2.7.
55310         * lib/freading.c (freading): Likewise.
55311
55312 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
55313
55314         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
55315         "warning: C99 inline functions are not supported; using GNU89".
55316
55317 2007-10-12  Bruno Haible  <bruno@clisp.org>
55318
55319         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
55320         of 2.
55321         * tests/test-ceilf2.c: New file.
55322         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
55323
55324         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
55325         * modules/ceilf-tests: Update.
55326
55327 2007-10-12  Bruno Haible  <bruno@clisp.org>
55328
55329         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
55330         of 2.
55331         * tests/test-floorf2.c: New file.
55332         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
55333
55334         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
55335         * modules/floorf-tests: Update.
55336
55337 2007-10-12  Bruno Haible  <bruno@clisp.org>
55338
55339         * tests/test-trunc2.c: New file.
55340         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
55341
55342         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
55343         * modules/trunc-tests: Update.
55344
55345 2007-10-12  Bruno Haible  <bruno@clisp.org>
55346
55347         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
55348         of 2.
55349         * tests/test-truncf2.c: New file.
55350         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
55351
55352         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
55353         * modules/truncf-tests: Update.
55354
55355 2007-10-11  Eric Blake  <ebb9@byu.net>
55356
55357         Don't claim strerror is broken on Interix.
55358         * doc/functions/strerror.texi (strerror): Known broken systems are
55359         now Solaris 8, and not Interix.
55360         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
55361         Interix on cross-compile.
55362         Reported by Martin Koeppe in
55363         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
55364
55365 2007-10-11  Bruno Haible  <bruno@clisp.org>
55366
55367         * modules/i-ring-tests: New file.
55368         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
55369         instead of assert.
55370
55371 2007-10-11  Bruno Haible  <bruno@clisp.org>
55372
55373         * modules/filenamecat-tests: New file.
55374         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
55375         * lib/filenamecat.c: Remove test code.
55376
55377 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
55378
55379         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
55380
55381         * lib/strerror.c: Include <string.h> always, to test interface,
55382         and to remove the need for the dummy.
55383         Include intprops.h to compute width instead of doing it ourselves
55384         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
55385         (strerror): Define it to return NULL if there's no system strerror.
55386         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
55387         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
55388         ancient pre-strerror Unix systems well any more.  Saying "unknown
55389         system error" is enough.
55390         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
55391         simpler strerror.c implementation.
55392         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
55393         Simplify the tests to reflect the simpler strerror implementation.
55394         * modules/strerror (Depends-on): Add intprops.
55395
55396 2007-10-09  Eric Blake  <ebb9@byu.net>
55397
55398         Silence test-fpending.
55399         * modules/fpending-tests (Files): Add wrapper script.
55400         * tests/test-fpending.sh: New file.
55401
55402 2007-10-09  Bruno Haible  <bruno@clisp.org>
55403
55404         * MODULES.html.sh (func_module): Don't create a hyperlink for
55405         function names like 'printf_frexp'.
55406         (Misc): Add crc, memxor.
55407         (Characteristics of floating types): New section.
55408         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
55409         isnanf-nolibm, signbit, trunc, truncf, truncl.
55410         (Enhancements for ISO C 99 functions): New subsection Input/output.
55411         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
55412         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
55413         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
55414         (Compatibility checks for POSIX:2001 functions): Add clock-time.
55415         (Enhancements for POSIX:2001 functions): Add chdir-long.
55416         (File system functions): Add areadlink, chdir-safer, read-file.
55417         Remove cycle-check.
55418         (File system as inode set): New section.
55419         (Date and time): Add gethrxtime.
55420         (Multithreading): Add openmp.
55421         (Internationalization functions): Add localename.
55422         (Unicode string functions): Add unistr/u*-mbsnlen.
55423         (Support for maintaining and releasing projects): Add git-version-gen.
55424         (Lone files): Remove directories.
55425
55426 2007-10-08  Ben Pfaff  <blp@gnu.org>
55427
55428         * lib/xmalloca.h: Fix typo in comment.
55429
55430 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
55431
55432         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
55433         when avoiding problems with integer overflow.  Use a portable test
55434         instead.
55435
55436 2007-10-08  Simon Josefsson  <simon@josefsson.org>
55437
55438         * modules/dummy (License): Change to LGPLv2+.
55439         * modules/float (License): Likewise
55440         * modules/realloc (License): Likewise
55441         * modules/stdlib (License): Likewise
55442
55443 2007-10-07  Bruno Haible  <bruno@clisp.org>
55444
55445         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
55446         * floor.c (TWO_MANT_DIG): Likewise.
55447         * ceil.c (TWO_MANT_DIG): Likewise.
55448         Reported by Ben Pfaff.
55449
55450 2007-10-07  Bruno Haible  <bruno@clisp.org>
55451
55452         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
55453         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
55454         * lib/frexp.c (FUNC): Likewise.
55455         * lib/printf-frexp.h (printf_frexp): Likewise.
55456         * lib/printf-frexpl.h (printf_frexpl): Likewise.
55457         * lib/printf-frexp.c (FUNC): Likewise.
55458         Suggested by Jim Meyering.
55459
55460 2007-10-07  Jim Meyering  <meyering@redhat.com>
55461
55462         Make xnanosleep's integer overflow test more robust.
55463         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
55464         so that gcc-4.3.0 doesn't optimize away this test for overflow.
55465
55466 2007-10-07  Bruno Haible  <bruno@clisp.org>
55467
55468         * NEWS: Mention the license change.
55469
55470         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
55471         abbreviations in the modules files.
55472
55473         Change copyright notice from GPLv2+ to GPLv3+.
55474         * README: Change copyright notice.
55475         * MODULES.html.sh: Likewise.
55476         * build-aux/bootstrap.conf: Likewise.
55477         * build-aux/config.libpath: Likewise.
55478         * build-aux/csharpcomp.sh.in: Likewise.
55479         * build-aux/csharpexec.sh.in: Likewise.
55480         * build-aux/install-reloc: Likewise.
55481         * build-aux/javacomp.sh.in: Likewise.
55482         * build-aux/javaexec.sh.in: Likewise.
55483         * build-aux/ldd.sh.in: Likewise.
55484         * build-aux/reloc-ldflags: Likewise.
55485         * build-aux/relocatable.sh.in: Likewise.
55486         * build-aux/x-to-1.in: Likewise.
55487         * check-module: Likewise.
55488         * config/srclistvars.sh: Likewise.
55489         * gnulib-tool: Likewise.
55490         * lib/acl-internal.h: Likewise.
55491         * lib/acl.c: Likewise.
55492         * lib/acl.h: Likewise.
55493         * lib/acl_entries.c: Likewise.
55494         * lib/areadlink-with-size.c: Likewise.
55495         * lib/areadlink.c: Likewise.
55496         * lib/areadlink.h: Likewise.
55497         * lib/argmatch.c: Likewise.
55498         * lib/argmatch.h: Likewise.
55499         * lib/argp-ba.c: Likewise.
55500         * lib/argp-eexst.c: Likewise.
55501         * lib/argp-fmtstream.c: Likewise.
55502         * lib/argp-fmtstream.h: Likewise.
55503         * lib/argp-fs-xinl.c: Likewise.
55504         * lib/argp-help.c: Likewise.
55505         * lib/argp-namefrob.h: Likewise.
55506         * lib/argp-parse.c: Likewise.
55507         * lib/argp-pin.c: Likewise.
55508         * lib/argp-pv.c: Likewise.
55509         * lib/argp-pvh.c: Likewise.
55510         * lib/argp-xinl.c: Likewise.
55511         * lib/argp.h: Likewise.
55512         * lib/at-func.c: Likewise.
55513         * lib/atanl.c: Likewise.
55514         * lib/backupfile.c: Likewise.
55515         * lib/backupfile.h: Likewise.
55516         * lib/basename.c: Likewise.
55517         * lib/binary-io.h: Likewise.
55518         * lib/byteswap.in.h: Likewise.
55519         * lib/c-stack.c: Likewise.
55520         * lib/c-stack.h: Likewise.
55521         * lib/c-strcasestr.c: Likewise.
55522         * lib/c-strcasestr.h: Likewise.
55523         * lib/c-strstr.c: Likewise.
55524         * lib/c-strstr.h: Likewise.
55525         * lib/c-strtod.c: Likewise.
55526         * lib/calloc.c: Likewise.
55527         * lib/canon-host.c: Likewise.
55528         * lib/canon-host.h: Likewise.
55529         * lib/canonicalize-lgpl.c: Likewise.
55530         * lib/canonicalize.c: Likewise.
55531         * lib/canonicalize.h: Likewise.
55532         * lib/ceil.c: Likewise.
55533         * lib/ceilf.c: Likewise.
55534         * lib/ceill.c: Likewise.
55535         * lib/chdir-long.c: Likewise.
55536         * lib/chdir-long.h: Likewise.
55537         * lib/chdir-safer.c: Likewise.
55538         * lib/chdir-safer.h: Likewise.
55539         * lib/chown.c: Likewise.
55540         * lib/classpath.c: Likewise.
55541         * lib/classpath.h: Likewise.
55542         * lib/clean-temp.c: Likewise.
55543         * lib/clean-temp.h: Likewise.
55544         * lib/cloexec.c: Likewise.
55545         * lib/close-stream.c: Likewise.
55546         * lib/closein.c: Likewise.
55547         * lib/closein.h: Likewise.
55548         * lib/closeout.c: Likewise.
55549         * lib/closeout.h: Likewise.
55550         * lib/concat-filename.c: Likewise.
55551         * lib/copy-file.c: Likewise.
55552         * lib/copy-file.h: Likewise.
55553         * lib/count-one-bits.h: Likewise.
55554         * lib/crc.c: Likewise.
55555         * lib/crc.h: Likewise.
55556         * lib/creat-safer.c: Likewise.
55557         * lib/csharpcomp.c: Likewise.
55558         * lib/csharpcomp.h: Likewise.
55559         * lib/csharpexec.c: Likewise.
55560         * lib/csharpexec.h: Likewise.
55561         * lib/cycle-check.c: Likewise.
55562         * lib/cycle-check.h: Likewise.
55563         * lib/diacrit.c: Likewise.
55564         * lib/diacrit.h: Likewise.
55565         * lib/diffseq.h: Likewise.
55566         * lib/dirchownmod.c: Likewise.
55567         * lib/dirent.in.h: Likewise.
55568         * lib/dirfd.c: Likewise.
55569         * lib/dirfd.h: Likewise.
55570         * lib/dirname.c: Likewise.
55571         * lib/dirname.h: Likewise.
55572         * lib/dummy.c: Likewise.
55573         * lib/dup-safer.c: Likewise.
55574         * lib/dup2.c: Likewise.
55575         * lib/eealloc.h: Likewise.
55576         * lib/error.c: Likewise.
55577         * lib/error.h: Likewise.
55578         * lib/euidaccess.c: Likewise.
55579         * lib/exclude.c: Likewise.
55580         * lib/exclude.h: Likewise.
55581         * lib/execute.c: Likewise.
55582         * lib/execute.h: Likewise.
55583         * lib/exitfail.c: Likewise.
55584         * lib/exitfail.h: Likewise.
55585         * lib/expl.c: Likewise.
55586         * lib/fatal-signal.c: Likewise.
55587         * lib/fatal-signal.h: Likewise.
55588         * lib/fbufmode.c: Likewise.
55589         * lib/fbufmode.h: Likewise.
55590         * lib/fchdir.c: Likewise.
55591         * lib/fchmodat.c: Likewise.
55592         * lib/fchownat.c: Likewise.
55593         * lib/fcntl--.h: Likewise.
55594         * lib/fcntl-safer.h: Likewise.
55595         * lib/fcntl.in.h: Likewise.
55596         * lib/fd-safer.c: Likewise.
55597         * lib/fflush.c: Likewise.
55598         * lib/file-has-acl.c: Likewise.
55599         * lib/file-set.c: Likewise.
55600         * lib/file-type.c: Likewise.
55601         * lib/file-type.h: Likewise.
55602         * lib/fileblocks.c: Likewise.
55603         * lib/filemode.c: Likewise.
55604         * lib/filemode.h: Likewise.
55605         * lib/filename.h: Likewise.
55606         * lib/filenamecat.c: Likewise.
55607         * lib/filenamecat.h: Likewise.
55608         * lib/findprog.c: Likewise.
55609         * lib/findprog.h: Likewise.
55610         * lib/float.in.h: Likewise.
55611         * lib/floor.c: Likewise.
55612         * lib/floorf.c: Likewise.
55613         * lib/floorl.c: Likewise.
55614         * lib/fopen-safer.c: Likewise.
55615         * lib/fopen.c: Likewise.
55616         * lib/fpending.c: Likewise.
55617         * lib/fpending.h: Likewise.
55618         * lib/fprintf.c: Likewise.
55619         * lib/fprintftime.h: Likewise.
55620         * lib/fpucw.h: Likewise.
55621         * lib/fpurge.c: Likewise.
55622         * lib/fpurge.h: Likewise.
55623         * lib/freadable.c: Likewise.
55624         * lib/freadable.h: Likewise.
55625         * lib/freadahead.c: Likewise.
55626         * lib/freadahead.h: Likewise.
55627         * lib/freading.c: Likewise.
55628         * lib/freading.h: Likewise.
55629         * lib/free.c: Likewise.
55630         * lib/freopen.c: Likewise.
55631         * lib/frexp.c: Likewise.
55632         * lib/frexpl.c: Likewise.
55633         * lib/fseek.c: Likewise.
55634         * lib/fseterr.c: Likewise.
55635         * lib/fseterr.h: Likewise.
55636         * lib/fstatat.c: Likewise.
55637         * lib/fstrcmp.c: Likewise.
55638         * lib/fstrcmp.h: Likewise.
55639         * lib/fsusage.c: Likewise.
55640         * lib/fsusage.h: Likewise.
55641         * lib/ftell.c: Likewise.
55642         * lib/ftello.c: Likewise.
55643         * lib/fts-cycle.c: Likewise.
55644         * lib/fts.c: Likewise.
55645         * lib/fts_.h: Likewise.
55646         * lib/full-read.c: Likewise.
55647         * lib/full-read.h: Likewise.
55648         * lib/full-write.c: Likewise.
55649         * lib/full-write.h: Likewise.
55650         * lib/fwritable.c: Likewise.
55651         * lib/fwritable.h: Likewise.
55652         * lib/fwriteerror.c: Likewise.
55653         * lib/fwriteerror.h: Likewise.
55654         * lib/fwriting.c: Likewise.
55655         * lib/fwriting.h: Likewise.
55656         * lib/gcd.c: Likewise.
55657         * lib/gcd.h: Likewise.
55658         * lib/getcwd.c: Likewise.
55659         * lib/getdate.h: Likewise.
55660         * lib/getdate.y: Likewise.
55661         * lib/getdomainname.c: Likewise.
55662         * lib/getdomainname.h: Likewise.
55663         * lib/getgroups.c: Likewise.
55664         * lib/gethostname.c: Likewise.
55665         * lib/gethrxtime.c: Likewise.
55666         * lib/gethrxtime.h: Likewise.
55667         * lib/getloadavg.c: Likewise.
55668         * lib/getndelim2.c: Likewise.
55669         * lib/getndelim2.h: Likewise.
55670         * lib/getnline.c: Likewise.
55671         * lib/getnline.h: Likewise.
55672         * lib/getopt.c: Likewise.
55673         * lib/getopt.in.h: Likewise.
55674         * lib/getopt1.c: Likewise.
55675         * lib/getopt_int.h: Likewise.
55676         * lib/getpagesize.h: Likewise.
55677         * lib/getsubopt.c: Likewise.
55678         * lib/gettime.c: Likewise.
55679         * lib/getugroups.c: Likewise.
55680         * lib/getugroups.h: Likewise.
55681         * lib/getusershell.c: Likewise.
55682         * lib/gl_anyavltree_list1.h: Likewise.
55683         * lib/gl_anyavltree_list2.h: Likewise.
55684         * lib/gl_anyhash_list1.h: Likewise.
55685         * lib/gl_anyhash_list2.h: Likewise.
55686         * lib/gl_anylinked_list1.h: Likewise.
55687         * lib/gl_anylinked_list2.h: Likewise.
55688         * lib/gl_anyrbtree_list1.h: Likewise.
55689         * lib/gl_anyrbtree_list2.h: Likewise.
55690         * lib/gl_anytree_list1.h: Likewise.
55691         * lib/gl_anytree_list2.h: Likewise.
55692         * lib/gl_anytree_oset.h: Likewise.
55693         * lib/gl_anytreehash_list1.h: Likewise.
55694         * lib/gl_anytreehash_list2.h: Likewise.
55695         * lib/gl_array_list.c: Likewise.
55696         * lib/gl_array_list.h: Likewise.
55697         * lib/gl_array_oset.c: Likewise.
55698         * lib/gl_array_oset.h: Likewise.
55699         * lib/gl_avltree_list.c: Likewise.
55700         * lib/gl_avltree_list.h: Likewise.
55701         * lib/gl_avltree_oset.c: Likewise.
55702         * lib/gl_avltree_oset.h: Likewise.
55703         * lib/gl_avltreehash_list.c: Likewise.
55704         * lib/gl_avltreehash_list.h: Likewise.
55705         * lib/gl_carray_list.c: Likewise.
55706         * lib/gl_carray_list.h: Likewise.
55707         * lib/gl_linked_list.c: Likewise.
55708         * lib/gl_linked_list.h: Likewise.
55709         * lib/gl_linkedhash_list.c: Likewise.
55710         * lib/gl_linkedhash_list.h: Likewise.
55711         * lib/gl_list.c: Likewise.
55712         * lib/gl_list.h: Likewise.
55713         * lib/gl_oset.c: Likewise.
55714         * lib/gl_oset.h: Likewise.
55715         * lib/gl_rbtree_list.c: Likewise.
55716         * lib/gl_rbtree_list.h: Likewise.
55717         * lib/gl_rbtree_oset.c: Likewise.
55718         * lib/gl_rbtree_oset.h: Likewise.
55719         * lib/gl_rbtreehash_list.c: Likewise.
55720         * lib/gl_rbtreehash_list.h: Likewise.
55721         * lib/gl_sublist.c: Likewise.
55722         * lib/gl_sublist.h: Likewise.
55723         * lib/group-member.c: Likewise.
55724         * lib/group-member.h: Likewise.
55725         * lib/hard-locale.c: Likewise.
55726         * lib/hard-locale.h: Likewise.
55727         * lib/hash-pjw.c: Likewise.
55728         * lib/hash-pjw.h: Likewise.
55729         * lib/hash-triple.c: Likewise.
55730         * lib/hash.c: Likewise.
55731         * lib/hash.h: Likewise.
55732         * lib/human.c: Likewise.
55733         * lib/human.h: Likewise.
55734         * lib/i-ring.c: Likewise.
55735         * lib/i-ring.h: Likewise.
55736         * lib/idcache.c: Likewise.
55737         * lib/imaxabs.c: Likewise.
55738         * lib/imaxdiv.c: Likewise.
55739         * lib/inet_pton.c: Likewise.
55740         * lib/inet_pton.h: Likewise.
55741         * lib/intprops.h: Likewise.
55742         * lib/inttostr.c: Likewise.
55743         * lib/inttostr.h: Likewise.
55744         * lib/inttypes.in.h: Likewise.
55745         * lib/isapipe.c: Likewise.
55746         * lib/isdir.c: Likewise.
55747         * lib/isnan.c: Likewise.
55748         * lib/isnan.h: Likewise.
55749         * lib/isnanf.c: Likewise.
55750         * lib/isnanf.h: Likewise.
55751         * lib/isnanl-nolibm.h: Likewise.
55752         * lib/isnanl.c: Likewise.
55753         * lib/isnanl.h: Likewise.
55754         * lib/javacomp.c: Likewise.
55755         * lib/javacomp.h: Likewise.
55756         * lib/javaexec.c: Likewise.
55757         * lib/javaexec.h: Likewise.
55758         * lib/javaversion.c: Likewise.
55759         * lib/javaversion.h: Likewise.
55760         * lib/javaversion.java: Likewise.
55761         * lib/lbrkprop.h: Likewise.
55762         * lib/lchmod.h: Likewise.
55763         * lib/lchown.c: Likewise.
55764         * lib/ldexpl.c: Likewise.
55765         * lib/linebreak.c: Likewise.
55766         * lib/linebreak.h: Likewise.
55767         * lib/linebuffer.c: Likewise.
55768         * lib/linebuffer.h: Likewise.
55769         * lib/locale.in.h: Likewise.
55770         * lib/logl.c: Likewise.
55771         * lib/long-options.c: Likewise.
55772         * lib/long-options.h: Likewise.
55773         * lib/lstat.c: Likewise.
55774         * lib/lstat.h: Likewise.
55775         * lib/math.in.h: Likewise.
55776         * lib/mbchar.c: Likewise.
55777         * lib/mbchar.h: Likewise.
55778         * lib/mbfile.h: Likewise.
55779         * lib/mbiter.h: Likewise.
55780         * lib/mbscasecmp.c: Likewise.
55781         * lib/mbscasestr.c: Likewise.
55782         * lib/mbschr.c: Likewise.
55783         * lib/mbscspn.c: Likewise.
55784         * lib/mbslen.c: Likewise.
55785         * lib/mbsncasecmp.c: Likewise.
55786         * lib/mbsnlen.c: Likewise.
55787         * lib/mbspbrk.c: Likewise.
55788         * lib/mbspcasecmp.c: Likewise.
55789         * lib/mbsrchr.c: Likewise.
55790         * lib/mbssep.c: Likewise.
55791         * lib/mbsspn.c: Likewise.
55792         * lib/mbsstr.c: Likewise.
55793         * lib/mbstok_r.c: Likewise.
55794         * lib/mbswidth.c: Likewise.
55795         * lib/mbswidth.h: Likewise.
55796         * lib/mbuiter.h: Likewise.
55797         * lib/memcasecmp.c: Likewise.
55798         * lib/memcasecmp.h: Likewise.
55799         * lib/memchr.c: Likewise.
55800         * lib/memcmp.c: Likewise.
55801         * lib/memcoll.c: Likewise.
55802         * lib/memcoll.h: Likewise.
55803         * lib/memcpy.c: Likewise.
55804         * lib/memrchr.c: Likewise.
55805         * lib/mkancesdirs.c: Likewise.
55806         * lib/mkdir-p.c: Likewise.
55807         * lib/mkdir-p.h: Likewise.
55808         * lib/mkdir.c: Likewise.
55809         * lib/mkdirat.c: Likewise.
55810         * lib/mkdtemp.c: Likewise.
55811         * lib/mkstemp-safer.c: Likewise.
55812         * lib/mkstemp.c: Likewise.
55813         * lib/modechange.c: Likewise.
55814         * lib/modechange.h: Likewise.
55815         * lib/mountlist.c: Likewise.
55816         * lib/mountlist.h: Likewise.
55817         * lib/mpsort.c: Likewise.
55818         * lib/nanosleep.c: Likewise.
55819         * lib/obstack.c: Likewise.
55820         * lib/obstack.h: Likewise.
55821         * lib/open-safer.c: Likewise.
55822         * lib/open.c: Likewise.
55823         * lib/openat-die.c: Likewise.
55824         * lib/openat-priv.h: Likewise.
55825         * lib/openat-proc.c: Likewise.
55826         * lib/openat.c: Likewise.
55827         * lib/openat.h: Likewise.
55828         * lib/pagealign_alloc.c: Likewise.
55829         * lib/pagealign_alloc.h: Likewise.
55830         * lib/physmem.c: Likewise.
55831         * lib/physmem.h: Likewise.
55832         * lib/pipe-safer.c: Likewise.
55833         * lib/pipe.c: Likewise.
55834         * lib/pipe.h: Likewise.
55835         * lib/posixtm.c: Likewise.
55836         * lib/posixtm.h: Likewise.
55837         * lib/posixver.c: Likewise.
55838         * lib/printf-frexp.c: Likewise.
55839         * lib/printf-frexp.h: Likewise.
55840         * lib/printf-frexpl.c: Likewise.
55841         * lib/printf-frexpl.h: Likewise.
55842         * lib/printf.c: Likewise.
55843         * lib/progname.c: Likewise.
55844         * lib/progname.h: Likewise.
55845         * lib/progreloc.c: Likewise.
55846         * lib/putenv.c: Likewise.
55847         * lib/quote.c: Likewise.
55848         * lib/quote.h: Likewise.
55849         * lib/quotearg.c: Likewise.
55850         * lib/quotearg.h: Likewise.
55851         * lib/raise.c: Likewise.
55852         * lib/readline.c: Likewise.
55853         * lib/readline.h: Likewise.
55854         * lib/readlink.c: Likewise.
55855         * lib/readtokens.c: Likewise.
55856         * lib/readtokens.h: Likewise.
55857         * lib/readtokens0.c: Likewise.
55858         * lib/readtokens0.h: Likewise.
55859         * lib/readutmp.c: Likewise.
55860         * lib/readutmp.h: Likewise.
55861         * lib/realloc.c: Likewise.
55862         * lib/relocwrapper.c: Likewise.
55863         * lib/rename-dest-slash.c: Likewise.
55864         * lib/rename.c: Likewise.
55865         * lib/rmdir.c: Likewise.
55866         * lib/rpmatch.c: Likewise.
55867         * lib/safe-read.c: Likewise.
55868         * lib/safe-read.h: Likewise.
55869         * lib/safe-write.c: Likewise.
55870         * lib/safe-write.h: Likewise.
55871         * lib/same-inode.h: Likewise.
55872         * lib/same.c: Likewise.
55873         * lib/same.h: Likewise.
55874         * lib/save-cwd.c: Likewise.
55875         * lib/save-cwd.h: Likewise.
55876         * lib/savedir.c: Likewise.
55877         * lib/savedir.h: Likewise.
55878         * lib/savewd.c: Likewise.
55879         * lib/savewd.h: Likewise.
55880         * lib/search.in.h: Likewise.
55881         * lib/setenv.c: Likewise.
55882         * lib/setenv.h: Likewise.
55883         * lib/settime.c: Likewise.
55884         * lib/sh-quote.c: Likewise.
55885         * lib/sh-quote.h: Likewise.
55886         * lib/sig2str.c: Likewise.
55887         * lib/sig2str.h: Likewise.
55888         * lib/signal.in.h: Likewise.
55889         * lib/signbitd.c: Likewise.
55890         * lib/signbitf.c: Likewise.
55891         * lib/signbitl.c: Likewise.
55892         * lib/sigprocmask.c: Likewise.
55893         * lib/sincosl.c: Likewise.
55894         * lib/sleep.c: Likewise.
55895         * lib/sprintf.c: Likewise.
55896         * lib/sqrtl.c: Likewise.
55897         * lib/stat-time.h: Likewise.
55898         * lib/stdio--.h: Likewise.
55899         * lib/stdio-safer.h: Likewise.
55900         * lib/stdlib--.h: Likewise.
55901         * lib/stdlib-safer.h: Likewise.
55902         * lib/stdlib.in.h: Likewise.
55903         * lib/stpcpy.c: Likewise.
55904         * lib/stpncpy.c: Likewise.
55905         * lib/strchrnul.c: Likewise.
55906         * lib/strcspn.c: Likewise.
55907         * lib/strerror.c: Likewise.
55908         * lib/strftime.c: Likewise.
55909         * lib/strftime.h: Likewise.
55910         * lib/striconveh.c: Likewise.
55911         * lib/striconveh.h: Likewise.
55912         * lib/striconveha.c: Likewise.
55913         * lib/striconveha.h: Likewise.
55914         * lib/stripslash.c: Likewise.
55915         * lib/strnlen1.c: Likewise.
55916         * lib/strnlen1.h: Likewise.
55917         * lib/strtod.c: Likewise.
55918         * lib/strtoimax.c: Likewise.
55919         * lib/strtok_r.c: Likewise.
55920         * lib/strtol.c: Likewise.
55921         * lib/strtoll.c: Likewise.
55922         * lib/strtoul.c: Likewise.
55923         * lib/strtoull.c: Likewise.
55924         * lib/sysexits.in.h: Likewise.
55925         * lib/tempname.c: Likewise.
55926         * lib/tempname.h: Likewise.
55927         * lib/timespec.h: Likewise.
55928         * lib/tls.c: Likewise.
55929         * lib/tls.h: Likewise.
55930         * lib/tmpdir.c: Likewise.
55931         * lib/tmpdir.h: Likewise.
55932         * lib/tmpfile-safer.c: Likewise.
55933         * lib/tmpfile.c: Likewise.
55934         * lib/trigl.c: Likewise.
55935         * lib/trigl.h: Likewise.
55936         * lib/trim.c: Likewise.
55937         * lib/trim.h: Likewise.
55938         * lib/trunc.c: Likewise.
55939         * lib/truncf.c: Likewise.
55940         * lib/truncl.c: Likewise.
55941         * lib/tsearch.c: Likewise.
55942         * lib/unicodeio.c: Likewise.
55943         * lib/unicodeio.h: Likewise.
55944         * lib/unistd--.h: Likewise.
55945         * lib/unistd-safer.h: Likewise.
55946         * lib/unistdio/ulc-fprintf.c: Likewise.
55947         * lib/unistdio/ulc-vfprintf.c: Likewise.
55948         * lib/unlinkdir.c: Likewise.
55949         * lib/unlinkdir.h: Likewise.
55950         * lib/unlocked-io.h: Likewise.
55951         * lib/unsetenv.c: Likewise.
55952         * lib/userspec.c: Likewise.
55953         * lib/utime.c: Likewise.
55954         * lib/utimecmp.c: Likewise.
55955         * lib/utimecmp.h: Likewise.
55956         * lib/utimens.c: Likewise.
55957         * lib/verify.h: Likewise.
55958         * lib/verror.c: Likewise.
55959         * lib/verror.h: Likewise.
55960         * lib/version-etc-fsf.c: Likewise.
55961         * lib/version-etc.c: Likewise.
55962         * lib/version-etc.h: Likewise.
55963         * lib/vfprintf.c: Likewise.
55964         * lib/vprintf.c: Likewise.
55965         * lib/vsprintf.c: Likewise.
55966         * lib/w32spawn.h: Likewise.
55967         * lib/wait-process.c: Likewise.
55968         * lib/wait-process.h: Likewise.
55969         * lib/wcwidth.c: Likewise.
55970         * lib/write-any-file.c: Likewise.
55971         * lib/xalloc-die.c: Likewise.
55972         * lib/xalloc.h: Likewise.
55973         * lib/xasprintf.c: Likewise.
55974         * lib/xgetcwd.c: Likewise.
55975         * lib/xgetcwd.h: Likewise.
55976         * lib/xgetdomainname.c: Likewise.
55977         * lib/xgetdomainname.h: Likewise.
55978         * lib/xgethostname.c: Likewise.
55979         * lib/xmalloc.c: Likewise.
55980         * lib/xmalloca.c: Likewise.
55981         * lib/xmalloca.h: Likewise.
55982         * lib/xmemcoll.c: Likewise.
55983         * lib/xnanosleep.c: Likewise.
55984         * lib/xreadlink.c: Likewise.
55985         * lib/xreadlink.h: Likewise.
55986         * lib/xsetenv.c: Likewise.
55987         * lib/xsetenv.h: Likewise.
55988         * lib/xstriconv.c: Likewise.
55989         * lib/xstriconv.h: Likewise.
55990         * lib/xstrndup.c: Likewise.
55991         * lib/xstrndup.h: Likewise.
55992         * lib/xstrtod.c: Likewise.
55993         * lib/xstrtod.h: Likewise.
55994         * lib/xstrtol-error.c: Likewise.
55995         * lib/xstrtol.c: Likewise.
55996         * lib/xstrtol.h: Likewise.
55997         * lib/xtime.h: Likewise.
55998         * lib/xvasprintf.c: Likewise.
55999         * lib/xvasprintf.h: Likewise.
56000         * lib/yesno.c: Likewise.
56001         * lib/yesno.h: Likewise.
56002         * posix-modules: Likewise.
56003         * tests/test-alloca-opt.c: Likewise.
56004         * tests/test-arcfour.c: Likewise.
56005         * tests/test-arctwo.c: Likewise.
56006         * tests/test-argmatch.c: Likewise.
56007         * tests/test-argp-2.sh: Likewise.
56008         * tests/test-argp.c: Likewise.
56009         * tests/test-arpa_inet.c: Likewise.
56010         * tests/test-array_list.c: Likewise.
56011         * tests/test-array_oset.c: Likewise.
56012         * tests/test-atexit.c: Likewise.
56013         * tests/test-avltree_list.c: Likewise.
56014         * tests/test-avltree_oset.c: Likewise.
56015         * tests/test-avltreehash_list.c: Likewise.
56016         * tests/test-base64.c: Likewise.
56017         * tests/test-binary-io.c: Likewise.
56018         * tests/test-byteswap.c: Likewise.
56019         * tests/test-c-ctype.c: Likewise.
56020         * tests/test-c-strcasecmp.c: Likewise.
56021         * tests/test-c-strcasestr.c: Likewise.
56022         * tests/test-c-strncasecmp.c: Likewise.
56023         * tests/test-c-strstr.c: Likewise.
56024         * tests/test-canonicalize-lgpl.c: Likewise.
56025         * tests/test-canonicalize.c: Likewise.
56026         * tests/test-carray_list.c: Likewise.
56027         * tests/test-ceilf.c: Likewise.
56028         * tests/test-ceill.c: Likewise.
56029         * tests/test-count-one-bits.c: Likewise.
56030         * tests/test-crc.c: Likewise.
56031         * tests/test-dirname.c: Likewise.
56032         * tests/test-fbufmode.c: Likewise.
56033         * tests/test-fcntl.c: Likewise.
56034         * tests/test-fflush.c: Likewise.
56035         * tests/test-floorf.c: Likewise.
56036         * tests/test-floorl.c: Likewise.
56037         * tests/test-fopen.c: Likewise.
56038         * tests/test-fprintf-posix.c: Likewise.
56039         * tests/test-fprintf-posix.h: Likewise.
56040         * tests/test-fpurge.c: Likewise.
56041         * tests/test-freadable.c: Likewise.
56042         * tests/test-freadahead.c: Likewise.
56043         * tests/test-freading.c: Likewise.
56044         * tests/test-freopen.c: Likewise.
56045         * tests/test-frexp.c: Likewise.
56046         * tests/test-frexpl.c: Likewise.
56047         * tests/test-fseek.c: Likewise.
56048         * tests/test-fseeko.c: Likewise.
56049         * tests/test-fseterr.c: Likewise.
56050         * tests/test-fstrcmp.c: Likewise.
56051         * tests/test-ftell.c: Likewise.
56052         * tests/test-ftello.c: Likewise.
56053         * tests/test-fwritable.c: Likewise.
56054         * tests/test-fwriting.c: Likewise.
56055         * tests/test-getaddrinfo.c: Likewise.
56056         * tests/test-getpass.c: Likewise.
56057         * tests/test-gettimeofday.c: Likewise.
56058         * tests/test-hmac-md5.c: Likewise.
56059         * tests/test-hmac-sha1.c: Likewise.
56060         * tests/test-iconv.c: Likewise.
56061         * tests/test-iconvme.c: Likewise.
56062         * tests/test-inttypes.c: Likewise.
56063         * tests/test-isnan.c: Likewise.
56064         * tests/test-isnanf.c: Likewise.
56065         * tests/test-isnanl-nolibm.c: Likewise.
56066         * tests/test-isnanl.c: Likewise.
56067         * tests/test-isnanl.h: Likewise.
56068         * tests/test-ldexpl.c: Likewise.
56069         * tests/test-linked_list.c: Likewise.
56070         * tests/test-linkedhash_list.c: Likewise.
56071         * tests/test-locale.c: Likewise.
56072         * tests/test-localename.c: Likewise.
56073         * tests/test-lock.c: Likewise.
56074         * tests/test-lseek.c: Likewise.
56075         * tests/test-malloca.c: Likewise.
56076         * tests/test-math.c: Likewise.
56077         * tests/test-mbscasecmp.c: Likewise.
56078         * tests/test-mbscasestr1.c: Likewise.
56079         * tests/test-mbscasestr2.c: Likewise.
56080         * tests/test-mbscasestr3.c: Likewise.
56081         * tests/test-mbscasestr4.c: Likewise.
56082         * tests/test-mbschr.c: Likewise.
56083         * tests/test-mbscspn.c: Likewise.
56084         * tests/test-mbsncasecmp.c: Likewise.
56085         * tests/test-mbspbrk.c: Likewise.
56086         * tests/test-mbspcasecmp.c: Likewise.
56087         * tests/test-mbsrchr.c: Likewise.
56088         * tests/test-mbsspn.c: Likewise.
56089         * tests/test-mbsstr1.c: Likewise.
56090         * tests/test-mbsstr2.c: Likewise.
56091         * tests/test-mbsstr3.c: Likewise.
56092         * tests/test-md5.c: Likewise.
56093         * tests/test-memmem.c: Likewise.
56094         * tests/test-netinet_in.c: Likewise.
56095         * tests/test-open.c: Likewise.
56096         * tests/test-printf-frexp.c: Likewise.
56097         * tests/test-printf-frexpl.c: Likewise.
56098         * tests/test-printf-posix.c: Likewise.
56099         * tests/test-printf-posix.h: Likewise.
56100         * tests/test-rbtree_list.c: Likewise.
56101         * tests/test-rbtree_oset.c: Likewise.
56102         * tests/test-rbtreehash_list.c: Likewise.
56103         * tests/test-read-file.c: Likewise.
56104         * tests/test-rijndael.c: Likewise.
56105         * tests/test-search.c: Likewise.
56106         * tests/test-signbit.c: Likewise.
56107         * tests/test-sleep.c: Likewise.
56108         * tests/test-snprintf-posix.c: Likewise.
56109         * tests/test-snprintf-posix.h: Likewise.
56110         * tests/test-snprintf.c: Likewise.
56111         * tests/test-sprintf-posix.c: Likewise.
56112         * tests/test-sprintf-posix.h: Likewise.
56113         * tests/test-stat-time.c: Likewise.
56114         * tests/test-stdbool.c: Likewise.
56115         * tests/test-stdint.c: Likewise.
56116         * tests/test-stdio.c: Likewise.
56117         * tests/test-stdlib.c: Likewise.
56118         * tests/test-stpncpy.c: Likewise.
56119         * tests/test-strcasestr.c: Likewise.
56120         * tests/test-striconv.c: Likewise.
56121         * tests/test-striconveh.c: Likewise.
56122         * tests/test-striconveha.c: Likewise.
56123         * tests/test-string.c: Likewise.
56124         * tests/test-sys_select.c: Likewise.
56125         * tests/test-sys_socket.c: Likewise.
56126         * tests/test-sys_stat.c: Likewise.
56127         * tests/test-sys_time.c: Likewise.
56128         * tests/test-sysexits.c: Likewise.
56129         * tests/test-time.c: Likewise.
56130         * tests/test-tls.c: Likewise.
56131         * tests/test-trunc.c: Likewise.
56132         * tests/test-truncf.c: Likewise.
56133         * tests/test-truncl.c: Likewise.
56134         * tests/test-unistd.c: Likewise.
56135         * tests/test-vasnprintf-posix.c: Likewise.
56136         * tests/test-vasnprintf-posix2.c: Likewise.
56137         * tests/test-vasnprintf.c: Likewise.
56138         * tests/test-vasprintf-posix.c: Likewise.
56139         * tests/test-vasprintf.c: Likewise.
56140         * tests/test-verify.c: Likewise.
56141         * tests/test-vfprintf-posix.c: Likewise.
56142         * tests/test-vprintf-posix.c: Likewise.
56143         * tests/test-vsnprintf-posix.c: Likewise.
56144         * tests/test-vsnprintf.c: Likewise.
56145         * tests/test-vsprintf-posix.c: Likewise.
56146         * tests/test-wchar.c: Likewise.
56147         * tests/test-wctype.c: Likewise.
56148         * tests/test-wcwidth.c: Likewise.
56149         * tests/test-xstrtol.c: Likewise.
56150         * tests/test-xvasprintf.c: Likewise.
56151         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
56152         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
56153         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
56154         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
56155         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
56156         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
56157         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
56158         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
56159         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
56160         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
56161         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
56162         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
56163         * tests/uniname/test-uninames.c: Likewise.
56164         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
56165         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
56166         * tests/unistdio/test-u16-printf1.h: Likewise.
56167         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
56168         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
56169         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
56170         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
56171         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
56172         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
56173         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
56174         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
56175         * tests/unistdio/test-u32-printf1.h: Likewise.
56176         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
56177         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
56178         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
56179         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
56180         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
56181         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
56182         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
56183         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
56184         * tests/unistdio/test-u8-printf1.h: Likewise.
56185         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
56186         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
56187         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
56188         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
56189         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
56190         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
56191         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
56192         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
56193         * tests/unistdio/test-ulc-printf1.h: Likewise.
56194         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
56195         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
56196         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
56197         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
56198         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
56199         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
56200         * tests/uniwidth/test-u16-strwidth.c: Likewise.
56201         * tests/uniwidth/test-u16-width.c: Likewise.
56202         * tests/uniwidth/test-u32-strwidth.c: Likewise.
56203         * tests/uniwidth/test-u32-width.c: Likewise.
56204         * tests/uniwidth/test-u8-strwidth.c: Likewise.
56205         * tests/uniwidth/test-u8-width.c: Likewise.
56206         * tests/uniwidth/test-uc_width.c: Likewise.
56207         * config/srclist-update: Likewise.
56208         (fixlicense): Update to GPLv3+.
56209
56210         Change copyright notice from LGPLv2.1+ to LGPLv3+.
56211         * tests/test-tsearch.c: Change copyright notice.
56212
56213         Change copyright notice from LGPLv2.0+ to LGPLv3+.
56214         * lib/c-strcaseeq.h: Change copyright notice.
56215         * lib/streq.h: Likewise.
56216         * lib/uniconv.h: Likewise.
56217         * lib/uniconv/u-conv-from-enc.h: Likewise.
56218         * lib/uniconv/u-conv-to-enc.h: Likewise.
56219         * lib/uniconv/u-strconv-from-enc.h: Likewise.
56220         * lib/uniconv/u-strconv-to-enc.h: Likewise.
56221         * lib/uniconv/u16-conv-from-enc.c: Likewise.
56222         * lib/uniconv/u16-conv-to-enc.c: Likewise.
56223         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
56224         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
56225         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
56226         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
56227         * lib/uniconv/u32-conv-from-enc.c: Likewise.
56228         * lib/uniconv/u32-conv-to-enc.c: Likewise.
56229         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
56230         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
56231         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
56232         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
56233         * lib/uniconv/u8-conv-from-enc.c: Likewise.
56234         * lib/uniconv/u8-conv-to-enc.c: Likewise.
56235         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
56236         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
56237         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
56238         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
56239         * lib/uniname.h: Likewise.
56240         * lib/uniname/uniname.c: Likewise.
56241         * lib/unistdio.h: Likewise.
56242         * lib/unistdio/u-asnprintf.h: Likewise.
56243         * lib/unistdio/u-asprintf.h: Likewise.
56244         * lib/unistdio/u-printf-args.c: Likewise.
56245         * lib/unistdio/u-printf-args.h: Likewise.
56246         * lib/unistdio/u-printf-parse.h: Likewise.
56247         * lib/unistdio/u-snprintf.h: Likewise.
56248         * lib/unistdio/u-sprintf.h: Likewise.
56249         * lib/unistdio/u-vasprintf.h: Likewise.
56250         * lib/unistdio/u-vsnprintf.h: Likewise.
56251         * lib/unistdio/u-vsprintf.h: Likewise.
56252         * lib/unistdio/u16-asnprintf.c: Likewise.
56253         * lib/unistdio/u16-asprintf.c: Likewise.
56254         * lib/unistdio/u16-printf-parse.c: Likewise.
56255         * lib/unistdio/u16-snprintf.c: Likewise.
56256         * lib/unistdio/u16-sprintf.c: Likewise.
56257         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
56258         * lib/unistdio/u16-u16-asprintf.c: Likewise.
56259         * lib/unistdio/u16-u16-snprintf.c: Likewise.
56260         * lib/unistdio/u16-u16-sprintf.c: Likewise.
56261         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
56262         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
56263         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
56264         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
56265         * lib/unistdio/u16-vasnprintf.c: Likewise.
56266         * lib/unistdio/u16-vasprintf.c: Likewise.
56267         * lib/unistdio/u16-vsnprintf.c: Likewise.
56268         * lib/unistdio/u16-vsprintf.c: Likewise.
56269         * lib/unistdio/u32-asnprintf.c: Likewise.
56270         * lib/unistdio/u32-asprintf.c: Likewise.
56271         * lib/unistdio/u32-printf-parse.c: Likewise.
56272         * lib/unistdio/u32-snprintf.c: Likewise.
56273         * lib/unistdio/u32-sprintf.c: Likewise.
56274         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
56275         * lib/unistdio/u32-u32-asprintf.c: Likewise.
56276         * lib/unistdio/u32-u32-snprintf.c: Likewise.
56277         * lib/unistdio/u32-u32-sprintf.c: Likewise.
56278         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
56279         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
56280         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
56281         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
56282         * lib/unistdio/u32-vasnprintf.c: Likewise.
56283         * lib/unistdio/u32-vasprintf.c: Likewise.
56284         * lib/unistdio/u32-vsnprintf.c: Likewise.
56285         * lib/unistdio/u32-vsprintf.c: Likewise.
56286         * lib/unistdio/u8-asnprintf.c: Likewise.
56287         * lib/unistdio/u8-asprintf.c: Likewise.
56288         * lib/unistdio/u8-printf-parse.c: Likewise.
56289         * lib/unistdio/u8-snprintf.c: Likewise.
56290         * lib/unistdio/u8-sprintf.c: Likewise.
56291         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
56292         * lib/unistdio/u8-u8-asprintf.c: Likewise.
56293         * lib/unistdio/u8-u8-snprintf.c: Likewise.
56294         * lib/unistdio/u8-u8-sprintf.c: Likewise.
56295         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
56296         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
56297         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
56298         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
56299         * lib/unistdio/u8-vasnprintf.c: Likewise.
56300         * lib/unistdio/u8-vasprintf.c: Likewise.
56301         * lib/unistdio/u8-vsnprintf.c: Likewise.
56302         * lib/unistdio/u8-vsprintf.c: Likewise.
56303         * lib/unistdio/ulc-asnprintf.c: Likewise.
56304         * lib/unistdio/ulc-asprintf.c: Likewise.
56305         * lib/unistdio/ulc-printf-parse.c: Likewise.
56306         * lib/unistdio/ulc-snprintf.c: Likewise.
56307         * lib/unistdio/ulc-sprintf.c: Likewise.
56308         * lib/unistdio/ulc-vasnprintf.c: Likewise.
56309         * lib/unistdio/ulc-vasprintf.c: Likewise.
56310         * lib/unistdio/ulc-vsnprintf.c: Likewise.
56311         * lib/unistdio/ulc-vsprintf.c: Likewise.
56312         * lib/unistr.h: Likewise.
56313         * lib/unistr/u-cpy-alloc.h: Likewise.
56314         * lib/unistr/u-cpy.h: Likewise.
56315         * lib/unistr/u-endswith.h: Likewise.
56316         * lib/unistr/u-move.h: Likewise.
56317         * lib/unistr/u-set.h: Likewise.
56318         * lib/unistr/u-startswith.h: Likewise.
56319         * lib/unistr/u-stpcpy.h: Likewise.
56320         * lib/unistr/u-stpncpy.h: Likewise.
56321         * lib/unistr/u-strcat.h: Likewise.
56322         * lib/unistr/u-strcpy.h: Likewise.
56323         * lib/unistr/u-strcspn.h: Likewise.
56324         * lib/unistr/u-strdup.h: Likewise.
56325         * lib/unistr/u-strlen.h: Likewise.
56326         * lib/unistr/u-strncat.h: Likewise.
56327         * lib/unistr/u-strncpy.h: Likewise.
56328         * lib/unistr/u-strnlen.h: Likewise.
56329         * lib/unistr/u-strpbrk.h: Likewise.
56330         * lib/unistr/u-strspn.h: Likewise.
56331         * lib/unistr/u-strstr.h: Likewise.
56332         * lib/unistr/u-strtok.h: Likewise.
56333         * lib/unistr/u16-check.c: Likewise.
56334         * lib/unistr/u16-chr.c: Likewise.
56335         * lib/unistr/u16-cmp.c: Likewise.
56336         * lib/unistr/u16-cpy-alloc.c: Likewise.
56337         * lib/unistr/u16-cpy.c: Likewise.
56338         * lib/unistr/u16-endswith.c: Likewise.
56339         * lib/unistr/u16-mblen.c: Likewise.
56340         * lib/unistr/u16-mbsnlen.c: Likewise.
56341         * lib/unistr/u16-mbtouc-aux.c: Likewise.
56342         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
56343         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
56344         * lib/unistr/u16-mbtouc.c: Likewise.
56345         * lib/unistr/u16-mbtoucr.c: Likewise.
56346         * lib/unistr/u16-move.c: Likewise.
56347         * lib/unistr/u16-next.c: Likewise.
56348         * lib/unistr/u16-prev.c: Likewise.
56349         * lib/unistr/u16-set.c: Likewise.
56350         * lib/unistr/u16-startswith.c: Likewise.
56351         * lib/unistr/u16-stpcpy.c: Likewise.
56352         * lib/unistr/u16-stpncpy.c: Likewise.
56353         * lib/unistr/u16-strcat.c: Likewise.
56354         * lib/unistr/u16-strchr.c: Likewise.
56355         * lib/unistr/u16-strcmp.c: Likewise.
56356         * lib/unistr/u16-strcpy.c: Likewise.
56357         * lib/unistr/u16-strcspn.c: Likewise.
56358         * lib/unistr/u16-strdup.c: Likewise.
56359         * lib/unistr/u16-strlen.c: Likewise.
56360         * lib/unistr/u16-strmblen.c: Likewise.
56361         * lib/unistr/u16-strmbtouc.c: Likewise.
56362         * lib/unistr/u16-strncat.c: Likewise.
56363         * lib/unistr/u16-strncmp.c: Likewise.
56364         * lib/unistr/u16-strncpy.c: Likewise.
56365         * lib/unistr/u16-strnlen.c: Likewise.
56366         * lib/unistr/u16-strpbrk.c: Likewise.
56367         * lib/unistr/u16-strrchr.c: Likewise.
56368         * lib/unistr/u16-strspn.c: Likewise.
56369         * lib/unistr/u16-strstr.c: Likewise.
56370         * lib/unistr/u16-strtok.c: Likewise.
56371         * lib/unistr/u16-to-u32.c: Likewise.
56372         * lib/unistr/u16-to-u8.c: Likewise.
56373         * lib/unistr/u16-uctomb-aux.c: Likewise.
56374         * lib/unistr/u16-uctomb.c: Likewise.
56375         * lib/unistr/u32-check.c: Likewise.
56376         * lib/unistr/u32-chr.c: Likewise.
56377         * lib/unistr/u32-cmp.c: Likewise.
56378         * lib/unistr/u32-cpy-alloc.c: Likewise.
56379         * lib/unistr/u32-cpy.c: Likewise.
56380         * lib/unistr/u32-endswith.c: Likewise.
56381         * lib/unistr/u32-mblen.c: Likewise.
56382         * lib/unistr/u32-mbsnlen.c: Likewise.
56383         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
56384         * lib/unistr/u32-mbtouc.c: Likewise.
56385         * lib/unistr/u32-mbtoucr.c: Likewise.
56386         * lib/unistr/u32-move.c: Likewise.
56387         * lib/unistr/u32-next.c: Likewise.
56388         * lib/unistr/u32-prev.c: Likewise.
56389         * lib/unistr/u32-set.c: Likewise.
56390         * lib/unistr/u32-startswith.c: Likewise.
56391         * lib/unistr/u32-stpcpy.c: Likewise.
56392         * lib/unistr/u32-stpncpy.c: Likewise.
56393         * lib/unistr/u32-strcat.c: Likewise.
56394         * lib/unistr/u32-strchr.c: Likewise.
56395         * lib/unistr/u32-strcmp.c: Likewise.
56396         * lib/unistr/u32-strcpy.c: Likewise.
56397         * lib/unistr/u32-strcspn.c: Likewise.
56398         * lib/unistr/u32-strdup.c: Likewise.
56399         * lib/unistr/u32-strlen.c: Likewise.
56400         * lib/unistr/u32-strmblen.c: Likewise.
56401         * lib/unistr/u32-strmbtouc.c: Likewise.
56402         * lib/unistr/u32-strncat.c: Likewise.
56403         * lib/unistr/u32-strncmp.c: Likewise.
56404         * lib/unistr/u32-strncpy.c: Likewise.
56405         * lib/unistr/u32-strnlen.c: Likewise.
56406         * lib/unistr/u32-strpbrk.c: Likewise.
56407         * lib/unistr/u32-strrchr.c: Likewise.
56408         * lib/unistr/u32-strspn.c: Likewise.
56409         * lib/unistr/u32-strstr.c: Likewise.
56410         * lib/unistr/u32-strtok.c: Likewise.
56411         * lib/unistr/u32-to-u16.c: Likewise.
56412         * lib/unistr/u32-to-u8.c: Likewise.
56413         * lib/unistr/u32-uctomb.c: Likewise.
56414         * lib/unistr/u8-check.c: Likewise.
56415         * lib/unistr/u8-chr.c: Likewise.
56416         * lib/unistr/u8-cmp.c: Likewise.
56417         * lib/unistr/u8-cpy-alloc.c: Likewise.
56418         * lib/unistr/u8-cpy.c: Likewise.
56419         * lib/unistr/u8-endswith.c: Likewise.
56420         * lib/unistr/u8-mblen.c: Likewise.
56421         * lib/unistr/u8-mbsnlen.c: Likewise.
56422         * lib/unistr/u8-mbtouc-aux.c: Likewise.
56423         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
56424         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
56425         * lib/unistr/u8-mbtouc.c: Likewise.
56426         * lib/unistr/u8-mbtoucr.c: Likewise.
56427         * lib/unistr/u8-move.c: Likewise.
56428         * lib/unistr/u8-next.c: Likewise.
56429         * lib/unistr/u8-prev.c: Likewise.
56430         * lib/unistr/u8-set.c: Likewise.
56431         * lib/unistr/u8-startswith.c: Likewise.
56432         * lib/unistr/u8-stpcpy.c: Likewise.
56433         * lib/unistr/u8-stpncpy.c: Likewise.
56434         * lib/unistr/u8-strcat.c: Likewise.
56435         * lib/unistr/u8-strchr.c: Likewise.
56436         * lib/unistr/u8-strcmp.c: Likewise.
56437         * lib/unistr/u8-strcpy.c: Likewise.
56438         * lib/unistr/u8-strcspn.c: Likewise.
56439         * lib/unistr/u8-strdup.c: Likewise.
56440         * lib/unistr/u8-strlen.c: Likewise.
56441         * lib/unistr/u8-strmblen.c: Likewise.
56442         * lib/unistr/u8-strmbtouc.c: Likewise.
56443         * lib/unistr/u8-strncat.c: Likewise.
56444         * lib/unistr/u8-strncmp.c: Likewise.
56445         * lib/unistr/u8-strncpy.c: Likewise.
56446         * lib/unistr/u8-strnlen.c: Likewise.
56447         * lib/unistr/u8-strpbrk.c: Likewise.
56448         * lib/unistr/u8-strrchr.c: Likewise.
56449         * lib/unistr/u8-strspn.c: Likewise.
56450         * lib/unistr/u8-strstr.c: Likewise.
56451         * lib/unistr/u8-strtok.c: Likewise.
56452         * lib/unistr/u8-to-u16.c: Likewise.
56453         * lib/unistr/u8-to-u32.c: Likewise.
56454         * lib/unistr/u8-uctomb-aux.c: Likewise.
56455         * lib/unistr/u8-uctomb.c: Likewise.
56456         * lib/unitypes.h: Likewise.
56457         * lib/uniwidth.h: Likewise.
56458         * lib/uniwidth/cjk.h: Likewise.
56459         * lib/uniwidth/u16-strwidth.c: Likewise.
56460         * lib/uniwidth/u16-width.c: Likewise.
56461         * lib/uniwidth/u32-strwidth.c: Likewise.
56462         * lib/uniwidth/u32-width.c: Likewise.
56463         * lib/uniwidth/u8-strwidth.c: Likewise.
56464         * lib/uniwidth/u8-width.c: Likewise.
56465         * lib/uniwidth/width.c: Likewise.
56466
56467 2007-10-07  Bruno Haible  <bruno@clisp.org>
56468
56469         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
56470         The file is still under LGPL (see modules/inttypes).
56471
56472 2007-10-06  Bruno Haible  <bruno@clisp.org>
56473
56474         * modules/trunc (Dependencies): Add 'extensions'.
56475         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
56476         Reported by Ben Pfaff <blp@gnu.org>.
56477
56478 2007-10-06  Bruno Haible  <bruno@clisp.org>
56479
56480         * modules/freopen-tests: New file.
56481         * tests/test-freopen.c: New file.
56482
56483         * modules/fopen-tests: New file.
56484         * tests/test-fopen.c: New file.
56485
56486         * modules/fopen: New file.
56487         * lib/fopen.c: New file.
56488         * m4/fopen.m4: New file.
56489         * modules/freopen: New file.
56490         * lib/freopen.c: New file.
56491         * m4/freopen.m4: New file.
56492         * lib/stdio.in.h (fopen, freopen): New declarations.
56493         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
56494         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
56495         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
56496         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
56497         * doc/functions/fopen.texi: Mention the 'fopen' module.
56498         * doc/functions/freopen.texi: Mention the 'freopen' module.
56499
56500 2007-10-06  Bruno Haible  <bruno@clisp.org>
56501
56502         * modules/open-tests: New file.
56503         * tests/test-open.c: New file.
56504
56505         * modules/open: New file.
56506         * lib/open.c: New file.
56507         * m4/open.m4: New file.
56508         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
56509         lib/open.c does.
56510         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
56511         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
56512         macros.
56513         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
56514         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
56515         REPLACE_OPEN.
56516         * doc/functions/open.texi: Mention the 'open' module.
56517
56518 2007-10-04  Bruno Haible  <bruno@clisp.org>
56519
56520         * modules/ceill-tests: New file.
56521         * tests/test-ceill.c: New file.
56522
56523         * modules/ceill: New file.
56524         * lib/ceill.c: Replace entire file.
56525         * m4/ceill.m4: New file.
56526         * lib/math.in.h (ceill): Replace declaration.
56527         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
56528         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
56529         * doc/functions/ceill.texi: Mention the 'ceill' module.
56530         * modules/mathl (Files): Remove lib/ceill.c.
56531         (Depends-on): Add ceill.
56532
56533 2007-10-04  Bruno Haible  <bruno@clisp.org>
56534
56535         * modules/ceilf-tests: New file.
56536         * tests/test-ceilf.c: New file.
56537
56538         * modules/ceilf: New file.
56539         * lib/ceil.c: New file.
56540         * lib/ceilf.c: New file.
56541         * m4/ceilf.m4: New file.
56542         * lib/math.in.h (ceilf): New declaration.
56543         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
56544         HAVE_DECL_CEILF.
56545         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
56546         HAVE_DECL_CEILF.
56547         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
56548
56549 2007-10-04  Bruno Haible  <bruno@clisp.org>
56550
56551         * modules/floorl-tests: New file.
56552         * tests/test-floorl.c: New file.
56553
56554         * modules/floorl: New file.
56555         * lib/floorl.c: Replace entire file.
56556         * m4/floorl.m4: New file.
56557         * lib/math.in.h (floorl): Replace declaration.
56558         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
56559         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
56560         * doc/functions/floorl.texi: Mention the 'floorl' module.
56561         * modules/mathl (Files): Remove lib/floorl.c.
56562         (Depends-on): Add floorl.
56563
56564 2007-10-04  Bruno Haible  <bruno@clisp.org>
56565
56566         * modules/floorf-tests: New file.
56567         * tests/test-floorf.c: New file.
56568
56569         * modules/floorf: New file.
56570         * lib/floor.c: New file.
56571         * lib/floorf.c: New file.
56572         * m4/floorf.m4: New file.
56573         * lib/math.in.h (floorf): New declaration.
56574         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
56575         HAVE_DECL_FLOORF.
56576         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
56577         HAVE_DECL_FLOORF.
56578         * doc/functions/floorf.texi: Mention the 'floorf' module.
56579
56580 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
56581             Bruno Haible  <bruno@clisp.org>
56582
56583         Advertise for the Git server instead of the CVS server.
56584         * doc/gnulib-intro.texi (Steady Development): Mention the Git
56585         repository instead of the CVS one.
56586         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
56587         about all VCS systems generically.
56588         * doc/gnulib.texi (Introduction): Capitalize `Git'.
56589
56590 2007-10-04  Bruno Haible  <bruno@clisp.org>
56591
56592         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
56593         means.
56594         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
56595
56596 2007-10-04  Bruno Haible  <bruno@clisp.org>
56597
56598         * modules/truncl-tests: New file.
56599         * tests/test-truncl.c: New file.
56600
56601         * modules/truncl: New file.
56602         * lib/truncl.c: New file.
56603         * m4/truncl.m4: New file.
56604         * lib/math.in.h (truncl): New declaration.
56605         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
56606         HAVE_DECL_TRUNCL.
56607         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
56608         HAVE_DECL_TRUNCL.
56609         * doc/functions/truncl.texi: Mention the 'truncl' module.
56610
56611 2007-10-04  Bruno Haible  <bruno@clisp.org>
56612
56613         * modules/truncf-tests: New file.
56614         * tests/test-truncf.c: New file.
56615
56616         * modules/truncf: New file.
56617         * lib/trunc.c: Make paramerizable through USE_* macros.
56618         * lib/truncf.c: New file.
56619         * m4/truncf.m4: New file.
56620         * lib/math.in.h (truncf): New declaration.
56621         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
56622         HAVE_DECL_TRUNCF.
56623         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
56624         HAVE_DECL_TRUNCF.
56625         * doc/functions/truncf.texi: Mention the 'truncf' module.
56626
56627 2007-10-03  Bruno Haible  <bruno@clisp.org>
56628
56629         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
56630         augmentation also for tests modules.
56631         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
56632         * modules/atexit-tests (Makefile.am): Likewise.
56633         * modules/binary-io-tests (Makefile.am): Likewise.
56634         * modules/c-strcase-tests (Makefile.am): Likewise.
56635         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
56636         * modules/canonicalize-tests (Makefile.am): Likewise.
56637         * modules/closein-tests (Makefile.am): Likewise.
56638         * modules/fprintf-posix-tests (Makefile.am): Likewise.
56639         * modules/freadahead-tests (Makefile.am): Likewise.
56640         * modules/fseek-tests (Makefile.am): Likewise.
56641         * modules/fseeko-tests (Makefile.am): Likewise.
56642         * modules/ftell-tests (Makefile.am): Likewise.
56643         * modules/ftello-tests (Makefile.am): Likewise.
56644         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
56645         * modules/isnanl-tests (Makefile.am): Likewise.
56646         * modules/lseek-tests (Makefile.am): Likewise.
56647         * modules/mbscasecmp-tests (Makefile.am): Likewise.
56648         * modules/mbscasestr-tests (Makefile.am): Likewise.
56649         * modules/mbschr-tests (Makefile.am): Likewise.
56650         * modules/mbscspn-tests (Makefile.am): Likewise.
56651         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
56652         * modules/mbspbrk-tests (Makefile.am): Likewise.
56653         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
56654         * modules/mbsrchr-tests (Makefile.am): Likewise.
56655         * modules/mbsspn-tests (Makefile.am): Likewise.
56656         * modules/mbsstr-tests (Makefile.am): Likewise.
56657         * modules/printf-posix-tests (Makefile.am): Likewise.
56658         * modules/snprintf-posix-tests (Makefile.am): Likewise.
56659         * modules/sprintf-posix-tests (Makefile.am): Likewise.
56660         * modules/tsearch-tests (Makefile.am): Likewise.
56661         * modules/uniname/uniname-tests (Makefile.am): Likewise.
56662         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
56663         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
56664         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
56665         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
56666         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
56667         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
56668         * modules/vprintf-posix-tests (Makefile.am): Likewise.
56669         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
56670         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
56671         * modules/xstrtoimax-tests (Makefile.am): Likewise.
56672         * modules/xstrtol-tests (Makefile.am): Likewise.
56673         * modules/xstrtoumax-tests (Makefile.am): Likewise.
56674         * modules/yesno-tests (Makefile.am): Likewise.
56675
56676 2007-10-03  Bruno Haible  <bruno@clisp.org>
56677
56678         * modules/trunc-tests: New file.
56679         * tests/test-trunc.c: New file.
56680
56681         * modules/trunc: New file.
56682         * lib/trunc.c: New file.
56683         * m4/trunc.m4: New file.
56684         * lib/math.in.h (trunc): New declaration.
56685         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
56686         HAVE_DECL_TRUNC.
56687         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
56688         HAVE_DECL_TRUNC.
56689         * doc/functions/trunc.texi: Mention the 'trunc' module.
56690
56691 2007-10-03  Bruno Haible  <bruno@clisp.org>
56692
56693         * tests/test-fpending.c: New file, mostly copied
56694         from coreutils/lib/t-fpending.c.
56695         * modules/fpending-tests: New file.
56696
56697 2007-10-03  Bruno Haible  <bruno@clisp.org>
56698
56699         Port the stdio extensions to QNX (untested).
56700         * lib/fseterr.c (fseterr): Add support for QNX.
56701         * lib/fbufmode.c (fbufmode): Likewise.
56702         * lib/freadable.c (freadable): Likewise.
56703         * lib/fwritable.c (fwritable): Likewise.
56704         * lib/freading.c (freading): Likewise.
56705         * lib/fwriting.c (fwriting): Likewise.
56706         * lib/freadahead.c (freadahed): Likewise.
56707         * lib/fpurge.c (fpurge): Likewise.
56708         * lib/fseeko.c (rpl_fseeko): Likewise.
56709
56710 2007-10-03  Bruno Haible  <bruno@clisp.org>
56711             Jim Meyering  <jim@meyering.net>
56712             Eric Blake  <ebb9@byu.net>
56713
56714         * doc/relocatable.texi: Use @command instead of @program.
56715
56716 2007-10-02  Jim Meyering  <jim@meyering.net>
56717
56718         Perform one more "_.h" -> ".in.h" substitution.
56719         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
56720         instead of unistd_.h here, too.
56721
56722 2007-10-01  Bruno Haible  <bruno@clisp.org>
56723
56724         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
56725         Needed for the alloca-opt module.
56726
56727 2007-09-30  Bruno Haible  <bruno@clisp.org>
56728
56729         * lib/alloca.in.h: Renamed from lib/alloca_.h.
56730         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
56731         alloca_.h.
56732         * lib/argz.in.h: Renamed from lib/argz_.h.
56733         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
56734         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
56735         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
56736         byteswap_.h.
56737         * lib/dirent.in.h: Renamed from lib/dirent_.h.
56738         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
56739         dirent_.h.
56740         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
56741         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
56742         fcntl_.h.
56743         * lib/float.in.h: Renamed from lib/float_.h.
56744         * modules/float (Files, Makefile.am): Use float.in.h instead of
56745         float_.h.
56746         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
56747         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
56748         fnmatch_.h.
56749         * lib/getopt.in.h: Renamed from lib/getopt_.h.
56750         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
56751         getopt_.h.
56752         * lib/glob.in.h: Renamed from lib/glob_.h.
56753         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
56754         * lib/iconv.in.h: Renamed from lib/iconv_.h.
56755         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
56756         iconv_.h.
56757         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
56758         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
56759         inttypes_.h.
56760         * lib/locale.in.h: Renamed from lib/locale_.h.
56761         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
56762         locale_.h.
56763         * lib/math.in.h: Renamed from lib/math_.h.
56764         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
56765         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
56766         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
56767         of netinet_in_.h. Add dependency.
56768         * lib/poll.in.h: Renamed from lib/poll_.h.
56769         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
56770         * lib/search.in.h: Renamed from lib/search_.h.
56771         * modules/search (Files, Makefile.am): Use search.in.h instead of
56772         search_.h.
56773         * lib/signal.in.h: Renamed from lib/signal_.h.
56774         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
56775         _signal.h.
56776         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
56777         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
56778         stdbool_.h.
56779         * lib/stdint.in.h: Renamed from lib/stdint_.h.
56780         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
56781         stdint_.h.
56782         * lib/stdio.in.h: Renamed from lib/stdio_.h.
56783         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
56784         stdio_.h.
56785         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
56786         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
56787         stdlib_.h.
56788         * lib/string.in.h: Renamed from lib/string_.h.
56789         * modules/string (Files, Makefile.am): Use string.in.h instead of
56790         string_.h.
56791         * doc/gnulib-tool.texi (Initial import): Update.
56792         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
56793         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
56794         of sys_select_.h. Add dependency.
56795         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
56796         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
56797         of sys_socket_.h.
56798         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
56799         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
56800         sys_stat_.h.
56801         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
56802         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
56803         sys_time_.h.
56804         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
56805         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
56806         sysexits_.h.
56807         * lib/time.in.h: Renamed from lib/time_.h.
56808         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
56809         * lib/unistd.in.h: Renamed from lib/unistd_.h.
56810         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
56811         unistd_.h.
56812         * lib/wchar.in.h: Renamed from lib/wchar_.h.
56813         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
56814         wchar_.h.
56815         * lib/wctype.in.h: Renamed from lib/wctype_.h.
56816         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
56817         wctype_.h.
56818         * build-aux/bootstrap (slurp): Update.
56819         * lib/.cppi-disable: Update.
56820
56821 2007-09-30  Bruno Haible  <bruno@clisp.org>
56822
56823         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
56824         Needed on BeOS.
56825
56826 2007-09-30  Bruno Haible  <bruno@clisp.org>
56827
56828         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
56829
56830 2007-09-29  Bruno Haible  <bruno@clisp.org>
56831
56832         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
56833
56834 2007-09-29  Bruno Haible  <bruno@clisp.org>
56835
56836         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
56837         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
56838         * build-aux/install-reloc: Compile also areadlink.c.
56839         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
56840
56841 2007-09-29  Bruno Haible  <bruno@clisp.org>
56842
56843         * gnulib-tool (func_emit_initmacro_done): Indentation.
56844
56845 2007-09-29  Bruno Haible  <bruno@clisp.org>
56846
56847         * README: Add CVS checkout update instructions.
56848         Info from Bob Proulx <bob@proulx.com>.
56849
56850 2007-09-28  Eric Blake  <ebb9@byu.net>
56851
56852         Provide move-if-change.
56853         * build-aux/move-if-change: New file, based on best practice
56854         rather than any canonical upstream location.
56855
56856 2007-09-28  Jim Meyering  <jim@meyering.net>
56857
56858         Fix canonicalize loop-detection corner case.
56859         Do not attempt to stat the symlink values stored via seen_triple.
56860         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
56861         on linux-2.6.18, (but not 2.6.22).
56862         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
56863         triple_compare.  The former compares dev,ino,filename, while the latter
56864         would actually stat dirname(filename) when dev and ino were equal.
56865         * lib/hash-triple.c: Install <string.h>.
56866         (STREQ): Define.
56867         (triple_compare_ino_str): New function.
56868         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
56869
56870 2007-09-28  Eric Blake  <ebb9@byu.net>
56871
56872         Enforce that AC_REPLACE_FUNCS files exist.
56873         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
56874         override check for typos.
56875
56876         Fix test-closein on Solaris 10.
56877         * tests/test-closein.c (main): Don't assume stdin can be inherited
56878         closed on all systems.
56879         * tests/test-closein.sh: Likewise.
56880         Reported by Piotr Tarnowski.
56881
56882 2007-09-28  Jim Meyering  <jim@meyering.net>
56883
56884         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
56885
56886 2007-09-27  Jim Meyering  <jim@meyering.net>
56887
56888         canonicalize: Avoid a false-positive cycle failure.
56889         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
56890         Sort.  Remove cycle-check.
56891         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
56892         not cycle-check.h.
56893         (seen_triple): New function.
56894         (canonicalize_filename_mode): Use it instead of cycle-check.
56895         * tests/test-canonicalize.c: Add a test for this bug.
56896         * tests/test-canonicalize.sh: Set up and run the test.
56897
56898         New module, file-set, from coreutils.
56899         * modules/file-set: Define it.
56900         * lib/file-set.c, lib/file-set.h: Implement.
56901
56902         New module, hash-triple, from coreutils.
56903         * modules/hash-triple: Define it.
56904         * lib/hash-triple.c, lib/hash-triple.h: Implement.
56905
56906 2007-09-25  Eric Blake  <ebb9@byu.net>
56907
56908         Fix strerror on Interix.
56909         * lib/string_.h (strerror): Declare replacement.
56910         * doc/functions/strerror.texi (strerror): Document the Interix
56911         shortcoming.
56912         * modules/string (Makefile.am): Support new hooks.
56913         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
56914         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
56915         gl_FUNC_STRERROR_SEPARATE.
56916         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
56917         * lib/strerror.c (rpl_strerror): Provide replacement.
56918         * modules/strerror (Depends-on): Add string.
56919         (configure.ac): Detect use of module.
56920         * tests/test-strerror.c: New file.
56921         * modules/strerror-tests: New test module.
56922         * modules/argp (Depends-on): Add strerror.
56923         * modules/error (Depends-on): Likewise.
56924         Reported by Martin Koeppe.
56925
56926 2007-09-24  Bruno Haible  <bruno@clisp.org>
56927
56928         * README: Update git instructions.
56929
56930 2007-09-24  Eric Blake  <ebb9@byu.net>
56931
56932         Revert fpending breakage from 2007-09-08.
56933         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
56934         __fpending.c.
56935
56936 2007-09-24  Jim Meyering  <jim@meyering.net>
56937
56938         filenamecat.c: Add a test.
56939         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
56940         showing how the function works when DIR is the empty string.
56941
56942 2007-09-21  Simon Josefsson  <simon@josefsson.org>
56943
56944         * tests/test-canonicalize.sh: Turn on executable bit.
56945
56946 2007-09-19  Eric Blake  <ebb9@byu.net>
56947
56948         * README: Update CVS instructions.
56949
56950 2007-09-18  Bruno Haible  <bruno@clisp.org>
56951
56952         * modules/areadlink: New file.
56953         * lib/areadlink.h (areadlink): New declaration.
56954         * lib/areadlink.c: New file, based on lib/xreadlink.c.
56955
56956 2007-09-17  Jim Meyering  <jim@meyering.net>
56957
56958         * lib/savewd.c (ESTALE) [!defined]: Define.
56959         Reported to be required on Interix by Martin Koeppe.
56960
56961 2007-09-17  Bruno Haible  <bruno@clisp.org>
56962
56963         * gnulib-tool (func_version): Use $version.
56964
56965 2007-09-16  Bruno Haible  <bruno@clisp.org>
56966
56967         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
56968         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
56969         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
56970         Reported by Greg Schafer <gschafer@zip.com.au>.
56971
56972 2007-09-15  Bruno Haible  <bruno@clisp.org>
56973
56974         * gnulib-tool (sed): Try a little harder to make bash understand the
56975         alias.
56976         Reported by Bruce Korb <bruce.korb@gmail.com>.
56977
56978 2007-09-13  Eric Blake  <ebb9@byu.net>
56979
56980         * ChangeLog: Remove conflict markers.
56981
56982 2007-09-13  Simon Josefsson  <simon@josefsson.org>
56983
56984         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
56985         Reported by Bruno Haible <bruno@clisp.org>.
56986
56987 2007-09-12  Bruno Haible  <bruno@clisp.org>
56988
56989         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
56990         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
56991         is not defined.
56992
56993 2007-09-12  Eric Blake  <ebb9@byu.net>
56994
56995         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
56996         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
56997         Autoconf definition.
56998         * modules/euidaccess (Depends-on): Add extensions, for
56999         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
57000         * modules/fnmatch (Depends-on): Likewise.
57001         * modules/getaddrinfo (Depends-on): Likewise.
57002         * modules/getdelim (Depends-on): Likewise.
57003         * modules/getline (Depends-on): Likewise.
57004         * modules/getsubopt (Depends-on): Likewise.
57005         * modules/gettext (Depends-on): Likewise.
57006         * modules/group-member (Depends-on): Likewise.
57007         * modules/mbchar (Depends-on): Likewise.
57008         * modules/memmem (Depends-on): Likewise.
57009         * modules/mempcpy (Depends-on): Likewise.
57010         * modules/memrchr (Depends-on): Likewise.
57011         * modules/pagealign_alloc (Depends-on): Likewise.
57012         * modules/readutmp (Depends-on): Likewise.
57013         * modules/stpcpy (Depends-on): Likewise.
57014         * modules/stpncpy (Depends-on): Likewise.
57015         * modules/strchrnul (Depends-on): Likewise.
57016         * modules/strndup (Depends-on): Likewise.
57017         * modules/strsep (Depends-on): Likewise.
57018         * modules/strverscmp (Depends-on): Likewise.
57019         * modules/vasprintf (Depends-on): Likewise.
57020         * modules/wcwidth (Depends-on): Likewise.
57021         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
57022         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
57023         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
57024         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
57025         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
57026         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
57027         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
57028         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
57029         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
57030         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
57031         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
57032         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
57033         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
57034         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
57035         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
57036         * m4/readutmp.m4 (gl_READUTMP): Likewise.
57037         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
57038         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
57039         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
57040         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
57041         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
57042         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
57043         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
57044         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
57045         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
57046         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
57047         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
57048         so that lock.m4 can be used in gettext without extensions module.
57049
57050 2007-09-11  Bruno Haible  <bruno@clisp.org>
57051
57052         * m4/isc-posix.m4: Remove file.
57053         Suggested by Eric Blake.
57054
57055 2007-09-11  Eric Blake  <ebb9@byu.net>
57056
57057         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
57058
57059 2007-09-10  Bruno Haible  <bruno@clisp.org>
57060
57061         * posix-modules: Fix typo in error message.
57062         Reported by Matt <mkraai@beckman.com>.
57063
57064 2007-09-09  Bruno Haible  <bruno@clisp.org>
57065
57066         * doc/functions/getdelim.texi: Update list of platforms lacking the
57067         function.
57068         * doc/functions/getline.texi: Likewise.
57069
57070 2007-09-09  Jim Meyering  <jim@meyering.net>
57071
57072         * lib/hash.c (hash_initialize): Detect calloc failure.
57073         Reported by Bruno Haible.
57074
57075 2007-09-09  Bruno Haible  <bruno@clisp.org>
57076
57077         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
57078         malloc or realloc fails.
57079
57080 2007-09-09  Bruno Haible  <bruno@clisp.org>
57081
57082         * modules/getcwd (Depends-on): Add malloc-posix.
57083         * modules/glob (Depends-on): Likewise.
57084         * modules/putenv (Depends-on): Likewise.
57085         * modules/strdup (Depends-on): Likewise.
57086         * modules/getdelim (Depends-on): Add realloc-posix.
57087         * modules/read-file (Depends-on): Likewise.
57088
57089 2007-09-09  Bruno Haible  <bruno@clisp.org>
57090
57091         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
57092         (gl_FUNC_MALLOC_POSIX): Require it.
57093         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
57094         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
57095         * modules/realloc (Files): Add m4/malloc.m4.
57096         * modules/calloc (Files): Likewise.
57097
57098 2007-09-09  Bruno Haible  <bruno@clisp.org>
57099
57100         * modules/malloc-posix: New file.
57101         * modules/malloc (Depends-on): Add malloc-posix.
57102         * lib/malloc.c: Include errno.h.
57103         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
57104         and a POSIX-compatible malloc into a single function. Set ENOMEM
57105         when returning NULL.
57106         * m4/malloc.m4: New file.
57107         * doc/functions/malloc.texi: Mention the malloc-posix module.
57108         * lib/stdlib_.h (malloc): New declaration.
57109         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
57110         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
57111         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
57112         and HAVE_MALLOC_POSIX.
57113
57114 2007-09-09  Bruno Haible  <bruno@clisp.org>
57115
57116         * modules/realloc-posix: New file.
57117         * modules/realloc (Depends-on): Add realloc-posix.
57118         * lib/realloc.c: Include errno.h.
57119         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
57120         and a POSIX-compatible realloc into a single function. Set ENOMEM
57121         when returning NULL.
57122         * m4/realloc.m4: New file.
57123         * doc/functions/realloc.texi: Mention the realloc-posix module.
57124         * lib/stdlib_.h (realloc): New declaration.
57125         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
57126         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
57127         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
57128         and HAVE_REALLOC_POSIX.
57129
57130 2007-09-09  Bruno Haible  <bruno@clisp.org>
57131
57132         * modules/calloc-posix: New file.
57133         * modules/calloc (Depends-on): Add calloc-posix.
57134         * lib/calloc.c: Include errno.h.
57135         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
57136         and a POSIX-compatible calloc into a single function. Set ENOMEM
57137         when returning NULL.
57138         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
57139         * doc/functions/calloc.texi: Mention the calloc-posix module.
57140         * lib/stdlib_.h (calloc): New declaration.
57141         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
57142         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
57143         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
57144         and HAVE_CALLOC_POSIX.
57145
57146 2007-09-09  Bruno Haible  <bruno@clisp.org>
57147
57148         Allow for modules to show an arbitrary notice.
57149         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
57150         * gnulib-tool: New option --extract-notice.
57151         (func_usage): Document it.
57152         (sed_extract_prog): Update.
57153         (func_get_notice): New function.
57154         (func_modules_notice): New function.
57155         (func_import, func_create_testdir): Invoke it.
57156         Suggested by Jim Meyering.
57157
57158 2007-09-09  Bruno Haible  <bruno@clisp.org>
57159
57160         * gnulib-tool: New options --verbose, --quiet.
57161         (func_usage): Document them.
57162         (verbose): New variable.
57163         (func_execute_command): New function.
57164         (func_import): Don't show the module list and the file list if
57165         $verbose < 0.
57166         (func_create_testdir): Likewise. Use func_execute_command.
57167         (func_create_megatestdir): Use func_execute_command.
57168
57169 2007-09-08  Bruno Haible  <bruno@clisp.org>
57170
57171         * gnulib-tool (func_import): Prefer rsync over wget when available,
57172         for fetching the PO files.
57173
57174 2007-09-08  Bruno Haible  <bruno@clisp.org>
57175
57176         * posix-modules: New file. Portions copied from gnulib-tool.
57177         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
57178
57179 2007-09-08  Jim Meyering  <jim@meyering.net>
57180
57181         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
57182         * lib/fpending.h: Rename from __fpending.h.
57183         * lib/fpending.c: Rename from __fpending.c.
57184         Include "fpending.h", not "__fpending.h".
57185         * lib/__fpending.h, lib/__fpending.c: Remove files.
57186         * modules/fpending (Files): Reflect new file names.
57187         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
57188
57189 2007-09-08  Bruno Haible  <bruno@clisp.org>
57190
57191         * m4/inttypes-h.m4: Remove stub file.
57192
57193 2007-09-07  Simon Josefsson  <simon@josefsson.org>
57194
57195         * doc/headers/stdint.texi: Discuss #include_next issue.
57196
57197 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
57198
57199         * build-aux/bootstrap: Remove obsolete comment about wget --help.
57200
57201 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57202
57203         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
57204         in variable name.
57205
57206 2007-09-03  Jim Meyering  <jim@meyering.net>
57207
57208         New module: git-version-gen.
57209         * modules/git-version-gen: New file.
57210
57211         Import changes from coreutils for bootstrap script.
57212
57213         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
57214
57215         bootstrap: uses rsync to download the .po files
57216         * build-aux/bootstrap (po_download_command_format): New global.
57217         (download_po_files): Use rsync.
57218         (update_po_files): Don't remove .po files after download,
57219         so future rsync runs can take advantage of the copies.
57220
57221         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
57222
57223         Solve the unnecessary-.po-file-regeneration problem once and for all.
57224         * build-aux/bootstrap (download_po_files): New function, renamed from
57225         get_translations.  Now, downloads, but doesn't update LINGUAS.
57226         (update_po_files): New function.
57227
57228         bootstrap: Ignore more.
57229         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
57230         uniwidth to e.g., lib/.gitignore.
57231         (slurp): Handle the sys_stat_.h -> sys mapping, too.
57232
57233         * build-aux/bootstrap: New setting: vc_ignore.
57234         (insert_sorted_if_absent): Create $file if absent.
57235         Adapt to new, possibly empty, list: $vc_ignore.
57236
57237         bootstrap: generate more ignorable names
57238         * build-aux/bootstrap (slurp): When generating ignorable names,
57239         also map .sin to .sed, .gperf to .c, and .y to .c.
57240
57241 2007-09-03  Jim Meyering  <jim@meyering.net>
57242
57243         * build-aux/git-version-gen: New file, from coreutils.  For details, see
57244         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
57245
57246 2007-09-02  Bruno Haible  <bruno@clisp.org>
57247
57248         Fix mis-recognition of 'mcs' on QNX 6.
57249         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
57250         output contains the string "Mono".
57251         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
57252         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
57253
57254 2007-09-01  Bruno Haible  <bruno@clisp.org>
57255
57256         Fix collision between uniwidth/* and linebreak modules.
57257         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
57258         u32_width): Remove declarations.
57259         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
57260         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
57261         streq3, streq2, streq1, streq0): Remove functions.
57262         (STREQ): Remove macro.
57263         (is_cjk_encoding): Remove function.
57264         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
57265         (uc_width, u8_width, u16_width, u32_width): Remove functions.
57266         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
57267         * NEWS: Document the change.
57268
57269 2007-09-01  Bruno Haible  <bruno@clisp.org>
57270
57271         * lib/streq.h: Add double-inclusion guard.
57272
57273 2007-09-01  Karl Berry  <karl@gnu.org>
57274
57275         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
57276
57277 2007-08-28  Jim Meyering  <jim@meyering.net>
57278
57279         Rename mreadlink_with_size to areadlink_with_size.
57280         * NEWS: Document the change.
57281         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
57282         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
57283         * lib/mreadlink.h: Rename this to...
57284         * lib/areadlink.h: ...this.
57285         * modules/mreadlink-with-size: Rename this to...
57286         * modules/areadlink-with-size: ...this.
57287         * lib/canonicalize.c: Reflect the renaming.
57288         * modules/canonicalize: Likewise.
57289
57290 2007-08-26  Bruno Haible  <bruno@clisp.org>
57291
57292         * gnulib-tool (func_import): When deciding which files to remove,
57293         consider also dangling symbolic links.
57294         Reported by Eric Blake.
57295
57296 2007-08-26  Bruno Haible  <bruno@clisp.org>
57297
57298         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
57299
57300 2007-08-23  Simon Josefsson  <simon@josefsson.org>
57301
57302         * lib/readline.c: Don't include getline.h, the prototype is now
57303         found in stdio.h.
57304
57305 2007-08-23  Jim Meyering  <jim@meyering.net>
57306
57307         Getdelim touchup.
57308         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
57309         around the funlockfile call, since funlockfile never sets errno.
57310         Don't set errno upon failed realloc.
57311
57312 2007-08-22  Eric Blake  <ebb9@byu.net>
57313
57314         Getline touchups.
57315         * lib/getdelim.c (getdelim): Revert regression that required *n to
57316         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
57317         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
57318         getdelim, rather than whether implementation is missing.
57319         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
57320         * lib/stdio_.h (getline): Also declare if replacement is
57321         required.
57322         * doc/functions/getdelim.texi: New file.
57323         * doc/functions/getline.texi: Likewise.
57324         * doc/gnulib.texi (Function Substitutes): Add new files.
57325         Reported by Bruno Haible.
57326
57327 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
57328
57329         * users.txt: Add Guile.
57330
57331 2007-08-22  Eric Blake  <ebb9@byu.net>
57332
57333         * tests/test-getdelim.c (main): Use remove, not unlink.
57334         * tests/test-getline.c (main): Likewise.
57335
57336         Move getline and getdelim into stdio.h, per POSIX 200x.
57337         * modules/getline (Files): Remove getline.h.
57338         (Depends-on): Add stdio.
57339         (configure.ac): Add module indicator.
57340         * modules/getdelim (Files): Remove getdelim.h.
57341         (Depends-on): Add stdio.
57342         (configure.ac): Add module indicator.
57343         * modules/stdio (Makefile.am): Work with new indicators.
57344         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
57345         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
57346         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
57347         * lib/getdelim.h: Delete.
57348         * lib/getline.h: Delete.
57349         * lib/stdio_.h (getdelim, getline): Declare.
57350         * modules/getdelim-tests: New module.
57351         * modules/getline-tests: Likewise.
57352         * tests/test-getdelim.c: New file.
57353         * tests/test-getline.c: Likewise.
57354         * NEWS: Document the change.
57355         * lib/getline.c: Update choice of header.
57356         * lib/csharpcomp.c: Likewise.
57357         * lib/getpass.c: Likewise.
57358         * lib/javacomp.c: Likewise.
57359         * lib/javaversion.c: Likewise.
57360         * lib/yesno.c: Likewise.
57361         * lib/getdelim.c: Likewise.
57362         (getdelim): Set errno on failure, and avoid memory leak.
57363
57364 2007-08-19  Bruno Haible  <bruno@clisp.org>
57365
57366         * modules/closein (Depends-on): Add freadahead.
57367         * lib/closein.c: Include freadahead.h.
57368         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
57369         is zero.
57370
57371 2007-08-19  Bruno Haible  <bruno@clisp.org>
57372
57373         * modules/freadahead-tests: New file.
57374         * tests/test-freadahead.sh: New file.
57375         * tests/test-freadahead.c: New file.
57376
57377         * modules/freadahead: New file.
57378         * lib/freadahead.h: New file.
57379         * lib/freadahead.c: New file.
57380         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
57381         fbufmode, fpurge, freadable, fwritable.
57382
57383 2007-08-19  Eric Blake  <ebb9@byu.net>
57384
57385         Test yesno in combination with closein.
57386         * lib/yesno.c (yesno): Document use of stdin.
57387         * modules/yesno-tests (Files): New module.
57388         * tests/test-yesno.c (main): New file.
57389         * tests/test-yesno.sh: Likewise.
57390
57391 2007-08-19  Bruno Haible  <bruno@clisp.org>
57392
57393         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
57394         * lib/fseeko.c (rpl_fseeko): Likewise.
57395         * lib/fseterr.c (fseterr): Likewise.
57396
57397 2007-08-19  Bruno Haible  <bruno@clisp.org>
57398
57399         * tests/test-lseek.c (main): Disable a test for BeOS.
57400         * doc/functions/lseek.texi: Document the BeOS bug.
57401
57402 2007-08-19  Bruno Haible  <bruno@clisp.org>
57403             Eric Blake  <ebb9@byu.net>
57404
57405         * lib/lseek.c: Include <sys/stat.h>.
57406         (rpl_lseek): Add workaround code also for Unix platforms.
57407         Needed for BeOS.
57408         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
57409         * doc/functions/lseek.texi: Document BeOS definiency.
57410
57411 2007-08-18  Bruno Haible  <bruno@clisp.org>
57412
57413         * modules/fstrcmp-tests: New file.
57414         * tests/test-fstrcmp.c: New file.
57415
57416 2007-08-18  Bruno Haible  <bruno@clisp.org>
57417
57418         * modules/fstrcmp: New file, from GNU gettext with modifications.
57419         * lib/fstrcmp.h: New file, from GNU gettext.
57420         * lib/fstrcmp.c: New file, from GNU gettext.
57421         * MODULES.html.sh (String handling): Add fstrcmp.
57422
57423 2007-08-18  Bruno Haible  <bruno@clisp.org>
57424
57425         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
57426         'bool'.
57427         (diag, compareseq): Remove const from the ctxt argument.
57428         (USE_HEURISTIC): Undefine at the end.
57429
57430 2007-08-18  Jim Meyering  <jim@meyering.net>
57431
57432         New file: lib/idcache.h
57433         * NEWS: Mention the addition.
57434         * modules/idcache (Files): Add lib/idcache.h
57435         * lib/idcache.c: Include "idcache.h".
57436         Don't include <sys/types.h>.
57437         Add a FIXME comment.
57438         Move file-scoped "static" declarations to the top.
57439         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
57440
57441 2007-08-17  Bruno Haible  <bruno@clisp.org>
57442         and Paul Eggert  <eggert@cs.ucla.edu>
57443
57444         * MODULES.html.sh: Add diffseq.
57445         * modules/diffseq: New file.
57446         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
57447         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
57448
57449 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
57450
57451         Import changes from coreutils for bootstrap script.
57452
57453         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
57454
57455         * build-aux/bootstrap (slurp): Work even in environments where
57456         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
57457         current code does not slurp files whose names start with ".", and
57458         this looks like it might be a troublesome area.
57459
57460         2007-07-11  Jim Meyering  <jim@meyering.net>
57461
57462         If there's a GPL vN copyright comment, require that N == 3.
57463
57464         2007-07-08  Jim Meyering  <jim@meyering.net>
57465
57466         Run the coreutils-specific code only if tests/Makefile.am.in exists.
57467         * build-aux/bootstrap (mam_template): Move definition out of loop.
57468
57469         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
57470
57471         * build-aux/bootstrap (symlink_to_dir): Rename function from
57472         symlink_to_gnulib.  Add a directory parameter.  Update all
57473         callers.
57474         (cp_mark_as_generated): Also check for -- and link to -- files in
57475         gl/.
57476
57477         2007-07-08  Jim Meyering  <jim@meyering.net>
57478
57479         Adapt to deeper hierarchy in gnulib.
57480         * build-aux/bootstrap (symlink_to_dir): If the destination
57481         directory doesn't exist, create it. This is required at least for
57482         "lib/uniwidth/cjk.h".
57483
57484         2007-05-15  Jim Meyering  <jim@meyering.net>
57485
57486         * build-aux/bootstrap: Now that generated Makefile.am files
57487         are no longer under version control, they must be created at
57488         bootstrap time.
57489
57490 2007-08-14  Ben Pfaff  <blp@gnu.org>
57491
57492         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
57493
57494 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
57495
57496         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
57497         given the changes below.
57498         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
57499         even on hosts that have padding bits beyond the supported 64.
57500
57501 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
57502
57503         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
57504         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
57505         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
57506         depends on it.
57507         (xstrtol_error): Remove.
57508         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
57509         but with a different signature.
57510         (ATTRIBUTE_NORETURN, __attribute__): New macros.
57511         * lib/xstrtol-error.c: Include exitfail.h.
57512         (xstrtol_fatal): New function, with a different signature from the
57513         old xstrtol_error, so that the caller need not worry about passing
57514         in an exit status, or about storage management of the option argument.
57515         (xstrtol_error): Now a static function.  Redo signature to
57516         implement xstrtol_fatal.  Output the correct number of hyphens in
57517         front of the option so that the caller need not worry about
57518         storage management.
57519         (N_): New macro.
57520         (_): Remove; not used now.
57521         * modules/xstrtol: Depend on getopt.
57522         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
57523         of old STRTOL_FATAL_ERROR macro.
57524         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
57525         of test program.
57526         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
57527         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
57528
57529 2007-08-08  Eric Blake  <ebb9@byu.net>
57530
57531         * lib/xstrtol-error.c: Add missing include.
57532
57533         Move xstrtol messages into gnulib domain, when --pobase is used.
57534         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
57535         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
57536         * modules/xstrtol (Files): Distribute new file.
57537         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
57538         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
57539         * tests/test-xstrtol.c: ...into new file.
57540         * tests/test-xstrtoul.c: Also test xstrtoul.
57541         * tests/test-xstrtoimax.c: Also test xstrtoimax.
57542         * tests/test-xstrtoumax.c: Also test xstrtoumax.
57543         * tests/test-xstrtol.sh: Drive the tests.
57544         * tests/test-xstrtoimax.sh: Likewise.
57545         * tests/test-xstrtoumax.sh: Likewise.
57546         * modules/xstrtol-tests: New module.
57547         * modules/xstrtoimax-tests: Likewise.
57548         * modules/xstrtoumax-tests: Likewise.
57549
57550 2007-08-08  Jim Meyering  <jim@meyering.net>
57551
57552         New function: mfile_name_concat.
57553         * lib/filenamecat.c (mfile_name_concat): New function, just like
57554         file_name_concat, but return NULL upon failure rather than exiting
57555         with a diagnostic.
57556         * lib/filenamecat.h: Declare it.
57557
57558 2007-08-07  Bruno Haible  <bruno@clisp.org>
57559
57560         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
57561         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
57562         warning from gcc.
57563         Reported by Eric Blake.
57564
57565 2007-08-07  Simon Josefsson  <simon@josefsson.org>
57566
57567         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
57568         * modules/crypto/arcfour (License): Likewise.
57569         * modules/crypto/des-tests (License): Likewise.
57570         * modules/crypto/gc-arctwo-tests (License): Likewise.
57571         * modules/crypto/gc-des-tests (License): Likewise.
57572         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
57573         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
57574         * modules/crypto/gc-md2-tests (License): Likewise.
57575         * modules/crypto/gc-md4-tests (License): Likewise.
57576         * modules/crypto/gc-md5-tests (License): Likewise.
57577         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
57578         * modules/crypto/gc-rijndael-tests (License): Likewise.
57579         * modules/crypto/gc-sha1-tests (License): Likewise.
57580         * modules/crypto/gc-tests (License): Likewise.
57581         * modules/crypto/hmac-md5 (License): Likewise.
57582         * modules/crypto/hmac-sha1 (License): Likewise.
57583         * modules/crypto/md2-tests (License): Likewise.
57584         * modules/crypto/md4-tests (License): Likewise.
57585         * modules/crypto/md5 (License): Likewise.
57586         * modules/crypto/rijndael (License): Likewise.
57587         * modules/crypto/sha1 (License): Likewise.
57588         * modules/memxor (License): Likewise.
57589
57590 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
57591         and Bruno Haible  <bruno@clisp.org>
57592
57593         * NEWS: Describe interface changes to human, xstrtol.
57594         * lib/human.h: Include <xstrtol.h>.
57595         (human_options): Return enum strtol_error, not int.  Remove
57596         bool arg; take int * instead.
57597         * lib/human.c: Don't include "gettext.h".
57598         (_): Remove; no longer used.
57599         Don't include <xstrtol.h>, since human.h does it.
57600         (human_options): Adjust to abovementioned interface changes.
57601         Do not report error to stderr; that's now the caller's
57602         responsibility.
57603         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
57604         interface change.
57605         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
57606         Str, Argument_type_string.  All uses changed.  Put " argument"
57607         in diagnostics to make them clearer.  Change wording of suffix
57608         message for clarity.
57609         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
57610         Argument_type_string.
57611         (STRTOL_FATAL_WARN): Remove; no longer used.
57612         * modules/human (Depends-on): Remove gettext-h.
57613
57614 2007-08-06  Simon Josefsson  <simon@josefsson.org>
57615
57616         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
57617
57618 2007-07-31  Bruno Haible  <bruno@clisp.org>
57619
57620         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
57621         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
57622         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
57623
57624 2007-07-31  Bruno Haible  <bruno@clisp.org>
57625
57626         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
57627         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
57628
57629 2007-07-30  Bruno Haible  <bruno@clisp.org>
57630
57631         * modules/base64 (License): Use the synonymous term "LGPLv2+".
57632         * modules/c-ctype (License): Likewise.
57633         * modules/c-strcase (License): Likewise.
57634         * modules/check-version (License): Likewise.
57635         * modules/iconv (License): Likewise.
57636         * modules/iconv_open (License): Likewise.
57637         * modules/read-file (License): Likewise.
57638         * modules/striconv (License): Likewise.
57639         * modules/strverscmp (License): Likewise.
57640         * modules/vasprintf (License): Likewise.
57641         * modules/crypto/des (License): Likewise.
57642         * modules/crypto/gc (License): Likewise.
57643         * modules/crypto/gc-arcfour (License): Likewise.
57644         * modules/crypto/gc-arctwo (License): Likewise.
57645         * modules/crypto/gc-des (License): Likewise.
57646         * modules/crypto/gc-hmac-md5 (License): Likewise.
57647         * modules/crypto/gc-hmac-sha1 (License): Likewise.
57648         * modules/crypto/gc-md2 (License): Likewise.
57649         * modules/crypto/gc-md4 (License): Likewise.
57650         * modules/crypto/gc-md5 (License): Likewise.
57651         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
57652         * modules/crypto/gc-random (License): Likewise.
57653         * modules/crypto/gc-rijndael (License): Likewise.
57654         * modules/crypto/gc-sha1 (License): Likewise.
57655         * modules/crypto/md2 (License): Likewise.
57656         * modules/crypto/md4 (License): Likewise.
57657
57658 2007-07-30  Jim Meyering  <jim@meyering.net>
57659
57660         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
57661         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
57662         it has valid stat data.  This bug would cause du not to count the
57663         sizes of inaccessible directories.
57664         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
57665         in <http://bugzilla.redhat.com/250077>.
57666
57667 2007-07-25  Peter O'Gorman  <peter@pogma.com>
57668             Bruno Haible  <bruno@clisp.org>
57669
57670         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
57671         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
57672         #include_next, gives a diagnostic about it, but reports no error in
57673         the exit code.
57674         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
57675
57676 2007-07-24  Ben Pfaff  <blp@gnu.org>
57677
57678         Improve name: "count-one-bits" is better than "popcount".
57679         * MODULES.html.sh: Update name.
57680         * lib/popcount.h: Renamed lib/count-one-bits.h.
57681         (popcount): Renamed count_one_bits.
57682         (popcountl): Renamed count_one_bits_l.
57683         (popcountll): Renamed count_one_bits_ll.
57684         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
57685         * modules/popcount: Renamed module/count-one-bits.
57686         * modules/popcount-tests: Renamed module/count-one-bits-tests.
57687         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
57688
57689 2007-07-23  Ben Pfaff  <blp@gnu.org>
57690
57691         * lib/popcount.h (popcount32): Reduce size of constants, to allow
57692         better code generation, and add U to large constants to avoid
57693         warnings, in non-GCC case.
57694         Suggested by Bruno Haible.
57695
57696 2007-07-23  Ben Pfaff  <blp@gnu.org>
57697
57698         * lib/popcount.h: Use verify_true instead of if...abort.
57699         * modules/popcount: Depend on verify module.
57700         Suggested by Jim Meyering.
57701
57702 2007-07-23  Bruno Haible  <bruno@clisp.org>
57703
57704         * gnulib-tool (func_import): Create a .cvsignore file also when the
57705         directory is not yet in CVS but the toplevel directory is. When
57706         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
57707         Reported by Karl Berry.
57708
57709 2007-07-22  Ben Pfaff  <blp@gnu.org>
57710
57711         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
57712         case.
57713         Suggested by Eric Blake.
57714
57715 2007-07-22  Ben Pfaff  <blp@gnu.org>
57716
57717         New module: popcount.
57718         * MODULES.html.sh: Add popcount.
57719         * modules/popcount: New file.
57720         * modules/popcount-tests: New file.
57721         * tests/test-popcount.c: New file.
57722         * lib/popcount.h: New file.
57723         * m4/popcount.m4: New file.
57724
57725 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
57726
57727         * build-aux/announce-gen: Update to GPLv3.
57728
57729         * build-aux/config.guess: Update from config.
57730
57731 2007-07-21  Bruno Haible  <bruno@clisp.org>
57732
57733         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
57734         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
57735
57736 2007-07-20  Jim Meyering  <jim@meyering.net>
57737
57738         * check-module: Diagnose a self-dependency.
57739
57740 2007-07-19  Bruno Haible  <bruno@clisp.org>
57741
57742         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
57743         empty.
57744         Reported by Eric Blake.
57745
57746 2007-07-18  Bruno Haible  <bruno@clisp.org>
57747
57748         * gnulib-tool: New options --po-base, --po-domain.
57749         (func_usage): Document them.
57750         (pobase, po_domain): New variables.
57751         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
57752         DEFAULT_TEXT_DOMAIN.
57753         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
57754         (func_import): Consider pobase and po_domain. Create a po/ directory.
57755         (func_create_testdir): Set pobase and po_domain to empty.
57756         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
57757         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
57758
57759 2007-07-18  Bruno Haible  <bruno@clisp.org>
57760
57761         * gnulib-tool (func_get_automake_snippet): Synthesize also an
57762         EXTRA_DIST augmentation for files in build-aux/.
57763
57764 2007-07-16  Bruno Haible  <bruno@clisp.org>
57765
57766         * modules/lseek (License): Use the synonymous term "LGPLv2+".
57767         * modules/getdelim (License): Likewise.
57768
57769 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57770
57771         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
57772         * modules/d-type (License): Likewise.
57773         * modules/extensions (License): Likewise.
57774         * modules/fnmatch (License): Likewise.
57775         * modules/fseeko (License): Likewise.
57776         * modules/getaddrinfo (License): Likewise.
57777         * modules/getline (License): Likewise.
57778         * modules/getlogin_r (License): Likewise.
57779         * modules/getpass (License): Likewise.
57780         * modules/gettimeofday (License): Likewise.
57781         * modules/glob (License): Likewise.
57782         * modules/inet_ntop (License): Likewise.
57783         * modules/malloc (License): Likewise.
57784         * modules/malloca (License): Likewise.
57785         * modules/memmem (License): Likewise.
57786         * modules/mempcpy (License): Likewise.
57787         * modules/memset (License): Likewise.
57788         * modules/minmax (License): Likewise.
57789         * modules/mktime (License): Likewise.
57790         * modules/netinet_in (License): Likewise.
57791         * modules/pathmax (License): Likewise.
57792         * modules/poll (License): Likewise.
57793         * modules/regex (License): Likewise.
57794         * modules/snprintf (License): Likewise.
57795         * modules/stdbool (License): Likewise.
57796         * modules/stdint (License): Likewise.
57797         * modules/stdio (License): Likewise.
57798         * modules/strcase (License): Likewise.
57799         * modules/strcasestr (License): Likewise.
57800         * modules/strdup (License): Likewise.
57801         * modules/string (License): Likewise.
57802         * modules/strndup (License): Likewise.
57803         * modules/strnlen (License): Likewise.
57804         * modules/strpbrk (License): Likewise.
57805         * modules/strptime (License): Likewise.
57806         * modules/strsep (License): Likewise.
57807         * modules/sys_select (License): Likewise.
57808         * modules/sys_socket (License): Likewise.
57809         * modules/sys_stat (License): Likewise.
57810         * modules/sys_time (License): Likewise.
57811         * modules/time (License): Likewise.
57812         * modules/time_r (License): Likewise.
57813         * modules/timegm (License): Likewise.
57814         * modules/unistd (License): Likewise.
57815         * modules/vsnprintf (License): Likewise.
57816         * modules/wctype (License): Likewise.
57817
57818 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57819
57820         * modules/argz (License): LGPLv2+.
57821
57822 2007-07-15  Karl Berry  <karl@gnu.org>
57823
57824         * doc/gnulib.texi: revise node structure per new fdl.texi.
57825
57826 2007-07-14  Bruno Haible  <bruno@clisp.org>
57827
57828         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
57829         the output file.
57830         * lib/uniname/uninames.h: Regenerated.
57831
57832 2007-07-14  Karl Berry  <karl@gnu.org>
57833
57834         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
57835         omitting sectioning and index commands.
57836
57837 2007-07-13  Bruno Haible  <bruno@clisp.org>
57838
57839         New gnulib-tool option --more-symlinks.
57840         * gnulib-tool (func_usage): Document --more-symlinks.
57841         (do_copyrights): New variable.
57842         Recognize option --more-symlinks.
57843         (func_import): Don't add a copyright notice transform to
57844         sed_transform_lib_file if do_copyrights is empty.
57845
57846 2007-07-13  Bruno Haible  <bruno@clisp.org>
57847
57848         * lib/vasnprintf.c (decimal_point_char): Define also if
57849         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
57850         && !NEED_PRINTF_DIRECTIVE_A.
57851         Reported by Clemens Koller <clemens.koller@anagramm.de> via
57852         Gary V. Vaughan <gary@gnu.org>.
57853
57854 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
57855
57856         * lib/inttypes_.h: Undo previous change, since it was fixed
57857         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
57858
57859 2007-07-13  Bruno Haible  <bruno@clisp.org>
57860
57861         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
57862         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
57863
57864 2007-07-13  Jim Meyering  <jim@meyering.net>
57865
57866         df: Don't fail for Tru64's "file-on-file mount".
57867         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
57868         so we fall through and use statfs instead.  Details here:
57869         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
57870         Reported by Albert Chin.
57871
57872 2007-07-13  Bruno Haible  <bruno@clisp.org>
57873
57874         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
57875         * modules/configmake (License): Likewise.
57876         * modules/gettext (License): Likewise.
57877         * modules/gettext-h (License): Likewise.
57878         * modules/include_next (License): Likewise.
57879         * modules/link-warning (License): Likewise.
57880         * modules/localcharset (License): Likewise.
57881         * modules/localename (License): Likewise.
57882         * modules/lock (License): Likewise.
57883         * modules/relocatable-lib-lgpl (License): Likewise.
57884         * modules/size_max (License): Likewise.
57885         * modules/vasnprintf (License): Likewise.
57886         * modules/wchar (License): Likewise.
57887         * modules/xsize (License): Likewise.
57888
57889 2007-07-13  Bruno Haible  <bruno@clisp.org>
57890
57891         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
57892         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
57893
57894 2007-07-12  Bruno Haible  <bruno@clisp.org>
57895
57896         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
57897         in the modules files.
57898
57899 2007-07-11  Karl Berry  <karl@gnu.org>
57900
57901         * MODULES.html.sh (func_module): use
57902          sed -e '\|^'"${includefile}"'$|d'
57903          instead of /.../d, to avoid errors on $includefile's containing /.
57904
57905 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
57906
57907         * gnulib-tool (func_import): Avoid duplication of --avoid
57908         statements
57909         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
57910         names to `_' in variable names.
57911
57912 2007-07-10  Eric Blake  <ebb9@byu.net>
57913
57914         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
57915         * NEWS: Document this change.
57916
57917 2007-07-08  Bruno Haible  <bruno@clisp.org>
57918
57919         Update to Unicode 5.0.
57920         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
57921         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
57922         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
57923         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
57924         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
57925         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
57926         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
57927         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
57928         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
57929         U+10A3F, U+1D242..U+1D244.
57930         (nonspacing_table_ind): Update.
57931         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
57932         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
57933
57934 2007-07-08  Bruno Haible  <bruno@clisp.org>
57935
57936         Update to Unicode 5.0.
57937         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
57938         code transform. Extend the name index field of unicode_name_to_code and
57939         unicode_code_to_name from 16 to 24 bits.
57940         * lib/uniname/uniname.c (unicode_character_name,
57941         unicode_name_character): Add the range 0x12xxx to the code transform.
57942         * lib/uniname/uninames.h: Regenerated.
57943         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
57944
57945 2007-07-07  Bruno Haible  <bruno@clisp.org>
57946
57947         * modules/wcwidth-tests: New file.
57948         * tests/test-wcwidth.c: New file.
57949
57950         Work around MacOS X wcwidth() bug.
57951         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
57952         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
57953         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
57954         original wcwidth in non-UTF-8 locales.
57955         * modules/wcwidth (Depends-on): Add localcharset, streq,
57956         uniwidth/width.
57957         * doc/functions/wcwidth.texi: Update.
57958
57959 2007-07-07  Bruno Haible  <bruno@clisp.org>
57960
57961         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
57962         (wcwidth): New declaration.
57963         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
57964         macros.
57965         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
57966         here. Prepare for creating <wchar.h> unconditionally.
57967         * modules/wchar (Depends-on): Add link-warning.
57968         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
57969         REPLACE_WCWIDTH, and GL_LINK_WARNING.
57970         * lib/wcwidth.h: Remove file.
57971         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
57972         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
57973         * modules/wcwidth (Files): Remove lib/wcwidth.h.
57974         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
57975         (Include): Replace wcwidth.h with <wchar.h>.
57976         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
57977         * lib/mbchar.h: Don't include wcwidth.h.
57978         * lib/mbswidth.c: Likewise.
57979         * NEWS: Mention the change.
57980
57981 2007-07-07  Bruno Haible  <bruno@clisp.org>
57982
57983         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
57984         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
57985         definition with an external declaration.
57986         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
57987         defined as a function. Remove AC_C_INLINE requirement.
57988         * modules/wcwidth (Files): Add lib/wcwidth.c.
57989         (Makefile.am): Remove redundant statement.
57990
57991 2007-07-07  Bruno Haible  <bruno@clisp.org>
57992
57993         * MODULES.html.sh (Unicode string functions): Add the new modules.
57994
57995         * tests/uniwidth/test-u32-strwidth.c: New file.
57996         * modules/uniwidth/u32-strwidth-tests: New file.
57997
57998         * lib/uniwidth/u32-strwidth.c: New file.
57999         * modules/uniwidth/u32-strwidth: New file.
58000
58001         * tests/uniwidth/test-u16-strwidth.c: New file.
58002         * modules/uniwidth/u16-strwidth-tests: New file.
58003
58004         * lib/uniwidth/u16-strwidth.c: New file.
58005         * modules/uniwidth/u16-strwidth: New file.
58006
58007         * tests/uniwidth/test-u8-strwidth.c: New file.
58008         * modules/uniwidth/u8-strwidth-tests: New file.
58009
58010         * lib/uniwidth/u8-strwidth.c: New file.
58011         * modules/uniwidth/u8-strwidth: New file.
58012
58013         * tests/uniwidth/test-u32-width.c: New file.
58014         * modules/uniwidth/u32-width-tests: New file.
58015
58016         * lib/uniwidth/u32-width.c: New file.
58017         * modules/uniwidth/u32-width: New file.
58018
58019         * tests/uniwidth/test-u16-width.c: New file.
58020         * modules/uniwidth/u16-width-tests: New file.
58021
58022         * lib/uniwidth/u16-width.c: New file.
58023         * modules/uniwidth/u16-width: New file.
58024
58025         * tests/uniwidth/test-u8-width.c: New file.
58026         * modules/uniwidth/u8-width-tests: New file.
58027
58028         * lib/uniwidth/u8-width.c: New file.
58029         * modules/uniwidth/u8-width: New file.
58030
58031         * tests/uniwidth/test-uc_width.c: New file.
58032         * modules/uniwidth/width-tests: New file.
58033
58034         * lib/uniwidth/width.c: New file, from GNU libiconv.
58035         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
58036         * modules/uniwidth/width: New file.
58037
58038         * lib/uniwidth.h: New file, from GNU libiconv.
58039         * modules/uniwidth/base: New file.
58040
58041 2007-07-07  Bruno Haible  <bruno@clisp.org>
58042
58043         * lib/uniname.h: New file, from GNU gettext.
58044         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
58045         * lib/uniname/uninames.h: New file, from GNU gettext.
58046         * lib/uniname/uniname.c: New file, from GNU gettext.
58047         * tests/uniname/test-uninames.sh: New file.
58048         * tests/uniname/test-uninames.c: New file, from GNU gettext.
58049         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
58050         * modules/uniname/base: New file.
58051         * modules/uniname/uniname: New file.
58052         * modules/uniname/uniname-tests: New file.
58053         * MODULES.html.sh (Unicode string functions): Add the new modules.
58054
58055 2007-07-06  Bruno Haible  <bruno@clisp.org>
58056
58057         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
58058
58059 2007-07-06  Bruno Haible  <bruno@clisp.org>
58060
58061         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
58062         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
58063         includes <cygwin/sys_time.h> which includes <sys/select.h> which
58064         include <sys/time.h>.
58065         Reported by Eric Blake.
58066
58067 2007-07-06  Eric Blake  <ebb9@byu.net>
58068
58069         Fix testing canonicalize on cygwin.
58070         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
58071         Revert patch from 2007-06-19.
58072         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
58073         canonicalize module is also in use.
58074         * tests/test-canonicalize.c: New file.
58075         * tests/test-canonicalize.sh: Likewise.
58076         * modules/canonicalize-tests: Likewise.
58077
58078 2007-07-06  Jim Meyering  <jim@meyering.net>
58079
58080         * lib/getugroups.c (getugroups): Detect getgrent failure.
58081         Adjust comment to reflect reality: this function may return -1.
58082
58083 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
58084
58085         * build-aux/bootstrap (TP_URL,get_translations): Update to use
58086         the new TP address.
58087         (usage): Fix typo
58088         (gnulib_mk): New variable.
58089
58090 2007-07-05  Jim Meyering  <jim@meyering.net>
58091
58092         Don't let endgrent clobber errno, no matter how improbable.
58093         * lib/getugroups.c (getugroups): Save and restore errno around
58094         endgrent call.
58095
58096         Close the group DB even when failing with 2^31 or more members.
58097         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
58098
58099 2007-07-04  Jim Meyering  <jim@meyering.net>
58100
58101         * lib/getugroups.h: New file.
58102         * lib/getugroups.c: Include "getugroups.h".
58103         Remove uses of "register" keyword.
58104         Move local variable, "cp", down into scope where used.
58105         Give "username" parameter the "const" attribute.
58106         * modules/getugroups (Files): Add lib/getugroups.h
58107
58108 2007-07-04  Karl Berry  <karl@gnu.org>
58109
58110         * MODULES.html.sh (func_all_modules): Complete rename of
58111         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
58112
58113 2007-07-02  Bruno Haible  <bruno@clisp.org>
58114
58115         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
58116         mode, when inttypes.h comes from gnulib.
58117         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
58118
58119 2007-07-02  Simon Josefsson  <simon@josefsson.org>
58120
58121         * NEWS: Mention lgpl module name change.
58122
58123         * modules/lgpl-2.1: Renamed from lgpl.
58124
58125         * NEWS: Mention gpl module name change.
58126
58127         * modules/gpl-3.0: New file, based on gpl-2.0.
58128
58129         * modules/gpl-2.0: Renamed from gpl.
58130
58131         * modules/gpl: Fix filename, doc/gpl.texi is now found at
58132         doc/gpl-2.0.texi.
58133
58134 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
58135
58136         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
58137         #define __STDC_LIMIT_MACROS temporarily while including
58138         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
58139         Problem reported by Joel E. Denny in
58140         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
58141
58142 2007-07-01  Bruno Haible  <bruno@clisp.org>
58143
58144         * lib/unistdio.h: New file.
58145         * lib/unistdio/u-asnprintf.h: New file.
58146         * lib/unistdio/u-asprintf.h: New file.
58147         * lib/unistdio/u-printf-args.c: New file.
58148         * lib/unistdio/u-printf-args.h: New file.
58149         * lib/unistdio/u-printf-parse.h: New file.
58150         * lib/unistdio/u-snprintf.h: New file.
58151         * lib/unistdio/u-sprintf.h: New file.
58152         * lib/unistdio/u-vasprintf.h: New file.
58153         * lib/unistdio/u-vsnprintf.h: New file.
58154         * lib/unistdio/u-vsprintf.h: New file.
58155         * lib/unistdio/ulc-asnprintf.c: New file.
58156         * lib/unistdio/ulc-asprintf.c: New file.
58157         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
58158         * lib/unistdio/ulc-printf-parse.c: New file.
58159         * lib/unistdio/ulc-snprintf.c: New file.
58160         * lib/unistdio/ulc-sprintf.c: New file.
58161         * lib/unistdio/ulc-vasnprintf.c: New file.
58162         * lib/unistdio/ulc-vasprintf.c: New file.
58163         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
58164         * lib/unistdio/ulc-vsnprintf.c: New file.
58165         * lib/unistdio/ulc-vsprintf.c: New file.
58166         * lib/unistdio/u8-asnprintf.c: New file.
58167         * lib/unistdio/u8-asprintf.c: New file.
58168         * lib/unistdio/u8-printf-parse.c: New file.
58169         * lib/unistdio/u8-snprintf.c: New file.
58170         * lib/unistdio/u8-sprintf.c: New file.
58171         * lib/unistdio/u8-vasnprintf.c: New file.
58172         * lib/unistdio/u8-vasprintf.c: New file.
58173         * lib/unistdio/u8-vsnprintf.c: New file.
58174         * lib/unistdio/u8-vsprintf.c: New file.
58175         * lib/unistdio/u8-u8-asnprintf.c: New file.
58176         * lib/unistdio/u8-u8-asprintf.c: New file.
58177         * lib/unistdio/u8-u8-snprintf.c: New file.
58178         * lib/unistdio/u8-u8-sprintf.c: New file.
58179         * lib/unistdio/u8-u8-vasnprintf.c: New file.
58180         * lib/unistdio/u8-u8-vasprintf.c: New file.
58181         * lib/unistdio/u8-u8-vsnprintf.c: New file.
58182         * lib/unistdio/u8-u8-vsprintf.c: New file.
58183         * lib/unistdio/u16-asnprintf.c: New file.
58184         * lib/unistdio/u16-asprintf.c: New file.
58185         * lib/unistdio/u16-printf-parse.c: New file.
58186         * lib/unistdio/u16-snprintf.c: New file.
58187         * lib/unistdio/u16-sprintf.c: New file.
58188         * lib/unistdio/u16-vasnprintf.c: New file.
58189         * lib/unistdio/u16-vasprintf.c: New file.
58190         * lib/unistdio/u16-vsnprintf.c: New file.
58191         * lib/unistdio/u16-vsprintf.c: New file.
58192         * lib/unistdio/u16-u16-asnprintf.c: New file.
58193         * lib/unistdio/u16-u16-asprintf.c: New file.
58194         * lib/unistdio/u16-u16-snprintf.c: New file.
58195         * lib/unistdio/u16-u16-sprintf.c: New file.
58196         * lib/unistdio/u16-u16-vasnprintf.c: New file.
58197         * lib/unistdio/u16-u16-vasprintf.c: New file.
58198         * lib/unistdio/u16-u16-vsnprintf.c: New file.
58199         * lib/unistdio/u16-u16-vsprintf.c: New file.
58200         * lib/unistdio/u32-asnprintf.c: New file.
58201         * lib/unistdio/u32-asprintf.c: New file.
58202         * lib/unistdio/u32-printf-parse.c: New file.
58203         * lib/unistdio/u32-snprintf.c: New file.
58204         * lib/unistdio/u32-sprintf.c: New file.
58205         * lib/unistdio/u32-vasnprintf.c: New file.
58206         * lib/unistdio/u32-vasprintf.c: New file.
58207         * lib/unistdio/u32-vsnprintf.c: New file.
58208         * lib/unistdio/u32-vsprintf.c: New file.
58209         * lib/unistdio/u32-u32-asnprintf.c: New file.
58210         * lib/unistdio/u32-u32-asprintf.c: New file.
58211         * lib/unistdio/u32-u32-snprintf.c: New file.
58212         * lib/unistdio/u32-u32-sprintf.c: New file.
58213         * lib/unistdio/u32-u32-vasnprintf.c: New file.
58214         * lib/unistdio/u32-u32-vasprintf.c: New file.
58215         * lib/unistdio/u32-u32-vsnprintf.c: New file.
58216         * lib/unistdio/u32-u32-vsprintf.c: New file.
58217         * tests/unistdio/test-ulc-asnprintf1.c: New file.
58218         * tests/unistdio/test-ulc-asnprintf1.h: New file.
58219         * tests/unistdio/test-ulc-printf1.h: New file.
58220         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
58221         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
58222         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
58223         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
58224         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
58225         * tests/unistdio/test-ulc-vasprintf1.c: New file.
58226         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
58227         * tests/unistdio/test-ulc-vsprintf1.c: New file.
58228         * tests/unistdio/test-u8-asnprintf1.c: New file.
58229         * tests/unistdio/test-u8-asnprintf1.h: New file.
58230         * tests/unistdio/test-u8-printf1.h: New file.
58231         * tests/unistdio/test-u8-vasnprintf1.c: New file.
58232         * tests/unistdio/test-u8-vasnprintf2.c: New file.
58233         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
58234         * tests/unistdio/test-u8-vasnprintf3.c: New file.
58235         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
58236         * tests/unistdio/test-u8-vasprintf1.c: New file.
58237         * tests/unistdio/test-u8-vsnprintf1.c: New file.
58238         * tests/unistdio/test-u8-vsprintf1.c: New file.
58239         * tests/unistdio/test-u16-asnprintf1.c: New file.
58240         * tests/unistdio/test-u16-asnprintf1.h: New file.
58241         * tests/unistdio/test-u16-printf1.h: New file.
58242         * tests/unistdio/test-u16-vasnprintf1.c: New file.
58243         * tests/unistdio/test-u16-vasnprintf2.c: New file.
58244         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
58245         * tests/unistdio/test-u16-vasnprintf3.c: New file.
58246         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
58247         * tests/unistdio/test-u16-vasprintf1.c: New file.
58248         * tests/unistdio/test-u16-vsnprintf1.c: New file.
58249         * tests/unistdio/test-u16-vsprintf1.c: New file.
58250         * tests/unistdio/test-u32-asnprintf1.c: New file.
58251         * tests/unistdio/test-u32-asnprintf1.h: New file.
58252         * tests/unistdio/test-u32-printf1.h: New file.
58253         * tests/unistdio/test-u32-vasnprintf1.c: New file.
58254         * tests/unistdio/test-u32-vasnprintf2.c: New file.
58255         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
58256         * tests/unistdio/test-u32-vasnprintf3.c: New file.
58257         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
58258         * tests/unistdio/test-u32-vasprintf1.c: New file.
58259         * tests/unistdio/test-u32-vsnprintf1.c: New file.
58260         * tests/unistdio/test-u32-vsprintf1.c: New file.
58261         * modules/unistdio/base: New file.
58262         * modules/unistdio/u-printf-args: New file.
58263         * modules/unistdio/ulc-asnprintf: New file.
58264         * modules/unistdio/ulc-asprintf: New file.
58265         * modules/unistdio/ulc-fprintf: New file.
58266         * modules/unistdio/ulc-printf-parse: New file.
58267         * modules/unistdio/ulc-snprintf: New file.
58268         * modules/unistdio/ulc-sprintf: New file.
58269         * modules/unistdio/ulc-vasnprintf: New file.
58270         * modules/unistdio/ulc-vasprintf: New file.
58271         * modules/unistdio/ulc-vfprintf: New file.
58272         * modules/unistdio/ulc-vsnprintf: New file.
58273         * modules/unistdio/ulc-vsprintf: New file.
58274         * modules/unistdio/u8-asnprintf: New file.
58275         * modules/unistdio/u8-asprintf: New file.
58276         * modules/unistdio/u8-printf-parse: New file.
58277         * modules/unistdio/u8-snprintf: New file.
58278         * modules/unistdio/u8-sprintf: New file.
58279         * modules/unistdio/u8-vasnprintf: New file.
58280         * modules/unistdio/u8-vasprintf: New file.
58281         * modules/unistdio/u8-vsnprintf: New file.
58282         * modules/unistdio/u8-vsprintf: New file.
58283         * modules/unistdio/u8-u8-asnprintf: New file.
58284         * modules/unistdio/u8-u8-asprintf: New file.
58285         * modules/unistdio/u8-u8-snprintf: New file.
58286         * modules/unistdio/u8-u8-sprintf: New file.
58287         * modules/unistdio/u8-u8-vasnprintf: New file.
58288         * modules/unistdio/u8-u8-vasprintf: New file.
58289         * modules/unistdio/u8-u8-vsnprintf: New file.
58290         * modules/unistdio/u8-u8-vsprintf: New file.
58291         * modules/unistdio/u16-asnprintf: New file.
58292         * modules/unistdio/u16-asprintf: New file.
58293         * modules/unistdio/u16-printf-parse: New file.
58294         * modules/unistdio/u16-snprintf: New file.
58295         * modules/unistdio/u16-sprintf: New file.
58296         * modules/unistdio/u16-vasnprintf: New file.
58297         * modules/unistdio/u16-vasprintf: New file.
58298         * modules/unistdio/u16-vsnprintf: New file.
58299         * modules/unistdio/u16-vsprintf: New file.
58300         * modules/unistdio/u16-u16-asnprintf: New file.
58301         * modules/unistdio/u16-u16-asprintf: New file.
58302         * modules/unistdio/u16-u16-snprintf: New file.
58303         * modules/unistdio/u16-u16-sprintf: New file.
58304         * modules/unistdio/u16-u16-vasnprintf: New file.
58305         * modules/unistdio/u16-u16-vasprintf: New file.
58306         * modules/unistdio/u16-u16-vsnprintf: New file.
58307         * modules/unistdio/u16-u16-vsprintf: New file.
58308         * modules/unistdio/u32-asnprintf: New file.
58309         * modules/unistdio/u32-asprintf: New file.
58310         * modules/unistdio/u32-printf-parse: New file.
58311         * modules/unistdio/u32-snprintf: New file.
58312         * modules/unistdio/u32-sprintf: New file.
58313         * modules/unistdio/u32-vasnprintf: New file.
58314         * modules/unistdio/u32-vasprintf: New file.
58315         * modules/unistdio/u32-vsnprintf: New file.
58316         * modules/unistdio/u32-vsprintf: New file.
58317         * modules/unistdio/u32-u32-asnprintf: New file.
58318         * modules/unistdio/u32-u32-asprintf: New file.
58319         * modules/unistdio/u32-u32-snprintf: New file.
58320         * modules/unistdio/u32-u32-sprintf: New file.
58321         * modules/unistdio/u32-u32-vasnprintf: New file.
58322         * modules/unistdio/u32-u32-vasprintf: New file.
58323         * modules/unistdio/u32-u32-vsnprintf: New file.
58324         * modules/unistdio/u32-u32-vsprintf: New file.
58325         * modules/unistdio/ulc-asnprintf-tests: New file.
58326         * modules/unistdio/ulc-vasnprintf-tests: New file.
58327         * modules/unistdio/ulc-vasprintf-tests: New file.
58328         * modules/unistdio/ulc-vsnprintf-tests: New file.
58329         * modules/unistdio/ulc-vsprintf-tests: New file.
58330         * modules/unistdio/u8-asnprintf-tests: New file.
58331         * modules/unistdio/u8-vasnprintf-tests: New file.
58332         * modules/unistdio/u8-vasprintf-tests: New file.
58333         * modules/unistdio/u8-vsnprintf-tests: New file.
58334         * modules/unistdio/u8-vsprintf-tests: New file.
58335         * modules/unistdio/u16-asnprintf-tests: New file.
58336         * modules/unistdio/u16-vasnprintf-tests: New file.
58337         * modules/unistdio/u16-vasprintf-tests: New file.
58338         * modules/unistdio/u16-vsnprintf-tests: New file.
58339         * modules/unistdio/u16-vsprintf-tests: New file.
58340         * modules/unistdio/u32-asnprintf-tests: New file.
58341         * modules/unistdio/u32-vasnprintf-tests: New file.
58342         * modules/unistdio/u32-vasprintf-tests: New file.
58343         * modules/unistdio/u32-vsnprintf-tests: New file.
58344         * modules/unistdio/u32-vsprintf-tests: New file.
58345         * MODULES.html.sh (Unicode string functions): Add the new modules.
58346
58347 2007-07-01  Bruno Haible  <bruno@clisp.org>
58348
58349         * lib/sprintf.c (sprintf): Limit the available length estimation,
58350         to avoid address wraparound.
58351         * lib/vsprintf.c (vsprintf): Likewise.
58352         * modules/sprintf-posix (Dependencies): Add stdint.
58353         * modules/vsprintf-posix (Dependencies): Likewise.
58354
58355 2007-07-01  Bruno Haible  <bruno@clisp.org>
58356
58357         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
58358         Windows PATH as well. Conservative double-quoting. Comments.
58359
58360 2007-07-01  Bruno Haible  <bruno@clisp.org>
58361             Eric Blake  <ebb9@byu.net>
58362             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58363
58364         * gnulib-tool (self_abspathname): Fix algorithm to cope with
58365         empty components in $PATH, denoting '.'.
58366
58367 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58368
58369         * gnulib-tool: Fix indentation.
58370         (func_create_megatestdir): Likewise.
58371         Report by Bruno Haible.
58372
58373 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58374
58375         Sync from Automake.
58376         * build-aux/gnupload: Fix shell portability issues with for loops.
58377         Report by Karl Berry.
58378
58379 2007-06-29  Simon Josefsson  <simon@josefsson.org>
58380
58381         * build-aux/maint.mk (POURL): Use translationproject.org.
58382
58383 2007-06-27  Simon Josefsson  <simon@josefsson.org>
58384             Bruno Haible  <bruno@clisp.org>
58385
58386         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
58387         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
58388         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
58389         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
58390         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
58391
58392 2007-06-27  Bruno Haible  <bruno@clisp.org>
58393
58394         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
58395         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
58396
58397 2007-06-26  Karl Berry  <karl@gnu.org>
58398
58399         * MODULES.html.sh: remove xreadlink-with-size.
58400
58401 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
58402
58403         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
58404         method that I hope also handles the double-include problem noted
58405         by Bruno Haible in
58406         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
58407
58408 2007-06-23  Bruno Haible  <bruno@clisp.org>
58409
58410         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
58411         Don't let the 'mostlyclean' target fail if the last subdirectory could
58412         not be removed.
58413         Reported by Karl Berry.
58414
58415 2007-06-23  Bruno Haible  <bruno@clisp.org>
58416
58417         * gnulib-tool (echo): Add a speedier workaround for ksh.
58418         * tests/test-echo.sh: Likewise.
58419
58420 2007-06-23  Bruno Haible  <bruno@clisp.org>
58421
58422         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
58423         * tests/test-echo.sh: Likewise.
58424
58425 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58426
58427         * gnulib-tool (IFS): Initialize early, so we don't set it to
58428         empty later.
58429         (self_abspathname): Rewrite algorithm to set it, reindent.
58430         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
58431         (func_create_megatestdir): Merge some sed scripts.
58432
58433 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
58434
58435         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
58436         exposed by Sun Studio 11 cc on Solaris 8.
58437
58438 2007-06-22  Bruno Haible  <bruno@clisp.org>
58439
58440         * gnulib-tool (echo): Ensure the echo primitive does not interpret
58441         backslashes.
58442         * tests/test-echo.sh: New file.
58443
58444 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58445
58446         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
58447         simplify `sed_replace_build_aux' scripts, they are portable but
58448         echoing them with `echo' is not.
58449         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
58450
58451 2007-06-21  Karl Berry  <karl@gnu.org>
58452
58453         * config/srclist.txt: guess we can't handle the licenses via
58454         srclist at the moment.
58455
58456 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
58457
58458         * MODULES.html.sh: Add include_next.
58459         * modules/include_next: New file.
58460
58461 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
58462
58463         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
58464         INCLUDE_NEXT.
58465         (gl_CHECK_NEXT_HEADERS): New macro.
58466         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
58467         the obsolescent gl_ABSOLUTE_HEADER.
58468         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
58469         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
58470         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
58471         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
58472         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
58473         * m4/math_h.m4 (gl_MATH_H): Likewise.
58474         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
58475         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
58476         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
58477         * m4/stdint.m4 (gl_STDINT_H): Likewise.
58478         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
58479         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
58480         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
58481         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
58482         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
58483         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
58484         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
58485         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
58486         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
58487         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
58488         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
58489         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
58490         * m4/inttypes.m4 (gl_INTTYPES_H): Define
58491         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
58492         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
58493         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
58494         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
58495         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
58496         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
58497         * lib/float_.h: Likewise.
58498         * lib/inttypes_.h: Likewise.
58499         * lib/math_.h: Likewise.
58500         * lib/search_.h: Likewise.
58501         * lib/signal_.h: Likewise.
58502         * lib/stdint_.h: Likewise.
58503         * lib/stdio_.h: Likewise.
58504         * lib/stdlib_.h: Likewise.
58505         * lib/string_.h: Likewise.
58506         * lib/sys_stat_.h: Likewise.
58507         * lib/sys_time_.h: Likewise.
58508         * lib/time_.h: Likewise.
58509         * lib/unistd_.h: Likewise.
58510         * lib/wchar_.h: Likewise.
58511         * lib/wctype_.h: Likewise.
58512         * lib/dirent_.h: Likewise.
58513         * lib/iconv_.h: Likewise.
58514         * lib/locale_.h: Likewise.
58515         * lib/netinet_in_.h: Likewise.
58516         * lib/sys_select_.h: Likewise.
58517         * lib/sys_socket_.h: Likewise.
58518         * lib/sysexits_.h: Likewise.
58519         * modules/fcntl (Depends-on): Depend on include_next, not
58520         absolute_header.
58521         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
58522         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
58523         * modules/fchdir: Likewise.
58524         * modules/float: Likewise.
58525         * modules/iconv_open: Likewise.
58526         * modules/inttypes: Likewise.
58527         * modules/locale: Likewise.
58528         * modules/math: Likewise.
58529         * modules/netinet_in: Likewise.
58530         * modules/search: Likewise.
58531         * modules/signal: Likewise.
58532         * modules/stdint: Likewise.
58533         * modules/stdio: Likewise.
58534         * modules/stdlib: Likewise.
58535         * modules/string: Likewise.
58536         * modules/sys_select: Likewise.
58537         * modules/sys_socket: Likewise.
58538         * modules/sys_stat: Likewise.
58539         * modules/sys_time: Likewise.
58540         * modules/sysexits: Likewise.
58541         * modules/time: Likewise.
58542         * modules/unistd: Likewise.
58543         * modules/wchar: Likewise.
58544         * modules/wctype: Likewise.
58545         * modules/sys_stat: Change maintainer to "all".
58546         * modules/unistd: Likewise.
58547
58548 2007-06-20  Karl Berry  <karl@gnu.org>
58549
58550         * config/srclist.txt: track www changes in license files.
58551
58552 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
58553
58554         * build-aux/bootstrap: Remove stray dot.
58555         Make sure build_aux settings are honored when linking
58556         gnulib_extra_files.
58557
58558 2007-06-19  Eric Blake  <ebb9@byu.net>
58559
58560         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
58561         Allow compilation on cygwin.
58562
58563 2007-06-19  Jim Meyering  <jim@meyering.net>
58564
58565         xreadlink-with-size: Remove module.  No longer used.
58566         Ex-callers now use xreadlink or mreadlink-with-size.
58567         * modules/xreadlink-with-size: Remove module.
58568         * lib/xreadlink-with-size.c: Remove file.
58569         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
58570         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
58571         just before the function definition *is* accurate.
58572
58573         Eliminate one way canonicalize_filename_mode could exit.
58574         * lib/canonicalize.c (canonicalize_filename_mode):
58575         Use mreadlink_with_size, not xreadlink_with_size.
58576
58577 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
58578
58579         Detect porting problems to FreeBSD/arm, which has time_t wider than
58580         long int.  Original problem reported for GNU diff by Xin Li in
58581         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
58582         * modules/getdate (Depends-on): Add intprops, verify.
58583         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
58584         is an integer type no wider than long int.
58585
58586 2007-06-18  Jim Meyering  <jim@meyering.net>
58587
58588         New module: mreadlink-with-size.
58589         * MODULES.html.sh: Add mreadlink-with-size.
58590         * modules/mreadlink-with-size: New module
58591         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
58592         not xreadlink-with-size.
58593         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
58594
58595 2007-06-16  Bruno Haible  <bruno@clisp.org>
58596
58597         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
58598         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
58599         Reported by Gary V. Vaughan <gary@gnu.org>.
58600
58601 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
58602
58603         Revamp lchown so that it lives in unistd.h where it belongs.
58604         * lib/lchown.h: Remove.
58605         * lib/dirchownmod.c: Don't include lib/lchown.h.
58606         * lib/fchownat.c: Likewise.
58607         * lib/openat.c: Likewise.
58608         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
58609         does not follow symlinks.
58610         (EOPNOTSUPP): Define if not defined.
58611         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
58612         is defined to 0.
58613         (lchown): New decl.
58614         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
58615         Do not check for lchown decl.
58616         Set REPLACE_LCHOWN.
58617         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
58618         REPLACE_LCHOWN.
58619         * modules/chown: Make it clear it follows symlinks.
58620         * modules/lchown: Make it clear it doesn't follow symlinks.
58621         (Files): Remove lib/lchown.h
58622         (Depends-on): Add unistd.
58623         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
58624         (Include): Include <unistd.h>, not "lchown.h".
58625         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
58626         REPLACE_LCHOWN.
58627
58628 2007-06-15  Jim Meyering  <jim@meyering.net>
58629
58630         Change license (GPL to LGPL) of fsusage and dependents.
58631         * modules/fsusage (License): Change to LGPL.
58632         * modules/full-read (License): Likewise.
58633         * modules/full-write (License): Likewise.
58634         * modules/safe-read (License): Likewise.
58635         * modules/safe-write (License): Likewise.
58636
58637 2007-06-14  Ben Pfaff  <blp@gnu.org>
58638
58639         Missing part of allocsa -> malloca transition.
58640         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
58641         gl_MALLOCA.
58642
58643 2007-06-12  Bruno Haible  <bruno@clisp.org>
58644
58645         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
58646         to ia64, x86_64, i386.
58647         Reported by Eric Blake.
58648
58649 2007-06-12  Bruno Haible  <bruno@clisp.org>
58650
58651         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
58652         cross-compiling to x86_64.
58653
58654 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
58655
58656         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
58657         glitch reported by Ralf Wildenhues in
58658         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
58659
58660         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
58661         Vin Shelton.
58662
58663 2007-06-11  Bruno Haible  <bruno@clisp.org>
58664
58665         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
58666         replacement string.
58667         Reported by Eric Blake.
58668
58669 2007-06-10  Bruno Haible  <bruno@clisp.org>
58670
58671         Prepare vasnprintf code for use with Unicode strings.
58672         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
58673         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
58674         TYPE_U32_STRING.
58675         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
58676         a_u32_string variants.
58677         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
58678         * lib/printf-args.c: Don't include config.h and the specification
58679         header if PRINTF_FETCHARGS is already defined.
58680         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
58681         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
58682         TYPE_U16_STRING, TYPE_U32_STRING.
58683         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
58684         u16_directive, u16_directives, u32_directive, u32_directives): New
58685         types.
58686         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
58687         New declarations.
58688         * lib/printf-parse.c: Don't include config.h and the specification
58689         header if PRINTF_PARSE is already defined. Eliminate the set of
58690         parameters for WIDE_CHAR_VERSION; the user of this file must provide
58691         them now. Include c-ctype.h.
58692         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
58693         directive and CHAR_T_ONLY_ASCII.
58694         * lib/vasnprintf.c: Don't include config.h and the specification header
58695         if VASNPRINTF is already defined.
58696         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
58697         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
58698         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
58699         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
58700         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
58701         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
58702         code accordingly.
58703         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
58704         pad_ourselves also in this case, with the 'c' and 's' directives, and
58705         with a different notion of "width".
58706         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
58707
58708 2007-06-10  Bruno Haible  <bruno@clisp.org>
58709
58710         * modules/unistr/u32-mbsnlen: New file.
58711         * lib/unistr/u32-mbsnlen.c: New file.
58712
58713         * modules/unistr/u16-mbsnlen: New file.
58714         * lib/unistr/u16-mbsnlen.c: New file.
58715
58716         * modules/unistr/u8-mbsnlen: New file.
58717         * lib/unistr/u8-mbsnlen.c: New file.
58718
58719         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
58720         declarations.
58721
58722 2007-06-10  Bruno Haible  <bruno@clisp.org>
58723
58724         * lib/string_.h (mbsnlen): New declaration.
58725         * lib/mbsnlen.c: New file.
58726         * m4/mbsnlen.m4: New file.
58727         * modules/mbsnlen: New file.
58728         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
58729         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
58730         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
58731
58732 2007-06-10  Bruno Haible  <bruno@clisp.org>
58733
58734         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
58735
58736 2007-06-10  Bruno Haible  <bruno@clisp.org>
58737
58738         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
58739         * lib/mbuiter.h: Likewise.
58740
58741 2007-06-10  Bruno Haible  <bruno@clisp.org>
58742
58743         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
58744         declaration.
58745
58746 2007-06-10  Karl Berry  <karl@gnu.org>
58747
58748         * config/srclist.txt: remove gettext entries, Bruno prefers
58749         to update individually.
58750
58751 2007-06-10  Bruno Haible  <bruno@clisp.org>
58752
58753         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
58754         'maxlen'. Ensure only length + width bytes are allocated, not
58755         length + 1 + width.
58756
58757 2007-06-09  Bruno Haible  <bruno@clisp.org>
58758
58759         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
58760         (CHAR_T): Remove macro.
58761         (VASNPRINTF): Update.
58762
58763 2007-06-09  Bruno Haible  <bruno@clisp.org>
58764
58765         * MODULES.html.sh (Unicode string functions): Add the new modules.
58766
58767         * modules/uniconv/u32-conv-to-enc: New file.
58768         * lib/uniconv/u32-conv-to-enc.c: New file.
58769         * modules/uniconv/u32-conv-to-enc-tests: New file.
58770         * tests/uniconv/test-u32-conv-to-enc.c: New file.
58771
58772         * modules/uniconv/u16-conv-to-enc: New file.
58773         * lib/uniconv/u16-conv-to-enc.c: New file.
58774         * lib/uniconv/u-conv-to-enc.h: New file.
58775         * modules/uniconv/u16-conv-to-enc-tests: New file.
58776         * tests/uniconv/test-u16-conv-to-enc.c: New file.
58777
58778         * modules/uniconv/u8-conv-to-enc: New file.
58779         * lib/uniconv/u8-conv-to-enc.c: New file.
58780         * modules/uniconv/u8-conv-to-enc-tests: New file.
58781         * tests/uniconv/test-u8-conv-to-enc.c: New file.
58782
58783         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
58784         u32_conv_to_encoding): New declarations.
58785
58786 2007-06-09  Bruno Haible  <bruno@clisp.org>
58787
58788         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
58789
58790 2007-06-09  Bruno Haible  <bruno@clisp.org>
58791
58792         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
58793         * modules/malloca: Renamed from modules/allocsa, updated.
58794         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
58795         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
58796         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
58797         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
58798         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
58799         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
58800         * modules/xmalloca: Renamed from modules/xallocsa, updated.
58801         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
58802         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
58803         * modules/c-strcasestr (Depends-on): Update.
58804         * lib/c-strcasestr.c: Update.
58805         * modules/c-strstr (Depends-on): Update.
58806         * lib/c-strstr.c: Update.
58807         * modules/canonicalize-lgpl (Depends-on): Update.
58808         * lib/canonicalize-lgpl.c: Update.
58809         * modules/clean-temp (Depends-on): Update.
58810         * lib/clean-temp.c: Update.
58811         * modules/csharpcomp (Depends-on): Update.
58812         * lib/csharpcomp.c: Update.
58813         * modules/csharpexec (Depends-on): Update.
58814         * lib/csharpexec.c: Update.
58815         * modules/javacomp (Depends-on): Update.
58816         * lib/javacomp.c: Update.
58817         * modules/javaexec (Depends-on): Update.
58818         * lib/javaexec.c: Update.
58819         * modules/mbscasestr (Depends-on): Update.
58820         * lib/mbscasestr.c: Update.
58821         * modules/mbsstr (Depends-on): Update.
58822         * lib/mbsstr.c: Update.
58823         * modules/setenv (Depends-on): Update.
58824         * lib/setenv.c: Update.
58825         * modules/strcasestr (Depends-on): Update.
58826         * lib/strcasestr.c: Update.
58827         * modules/striconveha (Depends-on): Update.
58828         * lib/striconveha.c: Update.
58829         * modules/relocatable-prog-wrapper (Files): Update.
58830         * lib/relocwrapper.c: Update.
58831         * build-aux/install-reloc: Update.
58832         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
58833
58834 2007-06-08  Bruno Haible  <bruno@clisp.org>
58835
58836         Port to uClibc.
58837         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
58838         * lib/fpurge.c (fpurge): Likewise.
58839         * lib/freading.c (freading): Likewise.
58840         * lib/fseeko.c (rpl_fseeko): Likewise.
58841         * lib/fseterr.c (fseterr): Likewise.
58842         * lib/fwriting.c (fwriting): Likewise.
58843         * tests/test-fflush.c (main): Avoid a failure on uClibc.
58844
58845 2007-06-08  Bruno Haible  <bruno@clisp.org>
58846
58847         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
58848         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
58849         * modules/gettext (Files): Add m4/intlmacosx.m4.
58850
58851 2007-06-07  Bruno Haible  <bruno@clisp.org>
58852
58853         * modules/localename-tests: New file.
58854         * tests/test-localename.c: New file.
58855
58856         New module 'localename'.
58857         * lib/localename.h: New file.
58858         * lib/localename.c: New file, from GNU gettext.
58859         * m4/localename.m4: New file.
58860         * modules/localename: New file.
58861
58862 2007-06-07  Bruno Haible  <bruno@clisp.org>
58863
58864         Work around the lack of <wchar.h> on some builds of uClibc.
58865         * doc/headers/wchar.texi: Update.
58866         * lib/wchar_.h: Include <wchar.h> only if it exists.
58867         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
58868         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
58869         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
58870         doesn't exist.
58871         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
58872         * modules/mbfile (Depends-on): Add wchar.
58873         * modules/mbiter (Depends-on): Likewise.
58874         * modules/mbuiter (Depends-on): Likewise.
58875         Reported by Simon Josefsson.
58876
58877 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
58878
58879         Work around problem reported by Steven M. Schweda in
58880         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
58881         Tru64 5.1B with the Compaq compiler environment installed declares
58882         an 'isblank' function but does not define it in the C library.
58883         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
58884         * lib/regex_internal.h (isblank): Likewise.
58885         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
58886         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
58887
58888 2007-06-05  Bruno Haible  <bruno@clisp.org>
58889
58890         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
58891         ia64.
58892         * modules/printf-safe: New file.
58893         * modules/fprintf-posix (Depends-on): Add printf-safe.
58894         * modules/printf-posix (Depends-on): Likewise.
58895         * modules/snprintf-posix (Depends-on): Likewise.
58896         * modules/sprintf-posix (Depends-on): Likewise.
58897         * modules/vasnprintf-posix (Depends-on): Likewise.
58898         * modules/vasprintf-posix (Depends-on): Likewise.
58899         * modules/vfprintf-posix (Depends-on): Likewise.
58900         * modules/vprintf-posix (Depends-on): Likewise.
58901         * modules/vsnprintf-posix (Depends-on): Likewise.
58902         * modules/vsprintf-posix (Depends-on): Likewise.
58903         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
58904         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
58905         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
58906         "no" on i386, x86_64, ia64.
58907         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
58908         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
58909         on i386, x86_64, ia64.
58910         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
58911         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
58912         on i386, x86_64, ia64.
58913         * tests/test-vasnprintf-posix.c: Include float.h.
58914         (LDBL80_WORDS): New macro.
58915         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
58916         on i386, x86_64, ia64.
58917         * tests/test-vasprintf-posix.c: Include float.h.
58918         (LDBL80_WORDS): New macro.
58919         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
58920         on i386, x86_64, ia64.
58921         * tests/test-snprintf-posix.c: Include float.h.
58922         * tests/test-sprintf-posix.c: Likewise.
58923         * tests/test-vsnprintf-posix.c: Likewise.
58924         * tests/test-vsprintf-posix.c: Likewise.
58925
58926 2007-06-05  Bruno Haible  <bruno@clisp.org>
58927
58928         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
58929         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
58930         non-IEEE numbers on i386, x86_64, ia64.
58931         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
58932         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
58933         * tests/test-isnanl.h: Include float.h.
58934         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
58935
58936 2007-06-05  Bruno Haible  <bruno@clisp.org>
58937
58938         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
58939         also the %a / %A. Handle the %a / %A code before this extra handling.
58940
58941 2007-06-05  Bruno Haible  <bruno@clisp.org>
58942
58943         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
58944         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
58945
58946 2007-06-05  Bruno Haible  <bruno@clisp.org>
58947
58948         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
58949         typo in variable name.
58950
58951 2007-06-05  Eric Blake  <ebb9@byu.net>
58952
58953         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
58954         Reported by Simon Josefsson.
58955
58956 2007-06-04  Bruno Haible  <bruno@clisp.org>
58957
58958         Avoid test failures on some PowerPC platforms.
58959         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
58960         Define differently for PowerPC.
58961         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
58962         Reported by Gary V. Vaughan <gary@gnu.org>.
58963
58964 2007-06-02  Bruno Haible  <bruno@clisp.org>
58965
58966         Fix test-stdint failure on FreeBSD/ia64.
58967         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
58968         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
58969         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
58970         * doc/headers/stdint.texi: Update.
58971
58972 2007-06-01  Bruno Haible  <bruno@clisp.org>
58973
58974         * tests/test-binary-io.c (main): Pass a third argument to open().
58975         Reported by Gary V. Vaughan <gary@gnu.org>.
58976
58977 2007-06-01  Bruno Haible  <bruno@clisp.org>
58978
58979         * doc/functions/frexpl.texi: Update for mingw.
58980
58981 2007-06-01  Bruno Haible  <bruno@clisp.org>
58982
58983         * tests/test-lseek.c (main): Disable test of errno for invalid third
58984         argument.
58985         * doc/functions/lseek.texi: Update.
58986         Reported by Gary V. Vaughan <gary@gnu.org>.
58987
58988 2007-05-28  Bruno Haible  <bruno@clisp.org>
58989
58990         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
58991
58992 2007-05-31  Eric Blake  <ebb9@byu.net>
58993
58994         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
58995         cross compiling.
58996
58997 2007-05-30  Eric Blake  <ebb9@byu.net>
58998         and Bruno Haible  <bruno@clisp.org>
58999
59000         Work around mingw test failures exposed by m4-1.4.9b.
59001         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
59002         * tests/test-unistd.c: Disable uid_t and git_t tests for the
59003         moment.
59004
59005 2007-05-30  Bruno Haible  <bruno@clisp.org>
59006
59007         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
59008         assuming that they are closed. Needed on HP-UX 11.
59009
59010 2007-05-29  Bruno Haible  <bruno@clisp.org>
59011
59012         Fix a problem with #include_next.
59013         * lib/dirent_.h: Split the double-inclusion guard.
59014         * lib/fcntl_.h: Likewise.
59015         * lib/float_.h: Likewise.
59016         * lib/iconv_.h: Likewise.
59017         * lib/inttypes_.h: Likewise.
59018         * lib/locale_.h: Likewise.
59019         * lib/math_.h: Likewise.
59020         * lib/netinet_in_.h: Likewise.
59021         * lib/search_.h: Likewise.
59022         * lib/signal_.h: Likewise.
59023         * lib/stdint_.h: Likewise.
59024         * lib/stdio_.h: Likewise.
59025         * lib/stdlib_.h: Likewise.
59026         * lib/string_.h: Likewise.
59027         * lib/sys_select_.h: Likewise.
59028         * lib/sys_socket_.h: Likewise.
59029         * lib/sys_stat_.h: Likewise.
59030         * lib/sys_time_.h: Likewise.
59031         * lib/sysexits_.h: Likewise.
59032         * lib/time_.h: Likewise.
59033         * lib/unistd_.h: Likewise.
59034         * lib/wchar_.h: Likewise.
59035         * lib/wctype_.h: Likewise.
59036
59037 2007-05-29  Bruno Haible  <bruno@clisp.org>
59038
59039         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
59040         for the moment.
59041
59042 2007-05-29  Bruno Haible  <bruno@clisp.org>
59043
59044         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
59045         invocation.
59046         Reported by Eric Blake.
59047
59048 2007-05-29  Bruno Haible  <bruno@clisp.org>
59049
59050         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
59051         compiling case.
59052
59053 2007-05-29  Eric Blake  <ebb9@byu.net>
59054             Bruno Haible  <bruno@clisp.org>
59055
59056         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
59057         cross compiles.
59058
59059 2007-05-28  Eric Blake  <ebb9@byu.net>
59060
59061         * modules/closein-tests (test_closein_LDADD): Support test on
59062         cygwin with libtool.
59063
59064 2007-05-28  Bruno Haible  <bruno@clisp.org>
59065
59066         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
59067         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
59068         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
59069         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
59070         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
59071         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
59072         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
59073         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
59074         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
59075
59076 2007-05-28  Eric Blake  <ebb9@byu.net>
59077
59078         Unconditionally include <config.h> in unit tests.
59079         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
59080         * tests/test-allocsa.c, tests/test-arcfour.c,
59081         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
59082         tests/test-array_list.c, tests/test-array_oset.c,
59083         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
59084         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
59085         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
59086         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
59087         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
59088         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
59089         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
59090         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
59091         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
59092         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
59093         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
59094         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
59095         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
59096         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
59097         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
59098         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
59099         test-md5.c, test-memmem.c, test-printf-posix.c,
59100         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
59101         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
59102         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
59103         test-strcasestr.c, test-striconv.c, test-striconveh.c,
59104         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
59105         test-vasnprintf-posix2.c, test-vasnprintf.c,
59106         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
59107         test-vfprintf-posix.c, test-vprintf-posix.c,
59108         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
59109         test-xvasprintf.c: Likewise.
59110
59111 2007-05-28  Bruno Haible  <bruno@clisp.org>
59112
59113         * gnulib-tool (func_import): Remember the --with-tests command-line
59114         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
59115         Reported by Eric Blake.
59116
59117 2007-05-28  Bruno Haible  <bruno@clisp.org>
59118
59119         * modules/ftell-tests: New file.
59120         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
59121         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
59122
59123         * lib/ftell.c: New file.
59124         * modules/ftell: New file.
59125         * m4/ftell.m4: New file.
59126         * doc/functions/ftell.texi: Update.
59127         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
59128         REPLACE_FTELL.
59129         * lib/stdio_.h (rpl_ftell): New declaration.
59130         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
59131         REPLACE_FTELL.
59132
59133 2007-05-28  Eric Blake  <ebb9@byu.net>
59134
59135         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
59136
59137 2007-05-28  Bruno Haible  <bruno@clisp.org>
59138
59139         * modules/fseek-tests: New file.
59140         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
59141         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
59142
59143         * lib/fseek.c: New file.
59144         * modules/fseek: New file.
59145         * m4/fseek.m4: New file.
59146         * doc/functions/fseek.texi: Update.
59147         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
59148         REPLACE_FSEEK.
59149         * lib/stdio_.h (rpl_fseek): New declaration.
59150         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
59151         REPLACE_FSEEK.
59152
59153 2007-05-28  Bruno Haible  <bruno@clisp.org>
59154
59155         * lib/stdio_.h (fflush): More comments.
59156
59157 2007-05-28  Bruno Haible  <bruno@clisp.org>
59158
59159         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
59160         runtime test.
59161
59162 2007-05-28  Eric Blake  <ebb9@byu.net>
59163
59164         Improve lseek module.
59165         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
59166         * lib/unistd_.h (lseek): Scale back link warning message.
59167         * tests/test-lseek.c: Beef up test.
59168         * tests/test-lseek.sh: Exercise more facets of lseek.
59169         Reported by Bruno Haible.
59170
59171 2007-05-28  Bruno Haible  <bruno@clisp.org>
59172
59173         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
59174         to define.
59175
59176 2007-05-27  Bruno Haible  <bruno@clisp.org>
59177
59178         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
59179
59180 2007-05-27  Bruno Haible  <bruno@clisp.org>
59181
59182         * modules/openmp: New file.
59183         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
59184         Noah Misch.
59185
59186 2007-05-26  Bruno Haible  <bruno@clisp.org>
59187
59188         * modules/chdir-long (Depends-on): Add fchdir.
59189         * modules/chdir-safer (Depends-on): Likewise.
59190         * modules/fts (Depends-on): Likewise.
59191         * modules/fts-lgpl (Depends-on): Likewise.
59192         * modules/openat (Depends-on): Likewise.
59193         * modules/savewd (Depends-on): Likewise.
59194
59195 2007-05-24  Eric Blake  <ebb9@byu.net>
59196
59197         Fix lseek on mingw.
59198         * modules/lseek: New module.
59199         * m4/lseek.m4: New file.
59200         * lib/lseek.c: New file.
59201         * modules/lseek-tests: New file.
59202         * tests/test-lseek.c: New file.
59203         * tests/test-lseek.sh: New file.
59204         * MODULES.html.sh: Document lseek module.
59205         * modules/fflush (Depends-on): Add lseek, fseeko.
59206         * modules/fseeko (Depends-on): Likewise.
59207         * modules/ftello (Depends-on): Likewise.
59208         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
59209         broken.
59210         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
59211         broken.
59212         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
59213         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
59214         * lib/ftello.c (rpl_ftello): Likewise.
59215         * tests/test-fseeko.c (main): Test this.
59216         * tests/test-fseeko.sh: Likewise.
59217         * tests/test-ftello.c (main): Likewise.
59218         * tests/test-ftello.sh: Likewise.
59219         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
59220         implies replacing fseek.
59221         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
59222         HAVE_FTELLO.
59223         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
59224         * modules/unistd (Makefile.am): Likewise.
59225         * lib/unistd_.h (lseek): Declare a replacement.
59226         * doc/functions/lseek.texi (lseek): Document this fix.
59227         * doc/functions/fseek.texi (fseek): Likewise.
59228         * doc/functions/ftell.texi (ftell): Likewise.
59229
59230 2007-05-24  Bruno Haible  <bruno@clisp.org>
59231
59232         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
59233         in the printed representation of a NaN.
59234         * tests/test-vasprintf-posix.c (test_function): Likewise.
59235         * tests/test-snprintf-posix.h (test_function): Likewise.
59236         * tests/test-sprintf-posix.h (test_function): Likewise.
59237         Reported by Eric Blake.
59238
59239 2007-05-23  Eric Blake  <ebb9@byu.net>
59240
59241         Fix fseeko/ftello on cygwin 1.5.24.
59242         * doc/functions/fseeko.texi (fseeko): Document the fix.
59243         * doc/functions/ftello.texi (ftello): Document the fix.
59244         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
59245         * doc/functions/stdout.text (stdout): New file.
59246         * doc/functions/stderr.text (stderr): New file.
59247         * doc/gnulib.texi (Function Substitutes): Use new files.
59248         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
59249         prior to 1.7.0.
59250         * tests/test-ftello.c (main): Likewise for ftello.
59251         * tests/test-fseeko.sh: New file.
59252         * tests/test-ftello.sh: New file.
59253         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
59254         with seekable stdin.
59255         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
59256         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
59257         (gl_REPLACE_FSEEKO): New macro.
59258         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
59259         * modules/fseeko (Files): Distribute fseeko.c.
59260         * modules/ftello (Files): Distribute ftello.c.
59261         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
59262         mode.
59263         * lib/ftello.c (rpl_ftello): New file.
59264         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
59265         fseeko, ftello.
59266         (gl_STDIN_LARGE_OFFSET): New macro.
59267         * modules/stdio (Makefile.am): Perform the replacement.
59268         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
59269
59270 2007-05-23  Bruno Haible  <bruno@clisp.org>
59271
59272         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
59273         GNULIB_POSIXCHECK is defined.
59274
59275 2007-05-21  Bruno Haible  <bruno@clisp.org>
59276
59277         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
59278         Check also the output for NaN arguments. When cross-compiling, guess
59279         no on IRIX.
59280         * lib/vasnprintf.c: Update comments.
59281         * tests/test-vasnprintf-posix.c (strisnan): New function.
59282         (test_function): Use it.
59283         * tests/test-vasprintf-posix.c (strisnan): New function.
59284         (test_function): Use it.
59285         * tests/test-snprintf-posix.h (strisnan): New function.
59286         (test_function): Use it.
59287         * tests/test-sprintf-posix.h (strisnan): New function.
59288         (test_function): Use it.
59289         Reported by Eric Blake.
59290
59291 2007-05-20  Bruno Haible  <bruno@clisp.org>
59292
59293         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
59294         numbers that fails on BeOS.
59295         * doc/functions/frexpl.texi: Update.
59296
59297 2007-05-20  Jim Meyering  <jim@meyering.net>
59298
59299         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
59300         forced upon us by glibc-2.6.
59301
59302 2007-05-20  Bruno Haible  <bruno@clisp.org>
59303
59304         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
59305         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
59306         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
59307         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
59308         NEED_PRINTF_INFINITE.
59309         (is_infinitel): New function.
59310         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
59311         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
59312         gl_PREREQ_VASNPRINTF_INFINITE.
59313         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
59314         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
59315         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
59316         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
59317         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
59318         gl_PREREQ_VASNPRINTF_INFINITE.
59319         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
59320         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
59321         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
59322         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
59323         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
59324         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59325         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
59326         * doc/functions/fprintf.texi: Update.
59327         * doc/functions/printf.texi: Update.
59328         * doc/functions/snprintf.texi: Update.
59329         * doc/functions/sprintf.texi: Update.
59330         * doc/functions/vfprintf.texi: Update.
59331         * doc/functions/vprintf.texi: Update.
59332         * doc/functions/vsnprintf.texi: Update.
59333         * doc/functions/vsprintf.texi: Update.
59334
59335 2007-05-20  Bruno Haible  <bruno@clisp.org>
59336
59337         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
59338         was not found in libc.
59339         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
59340
59341 2007-05-20  Bruno Haible  <bruno@clisp.org>
59342
59343         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
59344         printed as "-nan" instead of "nan".
59345         * tests/test-vasprintf-posix.c (test_function): Likewise.
59346         * tests/test-snprintf-posix.h (test_function): Likewise.
59347         * tests/test-sprintf-posix.h (test_function): Likewise.
59348         Needed for HP-UX 11.
59349
59350 2007-05-20  Jim Meyering  <jim@meyering.net>
59351
59352         Fix buggy test for the fchownat-deref bug.
59353         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
59354         symlink required for the run-test.  Without it, this test would
59355         always declare that fchownat doesn't work, and client code would
59356         unnecessarily use the replacement function with fixed libc.
59357         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
59358         Reported by Greg Schafer.
59359
59360 2007-05-19  Bruno Haible  <bruno@clisp.org>
59361
59362         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
59363         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
59364         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
59365         Needed for IRIX 6.5 and Solaris 2.5.1.
59366
59367 2007-05-19  Bruno Haible  <bruno@clisp.org>
59368
59369         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
59370         (test_function): Skip tests involving -0.0 on platforms where
59371         -0.0 = 0.0.
59372         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
59373         (test_function): Skip tests involving -0.0 on platforms where
59374         -0.0 = 0.0.
59375         * tests/test-snprintf-posix.h (have_minus_zero): New function.
59376         (test_function): Skip tests involving -0.0 on platforms where
59377         -0.0 = 0.0.
59378         * tests/test-sprintf-posix.h (have_minus_zero): New function.
59379         (test_function): Skip tests involving -0.0 on platforms where
59380         -0.0 = 0.0.
59381         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
59382         tests.
59383         * tests/test-printf-posix.h (test_function): Likewise.
59384         * tests/test-printf-posix.output: Remove all -0.0 related results.
59385         Needed for IRIX 6.5.
59386
59387 2007-05-19  Bruno Haible  <bruno@clisp.org>
59388
59389         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
59390         printed as "nan0x7fffffff" instead of "nan".
59391         * tests/test-vasprintf-posix.c (test_function): Likewise.
59392         * tests/test-snprintf-posix.h (test_function): Likewise.
59393         * tests/test-sprintf-posix.h (test_function): Likewise.
59394         * tests/test-fprintf-posix.h (NaN): Remove macro.
59395         (test_function): Remove all NaN related tests.
59396         * tests/test-printf-posix.h (NaN): Remove macro.
59397         (test_function): Remove all NaN related tests.
59398         * tests/test-printf-posix.output: Remove all NaN related results.
59399         Needed for IRIX 6.5.
59400
59401 2007-05-19  Bruno Haible  <bruno@clisp.org>
59402
59403         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
59404         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
59405
59406 2007-05-19  Bruno Haible  <bruno@clisp.org>
59407
59408         * lib/float_.h: New file.
59409         * m4/float_h.m4: New file.
59410         * modules/float: New file.
59411         * modules/isnanl (Dependencies): Add float.
59412         * modules/isnanl-nolibm (Dependencies): Likewise.
59413         * modules/mathl (Dependencies): Likewise.
59414         * modules/printf-frexpl (Dependencies): Likewise.
59415         * modules/signbit (Dependencies): Likewise.
59416         * modules/vasnprintf (Dependencies): Likewise.
59417         * doc/headers/float.texi: Update.
59418
59419 2007-05-19  Jim Meyering  <jim@meyering.net>
59420
59421         * lib/utimens.c (gl_futimens): Rename from futimens,
59422         now that glibc-2.6 declares futimens.
59423         * lib/utimens.h: Likewise.
59424
59425 2007-05-19  Bruno Haible  <bruno@clisp.org>
59426
59427         Avoid test failures on mingw.
59428         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
59429         * tests/test-printf-posix.sh: Likewise.
59430         * tests/test-vfprintf-posix.sh: Likewise.
59431         * tests/test-vprintf-posix.sh: Likewise.
59432
59433 2007-05-19  Bruno Haible  <bruno@clisp.org>
59434
59435         Fix *printf result for NaN, Inf, -0.0 on mingw.
59436         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
59437         * lib/vasnprintf.c: Include math.h and isnan.h.
59438         (is_infinite_or_zero): New function.
59439         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
59440         values in the %f, %F, %e, %E, %g, %G directives.
59441         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
59442         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
59443         gl_PRINTF_INFINITE and test its result. Invoke
59444         gl_PREREQ_VASNPRINTF_INFINITE.
59445         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
59446         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
59447         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
59448         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
59449         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
59450         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59451         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
59452         * doc/functions/fprintf.texi: Update.
59453         * doc/functions/printf.texi: Update.
59454         * doc/functions/snprintf.texi: Update.
59455         * doc/functions/sprintf.texi: Update.
59456         * doc/functions/vfprintf.texi: Update.
59457         * doc/functions/vprintf.texi: Update.
59458         * doc/functions/vsnprintf.texi: Update.
59459         * doc/functions/vsprintf.texi: Update.
59460
59461 2007-05-19  Bruno Haible  <bruno@clisp.org>
59462
59463         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
59464         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
59465         Instead of multiplying with 10^k, set extra_zeroes to k.
59466         (scale10_round_long_double): Remove function.
59467
59468 2007-05-18  Bruno Haible  <bruno@clisp.org>
59469
59470         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
59471         introduced on 2007-05-06.
59472
59473 2007-05-18  Bruno Haible  <bruno@clisp.org>
59474
59475         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
59476         %g directives.
59477         * tests/test-vasprintf-posix.c (test_function): Likewise.
59478         * tests/test-snprintf-posix.h (test_function): Likewise.
59479         * tests/test-sprintf-posix.h (test_function): Likewise.
59480
59481 2007-05-18  Bruno Haible  <bruno@clisp.org>
59482
59483         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
59484         (strmatch): New function.
59485         (test_function): Test the %f directive on numbers of various exponents.
59486         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
59487         (strmatch): New function.
59488         (test_function): Test the %f directive on numbers of various exponents.
59489         * tests/test-snprintf-posix.h (strmatch): New function.
59490         (test_function): Test the %f directive on numbers of various exponents.
59491         * tests/test-sprintf-posix.h (strmatch): New function.
59492         (test_function): Test the %f directive on numbers of various exponents.
59493         * tests/test-snprintf-posix.c (SIZEOF): New macro.
59494         * tests/test-sprintf-posix.c (SIZEOF): New macro.
59495         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
59496         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
59497
59498 2007-05-18  Bruno Haible  <bruno@clisp.org>
59499
59500         Add support for 'long double' number output.
59501         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
59502         * lib/vasnprintf.c: Include math.h and float+.h.
59503         (mp_limb_t): New type.
59504         (GMP_LIMB_BITS): New macro.
59505         (mp_twolimb_t): New type.
59506         (GMP_TWOLIMB_BITS): New macro.
59507         (mpn_t): New type.
59508         (multiply, divide, convert_to_decimal, decode_long_double,
59509         scale10_round_long_double, scale10_round_decimal_long_double,
59510         floorlog10l): New functions.
59511         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
59512         for the %f, %F, %e, %E, %g, %G directives.
59513         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
59514         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
59515         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
59516         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
59517         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
59518         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
59519         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
59520         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
59521         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
59522         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59523         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
59524         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
59525         * modules/snprintf-posix (Depends-on): Likewise.
59526         * modules/sprintf-posix (Depends-on): Likewise.
59527         * modules/vasnprintf-posix (Depends-on): Likewise.
59528         * modules/vasprintf-posix (Depends-on): Likewise.
59529         * modules/vfprintf-posix (Depends-on): Likewise.
59530         * modules/vsnprintf-posix (Depends-on): Likewise.
59531         * modules/vsprintf-posix (Depends-on): Likewise.
59532         * modules/vasnprintf (Files): Add lib/float+.h.
59533         * doc/functions/fprintf.texi: Update.
59534         * doc/functions/printf.texi: Update.
59535         * doc/functions/snprintf.texi: Update.
59536         * doc/functions/sprintf.texi: Update.
59537         * doc/functions/vfprintf.texi: Update.
59538         * doc/functions/vprintf.texi: Update.
59539         * doc/functions/vsnprintf.texi: Update.
59540         * doc/functions/vsprintf.texi: Update.
59541
59542 2007-05-18  Bruno Haible  <bruno@clisp.org>
59543
59544         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
59545
59546 2007-05-18  Bruno Haible  <bruno@clisp.org>
59547
59548         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
59549         for printing 64-bit integers. Needed for mingw.
59550
59551 2007-05-18  Bruno Haible  <bruno@clisp.org>
59552
59553         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
59554         gl_FUNC_FREXPL_WORKS.
59555         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
59556
59557 2007-05-18  Bruno Haible  <bruno@clisp.org>
59558
59559         * modules/frexpl-nolibm-tests: New file.
59560
59561         * modules/frexpl-nolibm: New file.
59562         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
59563
59564 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
59565
59566         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
59567         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
59568         GCC 4.2, which otherwise issues a lot of warnings.
59569         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
59570         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
59571         Likewise.
59572         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
59573         * modules/iconv_open (iconv.h): Likewise.
59574         * modules/locale (locale.h): Likewise.
59575         * modules/netinet_in (netinet/in.h): Likewise.
59576         * modules/sys_select (sys_select.h): Likewise.
59577         * modules/sys_socket (sys/socket.h): Likewise.
59578         * modules/sys_stat (sys/stat.h): Likewise.
59579         * modules/sysexits (sysexits.h): Likewise.
59580         * modules/unistd (unistd.h): Likewise.
59581
59582 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59583
59584         * modules/closein-tests (Makefile.am): Distribute
59585         `test-closein.sh'.
59586
59587 2007-05-17  Bruno Haible  <bruno@clisp.org>
59588
59589         * tests/test-printf-posix.output: Renamed from
59590         tests/test-fprintf-posix.out.
59591         * modules/fprintf-posix-tests: Update.
59592         * modules/printf-posix-tests: Update.
59593         * modules/vfprintf-posix-tests: Update.
59594         * modules/vprintf-posix-tests: Update.
59595         * tests/test-fprintf-posix.sh: Update.
59596         * tests/test-printf-posix.sh: Update.
59597         * tests/test-vfprintf-posix.sh: Update.
59598         * tests/test-vprintf-posix.sh: Update.
59599         Reported by Ralf Wildenhues.
59600
59601 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
59602
59603         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
59604         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
59605         GCC 4.2, which otherwise issues a lot of warnings.
59606         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
59607         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
59608         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
59609         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
59610         it should no longer be needed.
59611         * lib/string_.h: Likewise.
59612         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
59613         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
59614         * modules/inttypes (inttypes.h): Likewise.
59615         * modules/math (math.h): Likewise.
59616         * modules/search (search.h): Likewise.
59617         * modules/signal (signal.h): Likewise.
59618         * modules/stdint (stdint.h): Likewise.
59619         * modules/stdio (stdio.h): Likewise.
59620         * modules/stdlib (stdlib.h): Likewise.
59621         * modules/string (string.h): Likewise.
59622         * modules/sys_time (sys/time.h): Likewise.
59623         * modules/time (time.h): Likewise.
59624         * modules/wchar (wchar.h): Likewise.
59625         * modules/wctype (wtype.h): Likewise.
59626
59627 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
59628
59629         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
59630
59631 2007-05-13  Bruno Haible  <bruno@clisp.org>
59632
59633         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
59634         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
59635         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
59636         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
59637         (gl_PREREQ_STRTOK_R): Don't require it here.
59638
59639 2007-05-13  Bruno Haible  <bruno@clisp.org>
59640
59641         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
59642         when used in C++ mode.
59643
59644 2007-05-12  Bruno Haible  <bruno@clisp.org>
59645
59646         * lib/linebuffer.h: Tweak doc.
59647         * lib/linebuffer.c: Likewise.
59648
59649 2007-05-12  James Youngman  <jay@gnu.org>
59650
59651         * lib/linebuffer.c (readlinebuffer_delim): New function,
59652         like readlinebuffer, but use a caller-specified delimiter.
59653         (readlinebuffer): Just call readlinebuffer_delim with '\n'
59654         as the delimiter.
59655         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
59656
59657 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
59658
59659         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
59660         * modules/openat (Files): Remove openat-die.c.
59661         (Depends-on): Add openat-die.
59662         * modules/openat-die: New module.
59663
59664 2007-05-06  Bruno Haible  <bruno@clisp.org>
59665
59666         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
59667         Update with info about Cygwin.
59668         * doc/functions/fprintf.texi: Update.
59669         * doc/functions/printf.texi: Update.
59670         * doc/functions/snprintf.texi: Update.
59671         * doc/functions/sprintf.texi: Update.
59672         * doc/functions/vfprintf.texi: Update.
59673         * doc/functions/vprintf.texi: Update.
59674         * doc/functions/vsnprintf.texi: Update.
59675         * doc/functions/vsprintf.texi: Update.
59676         Reported by Eric Blake.
59677
59678 2007-05-06  Bruno Haible  <bruno@clisp.org>
59679
59680         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
59681         padding ourselves for the floating-point directives.
59682         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
59683         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
59684         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
59685         gl_PRINTF_FLAG_ZERO and test its result. Invoke
59686         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
59687         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
59688         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
59689         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
59690         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
59691         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
59692         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59693         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
59694         * tests/test-snprintf-posix.h (test_function): Also check the width
59695         and some flags in the %f directive.
59696         * tests/test-sprintf-posix.h (test_function): Likewise.
59697         * tests/test-vasnprintf-posix.c (test_function): Likewise.
59698         * tests/test-vasprintf-posix.c (test_function): Likewise.
59699         * doc/functions/fprintf.texi: Update.
59700         * doc/functions/printf.texi: Update.
59701         * doc/functions/snprintf.texi: Update.
59702         * doc/functions/sprintf.texi: Update.
59703         * doc/functions/vfprintf.texi: Update.
59704         * doc/functions/vprintf.texi: Update.
59705         * doc/functions/vsnprintf.texi: Update.
59706         * doc/functions/vsprintf.texi: Update.
59707
59708 2007-05-06  Bruno Haible  <bruno@clisp.org>
59709
59710         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
59711         pass the ' flag character to sprintf or snprintf.
59712         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
59713         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
59714         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
59715         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
59716         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
59717         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
59718         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
59719         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
59720         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
59721         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
59722         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59723         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
59724         * tests/test-snprintf-posix.h (test_function): Also check the grouping
59725         flag.
59726         * tests/test-sprintf-posix.h (test_function): Likewise.
59727         * tests/test-vasnprintf-posix.c (test_function): Likewise.
59728         * tests/test-vasprintf-posix.c (test_function): Likewise.
59729         * doc/functions/fprintf.texi: Update.
59730         * doc/functions/printf.texi: Update.
59731         * doc/functions/snprintf.texi: Update.
59732         * doc/functions/sprintf.texi: Update.
59733         * doc/functions/vfprintf.texi: Update.
59734         * doc/functions/vprintf.texi: Update.
59735         * doc/functions/vsnprintf.texi: Update.
59736         * doc/functions/vsprintf.texi: Update.
59737
59738 2007-05-01  Bruno Haible  <bruno@clisp.org>
59739
59740         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
59741
59742 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
59743
59744         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
59745         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
59746
59747 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
59748
59749         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
59750         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
59751         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
59752
59753 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
59754
59755         * lib/argp-help.c (struct hol_entry): New member `ord'.
59756         (HOL_ENTRY_PTRCMP): Use ord for comparison
59757         (hol_sort): Initialize ord.
59758
59759 2007-05-01  Bruno Haible  <bruno@clisp.org>
59760
59761         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
59762         Reported by Eric Blake.
59763         * doc/gnulib.texi (Function Substitutes): Update.
59764
59765 2007-05-01  Bruno Haible  <bruno@clisp.org>
59766
59767         * doc/functions.texi: Remove file, now redundant through
59768         doc/functions/*.texi.
59769
59770 2007-05-01  Bruno Haible  <bruno@clisp.org>
59771
59772         * modules/argp (Depends-on): Add sleep.
59773
59774 2007-05-01  Bruno Haible  <bruno@clisp.org>
59775
59776         * modules/sleep-tests: New file.
59777         * tests/test-sleep.c: New file.
59778
59779         * modules/sleep: New file.
59780         * lib/sleep.c: New file.
59781         * m4/sleep.m4: New file.
59782         * lib/unistd_.h (sleep): New declaration.
59783         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
59784         HAVE_SLEEP.
59785         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
59786         * doc/functions/sleep.texi: Document the sleep module.
59787
59788 2007-05-01  Bruno Haible  <bruno@clisp.org>
59789
59790         * lib/sigprocmask.h: Remove file.
59791         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
59792         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
59793         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
59794         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
59795         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
59796         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
59797         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
59798         HAVE_SIGSET_T as a shell variable.
59799         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
59800         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
59801         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
59802         (Depends-on): Add signal. Remove verify.
59803         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
59804         (Include): Mention <signal.h> instead of sigprocmask.h.
59805         * NEWS: Mention the change.
59806         * lib/fatal-signal.c: Don't include sigprocmask.h.
59807
59808 2007-05-01  Bruno Haible  <bruno@clisp.org>
59809
59810         * modules/signal: New file.
59811         * lib/signal_.h: New file.
59812         * m4/signal_h.m4: New file.
59813
59814 2007-05-01  Bruno Haible  <bruno@clisp.org>
59815
59816         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
59817         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
59818         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
59819         HAVE_WCTYPE_CTMP_BUG into wctype.h.
59820
59821 2007-05-01  Bruno Haible  <bruno@clisp.org>
59822
59823         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
59824         configure time.
59825         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
59826         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
59827         * modules/sys_stat (Makefile.am): Substitute their values into
59828         sys/stat.h.
59829
59830 2007-05-01  Bruno Haible  <bruno@clisp.org>
59831
59832         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
59833         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
59834         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
59835
59836 2007-05-01  Bruno Haible  <bruno@clisp.org>
59837
59838         * doc/header/assert.texi: Undo last change: don't mention the gnulib
59839         'assert' module here.
59840
59841 2007-05-01  Bruno Haible  <bruno@clisp.org>
59842
59843         * doc/functions/*.texi: New files.
59844         * doc/functions/google-ranking.txt: New file.
59845         * doc/gnulib.texi (Function Substitutes): New chapter.
59846         (ctime, inet_ntoa): Remove sections.
59847         * doc/ctime.texi: Remove file.
59848         * doc/inet_ntoa.texi: Remove file.
59849         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
59850         dependencies.
59851         (%.info): New rule, specifying a --reference-limit.
59852
59853 2007-05-01  Bruno Haible  <bruno@clisp.org>
59854
59855         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
59856
59857 2007-05-01  Bruno Haible  <bruno@clisp.org>
59858
59859         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
59860         the portability of 'mkdir' to mingw systems.
59861
59862 2007-05-01  Bruno Haible  <bruno@clisp.org>
59863
59864         * doc/headers/google-ranking.txt: New file.
59865
59866 2007-04-30  Eric Blake  <ebb9@byu.net>
59867
59868         Prefer fseeko to fseek.
59869         * modules/getpass (Depends-on): Add fseeko.
59870         * lib/getpass.c (getpass): Use fseeko, not fseek.
59871
59872 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
59873
59874         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
59875         assumes the sorting is stable, while most qsort implementations
59876         are not.  Use argument addresses to ensure they never compare as
59877         equal.
59878
59879         * tests/test-argp-2.sh (usage-indent test): Fix output
59880         (func_compare): Restore diff options
59881         * tests/test-argp.c: Restore #include "progname.h"
59882
59883 2007-04-29  Bruno Haible  <bruno@clisp.org>
59884
59885         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
59886         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
59887         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
59888         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59889         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
59890         (configure.ac): Define CHECK_SNPRINTF_POSIX.
59891         (TESTS, check_PROGRAMS): Add test-snprintf.
59892         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
59893         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
59894         (TESTS, check_PROGRAMS): Add test-vsnprintf.
59895         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
59896         assertions that fail on HP-UX, OSF/1, or IRIX.
59897         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
59898
59899 2007-04-29  Bruno Haible  <bruno@clisp.org>
59900
59901         * MODULES.html.sh (posix_functions): Remove 'contents'.
59902
59903 2007-04-29  Karl Berry  <karl@gnu.org>
59904
59905         * config/srclist.txt (gendocs_template_min): new entry.
59906
59907 2007-04-29  Bruno Haible  <bruno@clisp.org>
59908
59909         Work around fpurge bug on BSD systems.
59910         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
59911         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
59912         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
59913         fpurge to rpl_fpurge if the system already has this function.
59914         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
59915         the case where the system already has this function. Correct invariants
59916         on BSD systems.
59917         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
59918         BSD systems.
59919
59920 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
59921
59922         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
59923         proposed by Sven Verdoolaege.
59924
59925         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
59926         options.
59927         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
59928         (usage and help tests): Update
59929
59930 2007-04-29  Bruno Haible  <bruno@clisp.org>
59931
59932         * tests/test-fflush.c (main): Use a file of size 17, not 10.
59933         Print more information in case of failure. Disable a test on BeOS.
59934
59935 2007-04-29  Bruno Haible  <bruno@clisp.org>
59936
59937         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
59938         This helps debugging on systems on which no gdb is available.
59939
59940 2007-04-29  Bruno Haible  <bruno@clisp.org>
59941
59942         * lib/freading.h: Improve comments.
59943         * lib/fwriting.h: Likewise.
59944         * tests/test-freading.c (main): Don't check freading immediately after
59945         repositioning. Needed for glibc.
59946
59947 2007-04-29  Bruno Haible  <bruno@clisp.org>
59948
59949         * lib/freading.c (freading): Trivial simplification.
59950
59951 2007-04-28  Bruno Haible  <bruno@clisp.org>
59952
59953         * tests/test-fwriting.c (main): Also test the interaction between
59954         fflush and fwriting.
59955         * modules/fwriting-tests (Depends-on): Add fflush.
59956
59957         * tests/test-freading.c (main): Also test the interaction between
59958         fflush and freading.
59959         * modules/freading-tests (Depends-on): Add fflush.
59960
59961 2007-04-28  Bruno Haible  <bruno@clisp.org>
59962
59963         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
59964         fseeko and ftello.
59965         Suggested by Eric Blake.
59966
59967 2007-04-28  Jim Meyering  <jim@meyering.net>
59968
59969         Avoid false-negative in gl_STDINT_H's C99 conformance test.
59970         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
59971         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
59972
59973 2007-04-27  Eric Blake  <ebb9@byu.net>
59974
59975         * doc/headers/assert.texi (assert.h): Document assert module use.
59976
59977 2007-04-27  Bruno Haible  <bruno@clisp.org>
59978
59979         * doc/headers/*.texi: New files.
59980         * doc/gnulib.texi (Header File Substitutes): New chapter.
59981         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
59982         dependencies.
59983         (standards.info ,standards.html, standards.dvi): Update dependencies.
59984         (mostlyclean, clean): New targets.
59985
59986 2007-04-27  Bruno Haible  <bruno@clisp.org>
59987
59988         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
59989         * modules/sysexits (Files, Makefile.am): Update.
59990
59991         * lib/sys_socket_.h: Renamed from lib/socket_.h.
59992         * modules/sys_socket (Files, Makefile.am): Update.
59993
59994         * lib/sys_stat_.h: Renamed from lib/stat_.h.
59995         * modules/sys_stat (Files, Makefile.am): Update.
59996
59997 2007-04-27  Eric Blake  <ebb9@byu.net>
59998
59999         * lib/freading.h: Improve comments.
60000         * lib/fwriting.h: Likewise.
60001         * lib/fflush.c: Likewise.
60002
60003         Fix closein for mingw.
60004         * modules/closein-tests: Add tests for closein.
60005         * tests/test-closein.c: New file.
60006         * tests/test-closein.sh: Likewise.
60007         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
60008         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
60009
60010 2007-04-27  Bruno Haible  <bruno@clisp.org>
60011
60012         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
60013         version is < 6.
60014         * lib/math_.h [__DECC]: Likewise.
60015         * lib/stdio_.h [__DECC]: Likewise.
60016         * lib/stdlib_.h [__DECC]: Likewise.
60017         * lib/string_.h [__DECC]: Likewise.
60018         * lib/time_.h [__DECC]: Likewise.
60019         * lib/wchar_.h [__DECC]: Likewise.
60020         * lib/wctype_.h [__DECC]: Likewise.
60021
60022 2007-04-27  Bruno Haible  <bruno@clisp.org>
60023
60024         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
60025
60026 2007-04-27  Bruno Haible  <bruno@clisp.org>
60027
60028         * lib/fflush.c: Add comments.
60029         * modules/fpurge-tests (Depends-on): Add fflush.
60030         * modules/freadable-tests (Depends-on): Likewise.
60031         * modules/fwritable-tests (Depends-on): Likewise.
60032
60033 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
60034
60035         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
60036         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
60037         Report by Bruno Haible <bruno@clisp.org>.
60038
60039 2007-04-26  Eric Blake  <ebb9@byu.net>
60040
60041         Fix fflush on mingw.
60042         * modules/fflush (Depends-on): Add freading.
60043         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
60044         but unread data.
60045
60046 2007-04-26  Eric Blake  <ebb9@byu.net>
60047         and Bruno Haible  <bruno@clisp.org>
60048
60049         Implement freading and fwriting.
60050         * lib/freading.c: New file.
60051         * lib/freading.h: Likewise.
60052         * m4/freading.m4: Likewise.
60053         * modules/freading: Likewise.
60054         * modules/freading-tests: Likewise.
60055         * tests/test-freading.c: Likewise.
60056         * lib/fwriting.c: New file.
60057         * lib/fwriting.h: Likewise.
60058         * m4/fwriting.m4: Likewise.
60059         * modules/fwriting: Likewise.
60060         * modules/fwriting-tests: Likewise.
60061         * tests/test-fwriting.c: Likewise.
60062         * MODULES.html.sh (File stream based Input/Output): Mention them.
60063
60064 2007-04-26  Bruno Haible  <bruno@clisp.org>
60065
60066         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
60067         'long' when we assume it.
60068         Suggested by Eric Blake.
60069
60070 2007-04-26  Bruno Haible  <bruno@clisp.org>
60071
60072         Ensure fseeko, ftello are declared on glibc systems.
60073         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
60074         * modules/fseeko (configure.ac-early): Likewise.
60075         * modules/ftello (configure.ac-early): Likewise.
60076         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
60077         AC_FUNC_FSEEKO for this.
60078         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
60079         (gl_CHECK_FSEEKO): Remove macro.
60080
60081 2007-04-26  Bruno Haible  <bruno@clisp.org>
60082
60083         * tests/test-fflush.c (main): Also check the ftell result after
60084         fflush and fseek/fseeko.
60085         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
60086         file descriptor position cache in the stream.
60087         * lib/fseeko.c (rpl_fseeko): Likewise.
60088
60089 2007-04-26  Bruno Haible  <bruno@clisp.org>
60090
60091         * modules/fflush-tests (Depends-on): Add fseeko.
60092
60093 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
60094             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60095
60096         * lib/argz_.h: ensure error_t definition is obtained in same
60097         mechanism system argz.h would have.
60098         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
60099         argz facilities are known bad.  Err on the side of caution if
60100         cross-compiling.
60101
60102 2007-04-25  Eric Blake  <ebb9@byu.net>
60103
60104         * lib/fpurge.c (includes): Use stdlib.h for free.
60105         * tests/test-fflush.c (main): Also test fflush-fseeko.
60106
60107 2007-04-25  Bruno Haible  <bruno@clisp.org>
60108
60109         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
60110         * lib/fseeko.c: New file.
60111         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
60112         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
60113         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
60114         gl_FUNC_FSEEKO.
60115         (gl_FUNC_FSEEKO): Invoke it.
60116         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
60117         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
60118         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
60119
60120 2007-04-25  Bruno Haible  <bruno@clisp.org>
60121
60122         * modules/fflush (Depends-on): Add ftello.
60123
60124 2007-04-25  Bruno Haible  <bruno@clisp.org>
60125
60126         * modules/ftello-tests: New file.
60127         * tests/test-ftello.c: New file.
60128
60129         * modules/ftello: New file.
60130         * m4/ftello.m4: New file.
60131         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
60132         HAVE_FTELLO.
60133         * lib/stdio_.h (ftello): New declaration.
60134         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
60135         HAVE_FTELLO.
60136
60137 2007-04-25  Bruno Haible  <bruno@clisp.org>
60138
60139         * modules/fseeko-tests: New file.
60140         * tests/test-fseeko.c: New file.
60141
60142         * modules/fseeko: New file.
60143         * m4/fseeko.m4: New file.
60144         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
60145         HAVE_FSEEKO.
60146         * lib/stdio_.h (fseeko): New declaration.
60147         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
60148         HAVE_FSEEKO.
60149
60150 2007-04-25  Bruno Haible  <bruno@clisp.org>
60151
60152         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
60153
60154 2007-04-25  Bruno Haible  <bruno@clisp.org>
60155
60156         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
60157         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
60158         * tests/test-unistd.c: Likewise.
60159         * tests/test-fcntl.c: Likewise.
60160
60161 2007-04-23  Eric Blake  <ebb9@byu.net>
60162
60163         * lib/fflush.c: Fix missing include.
60164         Reported by Bruno Haible.
60165
60166 2007-04-23  Bruno Haible  <bruno@clisp.org>
60167
60168         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
60169         Reported by Eric Blake.
60170
60171 2007-04-23  Bruno Haible  <bruno@clisp.org>
60172
60173         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
60174
60175 2007-04-23  Bruno Haible  <bruno@clisp.org>
60176
60177         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
60178
60179 2007-04-23  Bruno Haible  <bruno@clisp.org>
60180
60181         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
60182         Needed on HP-UX 11.
60183
60184 2007-04-16  Eric Blake  <ebb9@byu.net>
60185
60186         Make fflush rely on fpurge.
60187         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
60188         open coding all variants.
60189         * modules/fflush (Depends-on): Add fpurge and unistd.
60190         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
60191         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
60192
60193         Fix --with-tests compilation on cygwin.
60194         * modules/argmatch-tests (Makefile.am): List gnulib library first
60195         in LDADD.
60196         * modules/argp-tests (Makefile.am): Likewise.
60197         * modules/array-list-tests (Makefile.am): Likewise.
60198         * modules/array-oset-tests (Makefile.am): Likewise.
60199         * modules/avltree-list-tests (Makefile.am): Likewise.
60200         * modules/avltree-oset-tests (Makefile.am): Likewise.
60201         * modules/avltreehash-list-tests (Makefile.am): Likewise.
60202         * modules/carray-list-tests (Makefile.am): Likewise.
60203         * modules/dirname-tests (Makefile.am): Likewise.
60204         * modules/frexp-tests (Makefile.am): Likewise.
60205         * modules/isnanl-tests (Makefile.am): Likewise.
60206         * modules/linked-list-tests (Makefile.am): Likewise.
60207         * modules/linkedhash-list-tests (Makefile.am): Likewise.
60208         * modules/lock-tests (Makefile.am): Likewise.
60209         * modules/rbtree-list-tests (Makefile.am): Likewise.
60210         * modules/rbtree-oset-tests (Makefile.am): Likewise.
60211         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
60212         * modules/tls-tests (Makefile.am): Likewise.
60213         * modules/tsearch-tests (Makefile.am): Likewise.
60214         * modules/xvasprintf-tests (Makefile.am): Likewise.
60215
60216         Fix fpurge for cygwin.
60217         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
60218         value.
60219         * modules/fpurge-tests (Depends-on): Clean up trash.
60220
60221 2007-04-16  Simon Josefsson  <simon@josefsson.org>
60222
60223         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
60224
60225         * m4/autobuild.m4: Re-indent.
60226
60227 2007-04-13  Bruno Haible  <bruno@clisp.org>
60228
60229         * modules/fpurge-tests: New file.
60230         * tests/test-fpurge.c: New file.
60231
60232         * modules/fpurge: New file.
60233         * lib/fpurge.h: New file.
60234         * lib/fpurge.c: New file.
60235         * m4/fpurge.m4: New file.
60236
60237 2007-04-13  Bruno Haible  <bruno@clisp.org>
60238
60239         * modules/fbufmode-tests: New file.
60240         * tests/test-fbufmode.c: New file.
60241
60242         * modules/fbufmode: New file.
60243         * lib/fbufmode.h: New file.
60244         * lib/fbufmode.c: New file.
60245         * m4/fbufmode.m4: New file.
60246
60247 2007-04-13  Bruno Haible  <bruno@clisp.org>
60248
60249         * modules/fwritable-tests: New file.
60250         * tests/test-fwritable.c: New file.
60251
60252         * modules/fwritable: New file.
60253         * lib/fwritable.h: New file.
60254         * lib/fwritable.c: New file.
60255         * m4/fwritable.m4: New file.
60256
60257 2007-04-13  Bruno Haible  <bruno@clisp.org>
60258
60259         * modules/freadable-tests: New file.
60260         * tests/test-freadable.c: New file.
60261
60262         * modules/freadable: New file.
60263         * lib/freadable.h: New file.
60264         * lib/freadable.c: New file.
60265         * m4/freadable.m4: New file.
60266
60267 2007-04-13  Bruno Haible  <bruno@clisp.org>
60268
60269         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
60270         MOSTLYCLEANFILES.
60271
60272 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
60273
60274         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
60275         gzip bootstrap.conf to avoid dragging in i18n machinery.
60276         (gnulib_tool_option): Use it.
60277
60278 2007-04-13  Bruno Haible  <bruno@clisp.org>
60279
60280         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
60281         %F directives.
60282         * tests/test-vasprintf-posix.c (test_function): Likewise.
60283         * tests/test-snprintf-posix.h (test_function): Likewise.
60284         * tests/test-sprintf-posix.h (test_function): Likewise.
60285         * tests/test-fprintf-posix.h (test_function): Likewise.
60286         * tests/test-printf-posix.h (test_function): Likewise.
60287         * tests/test-fprintf-posix.out: Likewise.
60288
60289 2007-04-13  Bruno Haible  <bruno@clisp.org>
60290
60291         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
60292         * modules/tls-tests (configure.ac): Likewise.
60293         Reported by Arto C. Nirkko <anirkko@insel.ch>.
60294
60295 2007-04-13  Bruno Haible  <bruno@clisp.org>
60296
60297         * lib/tls.c (glthread_tls_get): Fix return type.
60298         Patch by Arto C. Nirkko <anirkko@insel.ch>.
60299
60300 2007-04-12  Eric Blake  <ebb9@byu.net>
60301
60302         * modules/gettime (Depends-on): Remove gettime.
60303         Reported by Dmitry V. Levin.
60304
60305 2007-04-12  Bruno Haible  <bruno@clisp.org>
60306
60307         * modules/fflush (Include): Mention <stdio.h>.
60308         * modules/strtoimax (Include): Mention <inttypes.h>.
60309         * modules/strtoumax (Include): Likewise.
60310
60311 2007-04-12  Eric Blake  <ebb9@byu.net>
60312
60313         * .cvsignore: New file.
60314         * .gitignore: Likewise.
60315
60316 2007-04-12  Bruno Haible  <bruno@clisp.org>
60317
60318         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
60319         not before, since $(LDADD) often contains libgnu.a.
60320         * modules/striconv-tests (test_striconv_LDADD): Likewise.
60321         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
60322         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
60323         Needed on Cygwin.
60324
60325 2007-04-12  Eric Blake  <ebb9@byu.net>
60326
60327         Work around glibc's failure to flush stdin on fclose.
60328         * lib/closein.c (close_stdin): Flush stdin before closing.
60329
60330         Work around glibc's failure to reset seekable stdin on exit.
60331         * modules/closein: New module.
60332         * lib/closein.c: New file.
60333         * lib/closein.h: Likewise.
60334         * m4/closein.m4: Likewise.
60335         * MODULES.html.sh (File stream based Input/Output): Document it.
60336
60337 2007-04-12  Simon Josefsson  <simon@josefsson.org>
60338
60339         * gnulib-tool: Rename generated 'autobuild' script to
60340         'do-autobuild' in --create-megatestdir output.
60341
60342         * doc/gnulib.texi (Build robot for gnulib): Fix.
60343
60344 2007-04-12  Simon Josefsson  <simon@josefsson.org>
60345
60346         * modules/sysexits (Depends-on): Add absolute-header.
60347
60348 2007-04-12  Eric Blake  <ebb9@byu.net>
60349
60350         No need to preserve errno on success.
60351         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
60352         Reported by Bruno Haible.
60353
60354 2007-04-12  Simon Josefsson  <simon@josefsson.org>
60355
60356         * MODULES.html.sh (Support for maintaining and releasing
60357         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
60358
60359 2007-04-12  Simon Josefsson  <simon@josefsson.org>
60360
60361         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
60362
60363 2007-04-12  Simon Josefsson  <simon@josefsson.org>
60364
60365         * modules/autobuild: New module.
60366
60367         * m4/autobuild.m4: New file.
60368
60369 2007-04-11  Bruno Haible  <bruno@clisp.org>
60370
60371         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
60372         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
60373         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
60374         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
60375         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
60376         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60377         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60378         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
60379         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60380         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60381         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
60382         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60383         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60384         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
60385         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60386         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60387         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
60388         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60389         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60390         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
60391         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60392         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60393         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
60394         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60395         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60396         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
60397         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60398         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60399         Reported by Eric Blake.
60400
60401 2007-04-11  Bruno Haible  <bruno@clisp.org>
60402
60403         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
60404
60405 2007-04-10  Bruno Haible  <bruno@clisp.org>
60406
60407         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
60408         for NaN and Infinity. Needed on FreeBSD 6.1.
60409         * tests/test-vasnprintf-posix.c (test_function): Undo last change
60410         regarding results for "%010a" of Infinity and NaN.
60411         * tests/test-vasprintf-posix.c (test_function): Likewise.
60412         * tests/test-snprintf-posix.h (test_function): Likewise.
60413         * tests/test-sprintf-posix.h (test_function): Likewise.
60414         * tests/test-fprintf-posix.h (test_function): Likewise.
60415         * tests/test-printf-posix.h (test_function): Likewise.
60416         * tests/test-fprintf-posix.out: Likewise.
60417
60418 2007-04-10  Bruno Haible  <bruno@clisp.org>
60419
60420         * modules/locale-tests: New file.
60421         * tests/test-locale.c: New file.
60422
60423         * modules/locale: New file.
60424         * lib/locale_.h: New file.
60425         * m4/locale_h.m4: New file.
60426
60427 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
60428             Bruno Haible  <bruno@clisp.org>
60429
60430         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
60431         be determined, test for availability of the copysignf, copysign,
60432         copysignl functions.
60433         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
60434         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
60435         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
60436
60437 2007-04-09  Eric Blake  <ebb9@byu.net>
60438
60439         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
60440         * modules/stdio (Makefile.am): Support fflush.
60441         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
60442         * modules/fflush: New file.
60443         * lib/fflush.c: Likewise.
60444         * m4/fflush.m4: Likewise.
60445         * modules/fflush-tests: New test.
60446         * tests/test-fflush.c: Likewise.
60447         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
60448
60449 2007-04-06  Bruno Haible  <bruno@clisp.org>
60450
60451         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
60452         (VASNPRINTF): Use signbit for faster determination whether to print a
60453         minus sign.
60454         * modules/vasnprintf (Files): Remove lib/float+.h.
60455         * modules/fprintf-posix (Depends-on): Add signbit.
60456         * modules/snprintf-posix (Depends-on): Likewise.
60457         * modules/sprintf-posix (Depends-on): Likewise.
60458         * modules/vasnprintf-posix (Depends-on): Likewise.
60459         * modules/vasprintf-posix (Depends-on): Likewise.
60460         * modules/vfprintf-posix (Depends-on): Likewise.
60461         * modules/vsnprintf-posix (Depends-on): Likewise.
60462         * modules/vsprintf-posix (Depends-on): Likewise.
60463
60464 2007-04-06  Bruno Haible  <bruno@clisp.org>
60465
60466         * tests/test-frexp.c (main): Test also the sign bit of zero results.
60467         * tests/test-frexpl.c (main): Likewise.
60468         * tests/test-ldexpl.c (main): Likewise.
60469         * modules/frexp-tests (Depends-on): Add signbit.
60470         * modules/frexpl-tests (Depdends-on): Likewise.
60471         * modules/ldexpl-tests (Depdends-on): Likewise.
60472
60473 2007-04-06  Bruno Haible  <bruno@clisp.org>
60474
60475         * modules/signbit-tests: New file.
60476         * tests/test-signbit.c: New file.
60477
60478         * modules/signbit: New file.
60479         * lib/signbitf.c: New file.
60480         * lib/signbitd.c: New file.
60481         * lib/signbitl.c: New file.
60482         * m4/signbit.m4: New file.
60483         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
60484         (signbit): New macro.
60485         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
60486         REPLACE_SIGNBIT.
60487         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
60488         REPLACE_FREXPL into math.h.
60489
60490 2007-04-06  Bruno Haible  <bruno@clisp.org>
60491
60492         * modules/isnanf-nolibm-tests: New file.
60493         * tests/test-isnanf.c: New file.
60494
60495         * modules/isnanf-nolibm: New file.
60496         * lib/isnanf.h: New file.
60497         * lib/isnanf.c: New file.
60498         * lib/isnan.c: Consider the USE_FLOAT macro.
60499         * m4/isnanf.m4: New file.
60500
60501 2007-04-06  Bruno Haible  <bruno@clisp.org>
60502
60503         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
60504         (Link): New section.
60505
60506         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
60507
60508 2007-04-06  Bruno Haible  <bruno@clisp.org>
60509
60510         Assume the 'long double' type.
60511         * m4/longdouble.m4: Remove file.
60512         * config/srclist.txt: Don't mention longdouble.m4.
60513         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
60514         * lib/float+.h: Likewise.
60515         * lib/frexp.c: Likewise.
60516         * lib/printf-args.h: Likewise.
60517         * lib/printf-args.c: Likewise.
60518         * lib/printf-frexp.c: Likewise.
60519         * lib/printf-parse.c: Likewise.
60520         * lib/vasnprintf.c: Likewise.
60521         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
60522         * m4/intl.m4: Likewise.
60523         * m4/isnanl.m4: Likewise.
60524         * m4/printf.m4: Likewise.
60525         * m4/printf-frexpl.m4: Likewise.
60526         * m4/vasnprintf.m4: Likewise.
60527         * modules/allocsa (Files): Remove m4/longdouble.m4.
60528         * modules/gettext (Files): Likewise.
60529         * modules/relocatable-prog-wrapper (Files): Likewise.
60530         * modules/vasnprintf (Files): Likewise.
60531         * modules/isnanl (Files): Likewise.
60532         (Include): Simplify.
60533         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
60534         (Include): Simplify.
60535         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
60536         (Include): Simplify.
60537         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
60538         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
60539         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
60540         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
60541         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
60542         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
60543         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
60544         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
60545         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
60546         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
60547         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
60548         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
60549         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
60550         * tests/test-isnanl.c: Likewise.
60551         * tests/test-snprintf-posix.h: Likewise.
60552         * tests/test-sprintf-posix.h: Likewise.
60553         * tests/test-vasnprintf-posix.c: Likewise.
60554         * tests/test-vasnprintf-posix2.c: Likewise.
60555         * tests/test-vasprintf-posix.c: Likewise.
60556
60557 2007-04-06  Bruno Haible  <bruno@clisp.org>
60558
60559         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
60560         * lib/math_.h [__DECC]: Include the overridden include file through
60561         #include_next, outside the double-inclusion guard.
60562         * lib/stdio_.h [__DECC]: Likewise.
60563         * lib/stdlib_.h [__DECC]: Likewise.
60564         * lib/string_.h [__DECC]: Likewise.
60565         * lib/time_.h [__DECC]: Likewise.
60566         * lib/wchar_.h [__DECC]: Likewise.
60567         * lib/wctype_.h [__DECC]: Likewise.
60568         * lib/inttypes_.h [__DECC]: Likewise.
60569         Reported by Albert Chin <china@thewrittenword.com> in
60570         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
60571
60572 2007-04-04  Eric Blake  <ebb9@byu.net>
60573
60574         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
60575         1.5.x.
60576
60577 2007-04-04  Bruno Haible  <bruno@clisp.org>
60578
60579         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
60580         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
60581
60582 2007-04-04  Bruno Haible  <bruno@clisp.org>
60583
60584         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
60585         results for "%010a" of Infinity and NaN.
60586         * tests/test-vasprintf-posix.c (test_function): Likewise.
60587         * tests/test-snprintf-posix.h (test_function): Likewise.
60588         * tests/test-sprintf-posix.h (test_function): Likewise.
60589         * tests/test-fprintf-posix.h (test_function): Remove these tests.
60590         * tests/test-printf-posix.h (test_function): Likewise.
60591         * tests/test-fprintf-posix.out: Update.
60592         Needed for FreeBSD 6.1.
60593
60594 2007-04-04  Bruno Haible  <bruno@clisp.org>
60595
60596         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
60597         directly used by the gnulib modules nor by gnulib-tool.
60598
60599 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
60600
60601         * DEPENDENCIES: Give overall description of version dependency
60602         desirability.  Use more-typical names for apps.
60603         Add shell, coreutils, diffutils, grep, tar, gzip.
60604
60605 2007-04-04  Simon Josefsson  <simon@josefsson.org>
60606
60607         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
60608
60609 2007-04-04  Karl Berry  <karl@gnu.org>
60610
60611         * MODULES.html.sh (func_module): missing '.
60612
60613 2007-04-03  Bruno Haible  <bruno@clisp.org>
60614
60615         * modules/argmatch-tests (Makefile.am): New variable
60616         test_argmatch_LDADD.
60617         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
60618         * modules/array-list-tests (Makefile.am): New variable
60619         test_array_list_LDADD.
60620         * modules/array-oset-tests (Makefile.am): New variable
60621         test_array_oset_LDADD.
60622         * modules/avltree-list-tests (Makefile.am): New variable
60623         test_avltree_list_LDADD.
60624         * modules/avltree-oset-tests (Makefile.am): New variable
60625         test_avltree_oset_LDADD.
60626         * modules/avltreehash-list-tests (Makefile.am): New variable
60627         test_avltreehash_list_LDADD.
60628         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
60629         test_canonicalize_lgpl_LDADD.
60630         * modules/carray-list-tests (Makefile.am): New variable
60631         test_carray_list_LDADD.
60632         * modules/dirname-tests (Makefile.am): New variable
60633         test_dirname_LDADD.
60634         * modules/linked-list-tests (Makefile.am): New variable
60635         test_linked_list_LDADD.
60636         * modules/linkedhash-list-tests (Makefile.am): New variable
60637         test_linkedhash_list_LDADD.
60638         * modules/rbtree-list-tests (Makefile.am): New variable
60639         test_rbtree_list_LDADD.
60640         * modules/rbtree-oset-tests (Makefile.am): New variable
60641         test_rbtree_oset_LDADD.
60642         * modules/rbtreehash-list-tests (Makefile.am): New variable
60643         test_rbtreehash_list_LDADD.
60644         * modules/xvasprintf-tests (Makefile.am): New variable
60645         test_xvasprintf_LDADD.
60646         Reported by Eric Blake.
60647
60648 2007-04-03  Eric Blake  <ebb9@byu.net>
60649
60650         * DEPENDENCIES: Weaken m4 requirements.
60651
60652 2007-04-03  Bruno Haible  <bruno@clisp.org>
60653
60654         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
60655         * modules/isnanl-tests (configure.ac): Likewise.
60656
60657 2007-04-03  Ben Pfaff  <blp@gnu.org>
60658
60659         * modules/iconv_open: Add $(srcdir)/ to source directory
60660         references in Makefile fragments that call gperf, to fix VPATH
60661         builds.
60662
60663 2007-04-03  Bruno Haible  <bruno@clisp.org>
60664
60665         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
60666         * lib/ldexpl.c: Undo last change.
60667
60668 2007-04-03  Bruno Haible  <bruno@clisp.org>
60669
60670         * modules/printf-frexpl (Depends-on): Undo last change.
60671         (Files): Add m4/ldexpl.m4.
60672
60673 2007-04-03  Bruno Haible  <bruno@clisp.org>
60674
60675         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
60676         * modules/isnanl (Link): New section.
60677
60678         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
60679         * modules/frexp (Link): New section.
60680
60681         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
60682         * modules/frexpl (Link): New section.
60683
60684         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
60685         * modules/ldexpl (Link): New section.
60686
60687 2007-04-03  Bruno Haible  <bruno@clisp.org>
60688
60689         * modules/TEMPLATE-EXTENDED: New file.
60690         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
60691
60692 2007-04-03  Bruno Haible  <bruno@clisp.org>
60693
60694         * DEPENDENCIES: New file.
60695         Suggested by Simon Josefsson.
60696
60697 2007-04-03  Bruno Haible  <bruno@clisp.org>
60698
60699         * doc/gnulib.texi: Escape @.
60700
60701 2007-04-03  James Youngman  <jay@gnu.org>
60702         and Paul Eggert  <eggert@cs.ucla.edu>
60703
60704         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
60705         birthtime on all systems that have birthtime, not just those which
60706         use st_birthtimensec rather than st_birthtim.  Putting zero in
60707         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
60708         that the birth time is not available for files on an NFS mount.
60709
60710 2007-04-03  Simon Josefsson  <simon@josefsson.org>
60711
60712         * modules/memxor: Move back from crypto/, suggested by Bruno.
60713         * modules/crypto/hmac-sha1: Fix memxor dependency.
60714
60715         * modules/crypto/gc: Moved from ../.
60716
60717 2007-04-02  Eric Blake  <ebb9@byu.net>
60718
60719         * lib/ldexpl.c (includes): Avoid libm.
60720
60721         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
60722
60723 2007-04-02  Bruno Haible  <bruno@clisp.org>
60724
60725         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
60726         on IRIX.
60727
60728 2007-04-02  Bruno Haible  <bruno@clisp.org>
60729
60730         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
60731         x86 or x86_64 platforms running MacOS X.
60732         Reported by Ryan Schmidt <@ryandesign.com>.
60733
60734 2007-04-02  Bruno Haible  <bruno@clisp.org>
60735
60736         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
60737         i386.
60738
60739 2007-04-01  Simon Josefsson  <simon@josefsson.org>
60740
60741         * modules/crypto/arcfour: Moved from ../.
60742         * modules/crypto/arcfour-tests: Moved from ../.
60743         * modules/crypto/arctwo: Moved from ../.
60744         * modules/crypto/arctwo-tests: Moved from ../.
60745         * modules/crypto/des: Moved from ../.
60746         * modules/crypto/des-tests: Moved from ../.
60747         * modules/crypto/gc-arcfour: Moved from ../.
60748         * modules/crypto/gc-arcfour-tests: Moved from ../.
60749         * modules/crypto/gc-arctwo: Moved from ../.
60750         * modules/crypto/gc-arctwo-tests: Moved from ../.
60751         * modules/crypto/gc-des: Moved from ../.
60752         * modules/crypto/gc-des-tests: Moved from ../.
60753         * modules/crypto/gc-hmac-md5: Moved from ../.
60754         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
60755         * modules/crypto/gc-hmac-sha1: Moved from ../.
60756         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
60757         * modules/crypto/gc-md2: Moved from ../.
60758         * modules/crypto/gc-md2-tests: Moved from ../.
60759         * modules/crypto/gc-md4: Moved from ../.
60760         * modules/crypto/gc-md4-tests: Moved from ../.
60761         * modules/crypto/gc-md5: Moved from ../.
60762         * modules/crypto/gc-md5-tests: Moved from ../.
60763         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
60764         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
60765         * modules/crypto/gc-random: Moved from ../.
60766         * modules/crypto/gc-rijndael: Moved from ../.
60767         * modules/crypto/gc-rijndael-tests: Moved from ../.
60768         * modules/crypto/gc-sha1: Moved from ../.
60769         * modules/crypto/gc-sha1-tests: Moved from ../.
60770         * modules/crypto/gc-tests: Moved from ../.
60771         * modules/crypto/hmac-md5: Moved from ../.
60772         * modules/crypto/hmac-md5-tests: Moved from ../.
60773         * modules/crypto/hmac-sha1: Moved from ../.
60774         * modules/crypto/hmac-sha1-tests: Moved from ../.
60775         * modules/crypto/md2: Moved from ../.
60776         * modules/crypto/md2-tests: Moved from ../.
60777         * modules/crypto/md4: Moved from ../.
60778         * modules/crypto/md4-tests: Moved from ../.
60779         * modules/crypto/md5: Moved from ../.
60780         * modules/crypto/md5-tests: Moved from ../.
60781         * modules/crypto/memxor: Moved from ../.
60782         * modules/crypto/rijndael: Moved from ../.
60783         * modules/crypto/rijndael-tests: Moved from ../.
60784         * modules/crypto/sha1: Moved from ../.
60785
60786 2007-03-30  James Youngman  <jay@gnu.org>
60787
60788         * tests/test-stat-time.c (prepare_test): use chmod() rather than
60789         rename() to change the ctime of a file (because ctime is unaffected
60790         by rename on jfs2 on AIX 5.1).
60791         (main): Start by doing cleanup, in case a previous run failed leaving
60792         test files behind.
60793
60794 2007-03-31  Bruno Haible  <bruno@clisp.org>
60795
60796         Support old proprietary implementations of iconv.
60797         * modules/iconv_open: New file.
60798         * lib/iconv_.h: New file.
60799         * m4/iconv_h.m4: New file.
60800         * lib/iconv_open.c: New file.
60801         * lib/iconv_open-aix.gperf: New file.
60802         * lib/iconv_open-hpux.gperf: New file.
60803         * lib/iconv_open-irix.gperf: New file.
60804         * lib/iconv_open-osf.gperf: New file.
60805         * m4/iconv_open.m4: New file.
60806         * modules/linebreak (Depends-on): Add iconv_open.
60807         * modules/striconv (Depends-on): Likewise.
60808         * modules/striconveh (Depends-on): Likewise.
60809         * modules/unicodeio (Depends-on): Likewise.
60810         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
60811         (iconv_t)(-1).
60812         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
60813         conversion if cd is (iconv_t)(-1).
60814         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
60815         is not possible.
60816
60817 2007-03-31  Bruno Haible  <bruno@clisp.org>
60818
60819         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
60820         work on Solaris either. Protect also second use of "autodetect_jp".
60821
60822 2007-03-31  Bruno Haible  <bruno@clisp.org>
60823
60824         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
60825         the function is not present.
60826
60827 2007-03-31  Bruno Haible  <bruno@clisp.org>
60828
60829         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
60830         the function is not present.
60831
60832 2007-03-31  Bruno Haible  <bruno@clisp.org>
60833
60834         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
60835         a bug in HP-UX iconv_open().
60836
60837 2007-03-31  Bruno Haible  <bruno@clisp.org>
60838
60839         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
60840         (Mathematics <math.h>): New section, add fpieee.
60841         (Input/output <stdio.h>): Add fseterr.
60842         (Mathematics <math.h>): New section, add printf-frexp.
60843         (Container data structures): Add sublist.
60844         (Core language properties): Add fpucw, inline.
60845         (Functions for greatest-width integer types <inttypes.h>): Add
60846         imaxabs, imaxdiv, inttypes.
60847         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
60848         isnanl-nolibm, ldexp.
60849         (Mathematics <math.h>): New section, add printf-frexpl.
60850         (Support for systems lacking POSIX:2001): Add fprintf-posix,
60851         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
60852         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
60853         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
60854         (Unicode string functions): Add unistr/u*-mbtoucr.
60855         (Java): Add javacomp-script, javaexec-script.
60856         (C#): Add csharpcomp-script, csharpexec-script.
60857         (Support for building libraries and executables): Add havelib,
60858         relocatable-*.
60859         (Support for maintaining and releasing projects): Renamed from
60860         'Support for maintaining and release projects'. Add announce-gen.
60861
60862 2007-03-31  Bruno Haible  <bruno@clisp.org>
60863
60864         * README: Talk primarily about git.
60865         (git and CVS): Renamed from CVS.
60866         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
60867         gnulib is available through git.
60868         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
60869
60870 2007-03-30  Bruno Haible  <bruno@clisp.org>
60871
60872         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
60873         * lib/poll_.h: Likewise.
60874         * lib/stat_.h: Likewise.
60875         * lib/sys_time_.h: Likewise.
60876         * lib/sysexit_.h: Likewise.
60877         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
60878         * lib/stdbool_.h: Likewise.
60879         * lib/byteswap_.h: Add double-inclusion guard.
60880
60881 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
60882
60883         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
60884
60885 2007-03-30  Karl Berry  <karl@gnu.org>
60886
60887         * config/srclist-update: double space after USA in the license
60888         substitution, since that's how it's usually (?) written.
60889
60890 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
60891
60892         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
60893         reported by Bruno Haible.
60894
60895 2007-03-29  Bruno Haible  <bruno@clisp.org>
60896
60897         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
60898         a bug in AIX iconv().
60899
60900 2007-03-29  Bruno Haible  <bruno@clisp.org>
60901
60902         * modules/ldexpl-tests: New file.
60903         * tests/test-ldexpl.c: New file.
60904
60905 2007-03-29  Bruno Haible  <bruno@clisp.org>
60906
60907         * lib/ldexpl.c: Include fpucw.h.
60908         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
60909         multiplication.
60910         * modules/ldexpl (Depends-on): Add fpucw.
60911
60912 2007-03-29  Bruno Haible  <bruno@clisp.org>
60913
60914         * modules/ldexpl: New file.
60915         * m4/ldexpl.m4: New file.
60916         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
60917         set.
60918         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
60919         REPLACE_LDEXPL.
60920         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
60921         REPLACE_LDEXPL.
60922         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
60923         gl_FUNC_LDEXPL_WORKS.
60924         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
60925         * modules/mathl (Files): Remove lib/ldexpl.c.
60926         (Depends-on): Add ldexpl.
60927
60928 2007-03-29  Bruno Haible  <bruno@clisp.org>
60929
60930         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
60931
60932 2007-03-29  Bruno Haible  <bruno@clisp.org>
60933
60934         * tests/test-striconveh.c (main): Don't assume that a direct conversion
60935         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
60936         and possibly also HP-UX.
60937         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
60938         work on AIX, IRIX, HP-UX, OSF/1.
60939         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
60940         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
60941         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
60942         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
60943         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
60944         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
60945
60946 2007-03-29  Bruno Haible  <bruno@clisp.org>
60947
60948         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
60949
60950 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
60951
60952         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
60953         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
60954
60955 2007-03-29  Eric Blake  <ebb9@byu.net>
60956
60957         * lib/acl-internal.h: Remove redundant include.
60958         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
60959         Cygwin when a file is locked.
60960
60961 2007-03-29  Bruno Haible  <bruno@clisp.org>
60962
60963         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
60964         file.
60965         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
60966
60967 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
60968
60969         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
60970         try to remove a parent directory if the child couldn't be removed
60971         (except for the first rmdir, which could fail because the child
60972         doesn't exist).  Problem reported by Jeff Blaine in
60973         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
60974
60975 2007-03-28  Bruno Haible  <bruno@clisp.org>
60976
60977         * lib/striconveh.c (utf8conv_carefully): New function.
60978         (mem_cd_iconveh_internal): Invoke it.
60979
60980 2007-03-28  Bruno Haible  <bruno@clisp.org>
60981
60982         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
60983         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
60984         input.
60985         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
60986         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
60987         unistr/u8-uctomb.
60988
60989 2007-03-28  Bruno Haible  <bruno@clisp.org>
60990
60991         * modules/unistr/u8-mbtoucr: New file.
60992         * lib/unistr/u8-mbtoucr.c: New file.
60993         * modules/unistr/u16-mbtoucr: New file.
60994         * lib/unistr/u16-mbtoucr.c: New file.
60995         * modules/unistr/u16-mbtoucr: New file.
60996         * lib/unistr/u16-mbtoucr.c: New file.
60997         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
60998
60999 2007-03-27  Simon Josefsson  <simon@josefsson.org>
61000             Bruno Haible  <bruno@clisp.org>
61001
61002         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
61003         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
61004         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
61005
61006         * m4/stdio_h.m4: Add stubs for vasprintf too.
61007
61008         * modules/stdio: Support vasprintf in sed command.
61009
61010         * modules/vasprintf: Depend on stdio for prototypes.  Remove
61011         vasprintf.h.  Add stdio module indicator.
61012
61013         * lib/stdio_.h: Declare asprintf and vasprintf, based on
61014         vasprintf.h.
61015
61016         * lib/vasprintf.h: File removed.
61017
61018         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
61019         * lib/vasprintf.c: Ditto.
61020         * lib/xvasprintf.c: Ditto.
61021         * tests/test-vasprintf-posix.c: Ditto.
61022         * tests/test-vasprintf.c: Ditto.
61023
61024 2007-03-27  Bruno Haible  <bruno@clisp.org>
61025
61026         Make vasnprintf multithread-safe.
61027         * lib/vasnprintf.c (decimal_point_char): New function.
61028         (VASNPRINTF): Use it.
61029         Suggested by Simon Josefsson.
61030
61031 2007-03-27  Eric Blake  <ebb9@byu.net>
61032
61033         Support sub-second birthtime on cygwin.
61034         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
61035         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
61036         (get_stat_birthtime): Also work with st_birthtim.
61037
61038 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
61039
61040         * lib/stat-time.h (USE_BIRTHTIME): Remove.
61041         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
61042         (get_stat_birthtime_ns): Do not try to use "spare" fields.
61043         (get_stat_birthtime_ns): Simplify compile-time tests.
61044         (get_stat_birthtime): Change the API to look like
61045         get_stat_mtime etc., except return a negative tv_nsec on error.
61046         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
61047         Don't check for "spare" fields.
61048         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
61049         or for struct stat.st_birthtime, as these tests aren't used.
61050         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
61051
61052 2007-03-27  Bruno Haible  <bruno@clisp.org>
61053
61054         * lib/stat-time.h: Include <sys/stat.h>.
61055
61056 2007-03-27  James Youngman  <jay@gnu.org>
61057
61058         * lib/stat-time.h (get_stat_birthtime): New function for
61059           retrieving st_birthtime as provided by UFS2 (hence *BSD).
61060         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
61061           and its variants.
61062         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
61063         * modules/stat-time-test: New file.
61064         * tests/test-stat-time.c: New test, devised by Bruno Haible.
61065
61066 2007-03-26  Bruno Haible  <bruno@clisp.org>
61067
61068         Better support of signalling NaNs.
61069         * lib/atanl.c: Include isnanl.h.
61070         (atanl): Perform test for NaN at the beginning of the function and
61071         through a call to isnanl.
61072         * lib/cosl.c: Include isnanl.h.
61073         (cosl): Perform test for NaN at the beginning of the function and
61074         through a call to isnanl.
61075         * lib/ldexpl.c: Include isnanl.h.
61076         (ldexpl): Perform test for NaN through a call to isnanl.
61077         * lib/logl.c: Include isnanl.h.
61078         (logl): Perform test for NaN at the beginning of the function and
61079         through a call to isnanl.
61080         * lib/sinl.c: Include isnanl.h.
61081         (sinl): Perform test for NaN at the beginning of the function and
61082         through a call to isnanl.
61083         * lib/sqrtl.c: Include isnanl.h.
61084         (sqrtl): Perform test for NaN at the beginning of the function and
61085         through a call to isnanl.
61086         * lib/tanl.c: Include isnanl.h.
61087         (tanl): Perform test for NaN at the beginning of the function and
61088         through a call to isnanl.
61089         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
61090         * modules/mathl (Depends-on): Add isnanl.
61091
61092 2007-03-26  Eric Blake  <ebb9@byu.net>
61093
61094         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
61095         regression in logic sense of previous patch.
61096
61097 2007-03-26  Bruno Haible  <bruno@clisp.org>
61098
61099         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
61100         unportable shell command "if ! ...".
61101         Reported by Ralf Wildenhues.
61102
61103 2007-03-25  Bruno Haible  <bruno@clisp.org>
61104
61105         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
61106         <sysexits.h> file, and only add EX_CONFIG.
61107         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
61108         absolute file name and whether it is sufficient. Substitute also
61109         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
61110         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
61111         ABSOLUTE_SYSEXITS_H into sysexits.h.
61112
61113 2007-03-25  Bruno Haible  <bruno@clisp.org>
61114
61115         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
61116         hints is NULL.
61117
61118 2007-03-25  Bruno Haible  <bruno@clisp.org>
61119
61120         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
61121         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
61122
61123 2007-03-25  Bruno Haible  <bruno@clisp.org>
61124
61125         * lib/vasnprintf.c: Include langinfo.h.
61126         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
61127         multithread-safe.
61128         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
61129         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
61130         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
61131         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
61132         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
61133         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
61134         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
61135         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
61136         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
61137         Reported by Simon Josefsson.
61138
61139 2007-03-25  Bruno Haible  <bruno@clisp.org>
61140
61141         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
61142         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
61143         * modules/vasnprintf (Depends-on): Add stdint.
61144
61145 2007-03-25  Bruno Haible  <bruno@clisp.org>
61146
61147         * modules/fpieee: New file.
61148         * m4/fpieee.m4: New file.
61149         * modules/isnan-nolibm (Depends-on): Add fpieee.
61150         * modules/isnanl-nolibm (Depends-on): Add fpieee.
61151         * modules/isnanl (Depends-on): Add fpieee.
61152
61153 2007-03-25  Bruno Haible  <bruno@clisp.org>
61154
61155         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
61156
61157 2007-03-25  Bruno Haible  <bruno@clisp.org>
61158
61159         Avoid test failures on IRIX 6.5.
61160         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
61161         (main): Use it.
61162         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
61163         macros.
61164         (main): Use them.
61165
61166 2007-03-25  Bruno Haible  <bruno@clisp.org>
61167
61168         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
61169         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
61170         exists but doesn't work.
61171         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
61172         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
61173         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
61174         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
61175         math.h.
61176
61177 2007-03-25  Bruno Haible  <bruno@clisp.org>
61178
61179         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
61180         returns inf. Needed on IRIX 6.5.
61181
61182 2007-03-25  Bruno Haible  <bruno@clisp.org>
61183
61184         * tests/test-frexpl.c: Include isnanl-nolibm.h.
61185         (main): Use isnanl instead of x != x idiom.
61186         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
61187
61188         * tests/test-frexp.c: Include isnan.h.
61189         (main): Use isnan instead of x != x idiom.
61190         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
61191
61192 2007-03-25  Bruno Haible  <bruno@clisp.org>
61193
61194         * tests/test-frexp.c (NaN): New function/macro.
61195         (main): Use it instead of 0.0 / 0.0.
61196         * tests/test-isnan.c (NaN): New function/macro.
61197         (main): Use it instead of 0.0 / 0.0.
61198         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
61199         (test_function): Use it instead of 0.0 / 0.0.
61200         * tests/test-vasprintf-posix.c (NaN): New function/macro.
61201         (test_function): Use it instead of 0.0 / 0.0.
61202         * tests/test-snprintf-posix.h (NaN): New function/macro.
61203         (test_function): Use it instead of 0.0 / 0.0.
61204         * tests/test-sprintf-posix.h (NaN): New function/macro.
61205         (test_function): Use it instead of 0.0 / 0.0.
61206         * tests/test-fprintf-posix.h (NaN): New function/macro.
61207         (test_function): Use it instead of 0.0 / 0.0.
61208         * tests/test-printf-posix.h (NaN): New function/macro.
61209         (test_function): Use it instead of 0.0 / 0.0.
61210
61211         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
61212
61213 2007-03-25  Bruno Haible  <bruno@clisp.org>
61214
61215         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
61216
61217 2007-03-25  Bruno Haible  <bruno@clisp.org>
61218
61219         * lib/regexec.c (merge_state_with_log): Make static.
61220
61221 2007-03-25  Bruno Haible  <bruno@clisp.org>
61222
61223         * lib/trigl.c (kernel_rem_pio2): Make static.
61224
61225 2007-03-25  Bruno Haible  <bruno@clisp.org>
61226
61227         * lib/sincosl.c (sincosl_table): Make static.
61228
61229 2007-03-25  Bruno Haible  <bruno@clisp.org>
61230
61231         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
61232         if the compiler does not support C99.
61233
61234 2007-03-25  Bruno Haible  <bruno@clisp.org>
61235
61236         * modules/time (Makefile.am): Ensure all rule action lines start with a
61237         tab.
61238
61239 2007-03-24  Bruno Haible  <bruno@clisp.org>
61240
61241         * modules/tsearch-tests: New file.
61242         * tests/test-tsearch.sh: New file.
61243         * tests/test-tsearch.c: New file, mostly copied from glibc.
61244
61245         * modules/search-tests: New file.
61246         * tests/test-search.c: New file.
61247
61248         * modules/search: New file.
61249         * lib/search_.h: New file, incorporating lib/tsearch.h.
61250         * m4/search_h.m4: New file.
61251         * lib/tsearch.h: Remove file.
61252         * lib/tsearch.c: Include search.h instead of tsearch.h.
61253         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
61254         HAVE_TSEARCH.
61255         * modules/tsearch (Files): Remove lib/tsearch.h.
61256         (Depends-on): Add search.
61257         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
61258         (Include): Change tsearch.h into search.h.
61259
61260 2007-03-24  Bruno Haible  <bruno@clisp.org>
61261
61262         * modules/fpucw: New file.
61263         * lib/fpucw.h: New file.
61264         * lib/frexp.c: Include fpucw.h.
61265         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
61266         (FUNC): Use them.
61267         * lib/printf-frexp.c: Include fpucw.h.
61268         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
61269         (FUNC): Use them.
61270         * lib/vasnprintf.c: Include fpucw.h.
61271         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
61272         'long double' calculations.
61273         * tests/test-frexpl.c: Include fpucw.h.
61274         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
61275         * tests/test-printf-frexpl.c: Include fpucw.h.
61276         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
61277         * modules/frexpl (Depends-on): Add fpucw.
61278         * modules/printf-frexpl (Depends-on): Likewise.
61279         * modules/fprintf-posix (Depends-on): Likewise.
61280         * modules/snprintf-posix (Depends-on): Likewise.
61281         * modules/sprintf-posix (Depends-on): Likewise.
61282         * modules/vasnprintf-posix (Depends-on): Likewise.
61283         * modules/vasprintf-posix (Depends-on): Likewise.
61284         * modules/vfprintf-posix (Depends-on): Likewise.
61285         * modules/vsnprintf-posix (Depends-on): Likewise.
61286         * modules/vsprintf-posix (Depends-on): Likewise.
61287         * modules/frexpl-tests (Depends-on): Likewise.
61288         * modules/printf-frexpl-tests (Depends-on): Likewise.
61289
61290 2007-03-24  Bruno Haible  <bruno@clisp.org>
61291
61292         * lib/float+.h: New file.
61293         * lib/isnan.c: Include float+.h.
61294         (SIZE): New macro.
61295         (FUNC): Compare only SIZE bytes of the value.
61296         * lib/vasnprintf.c: Include float+.h.
61297         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
61298         SIZEOF_LDBL or SIZEOF_DBL bytes.
61299         * modules/isnan-nolibm (Files): Add lib/float+.h.
61300         * modules/isnanl-nolibm (Files): Add lib/float+.h.
61301         * modules/isnanl (Files): Add lib/float+.h.
61302         * modules/vasnprintf (Files): Add lib/float+.h.
61303
61304 2007-03-24  Bruno Haible  <bruno@clisp.org>
61305
61306         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
61307         include isnanl-nolibm.h.
61308
61309 2007-03-24  Bruno Haible  <bruno@clisp.org>
61310
61311         * tests/test-read-file.c (main): Don't produce spurious output for
61312         expected situations. Make the test fail if it encountered unexpected
61313         results.
61314
61315 2007-03-24  Bruno Haible  <bruno@clisp.org>
61316
61317         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
61318         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
61319
61320 2007-03-24  Bruno Haible  <bruno@clisp.org>
61321
61322         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
61323
61324 2007-03-24  Bruno Haible  <bruno@clisp.org>
61325
61326         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
61327         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
61328
61329         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
61330         * modules/utf8-ucs4: Turn into a symbolic link to module
61331         unistr/u8-mbtouc.
61332
61333         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
61334         utf8-ucs4-unsafe.
61335         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
61336         unistr/u8-mbtouc-unsafe.
61337
61338         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
61339         * modules/utf16-ucs4: Turn into a symbolic link to module
61340         unistr/u16-mbtouc.
61341
61342         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
61343         utf16-ucs4-unsafe.
61344         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
61345         unistr/u16-mbtouc-unsafe.
61346
61347         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
61348         * modules/ucs4-utf8: Turn into a symbolic link to module
61349         unistr/u8-ubtomb.
61350
61351         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
61352         * modules/ucs4-utf16: Turn into a symbolic link to module
61353         unistr/u16-ubtomb.
61354
61355 2007-03-24  Bruno Haible  <bruno@clisp.org>
61356
61357         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
61358         Enable the function only if HAVE_INLINE.
61359         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
61360         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
61361         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
61362         Enable the function only if HAVE_INLINE.
61363         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
61364         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
61365         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
61366         Enable the function only if HAVE_INLINE.
61367         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
61368         Enable the function only if HAVE_INLINE.
61369         * modules/utf8-ucs4: Update.
61370         * modules/utf8-ucs4-unsafe: Update.
61371         * modules/utf16-ucs4: Update.
61372         * modules/utf16-ucs4-unsafe: Update.
61373         * modules/ucs4-utf8: Update.
61374         * modules/ucs4-utf16: Update.
61375
61376 2007-03-24  Bruno Haible  <bruno@clisp.org>
61377
61378         * lib/utf8-ucs4.h: Remove file.
61379         * lib/utf8-ucs4-unsafe.h: Remove file.
61380         * lib/utf16-ucs4.h: Remove file.
61381         * lib/utf16-ucs4-unsafe.h: Remove file.
61382         * lib/ucs4-utf8.h: Remove file.
61383         * lib/ucs4-utf16.h: Remove file.
61384         * lib/unistr.h: Include their previous contents.
61385         * m4/utf-ucs4.m4: Remove file.
61386         * m4/ucs4-utf.m4: Remove file.
61387         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
61388         (Depends-on): Add unistr/base.
61389         (configure.ac): Remove gl_UTF_UCS4.
61390         (Makefile.am): Update.
61391         (Include): Change to unistr.h.
61392         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
61393         (Depends-on): Add unistr/base.
61394         (configure.ac): Remove gl_UTF_UCS4.
61395         (Makefile.am): Update.
61396         (Include): Change to unistr.h.
61397         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
61398         (Depends-on): Add unistr/base.
61399         (configure.ac): Remove gl_UTF_UCS4.
61400         (Makefile.am): Update.
61401         (Include): Change to unistr.h.
61402         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
61403         (Depends-on): Add unistr/base.
61404         (configure.ac): Remove gl_UTF_UCS4.
61405         (Makefile.am): Update.
61406         (Include): Change to unistr.h.
61407         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
61408         (Depends-on): Add unistr/base.
61409         (configure.ac): Remove gl_UCS4_UTF.
61410         (Makefile.am): Update.
61411         (Include): Change to unistr.h.
61412         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
61413         (Depends-on): Add unistr/base.
61414         (configure.ac): Remove gl_UCS4_UTF.
61415         (Makefile.am): Update.
61416         (Include): Change to unistr.h.
61417         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
61418         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
61419         utf8-ucs4-unsafe.h.
61420         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
61421         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
61422         utf16-ucs4-unsafe.h.
61423         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
61424         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
61425         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
61426         * lib/unistr/u8-strchr.c: Likewise.
61427         * lib/unistr/u8-strrchr.c: Likewise.
61428         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
61429         * lib/unistr/u16-strchr.c: Likewise.
61430         * lib/unistr/u16-strrchr.c: Likewise.
61431         * lib/striconveh.c: Update.
61432         * lib/linebreak.c: Update.
61433
61434 2007-03-24  Bruno Haible  <bruno@clisp.org>
61435
61436         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
61437         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
61438
61439 2007-03-22  Bruno Haible  <bruno@clisp.org>
61440
61441         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
61442
61443 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
61444
61445         * MODULES.html.sh (File system functions): New module write-any-file.
61446         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
61447         * m4/write-any-file.m4: New files.
61448
61449 2007-03-23  Eric Blake  <ebb9@byu.net>
61450
61451         * gnulib-tool: Rearrange space-tab sequences, since some editors
61452         like to eat them.
61453
61454 2007-03-23  Eric Blake  <ebb9@byu.net>
61455
61456         * lib/version-etc.c (version_etc_va): Update license wording to
61457         be more concise.  Recommended by Richard Stallman.
61458
61459 2007-03-22  Bruno Haible  <bruno@clisp.org>
61460
61461         * lib/poll.c (MSG_PEEK): New fallback definition.
61462
61463 2007-03-22  Bruno Haible  <bruno@clisp.org>
61464
61465         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
61466         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
61467         (main): Update.
61468         Fixes a compilation error on BeOS.
61469
61470 2007-03-22  Bruno Haible  <bruno@clisp.org>
61471
61472         * modules/frexpl-tests: New file.
61473         * tests/test-frexpl.c: New file.
61474
61475         * modules/frexpl: New file.
61476         * m4/frexpl.m4: New file.
61477         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
61478         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
61479         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
61480         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
61481         (Depends-on): Add frexpl. Remove isnanl-nolibm.
61482         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
61483
61484 2007-03-22  Bruno Haible  <bruno@clisp.org>
61485
61486         * lib/frexpl.c: Share code with lib/frexp.c.
61487         * modules/mathl (Files): Add lib/frexp.c.
61488         (Depends-on): Add isnanl-nolibm.
61489
61490 2007-03-22  Bruno Haible  <bruno@clisp.org>
61491
61492         * modules/printf-frexp (Files): Add m4/frexp.m4.
61493         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
61494         only if the found frexp function actually works.
61495
61496 2007-03-22  Bruno Haible  <bruno@clisp.org>
61497
61498         * lib/frexp.c: Remove older implementation that uses divisions.
61499
61500 2007-03-21  Bruno Haible  <bruno@clisp.org>
61501
61502         * modules/frexp-tests: New file.
61503         * tests/test-frexp.c: New file.
61504
61505         * modules/frexp: New file.
61506         * lib/frexp.c: New file.
61507         * m4/frexp.m4: New file.
61508         * lib/math_.h (frexp): New declaration.
61509         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
61510         REPLACE_FREXP.
61511         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
61512
61513 2007-03-21  Bruno Haible  <bruno@clisp.org>
61514
61515         * modules/isnanl-tests: New file.
61516         * tests/test-isnanl.c: New file.
61517
61518         * modules/isnanl: New file.
61519         * lib/isnanl.h: New file.
61520         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
61521         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
61522         gl_FUNC_ISNANL_WORKS.
61523         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
61524         New macros.
61525
61526 2007-03-21  Bruno Haible  <bruno@clisp.org>
61527
61528         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
61529         lib/isnanl.h.
61530         (Include): Update.
61531         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
61532         * lib/vasnprintf.c: Update.
61533         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
61534         tests/test-isnanl.h, remove tests/test-isnanl.c.
61535         (Makefile.am): Update.
61536         * tests/test-isnanl-nolibm.c: New file.
61537         * tests/test-isnanl.h: New file.
61538         * tests/test-isnanl.c: Remove file.
61539
61540 2007-03-21  Jim Meyering  <jim@meyering.net>
61541
61542         When trying to open ".", treat ESTALE like EACCES.
61543         * lib/savewd.c (savewd_save): Resort to forking not just upon
61544         failure with EACCES, but also when errno is ESTALE.
61545
61546 2007-03-20  Bruno Haible  <bruno@clisp.org>
61547
61548         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
61549         Needed on AIX 5.1. Reported by Matthew Woehlke.
61550
61551 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
61552
61553         Suggestions by Bruno Haible:
61554         * lib/acl-internal.h: Include "gettext.h" rather than rolling
61555         our own.
61556         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
61557         * modules/acl (Depends-on): Add gettext.
61558
61559 2007-03-19  Bruno Haible  <bruno@clisp.org>
61560
61561         * modules/iconvme: Remove file.
61562         * lib/iconvme.h: Remove file.
61563         * lib/iconvme.c: Remove file.
61564         * m4/iconvme.m4: Remove file.
61565
61566 2007-03-19  Bruno Haible  <bruno@clisp.org>
61567
61568         * doc/relocatable-maint.texi: Break long shell script line.
61569         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
61570
61571 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
61572
61573         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
61574         handle file_has_acl.
61575         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
61576         * lib/acl.c: Move header inclusions and related macro defns into
61577         lib/acl-internal.h.
61578         (S_ISLNK): Remove defn, since that's now done for us.
61579         (file_has_acl): Move to lib/file-has-acl.c.
61580         Call acl_trivial if available.  This is the crucial part of the fix.
61581         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
61582         shared within the library.  Rewrite a bit, partly to make it compatible
61583         with the GNU coding style.
61584         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
61585         Remove unnecessary double-quotes.
61586         Don't test for acl_to_text; the build will catch that.
61587         Replace acl_entries if it doesn't exist and it is needed.
61588         Check for -lsec and acl_trivial (as used on Solaris 10).
61589         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
61590         lib/file-has-acl.c.
61591         (Depends-on): Add sys_stat, for S_ISLNK.
61592
61593 2007-03-19  Ben Pfaff  <blp@gnu.org>
61594
61595         * doc/gnulib.texi: Fix typos.
61596         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
61597
61598 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
61599
61600         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
61601         If size is zero here, buf must be zero.
61602
61603 2007-03-19  Simon Josefsson  <simon@josefsson.org>
61604
61605         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
61606         <bruno@clisp.org>.
61607
61608 2007-03-18  Bruno Haible  <bruno@clisp.org>
61609
61610         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
61611         Suggested by Eric Blake.
61612
61613 2007-03-18  Ben Pfaff  <blp@gnu.org>
61614
61615         * doc/relocatable.texi: Recommend using as prefix a directory
61616         that does not exist and will never be created.  Based on
61617         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
61618         and others.
61619
61620 2007-03-17  Bruno Haible  <bruno@clisp.org>
61621
61622         * lib/fchownat.c: Include lchown.h.
61623
61624 2007-03-17  Bruno Haible  <bruno@clisp.org>
61625
61626         Fix endless loop when the given allocated size was > INT_MAX.
61627         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
61628         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
61629         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
61630         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
61631         * lib/sprintf.c (sprintf): Likewise.
61632
61633 2007-03-17  Bruno Haible  <bruno@clisp.org>
61634
61635         * tests/test-argp-2.sh (func_compare): Output a context diff.
61636
61637 2007-03-17  Bruno Haible  <bruno@clisp.org>
61638
61639         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
61640         locale's decimal-point character.
61641
61642 2007-03-17  Bruno Haible  <bruno@clisp.org>
61643
61644         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
61645         before comparing it. Needed because on some platforms (e.g. x86) a
61646         'long double' occupies less bytes than sizeof (long double).
61647
61648 2007-03-17  Bruno Haible  <bruno@clisp.org>
61649
61650         * tests/test-crc.c (main): Make printf statements 64-bit clean.
61651         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
61652         * tests/test-getaddrinfo.c (simple): Likewise.
61653         * tests/test-read-file.c (main): Likewise.
61654
61655 2007-03-17  Bruno Haible  <bruno@clisp.org>
61656
61657         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
61658
61659 2007-03-17  Bruno Haible  <bruno@clisp.org>
61660
61661         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
61662         unused variable.
61663
61664 2007-03-17  Bruno Haible  <bruno@clisp.org>
61665
61666         * tests/test-c-strcasecmp.c: Include c-strcase.h.
61667         * tests/test-c-strncasecmp.c: Likewise.
61668
61669 2007-03-17  Bruno Haible  <bruno@clisp.org>
61670
61671         * modules/stdlib (Depends-on): Add unistd.
61672         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
61673         Needed for MacOS X 10.3.
61674
61675 2007-03-17  Bruno Haible  <bruno@clisp.org>
61676
61677         * lib/unistr/u-strdup.h: Include <stdlib.h>.
61678
61679 2007-03-17  Bruno Haible  <bruno@clisp.org>
61680
61681         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
61682
61683 2007-03-17  Bruno Haible  <bruno@clisp.org>
61684
61685         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
61686         to reflect files copied from gnulib (with or without modifications).
61687         Suggested by Jim Meyering.
61688
61689 2007-03-17  Eric Blake  <ebb9@byu.net>
61690
61691         * NEWS: Document stdlib change from 2007-02-18.
61692
61693 2007-03-17  Jim Meyering  <jim@meyering.net>
61694
61695         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
61696         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
61697         someone uses a name containing shell meta-characters.
61698         Reported by Alfred M. Szmidt.
61699
61700         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
61701
61702 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
61703
61704         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
61705         and copy gettext configuration files only if configure.ac contains
61706         a use of AM_GNU_GETTEXT_VERSION.
61707
61708 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
61709
61710         * build-aux/bootstrap (gnulib_name): New variable.
61711         (gnulib_tool_options): Use it.
61712
61713 2007-03-13  Simon Josefsson  <simon@josefsson.org>
61714
61715         * tests/test-des.c: Use new namespace.
61716
61717 2007-03-15  Bruno Haible  <bruno@clisp.org>
61718
61719         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
61720         Reported by James Youngman <jay@gnu.org>.
61721
61722 2007-03-15  Bruno Haible  <bruno@clisp.org>
61723
61724         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
61725         declared prototype. Needed with cc on OSF/1 5.1.
61726
61727 2007-03-15  Bruno Haible  <bruno@clisp.org>
61728
61729         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
61730         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
61731         (struct gl_list_implementation): Add dispose_fn argument to the
61732         'create_empty', 'create' methods.
61733         (struct gl_list_impl_base): Add field 'dispose_fn'.
61734         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
61735         argument.
61736         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
61737         dispose_fn argument.
61738         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
61739         dispose_fn on the dropped values.
61740         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
61741         dispose_fn argument.
61742         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
61743         dropped values.
61744         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
61745         (gl_tree_remove_node): Call dispose_fn on the dropped value.
61746         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
61747         (gl_tree_remove_node): Call dispose_fn on the dropped value.
61748         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
61749         argument.
61750         (gl_tree_list_free): Call dispose_fn on the dropped values.
61751         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
61752         the dropped values.
61753         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
61754         Add dispose_fn argument.
61755         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
61756         Call dispose_fn on the dropped values.
61757         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
61758         Add dispose_fn argument.
61759         (gl_sublist_create): Initialize the 'dispose_fn' field.
61760         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
61761         * tests/test-array_list.c (main): Update.
61762         * tests/test-carray_list.c (main): Update.
61763         * tests/test-avltree_list.c (main): Update.
61764         * tests/test-rbtree_list.c (main): Update.
61765         * tests/test-avltreehash_list.c (main): Update.
61766         * tests/test-rbtreehash_list.c (main): Update.
61767         * tests/test-linked_list.c (main): Update.
61768         * tests/test-linkedhash_list.c (main): Update.
61769         * tests/test-array_oset.c (main): Update.
61770
61771 2007-03-15  Bruno Haible  <bruno@clisp.org>
61772
61773         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
61774         (gl_oset_create_empty): Add dispose_fn argument.
61775         (struct gl_oset_implementation): Add dispose_fn argument to
61776         'create_empty' method.
61777         (struct gl_oset_impl_base): Add dispose_fn field.
61778         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
61779         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
61780         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
61781         values.
61782         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
61783         (gl_tree_oset_free): Call dispose_fn on the dropped values.
61784         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
61785         dropped value.
61786         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
61787         dropped value.
61788         * tests/test-array_oset.c (main): Update.
61789         * tests/test-avltree_oset.c (main): Update.
61790         * tests/test-rbtree_oset.c (main): Update.
61791         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
61792
61793 2007-03-13  Bruno Haible  <bruno@clisp.org>
61794
61795         * tests/test-stdbool.c (i): Update after last patch.
61796
61797 2007-03-12  Bruno Haible  <bruno@clisp.org>
61798
61799         * lib/quotearg.c: Include <wctype.h> early, before the definition of
61800         the iswprint macro. Needed on Solaris 2.5.1.
61801
61802 2007-03-12  Bruno Haible  <bruno@clisp.org>
61803
61804         * tests/test-printf-frexp.c (main): Declare x as volatile.
61805
61806 2007-03-12  Simon Josefsson  <simon@josefsson.org>
61807
61808         * doc/gnulib.texi (Build robot for gnulib): New section.
61809
61810 2007-03-12  Jim Meyering  <jim@meyering.net>
61811
61812         * build-aux/bootstrap: New file.
61813         * build-aux/bootstrap.conf: New file, from coreutils.
61814
61815 2007-03-11  Bruno Haible  <bruno@clisp.org>
61816
61817         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
61818
61819 2007-03-12  Simon Josefsson  <simon@josefsson.org>
61820
61821         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
61822         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
61823         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
61824
61825 2007-03-11  Bruno Haible  <bruno@clisp.org>
61826
61827         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
61828         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
61829
61830 2007-03-11  Bruno Haible  <bruno@clisp.org>
61831
61832         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
61833         formula. Needed for SunPRO C 5.0.
61834
61835 2007-03-11  Bruno Haible  <bruno@clisp.org>
61836
61837         * modules/long-options (Depends-on): Add getopt.
61838
61839 2007-03-11  Bruno Haible  <bruno@clisp.org>
61840
61841         * modules/modechange (Depends-on): Add stdbool.
61842
61843 2007-03-11  Bruno Haible  <bruno@clisp.org>
61844
61845         * modules/i-ring (Depends-on): Add stdbool.
61846
61847 2007-03-11  Bruno Haible  <bruno@clisp.org>
61848
61849         * modules/gc-des (Depends-on): Add stdbool.
61850
61851 2007-03-11  Bruno Haible  <bruno@clisp.org>
61852
61853         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
61854
61855 2007-03-11  Bruno Haible  <bruno@clisp.org>
61856
61857         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
61858
61859 2007-03-11  Bruno Haible  <bruno@clisp.org>
61860
61861         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
61862
61863 2007-03-11  Bruno Haible  <bruno@clisp.org>
61864
61865         * lib/vasnprintf.c (sprintf): Undefine.
61866
61867 2007-03-11  Bruno Haible  <bruno@clisp.org>
61868
61869         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
61870         initializers in SunPRO C and Compaq C compilers.
61871
61872 2007-03-11  Bruno Haible  <bruno@clisp.org>
61873
61874         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
61875         decrementing code ANSI C compliant.
61876
61877 2007-03-11  Bruno Haible  <bruno@clisp.org>
61878
61879         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
61880         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
61881
61882 2007-03-11  Bruno Haible  <bruno@clisp.org>
61883
61884         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
61885         <stdbool.h> substitute doesn't pass.
61886
61887 2007-03-11  Bruno Haible  <bruno@clisp.org>
61888
61889         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
61890
61891 2007-03-11  Bruno Haible  <bruno@clisp.org>
61892
61893         * gnulib-tool (func_create_megatestdir): Create also an autobuild
61894         script, for submission to autobuild.josefsson.org.
61895
61896 2007-03-10  Bruno Haible  <bruno@clisp.org>
61897
61898         * modules/canonicalize-lgpl-tests: New file.
61899         * tests/test-canonicalize-lgpl.sh: New file.
61900         * tests/test-canonicalize-lgpl.c: New file.
61901
61902         * modules/c-strcase-tests: New file.
61903         * tests/test-c-strcase.sh: New file.
61904         * tests/test-c-strcasecmp.c: New file.
61905         * tests/test-c-strncasecmp.c: New file.
61906
61907         * modules/atexit-tests: New file.
61908         * tests/test-atexit.sh: New file.
61909         * tests/test-atexit.c: New file.
61910
61911 2007-03-10  Bruno Haible  <bruno@clisp.org>
61912
61913         * tests/test-binary-io.sh: Use temporary filenames that are not so
61914         likely to clash with those of other tests (in a parallel make).
61915         * tests/test-binary-io.c: Likewise.
61916
61917 2007-03-10  Bruno Haible  <bruno@clisp.org>
61918
61919         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
61920         fallback; use #error instead.
61921         Suggested by Simon Josefsson.
61922
61923 2007-03-10  Bruno Haible  <bruno@clisp.org>
61924
61925         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
61926         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
61927         first and the last.
61928
61929 2007-03-10  Bruno Haible  <bruno@clisp.org>
61930
61931         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
61932
61933 2007-03-10  Bruno Haible  <bruno@clisp.org>
61934
61935         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
61936         "make distcheck".
61937         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
61938         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
61939         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
61940
61941 2007-03-10  Bruno Haible  <bruno@clisp.org>
61942
61943         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
61944         variable.
61945         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
61946         variable.
61947
61948 2007-03-09  Eric Blake  <ebb9@byu.net>
61949         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
61950
61951         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
61952         types are not being provided by gnulib.
61953         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
61954         types are supported.
61955
61956 2007-03-10  Bruno Haible  <bruno@clisp.org>
61957
61958         * lib/stdio_.h (__attribute__): New macro.
61959         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
61960         vsprintf): Specify __attribute__ __format__ for GCC.
61961         Suggested by Eric Blake.
61962
61963 2007-03-09  Bruno Haible  <bruno@clisp.org>
61964
61965         * modules/printf-posix-tests: New file.
61966         * tests/test-printf-posix.sh: New file.
61967         * tests/test-printf-posix.c: New file.
61968
61969         * modules/printf-posix: New file.
61970         * lib/printf.c: New file.
61971         * m4/printf-posix-rpl.m4: New file.
61972         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
61973         REPLACE_PRINTF.
61974         * lib/stdio_.h (printf): New declaration.
61975         (format, __format__, ____printf____, ____scanf____, ____strftime____,
61976         ____strfmon____): New macros.
61977         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
61978         REPLACE_PRINTF.
61979
61980 2007-03-09  Bruno Haible  <bruno@clisp.org>
61981
61982         * tests/test-vasnprintf-posix2.sh: New file.
61983         * tests/test-vasnprintf-posix2.c: New file.
61984         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
61985         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
61986         (Makefile.am): Activate test-vasnprintf-posix2.sh.
61987
61988         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
61989         a locale dependent decimal point, rather than always '.'.
61990
61991 2007-03-09  Eric Blake  <ebb9@byu.net>
61992
61993         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
61994         spite of platforms like Tandem/NSK that define it to -1.
61995
61996 2007-03-08  Bruno Haible  <bruno@clisp.org>
61997
61998         * modules/vprintf-posix-tests: New file.
61999         * tests/test-vprintf-posix.sh: New file.
62000         * tests/test-vprintf-posix.c: New file.
62001         * tests/test-printf-posix.h: New file.
62002
62003         * modules/vprintf-posix: New file.
62004         * lib/vprintf.c: New file.
62005         * m4/vprintf-posix.m4: New file.
62006         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
62007         REPLACE_VPRINTF.
62008         * lib/stdio_.h (vprintf): New declaration.
62009         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
62010         REPLACE_VPRINTF.
62011
62012 2007-03-08  Bruno Haible  <bruno@clisp.org>
62013
62014         * modules/fprintf-posix-tests: New file.
62015         * tests/test-fprintf-posix.sh: New file.
62016         * tests/test-fprintf-posix.c: New file.
62017
62018         * modules/fprintf-posix: New file.
62019         * lib/fprintf.c: New file.
62020         * m4/fprintf-posix.m4: New file.
62021         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
62022         REPLACE_FPRINTF.
62023         * lib/stdio_.h (fprintf): New declaration.
62024         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
62025         REPLACE_FPRINTF.
62026
62027 2007-03-08  Bruno Haible  <bruno@clisp.org>
62028
62029         * modules/vfprintf-posix-tests: New file.
62030         * tests/test-vfprintf-posix.sh: New file.
62031         * tests/test-vfprintf-posix.c: New file.
62032         * tests/test-fprintf-posix.h: New file.
62033         * tests/test-fprintf-posix.out: New file.
62034
62035         * modules/vfprintf-posix: New file.
62036         * lib/vfprintf.c: New file.
62037         * m4/vfprintf-posix.m4: New file.
62038         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
62039         REPLACE_VFPRINTF.
62040         * lib/stdio_.h (vfprintf): New declaration.
62041         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
62042         REPLACE_VFPRINTF.
62043
62044 2007-03-08  Bruno Haible  <bruno@clisp.org>
62045
62046         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
62047
62048 2007-03-08  Bruno Haible  <bruno@clisp.org>
62049
62050         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
62051         instead of 'expr' invocations.
62052         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
62053         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
62054         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
62055         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
62056         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
62057         Suggested by Paul Eggert.
62058
62059 2007-03-08  Bruno Haible  <bruno@clisp.org>
62060
62061         * modules/fseterr-tests: New file.
62062         * tests/test-fseterr.c: New file.
62063
62064         * modules/fseterr: New file.
62065         * lib/fseterr.h: New file.
62066         * lib/fseterr.c: New file.
62067
62068 2007-03-08  Bruno Haible  <bruno@clisp.org>
62069
62070         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
62071         * lib/getopt_.h: Likewise.
62072         * lib/mbswidth.h: Likewise.
62073         * lib/setenv.h: Likewise.
62074         * lib/vasnprintf.h: Likewise.
62075         * lib/vasprintf.h: Likewise.
62076         * lib/verror.h: Likewise.
62077         * lib/xsetenv.h: Likewise.
62078         * lib/xvasprintf.h: Likewise.
62079
62080 2007-03-08  Jim Meyering  <jim@meyering.net>
62081
62082         * users.txt: Add parted.
62083
62084         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
62085
62086 2007-03-07  Bruno Haible  <bruno@clisp.org>
62087
62088         * m4/printf.m4: Make the shell script snippets copy&pastable.
62089
62090 2007-03-02  Bruno Haible  <bruno@clisp.org>
62091
62092         * lib/netinet_in_.h: New file.
62093         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
62094         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
62095         * modules/netinet_in (Files): Add lib/netinet_in_.h.
62096         (Depends-on): Add absolute-header.
62097         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
62098         into netinet/in.h.
62099
62100 2007-03-03  Bruno Haible  <bruno@clisp.org>
62101
62102         * lib/sys_select_.h: New file.
62103         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
62104         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
62105         * modules/sys_select (Files): Add lib/sys_select_.h.
62106         (Depends-on): Add absolute-header.
62107         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
62108         into sys/select.h.
62109
62110 2007-03-02  Bruno Haible  <bruno@clisp.org>
62111
62112         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
62113         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
62114         values.
62115         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
62116         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
62117         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
62118         * modules/sys_socket (Depends-on): Add absolute-header.
62119         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
62120         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
62121         (Include): Remove requirement of inclusion of <sys/types.h>.
62122
62123 2007-03-02  Bruno Haible  <bruno@clisp.org>
62124
62125         * lib/byteswap_.h (bswap_32): Fix formula.
62126
62127 2007-03-06  Bruno Haible  <bruno@clisp.org>
62128
62129         * modules/sprintf-posix-tests: New file.
62130         * tests/test-sprintf-posix.c: New file.
62131
62132         * modules/sprintf-posix: New file.
62133         * lib/sprintf.c: New file.
62134         * m4/sprintf-posix.m4: New file.
62135         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
62136         REPLACE_SPRINTF.
62137         * lib/stdio_.h (sprintf): New declaration.
62138         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
62139         REPLACE_SPRINTF.
62140
62141 2007-03-06  Bruno Haible  <bruno@clisp.org>
62142
62143         * modules/vsprintf-posix-tests: New file.
62144         * tests/test-vsprintf-posix.c: New file.
62145         * tests/test-sprintf-posix.h: New file.
62146
62147         * modules/vsprintf-posix: New file.
62148         * lib/vsprintf.c: New file.
62149         * m4/vsprintf-posix.m4: New file.
62150         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
62151         REPLACE_VSPRINTF.
62152         * lib/stdio_.h (vsprintf): New declaration.
62153         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
62154         REPLACE_VSPRINTF.
62155
62156 2007-03-06  Bruno Haible  <bruno@clisp.org>
62157
62158         * modules/vsnprintf (Depend-on): Remove minmax.
62159
62160 2007-03-06  Bruno Haible  <bruno@clisp.org>
62161
62162         * modules/snprintf-posix-tests: New file.
62163         * tests/test-snprintf-posix.c: New file.
62164
62165         * modules/snprintf-posix: New file.
62166         * m4/snprintf-posix.m4: New file.
62167         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
62168         gl_FUNC_SNPRINTF.
62169         (gl_FUNC_SNPRINTF): Invoke it.
62170         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
62171         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
62172         is set.
62173         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
62174
62175 2007-03-06  Bruno Haible  <bruno@clisp.org>
62176
62177         * modules/vsnprintf-posix-tests: New file.
62178         * tests/test-vsnprintf-posix.c: New file.
62179         * tests/test-snprintf-posix.h: New file.
62180
62181         * modules/vsnprintf-posix: New file.
62182         * m4/vsnprintf-posix.m4: New file.
62183         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
62184         gl_FUNC_VSNPRINTF.
62185         (gl_FUNC_VSNPRINTF): Invoke it.
62186         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
62187         * lib/stdio_.h (vsnprintf): Define as a replacement if
62188         REPLACE_VSNPRINTF is set.
62189         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
62190
62191 2007-03-06  Bruno Haible  <bruno@clisp.org>
62192
62193         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
62194         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
62195
62196 2007-03-06  Bruno Haible  <bruno@clisp.org>
62197
62198         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
62199         (asinl): Declare also if HAVE_DECL_ASINL is set.
62200         (atanl): Declare also if HAVE_DECL_ATANL is set.
62201         (ceill): Declare also if HAVE_DECL_CEILL is set.
62202         (cosl): Declare also if HAVE_DECL_COSL is set.
62203         (expl): Declare also if HAVE_DECL_EXPL is set.
62204         (floorl): Declare also if HAVE_DECL_FLOORL is set.
62205         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
62206         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
62207         (logl): Declare also if HAVE_DECL_LOGL is set.
62208         (sinl): Declare also if HAVE_DECL_SINL is set.
62209         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
62210         (tanl): Declare also if HAVE_DECL_TANL is set.
62211         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
62212         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
62213         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
62214         declaration of frexpl, ldexpl.
62215         * modules/printf-frexpl (Depends-on): Add math.
62216         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
62217
62218 2007-03-05  Bruno Haible  <bruno@clisp.org>
62219
62220         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
62221         frexpl and ldexpl are declared.
62222         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
62223
62224 2007-03-05  Bruno Haible  <bruno@clisp.org>
62225
62226         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
62227         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
62228
62229 2007-03-05  Bruno Haible  <bruno@clisp.org>
62230
62231         * lib/stdio_.h: Include <stddef.h>.
62232
62233 2007-03-05  Bruno Haible  <bruno@clisp.org>
62234
62235         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
62236
62237 2007-03-05  Bruno Haible  <bruno@clisp.org>
62238
62239         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
62240         NetBSD 4, from Ralf Wildenhues.
62241
62242 2007-03-04  Bruno Haible  <bruno@clisp.org>
62243
62244         * lib/vasprintf.h: Update #if logic for the case when the functions
62245         exist but are overridden.
62246
62247 2007-03-04  Bruno Haible  <bruno@clisp.org>
62248
62249         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
62250         implementations: glibc-2.4 and MacOS X 10.3.
62251         * tests/test-vasnprintf-posix.c (test_function): Test also the case
62252         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
62253         * tests/test-vasprintf-posix.c (test_function): Likewise.
62254
62255 2007-03-04  Bruno Haible  <bruno@clisp.org>
62256
62257         * modules/vasprintf-posix-tests: New file.
62258         * tests/test-vasprintf-posix.c: New file.
62259
62260         * modules/vasprintf-posix: New file.
62261         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
62262         defined.
62263         * m4/vasprintf-posix.m4: New file.
62264         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
62265         gl_FUNC_VASPRINTF.
62266         (gl_FUNC_VASPRINTF): Invoke it.
62267         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
62268         here.
62269         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
62270
62271 2007-03-04  Bruno Haible  <bruno@clisp.org>
62272
62273         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
62274         REPLACE_GETTIMEOFDAY.
62275         * modules/sys_time (Makefile.am): Likewise.
62276         * m4/sys_time_h.m4: Likewise.
62277         * m4/gettimeofday.m4: Likewise.
62278
62279 2007-03-04  Bruno Haible  <bruno@clisp.org>
62280
62281         * modules/vasnprintf-posix-tests: New file.
62282         * tests/test-vasnprintf-posix.c: New file.
62283
62284         * modules/vasnprintf-posix: New file.
62285         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
62286         printf-frexpl.h.
62287         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
62288         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
62289         REPLACE_VASNPRINTF is defined.
62290         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
62291         gl_FUNC_VASNPRINTF.
62292         (gl_FUNC_VASNPRINTF): Invoke it.
62293         * m4/vasnprintf-posix.m4: New file.
62294         * m4/printf.m4: New file.
62295
62296 2007-03-04  Bruno Haible  <bruno@clisp.org>
62297
62298         Compile progreloc.c only if --enable-relocatable is specified.
62299         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
62300         if --enable-relocatable was specified.
62301         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
62302         lib_SOURCES.
62303
62304 2007-03-04  Jim Meyering  <jim@meyering.net>
62305
62306         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
62307         Use it consistently, rather than enumerating errno constants.
62308
62309 2007-03-04  Bruno Haible  <bruno@clisp.org>
62310
62311         * modules/xvasprintf-tests: New file.
62312         * tests/test-xvasprintf.c: New file.
62313
62314         * modules/vasprintf-tests: New file.
62315         * tests/test-vasprintf.c: New file.
62316
62317         * modules/vasnprintf-tests: New file.
62318         * tests/test-vasnprintf.c: New file.
62319
62320         * modules/vsnprintf-tests: New file.
62321         * tests/test-vsnprintf.c: New file.
62322
62323         * modules/snprintf-tests: New file.
62324         * tests/test-snprintf.c: New file.
62325
62326 2007-03-04  Bruno Haible  <bruno@clisp.org>
62327
62328         Compile relocatable.c only if --enable-relocatable is specified.
62329         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
62330         gl_RELOCATABLE_LIBRARY.
62331         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
62332         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
62333         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
62334         gl_RELOCATABLE_LIBRARY.
62335         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
62336         (Makefile.am): Remove lib_SOURCES.
62337         * modules/relocatable-lib-lgpl (configure.ac): Invoke
62338         gl_RELOCATABLE_LIBRARY.
62339         (Makefile.am): Remove lib_SOURCES.
62340         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
62341         always.
62342         * modules/relocatable-prog-wrapper (configure.ac): Invoke
62343         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
62344
62345 2007-03-04  Bruno Haible  <bruno@clisp.org>
62346
62347         * modules/argmatch-tests: New file.
62348         * tests/test-argmatch.c: New file.
62349
62350         * tests/test-allocsa.c (main): Halve the number of loop runs.
62351
62352         * modules/alloca-opt-tests: New file.
62353         * tests/test-alloca-opt.c: New file.
62354
62355 2007-03-04  Jim Meyering  <jim@meyering.net>
62356
62357         Work around difference between Linux ACLs and Solaris 10 ZFS.
62358         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
62359         for EINVAL.
62360
62361 2007-03-03  Bruno Haible  <bruno@clisp.org>
62362
62363         * modules/relocatable-prog (Depends-on): Add back progreloc's
62364         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
62365
62366 2007-03-03  Bruno Haible  <bruno@clisp.org>
62367
62368         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
62369         * modules/relocatable-lib: New file.
62370
62371 2007-03-03  Bruno Haible  <bruno@clisp.org>
62372
62373         * modules/relocatable-prog: Renamed from modules/relocatable.
62374         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
62375
62376 2007-03-03  Bruno Haible  <bruno@clisp.org>
62377
62378         * modules/relocatable-script (Files): Add doc/relocatable.texi,
62379         m4/relocatable-lib.m4.
62380         (Depends-on): Remove 'relocatable'.
62381         (configure.ac): Add gl_RELOCATABLE_NOP.
62382
62383 2007-03-03  Bruno Haible  <bruno@clisp.org>
62384
62385         * modules/relocatable-prog-wrapper: New file.
62386         * modules/relocatable (Depends-on): Add it. Remove all other
62387         dependencies except progname.
62388         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
62389
62390         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
62391         (gl_FUNC_STRERROR): Nop.
62392         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
62393
62394         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
62395         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
62396
62397         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
62398         (gl_FUNC_READLINK): Update.
62399
62400         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
62401
62402 2007-03-03  Bruno Haible  <bruno@clisp.org>
62403
62404         * lib/xreadlink.c: Include <unistd.h> unconditionally.
62405         * modules/xreadlink (Depends-on): Add unistd.
62406         * modules/xreadlink-with-size (Depends-on): Likewise.
62407
62408 2007-03-03  Bruno Haible  <bruno@clisp.org>
62409
62410         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
62411         extracted from gt_FUNC_SETENV.
62412         (gt_FUNC_SETENV): Remove macro.
62413         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
62414         remove gt_FUNC_SETENV.
62415
62416 2007-03-03  Bruno Haible  <bruno@clisp.org>
62417
62418         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
62419         ENABLE_RELOCATABLE here.
62420         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
62421
62422 2007-03-03  Bruno Haible  <bruno@clisp.org>
62423
62424         * modules/rbtreehash-list-tests (Depends-on): Add progname.
62425         * tests/test-rbtreehash_list.c: Include progname.h.
62426         (main): Call set_program_name.
62427
62428         * modules/rbtree-oset-tests (Depends-on): Add progname.
62429         * tests/test-rbtree_oset.c: Include progname.h.
62430         (main): Call set_program_name.
62431
62432         * modules/rbtree-list-tests (Depends-on): Add progname.
62433         * tests/test-rbtree_list.c: Include progname.h.
62434         (main): Call set_program_name.
62435
62436         * modules/linked-list-tests (Depends-on): Add progname.
62437         * tests/test-linked_list.c: Include progname.h.
62438         (main): Call set_program_name.
62439
62440 2007-03-03  Bruno Haible  <bruno@clisp.org>
62441
62442         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
62443         All uses of __restrict changed to _Restrict_.
62444         * lib/glob_.h (__restrict): Remove macro.
62445
62446 2007-03-02  Bruno Haible  <bruno@clisp.org>
62447
62448         * modules/gettext (configure.ac): Require gettext infrastructure
62449         from version 0.16.1.
62450
62451 2007-03-02  Bruno Haible  <bruno@clisp.org>
62452
62453         * modules/linkedhash-list-tests (Depends-on): Add progname.
62454         * tests/test-linkedhash_list.c: Include progname.h.
62455         (main): Call set_program_name.
62456
62457         * modules/carray-list-tests (Depends-on): Add progname.
62458         * tests/test-carray_list.c: Include progname.h.
62459         (main): Call set_program_name.
62460
62461         * modules/avltreehash-list-tests (Depends-on): Add progname.
62462         * tests/test-avltreehash_list.c: Include progname.h.
62463         (main): Call set_program_name.
62464
62465         * modules/avltree-oset-tests (Depends-on): Add progname.
62466         * tests/test-avltree_oset.c: Include progname.h.
62467         (main): Call set_program_name.
62468
62469         * modules/avltree-list-tests (Depends-on): Add progname.
62470         * tests/test-avltree_list.c: Include progname.h.
62471         (main): Call set_program_name.
62472
62473         * modules/array-oset-tests (Depends-on): Add progname.
62474         * tests/test-array_oset.c: Include progname.h.
62475         (main): Call set_program_name.
62476
62477         * modules/array-list-tests (Depends-on): Add progname.
62478         * tests/test-array_list.c: Include progname.h.
62479         (main): Call set_program_name.
62480
62481         * modules/argp-tests (Depends-on): Add progname.
62482         * tests/test-argp.c: Include argp.h first. Include progname.h.
62483         (main): Call set_program_name.
62484
62485 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
62486
62487         * doc/gnulib-tool.texi (Initial import): Reword description of
62488         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
62489         limited effect even if defined after the first system include.
62490
62491 2007-03-01  Bruno Haible  <bruno@clisp.org>
62492
62493         * build-aux/config.libpath: Update to libtool-1.5.22.
62494         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
62495
62496 2007-03-01  Bruno Haible  <bruno@clisp.org>
62497
62498         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
62499         foo_CFLAGS.
62500         Reported by Ralf Wildenhues.
62501
62502 2007-03-01  Bruno Haible  <bruno@clisp.org>
62503
62504         * build-aux/install-reloc: Remove object files left over by some
62505         compilers.
62506         Reported by Ralf Wildenhues.
62507
62508 2007-03-01  Bruno Haible  <bruno@clisp.org>
62509
62510         * build-aux/install-reloc: Break long lines.
62511
62512 2007-03-01  Bruno Haible  <bruno@clisp.org>
62513
62514         * doc/relocatable.texi: Document that it may not work on OpenBSD.
62515         Reported by Ralf Wildenhues.
62516
62517 2007-03-01  Bruno Haible  <bruno@clisp.org>
62518
62519         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
62520         include ordering constraints.
62521
62522 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
62523
62524         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
62525         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
62526         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
62527         as another example.
62528         * lib/time_.h: Fix misspelling.
62529         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
62530         Require gl_HEADER_TIME_H_DEFAULTS.
62531         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
62532         * m4/time_r.m4 (gl_TIME_R): Likewise.
62533         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
62534
62535 2007-03-01  Bruno Haible  <bruno@clisp.org>
62536
62537         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
62538         * m4/utimens.m4 (gl_UTIMENS): Likewise.
62539
62540 2007-03-01  Jim Meyering  <jim@meyering.net>
62541
62542         * modules/xreadlink (Maintainer): Add my name.
62543         * modules/xreadlink-with-size (Depends-on): Alphabetize.
62544
62545 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
62546             Bruno Haible  <bruno@clisp.org>
62547
62548         * build-aux/install-reloc: Compile also c-ctype.c.
62549         * build-aux/relocatable.sh.in: New file.
62550         * doc/relocatable.texi: New file.
62551         * doc/relocatable-maint.texi: New file.
62552         * doc/gnulib.texi: Include relocatable-maint.texi.
62553         * lib/progreloc.c: Include unistd.h unconditionally.
62554         * lib/relocwrapper.c: Include unistd.h unconditionally.
62555         Include c-ctype.h.
62556         (add_dotbin): Use c_tolower.
62557         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
62558         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
62559         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
62560         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
62561         to m4/relocatable-lib.m4.
62562         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
62563         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
62564         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
62565         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
62566         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
62567         * modules/relocatable: New file.
62568         * modules/relocatable-lib: New file.
62569         * modules/relocatable-script: New file.
62570
62571 2007-02-28  Bruno Haible  <bruno@clisp.org>
62572
62573         Import --enable-relocatable infrastructure.
62574         * build-aux/config.libpath: New file, from GNU gettext.
62575         * build-aux/install-reloc: New file, from GNU gettext.
62576         * build-aux/reloc-ldflags: New file, from GNU gettext.
62577         * lib/relocatable.h: New file, from GNU gettext.
62578         * lib/relocatable.c: New file, from GNU gettext.
62579         * lib/relocwrapper.c: New file, from GNU gettext.
62580         * m4/relocatable.m4: New file, from GNU gettext.
62581
62582 2007-02-28  Bruno Haible  <bruno@clisp.org>
62583
62584         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
62585
62586         * modules/xreadlink: New file, from GNU gettext with modifications.
62587         * lib/xreadlink.c: New file, from GNU gettext.
62588         * lib/xreadlink.h: Add comments.
62589         (xreadlink): New declaration.
62590
62591         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
62592         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
62593         lib/xreadlink-with-size.c.
62594         (configure.ac): Remove gl_XREADLINK invocation.
62595         (Makefile.am): Augment lib_SOURCES.
62596         * m4/xreadlink.m4: Remove file.
62597         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
62598         (xreadlink_with_size): Renamed from xreadink.
62599         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
62600         * modules/canonicalize (Depends-on): Replace xreadlink with
62601         xreadlink-with-size.
62602         * lib/canonicalize.c (canonicalize_filename_mode): Update.
62603
62604 2007-02-25  Jim Meyering  <jim@meyering.net>
62605
62606         * build-aux/announce-gen: When complaining about excess arguments,
62607         list them.
62608
62609 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
62610
62611         * README: Document signed integer overflow situation more
62612         accurately.
62613
62614 2007-02-25  Bruno Haible  <bruno@clisp.org>
62615
62616         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
62617         'a' or 'A' conversion.
62618
62619 2007-02-25  Bruno Haible  <bruno@clisp.org>
62620
62621         * modules/filename: Renamed from modules/pathname.
62622         (Files): Replace lib/pathname.h with lib/filename.h. Replace
62623         lib/concatpath.c with lib/concat-filename.c.
62624         (Makefile.am): Update.
62625         (Include): Replace pathname.h with filename.h.
62626         * lib/filename.h: Renamed from lib/pathname.h.
62627         (concatenated_filename): Renamed from concatenated_pathname.
62628         * lib/concat-filename.c: Renamed from lib/concatpath.c.
62629         (concatenated_filename): Renamed from concatenated_pathname.
62630         * lib/findprog.c: Include filename.h instead of pathname.h.
62631         (find_in_path): Update.
62632         * lib/javacomp.c: Include filename.h instead of pathname.h.
62633         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
62634         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
62635         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
62636         is_oldgcj_14_13_usable, is_javac_usable): Update.
62637         * lib/javaexec.c: Include filename.h instead of pathname.h.
62638         (execute_java_class): Update.
62639         * modules/findprog: Update.
62640         * modules/javacomp: Update.
62641         * modules/javaexec: Update.
62642         * MODULES.html.sh (File system functions): Add 'filename', remove
62643         'pathname'.
62644
62645 2007-02-25  Bruno Haible  <bruno@clisp.org>
62646
62647         * modules/printf-frexpl-tests: New file.
62648         * tests/test-printf-frexpl.c: New file.
62649
62650         * modules/printf-frexpl: New file.
62651         * lib/printf-frexpl.h: New file.
62652         * lib/printf-frexpl.c: New file.
62653         * m4/printf-frexpl.m4: New file.
62654
62655 2007-02-25  Bruno Haible  <bruno@clisp.org>
62656
62657         * modules/printf-frexp-tests: New file.
62658         * tests/test-printf-frexp.c: New file.
62659
62660         * modules/printf-frexp: New file.
62661         * lib/printf-frexp.h: New file.
62662         * lib/printf-frexp.c: New file.
62663         * m4/printf-frexp.m4: New file.
62664
62665 2007-02-25  Bruno Haible  <bruno@clisp.org>
62666
62667         Assume automake >= 1.10 for the tests.
62668         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
62669         * modules/arctwo-tests: Likewise.
62670         * modules/argp-tests: Likewise.
62671         * modules/avltree-list-tests: Likewise.
62672         * modules/avltree-oset-tests: Likewise.
62673         * modules/avltreehash-list-tests: Likewise.
62674         * modules/carray-list-tests: Likewise.
62675         * modules/crc-tests: Likewise.
62676         * modules/des-tests: Likewise.
62677         * modules/gc-arcfour-tests: Likewise.
62678         * modules/gc-arctwo-tests: Likewise.
62679         * modules/gc-des-tests: Likewise.
62680         * modules/gc-hmac-md5-tests: Likewise.
62681         * modules/gc-hmac-sha1-tests: Likewise.
62682         * modules/gc-md2-tests: Likewise.
62683         * modules/gc-md4-tests: Likewise.
62684         * modules/gc-md5-tests: Likewise.
62685         * modules/gc-pbkdf2-sha1-tests: Likewise.
62686         * modules/gc-rijndael-tests: Likewise.
62687         * modules/gc-sha1-tests: Likewise.
62688         * modules/gc-tests: Likewise.
62689         * modules/getaddrinfo-tests: Likewise.
62690         * modules/hmac-md5-tests: Likewise.
62691         * modules/hmac-sha1-tests: Likewise.
62692         * modules/linked-list-tests: Likewise.
62693         * modules/linkedhash-list-tests: Likewise.
62694         * modules/lock-tests: Likewise.
62695         * modules/md2-tests: Likewise.
62696         * modules/md4-tests: Likewise.
62697         * modules/md5-tests: Likewise.
62698         * modules/rbtree-list-tests: Likewise.
62699         * modules/rbtree-oset-tests: Likewise.
62700         * modules/rbtreehash-list-tests: Likewise.
62701         * modules/read-file-tests: Likewise.
62702         * modules/rijndael-tests: Likewise.
62703         * modules/stdint-tests: Likewise.
62704         * modules/tls-tests: Likewise.
62705
62706 2007-02-24  Bruno Haible  <bruno@clisp.org>
62707
62708         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
62709         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
62710         function; instead check whether isnan with a double argument links.
62711         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
62712         function; instead check whether isnan with a 'long double' argument
62713         links.
62714         Reported by Eric Blake <ebb9@byu.net>.
62715
62716 2007-02-24  Bruno Haible  <bruno@clisp.org>
62717
62718         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
62719         defined.
62720         * lib/isnanl.c: Remove all code. Just include isnan.c.
62721         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
62722
62723 2007-02-25  Jim Meyering  <jim@meyering.net>
62724
62725         Avoid conflicting types for 'unsetenv' on FreeBSD.
62726         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
62727         conflicting with FreeBSD's (5.0 and 6.1) function declaration
62728         in stdlib.h.
62729
62730 2007-02-24  Bruno Haible  <bruno@clisp.org>
62731
62732         * modules/isnanl-nolibm-tests: New file.
62733         * tests/test-isnanl.c: New file.
62734
62735         * modules/isnanl-nolibm: New file.
62736         * lib/isnanl.h: New file.
62737         * lib/isnanl.c: New file.
62738         * m4/isnanl.m4: New file.
62739
62740 2007-02-24  Bruno Haible  <bruno@clisp.org>
62741
62742         * modules/isnan-nolibm-tests: New file.
62743         * tests/test-isnan.c: New file.
62744
62745         * modules/isnan-nolibm: New file.
62746         * lib/isnan.h: New file.
62747         * lib/isnan.c: New file.
62748         * m4/isnan.m4: New file.
62749
62750 2007-02-24  Bruno Haible  <bruno@clisp.org>
62751
62752         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
62753         assume that an exponent fits in 20 bits.
62754
62755 2007-02-24  Jim Meyering  <jim@meyering.net>
62756
62757         * m4/regex.m4: Update the description of the configure-time option,
62758         --without-included-regex, to state accurately what the defaults are,
62759         and perhaps to give people an idea why using this option is risky.
62760
62761 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
62762
62763         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
62764         loops on small arguments.  This attempts to avoid the problem
62765         Bruno Haible reported for AIX 4.3.2 in
62766         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
62767
62768 2007-02-23  Bruno Haible  <bruno@clisp.org>
62769
62770         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
62771         Needed for help2man.
62772
62773 2007-02-23  Karl Berry  <karl@gnu.org>
62774
62775         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
62776         exists, foo.h should be cvs-ignored, not committed.
62777
62778 2007-02-23  Eric Blake  <ebb9@byu.net>
62779
62780         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
62781         * lib/stat-time.h (includes): Likewise.
62782         * lib/utimecmp.c (includes): Likewise.
62783         * lib/utimens.h (includes): Likewise.
62784         * lib/getdate.y (includes): Also include "timespec.h" for use
62785         internal to the module.
62786         * modules/utimens (Depends-on): Revert yesterday's patch.
62787         * modules/nanosleep (Depends-on): Add missing dependency.
62788
62789 2007-02-22  Bruno Haible  <bruno@clisp.org>
62790
62791         * lib/glob.c: Don't include getlogin_r.h.
62792
62793 2007-02-22  Jim Meyering  <jim@meyering.net>
62794
62795         * modules/utimens (Depends-on): Add timespec, required for
62796         utimens.h's inclusion of timespec.h.
62797
62798 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
62799
62800         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
62801         long unreadable paths in GNU/Linux.  Problem reported by Andreas
62802         Schwab in
62803         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
62804         I'll try to think of a better way to fix the Solaris problem.
62805
62806         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
62807         like glibc; on Solaris 10, it fails with errno == EINVAL.
62808         POSIX says the behavior is unspecified if the first argument is NULL,
62809         so play it safe and never pass NULL to the system getcwd.
62810
62811 2007-02-21  Jim Meyering  <jim@meyering.net>
62812
62813         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
62814         of gettimeofday.  It would conflict with the one now always
62815         provided via sys_time_.h.  Reported by Matthew Woehlke, as
62816         an IRIX 6.5 build failure.
62817
62818 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
62819
62820         Minor fixups to port to Solaris 10 with Sun C 5.8.
62821         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
62822         * modules/getcwd (Depends-on): Add dirfd.
62823         * lib/putenv.c (putenv): #undef it.
62824         (rpl_putenv): New decl.
62825         (malloc, free): Include <stdlib.h> rather than prototyping separately.
62826
62827 2007-02-20  Bruno Haible  <bruno@clisp.org>
62828
62829         * modules/stdio-tests: New file.
62830         * tests/test-stdio.c: New file.
62831
62832         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
62833         (Depends-on): Add stdio.
62834         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
62835         (Include): Use <stdio.h> instead of vsnprintf.h.
62836         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
62837         HAVE_DECL_VSNPRINTF.
62838         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
62839
62840         * modules/snprintf (Files): Remove lib/snprintf.h.
62841         (Depends-on): Add stdio.
62842         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
62843         (Include): Use <stdio.h> instead of snprintf.h.
62844         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
62845         HAVE_DECL_SNPRINTF.
62846         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
62847         * lib/getaddrinfo.c: Likewise.
62848
62849         * modules/stdio: New file.
62850         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
62851         * lib/snprintf.h: Remove file.
62852         * lib/vsnprintf.h: Remove file.
62853         * lib/.cppi-disable: Remove snprintf.h.
62854         * m4/stdio_h.m4: New file.
62855         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
62856
62857 2007-02-20  Jim Meyering  <jim@meyering.net>
62858
62859         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
62860         used by e.g., mingw.  From Bruno Haible.
62861
62862 2007-02-19  Bruno Haible  <bruno@clisp.org>
62863
62864         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
62865         warnings.
62866         Reported by Ben Pfaff <blp@cs.stanford.edu>.
62867
62868 2007-02-19  Bruno Haible  <bruno@clisp.org>
62869
62870         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
62871         from mingw users.
62872
62873 2007-02-19  Bruno Haible  <bruno@clisp.org>
62874
62875         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
62876         warnings.
62877         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
62878
62879 2007-02-19  Jim Meyering  <jim@meyering.net>
62880
62881         Don't use FD after a successful "fdopendir (fd)".
62882         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
62883         Reset it by calling dirfd on the just-obtained DIR*.
62884
62885         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
62886         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
62887
62888 2007-02-18  Bruno Haible  <bruno@clisp.org>
62889
62890         * lib/readlink.c: Include <unistd.h>.
62891         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
62892         HAVE_READLINK.
62893         * modules/readlink (Depends-on): Add unistd.
62894         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
62895         (Include): Add <unistd.h>.
62896
62897         * lib/getlogin_r.h: Remove file.
62898         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
62899         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
62900         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
62901         HAVE_DECL_GETLOGIN_R.
62902         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
62903         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
62904         (Include): Use <unistd.h> instead of getlogin_r.h.
62905
62906         * lib/getcwd.h: Remove file.
62907         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
62908         * lib/xgetcwd.c: Likewise.
62909         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
62910         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
62911         * modules/getcwd (Files): Remove lib/getcwd.h.
62912         (Depends-on): Add unistd.
62913         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
62914         (Include): Use <unistd.h> instad of getcwd.h.
62915
62916         * lib/ftruncate.c: Include <unistd.h> first.
62917         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
62918         Set HAVE_FTRUNCATE.
62919         * modules/ftruncate (Depends-on): Add unistd.
62920         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
62921
62922         * lib/fchdir.c: Include <unistd.h> first.
62923         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
62924         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
62925         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
62926         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
62927         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
62928
62929         * lib/dup2.c: Include <unistd.h> first.
62930         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
62931         HAVE_DUP2.
62932         * modules/dup2 (Depends-on): Add unistd.
62933         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
62934
62935         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
62936         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
62937         REPLACE_CHOWN. Don't define chown as a macro here.
62938         * modules/chown (Depends-on): Add unistd.
62939         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
62940
62941         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
62942         Add definition for GL_LINK_WARNING.
62943         (chown, dup2): New declarations.
62944         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
62945         link warning.
62946         (ftruncate): New declaration.
62947         (getcwd): New declaration, taken from old getcwd.h.
62948         (getlogin_r): New declaration, taken from old getlogin_r.h.
62949         (readlink): New declaration.
62950         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
62951         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
62952         (gl_PREREQ_UNISTD): Remove macro.
62953         (gl_UNISTD_MODULE_INDICATOR): New macro.
62954         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
62955         many new variables. Don't set UNISTD_H.
62956         * modules/unistd (Description): Change.
62957         (Depends-on): Add link-warning.
62958         (configure.ac): Update.
62959         (Makefile.am): Create unistd.h always. Substitute many new variables
62960         into it.
62961
62962 2007-02-18  Bruno Haible  <bruno@clisp.org>
62963
62964         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
62965         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
62966         HAVE_GETSUBOPT.
62967         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
62968         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
62969         * lib/getsubopt.h: Remove file.
62970         * modules/getsubopt (Files): Remove lib/getsubopt.h.
62971         (Depends-on): Add stdlib.
62972         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
62973         (Includes): Use <stdlib.h> instead of getsubopt.h.
62974         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
62975         Set HAVE_GETSUBOPT.
62976         * lib/getsubopt.c: Don't include getsubopt.h.
62977
62978 2007-02-18  Bruno Haible  <bruno@clisp.org>
62979
62980         * modules/fchdir (Depends-on): Add dup2.
62981
62982 2007-02-18  Bruno Haible  <bruno@clisp.org>
62983
62984         * lib/stdlib_.h: Handle glibc's special invocation convention
62985         specially.
62986
62987 2007-02-18  Bruno Haible  <bruno@clisp.org>
62988
62989         * modules/stdlib-tests: New file.
62990         * tests/test-stdlib.c: New file.
62991
62992         * modules/mkstemp (Files): Remove lib/mkstemp.h.
62993         (Depends-on): Add stdlib.
62994         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
62995         (Includes): Use <stdlib.h> instead of mkstemp.h.
62996         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
62997         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
62998         * lib/mkstemp.c: Don't include mkstemp.h.
62999         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
63000         * lib/stdlib--.h: Don't include mkstemp.h.
63001
63002         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
63003         (Depends-on): Add stdlib.
63004         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
63005         (Includes): Use <stdlib.h> instead of mkdtemp.h.
63006         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
63007         HAVE_MKDTEMP.
63008         * lib/mkdtemp.c: Don't include mkdtemp.h.
63009         * lib/clean-temp.c: Don't include mkdtemp.h.
63010
63011         * modules/exit (Files): Remove lib/exit.h.
63012         (Depends-on): Add stdlib.
63013         (Makefile.am): Remove lib_SOURCES.
63014         (Include): Use <stdlib.h> instead of exit.h.
63015         * lib/argmatch.c: Don't include exit.h.
63016         * lib/execute.c: Likewise.
63017         * lib/pagealign_alloc.c: Likewise.
63018         * lib/pipe.c: Likewise.
63019         * lib/wait-process.c: Likewise.
63020         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
63021         * lib/exitfail.c: Likewise.
63022         * lib/savewd.c: Likewise.
63023         * lib/xsetenv.c: Likewise.
63024
63025         * modules/stdlib: New file.
63026         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
63027         and extra comments about mkstemp().
63028         * lib/exit.h: Remove file.
63029         * lib/mkdtemp.h: Remove file.
63030         * lib/mkstemp.h: Remove file.
63031         * m4/stdlib_h.m4: New file.
63032         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
63033
63034 2007-02-18  Bruno Haible  <bruno@clisp.org>
63035
63036         * modules/math-tests: New file.
63037         * tests/test-math.c: New file.
63038
63039         * modules/math: New file.
63040         * modules/mathl (Files): Remove lib/mathl.h.
63041         (Depends-on): Add math.
63042         (Makefile.am): Don't mention mathl.h.
63043         (Include): Use <math.h> instead of mathl.h.
63044         * lib/math_.h: New file.
63045         * lib/mathl.h: Remove file.
63046         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
63047         mathl.h.
63048         * lib/asinl.c: Likewise.
63049         * lib/atanl.c: Likewise.
63050         * lib/ceill.c: Likewise.
63051         * lib/cosl.c: Likewise.
63052         * lib/expl.c: Likewise.
63053         * lib/floorl.c: Likewise.
63054         * lib/frexpl.c: Likewise.
63055         * lib/ldexpl.c: Likewise.
63056         * lib/logl.c: Likewise.
63057         * lib/sincosl.c: Likewise.
63058         * lib/sinl.c: Likewise.
63059         * lib/sqrtl.c: Likewise.
63060         * lib/tanl.c: Likewise.
63061         * lib/trigl.c: Likewise.
63062         * m4/math_h.m4: New file.
63063         * MODULES.html.sh (Mathematics): Add math.
63064
63065 2007-02-17  Bruno Haible  <bruno@clisp.org>
63066
63067         * modules/wctype-tests: New file.
63068         * tests/test-wctype.c: New file.
63069
63070         * modules/wchar-tests: New file.
63071         * tests/test-wchar.c: New file.
63072
63073         * modules/unistd-tests: New file.
63074         * tests/test-unistd.c: New file.
63075
63076         * modules/time-tests: New file.
63077         * tests/test-time.c: New file.
63078
63079         * modules/sysexits-tests: New file.
63080         * tests/test-sysexits.c: New file.
63081
63082         * modules/sys_time-tests: New file.
63083         * tests/test-sys_time.c: New file.
63084
63085         * modules/sys_stat-tests: New file.
63086         * tests/test-sys_stat.c: New file.
63087
63088         * modules/sys_socket-tests: New file.
63089         * tests/test-sys_socket.c: New file.
63090
63091         * modules/sys_select-tests: New file.
63092         * tests/test-sys_select.c: New file.
63093
63094         * modules/string-tests: New file.
63095         * tests/test-string.c: New file.
63096
63097         * modules/stdbool-tests: New file.
63098         * tests/test-stdbool.c: New file.
63099
63100         * modules/netinet_in-tests: New file.
63101         * tests/test-netinet_in.c: New file.
63102
63103         * modules/inttypes-tests: New file.
63104         * tests/test-inttypes.c: New file.
63105
63106         * modules/fcntl-tests: New file.
63107         * tests/test-fcntl.c: New file.
63108
63109         * modules/byteswap-tests: New file.
63110         * tests/test-byteswap.c: New file.
63111
63112         * modules/arpa_inet-tests: New file.
63113         * tests/test-arpa_inet.c: New file.
63114
63115 2007-02-17  Bruno Haible  <bruno@clisp.org>
63116
63117         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
63118         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
63119         if the corresponding module is not enabled. Emit link warnings if
63120         the function is used nevertheless.
63121         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
63122         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
63123         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
63124         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
63125         * modules/inttypes (Depends-on): Add link-warning.
63126         (Makefile.am): Copy the contents of build-aux/link-warning.h into
63127         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
63128         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
63129         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
63130         * modules/imaxdiv (configure.ac): Likewise.
63131         * modules/strtoimax (configure.ac): Likewise.
63132         * modules/strtoumax (configure.ac): Likewise.
63133
63134 2007-02-17  Bruno Haible  <bruno@clisp.org>
63135
63136         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
63137         gl_STRING_MODULE_INDICATOR_DEFAULTS.
63138         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
63139         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
63140
63141 2007-02-17  Bruno Haible  <bruno@clisp.org>
63142
63143         * modules/link-warning: New file.
63144         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
63145         * lib/string_.h (GL_LINK_WARNING): Remove definition.
63146         * modules/string (Depends-on): Add link-warning.
63147         (Makefile.am): Copy the contents of build-aux/link-warning.h into
63148         string.h.
63149         * MODULES.html.sh (Support for building libraries and executables): Add
63150         link-warning.
63151
63152 2007-02-17  Bruno Haible  <bruno@clisp.org>
63153
63154         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
63155         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
63156         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
63157         long lines.
63158
63159 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
63160             Bruno Haible  <bruno@clisp.org>
63161
63162         * modules/tmpfile: New file.
63163         * lib/tmpfile.c: New file.
63164         * m4/tmpfile.m4: New file.
63165         * MODULES.html.sh (func_all_modules): New section "Input/output".
63166
63167 2007-02-15  Bruno Haible  <bruno@clisp.org>
63168
63169         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
63170         (supports_delete_on_close): New function.
63171         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
63172
63173 2007-02-14  Bruno Haible  <bruno@clisp.org>
63174
63175         * modules/mbspcasecmp-tests: New file.
63176         * tests/test-mbspcasecmp.sh: New file.
63177         * tests/test-mbspcasecmp.c: New file.
63178
63179         New module mbspcasecmp.
63180         * modules/mbspcasecmp: New file.
63181         * lib/mbspcasecmp.c: New file.
63182         * lib/string_.h (strncasecmp): Change warning message.
63183         (mbspcasecmp): New declaration.
63184         * m4/mbspcasecmp.m4: New file.
63185         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63186         GNULIB_MBSPCASECMP.
63187         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
63188         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
63189
63190 2007-02-14  Bruno Haible  <bruno@clisp.org>
63191
63192         * modules/mbsncasecmp-tests: New file.
63193         * tests/test-mbsncasecmp.sh: New file.
63194         * tests/test-mbsncasecmp.c: New file.
63195
63196         New module mbsncasecmp.
63197         * modules/mbsncasecmp: New file.
63198         * lib/mbsncasecmp.c: New file.
63199         * lib/string_.h (mbsncasecmp): New declaration.
63200         * m4/mbsncasecmp.m4: New file.
63201         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63202         GNULIB_MBSNCASECMP.
63203         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
63204         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
63205
63206 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
63207
63208         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
63209         Verify that it doesn't overlap with our flags.
63210         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
63211         do not have the desired effect in multibyte locales; instead, use
63212         mbscasecmp.
63213         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
63214         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
63215         we don't require GNU fnmatch ourselves (if our users require it, they
63216         should do so explicitly).
63217
63218         Fix regex code so it doesn't rely on strcasecmp.
63219         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
63220         Otherwise, include gnulib's langinfo.h.
63221         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
63222         undesirable behavior in non-C locales.  Instead, rely on localecharset.
63223         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
63224         * modules/regex (FILES): Remove m4/codeset.m4.
63225         (Depends-on): Add localcharset.  Remove strcase.
63226
63227 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63228
63229         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
63230         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
63231
63232 2007-02-13  Bruno Haible  <bruno@clisp.org>
63233
63234         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
63235         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
63236
63237 2007-02-12  Bruno Haible  <bruno@clisp.org>
63238
63239         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
63240         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
63241         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
63242         time warning rather than a link error.
63243
63244 2007-02-12  Bruno Haible  <bruno@clisp.org>
63245
63246         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
63247         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
63248         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
63249
63250 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
63251
63252         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
63253         args, not 2.
63254
63255 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
63256
63257         New module 'time', so that apps can include <time.h> as per
63258         POSIX and GNU instead of separate include files like time_r.h
63259         and timegm.h.  This implementation tries out a simpler approach
63260         for replacing decls in standard include files (as compared to
63261         the string module), somewhat as an experiment.
63262
63263         * config/srclist.txt: Comment out mktime.c for now.
63264         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
63265         since it doesn't apply any more.  Use generic wording instead.
63266         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
63267         'time'.
63268         * lib/time_.h, m4/time_h.m4, modules/time: New files.
63269         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
63270         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
63271         Don't include <sys/types.h>; no longer needed since we assume C89.
63272         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
63273         * lib/strftime.c: Likewise.
63274         * lib/time_r.c: Likewise.
63275         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
63276         * lib/nanosleep.c: Include <time.h> first, to check interface.
63277         * lib/strptime.c: Likewise.
63278         * lib/time_r.c: Likewise.
63279         * lib/timegm.c: Likewise.
63280         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
63281         needed.
63282         * lib/timegm.c: Don't include timegm.h; no longer needed.
63283         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
63284         time.h now handles any problems in that area.
63285         (struct timespec, nanosleep): Remove; time.h now arranges for these.
63286         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
63287         that time.h defines struct timespec.
63288         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
63289         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
63290         handles that.
63291         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
63292         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
63293         needed.  Set REPLACE_LOCALTIME.
63294         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
63295         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
63296         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
63297         nanosleep; time_h.m4 now does that.  Don't require
63298         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
63299         module handles this now.
63300         * modules/getdate (Depends-on): Remove timespec.  Add time.
63301         * modules/nanosleep (Depends-on): Likewise.
63302         * modules/stat-time (Depends-on): Likewise.
63303         * modules/nanosleep (Include): Include time.h, not timespec.h.
63304         * modules/strptime (Files): Remove lib/strptime.h.
63305         (Depends-on): Add extensions, time.
63306         (Include): Include time.h, not strptime.h.
63307         * modules/time_r (Files): Remove lib/time_r.h.
63308         (Depends-on): Add time.
63309         (Include): Include time.h, not time_r.h.
63310         * modules/timegm: Likewise.
63311         * modules/timespec (Description): Now does timespec-related decls
63312         of our own, instead of struct timespec itself.
63313         (Depends-on): Add time; remove extensions.
63314         (Maintainer): Add self.
63315         * modules/utimecmp (Depends-on): Add time; remove timespec.
63316         * modules/utimens (Depends-on): Likewise.
63317         * modules/xnanosleep (Depends-on): Likewise.
63318
63319 2007-02-11  Bruno Haible  <bruno@clisp.org>
63320
63321         * lib/c-strstr.c: Include allocsa.h.
63322         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
63323         * lib/c-strcasestr.c: Include allocsa.h.
63324         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
63325         * lib/strcasestr.c: Include allocsa.h.
63326         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
63327         * lib/mbsstr.c: Include allocsa.h.
63328         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
63329         allocsa/freesa instead of malloc/free.
63330         * lib/mbscasestr.c: Include allocsa.h.
63331         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
63332         allocsa/freesa instead of malloc/free.
63333         * modules/c-strstr (Depends-on): Add allocsa.
63334         * modules/c-strcasestr (Depends-on): Likewise.
63335         * modules/strcasestr (Depends-on): Likewise.
63336         * modules/mbsstr (Depends-on): Likewise.
63337         * modules/mbscasestr (Depends-on): Likewise.
63338
63339 2007-02-11  Bruno Haible  <bruno@clisp.org>
63340
63341         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
63342
63343         * modules/mbsspn-tests: New file.
63344         * tests/test-mbsspn.sh: New file.
63345         * tests/test-mbsspn.c: New file.
63346
63347 2007-02-11  Bruno Haible  <bruno@clisp.org>
63348
63349         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
63350
63351         * modules/mbspbrk-tests: New file.
63352         * tests/test-mbspbrk.sh: New file.
63353         * tests/test-mbspbrk.c: New file.
63354
63355 2007-02-11  Bruno Haible  <bruno@clisp.org>
63356
63357         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
63358         unneeded cast.
63359
63360         * modules/mbscspn-tests: New file.
63361         * tests/test-mbscspn.sh: New file.
63362         * tests/test-mbscspn.c: New file.
63363
63364 2007-02-11  Bruno Haible  <bruno@clisp.org>
63365
63366         * modules/mbscasecmp-tests: New file.
63367         * tests/test-mbscasecmp.sh: New file.
63368         * tests/test-mbscasecmp.c: New file.
63369
63370 2007-02-11  Bruno Haible  <bruno@clisp.org>
63371
63372         Ensure O(n) worst-case complexity of mbscasestr.
63373         * lib/mbscasestr.c: Include stdbool.h.
63374         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
63375         functions.
63376         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
63377         the bookkeeping indicates that it's worth it.
63378         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
63379
63380         * modules/mbscasestr-tests: New file.
63381         * tests/test-mbscasestr1.c: New file.
63382         * tests/test-mbscasestr2.sh: New file.
63383         * tests/test-mbscasestr2.c: New file.
63384         * tests/test-mbscasestr3.sh: New file.
63385         * tests/test-mbscasestr3.c: New file.
63386         * tests/test-mbscasestr4.sh: New file.
63387         * tests/test-mbscasestr4.c: New file.
63388         * m4/locale-tr.m4: New file.
63389
63390 2007-02-11  Bruno Haible  <bruno@clisp.org>
63391
63392         Ensure O(n) worst-case complexity of mbsstr.
63393         * lib/mbsstr.c: Include stdbool.h.
63394         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
63395         functions.
63396         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
63397         bookkeeping indicates that it's worth it.
63398         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
63399
63400         * modules/mbsstr-tests: New file.
63401         * tests/test-mbsstr1.c: New file.
63402         * tests/test-mbsstr2.sh: New file.
63403         * tests/test-mbsstr2.c: New file.
63404         * tests/test-mbsstr3.sh: New file.
63405         * tests/test-mbsstr3.c: New file.
63406         * m4/locale-fr.m4: New file.
63407
63408 2007-02-11  Bruno Haible  <bruno@clisp.org>
63409
63410         * lib/mbsrchr.c (mbsrchr): Fix bug.
63411
63412         * modules/mbsrchr-tests: New file.
63413         * tests/test-mbsrchr.sh: New file.
63414         * tests/test-mbsrchr.c: New file.
63415
63416 2007-02-11  Bruno Haible  <bruno@clisp.org>
63417
63418         * lib/mbschr.c (mbschr): Fix bug.
63419
63420         * modules/mbschr-tests: New file.
63421         * tests/test-mbschr.sh: New file.
63422         * tests/test-mbschr.c: New file.
63423         * m4/locale-zh.m4: New file.
63424
63425 2007-02-11  Bruno Haible  <bruno@clisp.org>
63426
63427         Support for copying multibyte string iterators.
63428         * lib/mbiter.h: Include <string.h>.
63429         (mbiter_multi_copy): New function.
63430         (mbi_copy): New macro.
63431         * lib/mbuiter.h: Include <string.h>.
63432         (mbuiter_multi_copy): New function.
63433         (mbui_copy): New macro.
63434
63435 2007-02-11  Bruno Haible  <bruno@clisp.org>
63436
63437         New module mbslen.
63438         * modules/mbslen: New file.
63439         * lib/mbslen.c: New file.
63440         * lib/string_.h (mbslen): New declaration.
63441         * m4/mbslen.m4: New file.
63442         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63443         GNULIB_MBSLEN.
63444         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
63445         * MODULES.html.sh (Internationalization functions): Add mbslen.
63446
63447 2007-02-11  Bruno Haible  <bruno@clisp.org>
63448
63449         Ensure O(n) worst-case complexity of strcasestr substitute.
63450         * lib/strcasestr.c: Include stdbool.h.
63451         (knuth_morris_pratt): New function.
63452         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
63453         bookkeeping indicates that it's worth it.
63454         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
63455
63456         * modules/strcasestr-tests: New file.
63457         * tests/test-strcasestr.c: New file.
63458
63459 2007-02-11  Bruno Haible  <bruno@clisp.org>
63460
63461         Ensure O(n) worst-case complexity of c_strcasestr.
63462         * lib/c-strcasestr.c: Include stdbool.h, string.h.
63463         (knuth_morris_pratt): New function.
63464         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
63465         the bookkeeping indicates that it's worth it.
63466         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
63467
63468         * modules/c-strcasestr-tests: New file.
63469         * tests/test-c-strcasestr.c: New file.
63470
63471 2007-02-11  Bruno Haible  <bruno@clisp.org>
63472
63473         Ensure O(n) worst-case complexity of c_strstr.
63474         * lib/c-strstr.c: Include stdbool.h, string.h.
63475         (knuth_morris_pratt): New function.
63476         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
63477         bookkeeping indicates that it's worth it.
63478         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
63479
63480         * lib/c-strstr.c: Complete rewrite for maintainability.
63481
63482         * modules/c-strstr-tests: New file.
63483         * tests/test-c-strstr.c: New file.
63484
63485 2007-02-11  Bruno Haible  <bruno@clisp.org>
63486
63487         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
63488         5.2.1 and earlier, whereby \055 was treated just like the range
63489         delimiter '-'.
63490         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
63491
63492 2007-02-08  Bruno Haible  <bruno@clisp.org>
63493
63494         * modules/regex (Depends-on): Add stdbool.
63495         Reported by Dalibor Topic <robilad@kaffe.org>.
63496
63497 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
63498
63499         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
63500         Prefer returning from main to exiting from it.
63501         Remove unnecessary parens after sizeof.
63502
63503 2007-02-05  Bruno Haible  <bruno@clisp.org>
63504
63505         New module mbssep.
63506         * modules/mbssep: New file.
63507         * lib/mbssep.c: New file.
63508         * lib/string_.h (strsep): Add a conditional link warning.
63509         (mbssep): New declaration.
63510         * m4/mbssep.m4: New file.
63511         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63512         GNULIB_MBSSEP.
63513         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
63514         * MODULES.html.sh (Internationalization functions): Add mbssep.
63515
63516 2007-02-05  Bruno Haible  <bruno@clisp.org>
63517
63518         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
63519         Optimize search in case of 1 delimiter.
63520
63521 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
63522
63523         * lib/acl.h: Include sys/types.h before sys/acl.h.
63524
63525 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
63526
63527         Merge upstream fix for glibc bugzilla #3957:
63528
63529         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
63530
63531         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
63532         bit for RE_HAT_LISTS_NOT_NEWLINE.
63533         (build_charclass_op): Remove bogus comment.
63534
63535 2007-02-05  Simon Josefsson  <simon@josefsson.org>
63536
63537         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
63538
63539 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
63540
63541         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
63542         * lib/memmem.c [!defined _LIBC]: Include config.h.
63543
63544 2007-02-04  Bruno Haible  <bruno@clisp.org>
63545
63546         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
63547         warning message.
63548
63549 2007-02-04  Bruno Haible  <bruno@clisp.org>
63550
63551         New module mbstok_r.
63552         * modules/mbstok_r: New file.
63553         * lib/mbstok_r.c: New file.
63554         * lib/string_.h (strtok_r): Change argument names to match the
63555         comments. Add a conditional link warning.
63556         (mbstok_r): New declaration.
63557         * m4/mbstok_r.m4: New file.
63558         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63559         GNULIB_MBSTOK_R.
63560         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
63561         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
63562
63563 2007-02-04  Bruno Haible  <bruno@clisp.org>
63564
63565         New module mbsspn.
63566         * modules/mbsspn: New file.
63567         * lib/mbsspn.c: New file.
63568         * lib/string_.h (strspn): Add a conditional link warning.
63569         (mbsspn): New declaration.
63570         * m4/mbsspn.m4: New file.
63571         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63572         GNULIB_MBSSPN.
63573         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
63574         * MODULES.html.sh (Internationalization functions): Add mbsspn.
63575
63576 2007-02-04  Bruno Haible  <bruno@clisp.org>
63577
63578         New module mbspbrk.
63579         * modules/mbspbrk: New file.
63580         * lib/mbspbrk.c: New file.
63581         * lib/string_.h (strpbrk): Add a conditional link warning.
63582         (mbspbrk): New declaration.
63583         * m4/mbspbrk.m4: New file.
63584         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63585         GNULIB_MBSPBRK.
63586         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
63587         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
63588
63589 2007-02-04  Bruno Haible  <bruno@clisp.org>
63590
63591         New module mbscspn.
63592         * modules/mbscspn: New file.
63593         * lib/mbscspn.c: New file.
63594         * lib/string_.h (strcspn): Add a conditional link warning.
63595         (mbscspn): New declaration.
63596         * m4/mbscspn.m4: New file.
63597         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63598         GNULIB_MBSCSPN.
63599         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
63600         * MODULES.html.sh (Internationalization functions): Add mbscspn.
63601
63602 2007-02-04  Bruno Haible  <bruno@clisp.org>
63603
63604         New module mbscasestr, reduced goal of strcasestr.
63605         * modules/mbscasestr: New file.
63606         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
63607         (mbscasestr): Renamed from strcasestr.
63608         * lib/strcasestr.c: Don't include mbuiter.h.
63609         (strcasestr): Remove support for multibyte locales.
63610         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
63611         Change the conditional link warning.
63612         (mbscasestr): New declaration.
63613         * m4/mbscasestr.m4: New file.
63614         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
63615         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
63616         REPLACE_STRCASESTR.
63617         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
63618         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
63619         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
63620         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
63621         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
63622         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
63623         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
63624         (Depends-on): Remove mbuiter.
63625         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
63626
63627 2007-02-04  Bruno Haible  <bruno@clisp.org>
63628
63629         Simplify handling of strncasecmp.
63630         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
63631         the conditional link warning.
63632         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
63633         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
63634         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
63635         * modules/strcase (configure.ac): Don't invoke
63636         gl_STRING_MODULE_INDICATOR.
63637         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
63638
63639 2007-02-04  Bruno Haible  <bruno@clisp.org>
63640
63641         New module mbscasecmp, reduced goal of strcasecmp.
63642         * modules/mbscasecmp: New file.
63643         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
63644         (mbscasecmp): Renamed from strcasecmp.
63645         * lib/strcasecmp.c: Don't include mbuiter.h.
63646         (strcasecmp): Remove support for multibyte locales.
63647         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
63648         Change the conditional link warning.
63649         (mbscasecmp): New declaration.
63650         * m4/mbscasecmp.m4: New file.
63651         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
63652         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
63653         REPLACE_STRCASECMP.
63654         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
63655         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63656         GNULIB_MBSCASECMP.
63657         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
63658         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
63659         * modules/strcase (Files): Remove m4/mbrtowc.m4.
63660         (Depends-on): Remove mbuiter.
63661         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
63662
63663 2007-02-04  Bruno Haible  <bruno@clisp.org>
63664
63665         New module mbsstr. Remove module strstr.
63666         * modules/mbsstr: New file.
63667         * modules/strstr: Remove file.
63668         * lib/mbsstr.c: Renamed from lib/strstr.c.
63669         (mbsstr): Renamed from strstr.
63670         * lib/string_.h (strstr): Remove declaration. Change the conditional
63671         link warning.
63672         (mbsstr): New declaration.
63673         * m4/mbsstr.m4: New file.
63674         * m4/strstr.m4: Remove file.
63675         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
63676         REPLACE_STRSTR.
63677         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
63678         Don't initialize GNULIB_STRSTR.
63679         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
63680         substitute GNULIB_STRSTR and REPLACE_STRSTR.
63681         * MODULES.html.sh (Internationalization functions): Add mbsstr.
63682         (Support for systems lacking ANSI C 89): Remove strstr.
63683
63684 2007-02-04  Bruno Haible  <bruno@clisp.org>
63685
63686         New module mbsrchr.
63687         * modules/mbsrchr: New file.
63688         * lib/mbsrchr.c: New file.
63689         * lib/string_.h (strrchr): Add a conditional link warning.
63690         (mbsrchr): New declaration.
63691         * m4/mbsrchr.m4: New file.
63692         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63693         GNULIB_MBSRCHR.
63694         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
63695         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
63696
63697 2007-02-04  Bruno Haible  <bruno@clisp.org>
63698
63699         New module mbschr.
63700         * modules/mbschr: New file.
63701         * lib/mbschr.c: New file.
63702         * lib/string_.h (strchr): Add a conditional link warning.
63703         (mbschr): New declaration.
63704         * m4/mbschr.m4: New file.
63705         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63706         GNULIB_MBSCHR.
63707         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
63708         * MODULES.html.sh (Internationalization functions): Add mbschr.
63709
63710 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
63711
63712         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
63713
63714         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
63715
63716 2007-02-04  Bruno Haible  <bruno@clisp.org>
63717
63718         New module description section 'configure.ac-early'.
63719         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
63720         (func_get_autoconf_early_snippet): New function.
63721         (func_import, func_create_testdir): Use it. Remove special cases for
63722         modules 'extensions' and 'lock'.
63723         * modules/extensions (configure.ac-early): Require
63724         gl_USE_SYSTEM_EXTENSIONS.
63725         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
63726
63727 2007-02-04  Bruno Haible  <bruno@clisp.org>
63728
63729         Make use of gcj-4.3's -fsource and -ftarget option.
63730         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
63731         and if so try the options -fsource and -ftarget.
63732         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
63733         source_version, ftarget_option, target_version arguments.
63734         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
63735         (is_envjavac_oldgcj_14_14_usable): Renamed from
63736         is_envjavac_gcj_14_14_usable.
63737         (is_envjavac_oldgcj_14_13_usable): Renamed from
63738         is_envjavac_gcj_14_13_usable.
63739         (is_gcj_present): Update.
63740         (is_gcj_43, is_gcj43_usable): New functions.
63741         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
63742         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
63743         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
63744         try the options -fsource and -ftarget.
63745
63746 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
63747
63748         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
63749         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
63750         larger value.
63751
63752 2007-02-03  Jim Meyering  <jim@meyering.net>
63753
63754         Give tools a better chance to allocate space for very large buffers.
63755         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
63756
63757         Make pwd and readlink work also when run with an unreadable parent dir
63758         on systems with openat support.
63759         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
63760         provided getcwd function, even when we have openat support.
63761         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
63762
63763 2007-02-02  Bruno Haible  <bruno@clisp.org>
63764
63765         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
63766         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
63767         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
63768         portability problems if one of these functions is only used on specific
63769         platforms.
63770         Reported by Paul Eggert.
63771
63772 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
63773
63774         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
63775         is causing more trouble than it's curing.
63776         * lib/regex_internal.h (__mempcpy): Remove.
63777         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
63778         (and make the code a tad smaller to boot).
63779         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
63780
63781 2007-02-02  Jim Meyering  <jim@meyering.net>
63782
63783         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
63784         section, not in the Makefile.am: one.
63785
63786 2007-02-02  Eric Blake  <ebb9@byu.net>
63787
63788         * lib/strchrnul.c: Always include config.h first.
63789
63790         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
63791         gnulib strstr is not necessary here.
63792
63793 2007-02-02  Simon Josefsson  <simon@josefsson.org>
63794
63795         * m4/socklen.m4: Fix typo.
63796
63797 2007-02-02  Eric Blake  <ebb9@byu.net>
63798
63799         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
63800         * modules/netinet_in (Makefile.am): Likewise.
63801
63802 2007-02-01  Bruno Haible  <bruno@clisp.org>
63803
63804         * lib/string_.h (GL_LINK_WARNING): New macro.
63805         (strcasecmp, strstr, strcasestr): If provided by the system,
63806         conditionally define as a macro that leads to a warning instead of to
63807         an error.
63808         (strncasecmp): Conditionally define as a macro that leads to a warning.
63809
63810 2007-02-01  Karl Berry  <karl@gnu.org>
63811
63812         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
63813
63814 2007-02-01  Bruno Haible  <bruno@clisp.org>
63815
63816         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
63817         renamings.
63818
63819 2007-02-01  Eric Blake  <ebb9@byu.net>
63820
63821         * modules/regex (Depends-on): Revert dependence on mempcpy.
63822         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
63823         module's definition of mempcpy.
63824         Reported by Paul Eggert.
63825
63826 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
63827
63828         * lib/string_.h: If the gnulib module XYZ is not present, undefine
63829         the symbol XYZ before redefining it.  This fixes a problem with
63830         programs that don't use XYZ, when compiled on systems that define
63831         XYZ to something else.
63832
63833 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
63834
63835         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
63836         occurs when "mkdir -m foo" creates a setgid directory that is (1)
63837         writeable to group or other and (2) is intended to have a special
63838         mode bit that is set or cleared.  In such a case, the directory
63839         should be neither group- nor other-writeable until the special
63840         mode bits are right.
63841
63842 2007-01-31  Eric Blake  <ebb9@byu.net>
63843
63844         * modules/mountlist (Depends-on): Add strstr.
63845
63846         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
63847         bug.
63848         * modules/string (Makefile.am): Remove redundant replacement.
63849         * modules/regex (Depends-on): Add mempcpy.
63850
63851 2007-01-31  Bruno Haible  <bruno@clisp.org>
63852
63853         New module description field 'Link'.
63854         * gnulib-tool (func_usage): Document --extract-link-directive.
63855         (sed_extract_prog): Recognize 'Link' directive.
63856         (func_get_link_directive): New function.
63857         (func_import): Show summary of link directives.
63858         Handle --extract-link-directive option.
63859         * modules/acl (Link): New section.
63860         * modules/clock-time (Link): New section.
63861         * modules/euidaccess (Link): New section.
63862         * modules/gettext (Link): New section.
63863         * modules/iconv (Link): New section.
63864         * modules/lock (Link): New section.
63865         * modules/nanosleep (Link): New section.
63866         * modules/readline (Link): New section.
63867
63868 2007-01-27  Bruno Haible  <bruno@clisp.org>
63869
63870         Enforce the use of gnulib modules for unportable <string.h> functions.
63871         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
63872         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
63873         (gl_HEADER_STRING_H_BODY): Require it.
63874         * lib/string_.h: If the gnulib module XYZ is not present, redefine
63875         the symbol XYZ to one that gives a link error.
63876         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
63877         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
63878         * modules/mempcpy (configure.ac): Likewise.
63879         * modules/memrchr (configure.ac): Likewise.
63880         * modules/stpcpy (configure.ac): Likewise.
63881         * modules/stpncpy (configure.ac): Likewise.
63882         * modules/strcase (configure.ac): Likewise.
63883         * modules/strcasestr (configure.ac): Likewise.
63884         * modules/strchrnul (configure.ac): Likewise.
63885         * modules/strdup (configure.ac): Likewise.
63886         * modules/strndup (configure.ac): Likewise.
63887         * modules/strnlen (configure.ac): Likewise.
63888         * modules/strpbrk (configure.ac): Likewise.
63889         * modules/strsep (configure.ac): Likewise.
63890         * modules/strstr (configure.ac): Likewise.
63891         * modules/strtok_r (configure.ac): Likewise.
63892
63893 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
63894
63895         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
63896
63897 2007-01-30  Jim Meyering  <jim@meyering.net>
63898
63899         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
63900
63901 2007-01-29  Bruno Haible  <bruno@clisp.org>
63902
63903         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
63904         * lib/execute.c: Likewise.
63905         * lib/pipe.c: Likewise.
63906         * lib/printf-args.h: Likewise.
63907         * lib/printf-args.c: Likewise.
63908         * lib/printf-parse.c: Likewise.
63909         * lib/vasnprintf.c: Likewise.
63910
63911 2007-01-29  Eric Blake  <ebb9@byu.net>
63912
63913         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
63914         declaration.
63915
63916 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
63917
63918         * lib/strptime.h (strptime): Use 'restrict' for args where
63919         POSIX requires this.
63920         * lib/strptime.c (strptime): Likewise.
63921         Change license notice from LGPL to GPL, since gnulib-tool will
63922         change this as needed.
63923         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
63924         defined.
63925         Include "strptime.h" first, to check interface.
63926         Do not #undef _LIBC and _NL_CURRENT.
63927         Do not include <stdlib.h>; no longer needed.
63928         Include "time_r.h" and declare ptime_locale_status
63929         only if _LIBC is not defined.
63930         (__P): Remove unused macro.
63931         (match_string): Bring back glibc version, but use it only if _LIBC
63932         is defined.
63933         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
63934         Remove unnecessary assertion and abort() call.
63935         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
63936         * m4/strptime.m4: Fix serial number comment.
63937         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
63938         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
63939         (Depends-on): Add time_r.
63940
63941 2007-01-29  Bruno Haible  <bruno@clisp.org>
63942
63943         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
63944         strptime.
63945         * modules/strptime (Depends-on): Add stdbool.
63946         * lib/strptime.h: Include <time.h> always. Add comments.
63947
63948 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
63949
63950         * modules/strptime: New file.
63951         * lib/strptime.h: New file.
63952         * lib/strptime.c: New file.
63953         * m4/strptime.m4: New file.
63954
63955 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
63956
63957         * MODULES.html.sh: New module mpsort.
63958         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
63959
63960         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
63961         a circularity problem with HP-UX ia64 reported by Bob Proulx in
63962         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
63963         All uses changed.
63964         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
63965         All uses changed.
63966         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
63967         to _Restrict_.
63968         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
63969         the parameter matches the prototype.
63970
63971 2007-01-28  Jim Meyering  <jim@meyering.net>
63972
63973         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
63974         sys/time.h here, reverting that part of the previous patch:
63975         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
63976
63977 2007-01-28  Bruno Haible  <bruno@clisp.org>
63978
63979         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
63980         value of $(SYS_TIME_H).
63981         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
63982         remove it conditionally, too. [added by Jim Meyering]
63983         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
63984         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
63985         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
63986         GETTIMEOFDAY_REPLACEMENT to 1.
63987
63988 2007-01-28  Bruno Haible  <bruno@clisp.org>
63989
63990         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
63991         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
63992         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
63993         Set UNISTD_H instead of UNISTD_H2.
63994         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
63995
63996 2007-01-28  Bruno Haible  <bruno@clisp.org>
63997
63998         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
63999         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
64000
64001 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64002
64003         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
64004         (func_create_testdir): Ensure C locale for `grep' and `tr'
64005         character ranges.
64006         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
64007         ACLOCAL_AMFLAGS parsing state machine.
64008
64009 2007-01-27  Bruno Haible  <bruno@clisp.org>
64010
64011         * modules/unistr/base: Update.
64012
64013 2007-01-27  Bruno Haible  <bruno@clisp.org>
64014
64015         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
64016         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
64017         * modules/unistr/u32-mbtouc-unsafe: Renamed from
64018         modules/unistr/u32-mbtouc.
64019         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
64020         * lib/unistr.h: Update.
64021         * lib/linebreak.c: Update.
64022         * modules/unistr/u32-mbtouc: Renamed from
64023         modules/unistr/u32-mbtouc-safe.
64024         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
64025         * lib/unistr.h: Update.
64026         * lib/unistr/u32-to-u8.c: Update.
64027         * lib/unistr/u32-to-u16.c: Update.
64028
64029 2007-01-27  Bruno Haible  <bruno@clisp.org>
64030
64031         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
64032         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
64033         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
64034         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
64035         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
64036         * modules/unistr/u16-mbtouc-unsafe: Renamed from
64037         modules/unistr/u16-mbtouc.
64038         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
64039         * lib/unistr.h: Update.
64040         * lib/linebreak.c: Update.
64041         * modules/linebreak: Update.
64042         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
64043         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
64044         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
64045         * modules/unistr/u16-mbtouc: Renamed from
64046         modules/unistr/u16-mbtouc-safe.
64047         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
64048         * lib/unistr.h: Update.
64049         * lib/unistr/u16-to-u8.c: Update.
64050         * modules/unistr/u16-to-u8: Update.
64051         * lib/unistr/u16-to-u32.c: Update.
64052         * modules/unistr/u16-to-u32: Update.
64053
64054 2007-01-27  Bruno Haible  <bruno@clisp.org>
64055
64056         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
64057         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
64058         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
64059         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
64060         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
64061         * modules/unistr/u8-mbtouc-unsafe: Renamed from
64062         modules/unistr/u8-mbtouc.
64063         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
64064         * lib/unistr.h: Update.
64065         * lib/striconveh.c: Update.
64066         * modules/striconveh: Update.
64067         * lib/linebreak.c: Update.
64068         * modules/linebreak: Update.
64069         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
64070         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
64071         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
64072         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
64073         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
64074         * lib/unistr.h: Update.
64075         * lib/striconveh.c: Update.
64076         * modules/striconveh: Update.
64077         * lib/unistr/u8-to-u16.c: Update.
64078         * modules/unistr/u8-to-u16: Update.
64079         * lib/unistr/u8-to-u32.c: Update.
64080         * modules/unistr/u8-to-u32: Update.
64081
64082 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64083
64084         Sync from Libtool.
64085         * lib/argz.c: Do not include strings.h nor memory.h, include
64086         string.h unconditionally.  Patch by Simon Josefsson.
64087
64088 2007-01-27  Bruno Haible  <bruno@clisp.org>
64089
64090         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
64091         from gl_HEADER_STRING_H_BODY.
64092         (gl_HEADER_STRING_H_BODY): Require it.
64093         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
64094         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
64095         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
64096         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
64097         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
64098         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
64099         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
64100         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
64101         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
64102         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
64103         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
64104         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
64105         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
64106         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
64107         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
64108
64109 2007-01-27  Bruno Haible  <bruno@clisp.org>
64110
64111         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
64112         check_PROGRAMS into noinst_PROGRAMS.
64113         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
64114         check_PROGRAMS in this case.
64115         (func_import): Set for_test to false.
64116         (func_create_testdir): Set for_test to true.
64117
64118 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
64119             Bruno Haible  <bruno@clisp.org>
64120
64121         * modules/strcasestr (Files): Remove lib/strcasestr.h.
64122         (Depends-on): Add string.
64123         (Includes): Use <string.h> instead of strcasestr.h.
64124         * modules/string (Makefile.am): Also substitute the value of
64125         REPLACE_STRCASESTR.
64126         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
64127         assume strcasestr is declared in <string.h> not <strings.h>. Also
64128         set REPLACE_STRCASESTR.
64129         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
64130         REPLACE_STRCASESTR.
64131         * lib/strcasestr.h: Remove file.
64132         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
64133         * lib/string_.h (strcasestr): New declaration.
64134
64135 2007-01-27  Bruno Haible  <bruno@clisp.org>
64136
64137         * lib/string_.h: Use 'extern'.
64138
64139 2007-01-27  Jim Meyering  <jim@meyering.net>
64140
64141         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
64142         of set-but-not-used local, "q".
64143
64144         * lib/mempcpy.c: Include <config.h> before <string.h>.
64145         This fixes a compilation error on HP-UX, due to the system's
64146         "restrict"-using mempcpy prototype.
64147
64148 2007-01-26  Bruno Haible  <bruno@clisp.org>
64149
64150         Small optimization.
64151         * lib/javacomp.c: Include c-strstr.h.
64152          (is_envjavac_gcj): Use c_strstr instead of strstr.
64153         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
64154
64155 2007-01-26  Bruno Haible  <bruno@clisp.org>
64156
64157         * MODULES.html.sh (Unicode string functions): Add the new modules.
64158
64159         * modules/uniconv/u32-strconv-to-locale: New file.
64160         * lib/uniconv/u32-strconv-to-locale.c: New file.
64161
64162         * modules/uniconv/u16-strconv-to-locale: New file.
64163         * lib/uniconv/u16-strconv-to-locale.c: New file.
64164
64165         * modules/uniconv/u8-strconv-to-locale: New file.
64166         * lib/uniconv/u8-strconv-to-locale.c: New file.
64167
64168         * modules/uniconv/u32-strconv-from-locale: New file.
64169         * lib/uniconv/u32-strconv-from-locale.c: New file.
64170
64171         * modules/uniconv/u16-strconv-from-locale: New file.
64172         * lib/uniconv/u16-strconv-from-locale.c: New file.
64173
64174         * modules/uniconv/u8-strconv-from-locale: New file.
64175         * lib/uniconv/u8-strconv-from-locale.c: New file.
64176
64177         * modules/uniconv/u32-strconv-to-enc: New file.
64178         * lib/uniconv/u32-strconv-to-enc.c: New file.
64179         * modules/uniconv/u32-strconv-to-enc-tests: New file.
64180         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
64181
64182         * modules/uniconv/u16-strconv-to-enc: New file.
64183         * lib/uniconv/u16-strconv-to-enc.c: New file.
64184         * lib/uniconv/u-strconv-to-enc.h: New file.
64185         * modules/uniconv/u16-strconv-to-enc-tests: New file.
64186         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
64187
64188         * modules/uniconv/u8-strconv-to-enc: New file.
64189         * lib/uniconv/u8-strconv-to-enc.c: New file.
64190         * modules/uniconv/u8-strconv-to-enc-tests: New file.
64191         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
64192
64193         * modules/uniconv/u32-strconv-from-enc: New file.
64194         * lib/uniconv/u32-strconv-from-enc.c: New file.
64195         * modules/uniconv/u32-strconv-from-enc-tests: New file.
64196         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
64197
64198         * modules/uniconv/u16-strconv-from-enc: New file.
64199         * lib/uniconv/u16-strconv-from-enc.c: New file.
64200         * modules/uniconv/u16-strconv-from-enc-tests: New file.
64201         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
64202
64203         * modules/uniconv/u8-strconv-from-enc: New file.
64204         * lib/uniconv/u8-strconv-from-enc.c: New file.
64205         * lib/uniconv/u-strconv-from-enc.h: New file.
64206         * modules/uniconv/u8-strconv-from-enc-tests: New file.
64207         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
64208
64209         * modules/uniconv/u32-conv-from-enc: New file.
64210         * lib/uniconv/u32-conv-from-enc.c: New file.
64211         * modules/uniconv/u32-conv-from-enc-tests: New file.
64212         * tests/uniconv/test-u32-conv-from-enc.c: New file.
64213
64214         * modules/uniconv/u16-conv-from-enc: New file.
64215         * lib/uniconv/u16-conv-from-enc.c: New file.
64216         * lib/uniconv/u-conv-from-enc.h: New file.
64217         * modules/uniconv/u16-conv-from-enc-tests: New file.
64218         * tests/uniconv/test-u16-conv-from-enc.c: New file.
64219
64220         * modules/uniconv/u8-conv-from-enc: New file.
64221         * lib/uniconv/u8-conv-from-enc.c: New file.
64222         * modules/uniconv/u8-conv-from-enc-tests: New file.
64223         * tests/uniconv/test-u8-conv-from-enc.c: New file.
64224
64225         * modules/uniconv/base: New file.
64226         * lib/uniconv.h: New file.
64227
64228 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
64229
64230         * doc/gnulib-tool.texi (Initial import): Update to match current
64231         behavior with strdup module.
64232         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
64233         * lib/memmem.h: Remove; all uses removed.  This is now done
64234         by <string.h>.
64235         * lib/mempcpy.h: Likewise.
64236         * lib/memrchr.h: Likewise.
64237         * lib/stpcpy.h: Likewise.
64238         * lib/stpncpy.h: Likewise.
64239         * lib/strcase.h: Likewise.
64240         * lib/strchrnul.h: Likewise.
64241         * lib/strdup.h: Likewise.
64242         * lib/strndup.h: Likewise.
64243         * lib/strnlen.h: Likewise.
64244         * lib/strpbrk.h: Likewise.
64245         * lib/strsep.h: Likewise.
64246         * lib/strstr.h: Likewise.
64247         * lib/strtok_r.h: Likewise.
64248         * lib/string_.h: New file.
64249         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
64250         Rely on <string.h> instead.
64251         * lib/canon-host.c: Likewise.
64252         * lib/chdir-long.c: Likewise.
64253         * lib/concatpath.c: Likewise.
64254         * lib/exclude.c: Likewise.
64255         * lib/fchdir.c: Likewise.
64256         * lib/getaddrinfo.c: Likewise.
64257         * lib/getcwd.c: Likewise.
64258         * lib/getsubopt.c: Likewise.
64259         * lib/glob.c: Likewise.
64260         * lib/hard-locale.c: Likewise.
64261         * lib/iconvme.c: Likewise.
64262         * lib/javacomp.c: Likewise.
64263         * lib/mempcpy.c: Likewise.
64264         * lib/memrchr.c: Likewise.
64265         * lib/regex_internal.h: Likewise.
64266         * lib/stpncpy.c: Likewise.
64267         * lib/strcasecmp.c: Likewise.
64268         * lib/strchrnul.c: Likewise.
64269         * lib/strdup.c: Likewise.
64270         * lib/striconv.c: Likewise.
64271         * lib/striconveh.c: Likewise.
64272         * lib/striconveha.c: Likewise.
64273         * lib/strncasecmp.c: Likewise.
64274         * lib/strndup.c: Likewise.
64275         * lib/strnlen.c: Likewise.
64276         * lib/strsep.c: Likewise.
64277         * lib/strstr.c: Likewise.
64278         * lib/strtok_r.c: Likewise.
64279         * lib/userspec.c: Likewise.
64280         * lib/w32spawn.h: Likewise.
64281         * lib/xstrndup.c: Likewise.
64282         * lib/mountlist.c (strstr): Remove decl.
64283         * m4/string_h.m4: New file.
64284         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
64285         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
64286         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
64287         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
64288         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
64289         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
64290         Set REPLACE_STRCASECMP if necessary.
64291         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
64292         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
64293         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
64294         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
64295         HAVE_DECL_STRDUP if necessary.
64296         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
64297         since gl_FUNC_STRNDUP does that now.
64298         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
64299         Check for decl here...
64300         (gl_PREREQ_STRNLEN): ... not here.
64301         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
64302         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
64303         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
64304         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
64305         necessary.
64306         * modules/string: New file.
64307         * modules/memmem (Files): Remove special-purpose include file.
64308         (Depends-on): Add string.
64309         (Include): Include <string.h>, not the removed file.
64310         * modules/mempcpy: Likewise.
64311         * modules/memrchr: Likewise.
64312         * modules/stpcpy: Likewise.
64313         * modules/stpncpy: Likewise.
64314         * modules/strcase: Likewise.
64315         * modules/strchrnul: Likewise.
64316         * modules/strdup: Likewise.
64317         * modules/strndup: Likewise.
64318         * modules/strnlen: Likewise.
64319         * modules/strpbrk: Likewise.
64320         * modules/strsep: Likewise.
64321         * modules/strstr: Likewise.
64322         * modules/strtok_r: Likewise.
64323         * tests/test-dirname.c: Don't include "strdup.h", since
64324         <string.h> now suffices.
64325         * tests/test-memmem.c: Don't include "memmem.h", since
64326         <string.h> now suffices.
64327
64328 2007-01-25  Bruno Haible  <bruno@clisp.org>
64329
64330         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
64331         *resultp is 0.
64332
64333         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
64334         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
64335         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
64336         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
64337
64338         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
64339         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
64340         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
64341         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
64342         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
64343         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
64344
64345 2007-01-24  Bruno Haible  <bruno@clisp.org>
64346
64347         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
64348         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
64349         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
64350         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
64351         gl_FUNC_FTS_CORE.
64352         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
64353         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
64354         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
64355         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
64356         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
64357         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
64358         gl_FUNC_FCHOWNAT.
64359         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
64360         gl_FUNC_STRFTIME.
64361         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
64362         Reported by Ralf Wildenhues.
64363
64364 2007-01-24  Bruno Haible  <bruno@clisp.org>
64365
64366         Drop AC_REQUIRE calls that are redundant with the module dependencies.
64367         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
64368         gl_GETADDRINFO.
64369         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
64370         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
64371         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
64372
64373 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
64374
64375         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
64376         Don't use 'exit'; just return from 'main'.
64377         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
64378
64379         * lib/fnmatch_.h: Readjust white space and comments to match
64380         glibc, to avoid spurious diffs.
64381
64382 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
64383
64384         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
64385         2004-12-01 change by Jakub Jelinek, since this code won't compile
64386         if !LIBC.  Problem reported by Bob Proulx.
64387
64388 2007-01-23  Bruno Haible  <bruno@clisp.org>
64389
64390         * lib/striconveh.c: Include c-strcaseeq.h.
64391         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
64392         * modules/striconveh (Depends-on): Add c-strcaseeq.
64393
64394 2007-01-23  Bruno Haible  <bruno@clisp.org>
64395
64396         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
64397
64398         * modules/c-strcaseeq: New file.
64399         * lib/c-strcaseeq.h: New file.
64400
64401         * modules/streq: New file.
64402         * lib/streq.h: New file.
64403
64404 2007-01-23  Bruno Haible  <bruno@clisp.org>
64405
64406         * modules/striconveha-tests: New file.
64407         * tests/test-striconveha.c: New file.
64408
64409         * lib/striconveha.h: Include <stdbool.h>.
64410         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
64411         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
64412         (mem_iconveha_notranslit): Renamed from mem_iconveha.
64413         (mem_iconveha): New function.
64414         (str_iconveha_notranslit): Renamed from str_iconveha.
64415         (str_iconveha): New function.
64416         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
64417         c-strcase.
64418
64419 2007-01-23  Bruno Haible  <bruno@clisp.org>
64420
64421         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
64422         encodings without forgiving before trying any encoding with handler.
64423         (str_iconveha): Try all encodings without forgiving before trying any
64424         encoding with handler.
64425
64426 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
64427
64428         Import the following changes from libc.
64429
64430         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
64431
64432         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
64433
64434         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
64435
64436         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
64437         normal_bracket label.
64438
64439         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
64440
64441         [BZ #361]
64442         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
64443         to normal_bracket after fetching the next character.
64444
64445 2007-01-22  Bruno Haible  <bruno@clisp.org>
64446
64447         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
64448         argument.
64449         * lib/striconveh.c (iconv_carefully_1): New function.
64450         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
64451         argument.
64452         (str_cd_iconveh): Update.
64453         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
64454         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
64455         * tests/test-striconveh.c (MAGIC): New macro.
64456         (new_offsets): New function.
64457         (main): Test call with and without offsets.
64458
64459 2007-01-22  Bruno Haible  <bruno@clisp.org>
64460
64461         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
64462         * modules/sys_select (Makefile.am): Likewise.
64463         * modules/sys_socket (Makefile.am): Likewise.
64464         * modules/sys_time (Makefile.am): Likewise.
64465
64466 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
64467
64468         * modules/gettimeofday (License): Change from GPL to LGPL, since
64469         gettimeofday is a library function.
64470
64471 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
64472
64473         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
64474
64475 2007-01-21  Bruno Haible  <bruno@clisp.org>
64476
64477         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
64478
64479 2007-01-21  Bruno Haible  <bruno@clisp.org>
64480
64481         * modules/striconveha: New file.
64482         * lib/striconveha.h: New file.
64483         * lib/striconveha.c: New file.
64484         * MODULES.html.sh (Internationalization functions): Add striconveha.
64485         * lib/striconv.c (str_iconv): Optimize the case of an empty input
64486         string.
64487         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
64488
64489 2007-01-21  Bruno Haible  <bruno@clisp.org>
64490
64491         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
64492         * lib/striconveh.c (str_iconveh): Likewise.
64493
64494 2007-01-21  Bruno Haible  <bruno@clisp.org>
64495
64496         * lib/striconveh.h (mem_iconveh): New declaration.
64497         * lib/striconveh.c (mem_iconveh): New function.
64498         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
64499
64500 2007-01-21  Bruno Haible  <bruno@clisp.org>
64501
64502         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
64503
64504         * lib/striconveh.h (mem_cd_iconveh): Change specification.
64505         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
64506         original result buffer.
64507         (str_cd_iconveh): Update.
64508         * tests/test-striconveh.c (main): Update.
64509
64510         * lib/striconv.h (mem_cd_iconv): Change specification.
64511         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
64512         result buffer.
64513         (str_cd_iconv): Update.
64514         * tests/test-striconv.c (main): Update.
64515
64516 2007-01-21  Bruno Haible  <bruno@clisp.org>
64517
64518         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
64519
64520 2007-01-20  Jim Meyering  <jim@meyering.net>
64521
64522         * lib/userspec.c (parse_with_separator): If a user or group string
64523         starts with "+", skip the corresponding name-to-ID look-up, since
64524         such a look-up must fail: user and group names may not include "+".
64525
64526 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
64527
64528         * lib/poll.c: Include sys/time.h and time.h unconditionally,
64529         since we now assume the sys_time module.
64530         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
64531         check for sys/time.h; no longer needed.
64532         * modules/poll (Depends-on): Depend on sys_time.
64533
64534 2007-01-18  Bruno Haible  <bruno@clisp.org>
64535
64536         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
64537         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
64538
64539         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
64540         gettimeofday.
64541
64542         * tests/test-gettimeofday.c: Include <time.h>.
64543         (dummy): Remove variable.
64544
64545         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
64546         gl_HEADER_SYS_TIME_H.
64547         (gl_HEADER_SYS_TIME_H): New macro.
64548
64549         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
64550         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
64551         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
64552         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
64553         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
64554         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
64555         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
64556         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
64557         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
64558         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
64559         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
64560
64561         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
64562         last change; it caused a compilation error when cross-compiling to
64563         Cygwin.
64564
64565 2007-01-18  Jim Meyering  <jim@meyering.net>
64566
64567         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
64568         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
64569         than the race-prone "test -d sys || mkdir sys".
64570         (configure.ac): Use AC_PROG_MKDIR_P.
64571         * modules/sys_select: Likewise.
64572         * modules/sys_socket: Likewise.
64573         * modules/sys_time: Likewise.
64574
64575 2007-01-18  Eric Blake  <ebb9@byu.net>
64576
64577         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
64578         replace gettimeofday.
64579         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
64580         name, to avoid infinite recursion.
64581
64582 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
64583
64584         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
64585         module sys_time.
64586         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
64587         assume timespec.h defines struct timeval.
64588         * lib/settime.c: Likewise.
64589         * lib/utimens.c: Likewise.
64590         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
64591         since we now assume the gettimeofday module.
64592         * lib/tempname.c (__gen_tempname): Likewise.
64593         * lib/gettimeofday.h: Remove.
64594         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
64595         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
64596         Include <time.h>, for 'time()'.
64597         (localtime_buffer_addr): Also use this workaround if
64598         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
64599         to simplify the uses.  All uses changed.
64600         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
64601         that #undef is inside {}, and 'const' follows type name consistently.
64602         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
64603         (gettimeofday): Do not use the maximum possible value for
64604         tv->tv_usec, since that might break usages other than ls.c.
64605         Instead, we'll leave ls.c alone.  This undoes today's patch
64606         by Bruno.  Add a compile-time warning for 1s-clock resolution;
64607         we've never observed the problem but might as well keep the
64608         canary.
64609         * lib/nanosleep.c: Include timespec.h first, for interface check.
64610         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
64611         now assume the sys_time module.
64612         * lib/tempname.c: Likewise.
64613         * lib/timespec.h: Likewise.
64614         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
64615         needed.
64616         * lib/strftime.c: Likewise.
64617         * lib/timespec.h: Likewise.
64618         * lib/posixtm.c: Include posixtm.h first, for interface check.
64619         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
64620         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
64621         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
64622         * lib/sys_time_.h: New file.
64623         * lib/timespec.h (struct timespec): Use long int, not long.
64624         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
64625         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
64626         Remove obsolescent call to AC_HEADER_TIME.
64627         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
64628         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
64629         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
64630         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
64631         Likewise.
64632         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
64633         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
64634         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
64635         into the sys_time module.  Check for gettimeofday just once.
64636         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
64637         for gettimeofday signature to just check the signature.  Merely
64638         compile it, since linking doesn't test signature.  Improve test for
64639         whether gettimeofday.o is actually needed.
64640         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
64641         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
64642         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
64643         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
64644         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
64645         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
64646         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
64647         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
64648         than worrying about sys/time.h.
64649         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
64650         Don't bother worrying about TIME_WITH_SYS_TIME.
64651         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
64652         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
64653         * m4/sys_time_h.m4: New file.
64654         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
64655         Don't include sys/time.h.  Return from main rather than exiting.
64656         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
64657         all uses changed.
64658         * modules/gethrxtime (Depends-on): Add sys_time.
64659         * modules/gettime (Depends-on): Likewise.
64660         * modules/gettimeofday (Depends-on): Likewise.
64661         * modules/nanosleep (Depends-on): Likewise.
64662         * modules/settime (Depends-on): Likewise.
64663         * modules/tempname (Depends-on): Likewise.
64664         * modules/utimens (Depends-on): Likewise.
64665         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
64666         (Include): Change back to <sys/time.h>.
64667         (Maintainer): Add self.
64668         * modules/sys_time: New file.
64669         * modules/tempname (Depends-on): Add gettimeofday.
64670         * tests/test-gettimeofday.c: Include <sys/time.h>
64671         rather than gettimeofday.h.
64672
64673 2007-01-17  Bruno Haible  <bruno@clisp.org>
64674
64675         * gnulib-tool (func_get_license): Revert last patch. Instead, let
64676         the license default to GPL.
64677         (func_create_testdir): Don't complain if a module is LGPL and its
64678         tests module depends on GPLed modules.
64679
64680 2007-01-17  Bruno Haible  <bruno@clisp.org>
64681
64682         * lib/gettimeofday.c (gettimeofday): Add code for the case
64683         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
64684         maximum possible value for tv->tv_usec, rather than the minimum one.
64685
64686 2005-10-08  Martin Lambers  <marlam@marlam.de>
64687 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
64688 2007-01-16  Bruno Haible  <bruno@clisp.org>
64689
64690         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
64691         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
64692         gl_FUNC_GETTIMEOFDAY.
64693         (Include): Add gettimeofday.h.
64694         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
64695         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
64696         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
64697         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
64698         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
64699         * lib/gettimeofday.h: New file.
64700         * lib/gettimeofday.c: Include <sys/timeb.h>.
64701         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
64702         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
64703         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
64704         fall back on time().
64705
64706         * tests/test-gettimeofday.c: New file.
64707         * modules/gettimeofday-tests: New file.
64708
64709 2007-01-16  Eric Blake  <ebb9@byu.net>
64710
64711         * modules/fnmatch (Depends-on): Depend on wchar.
64712         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
64713         * m4/fnmatch.m4: Likewise.
64714         * modules/mbchar (Makefile.am): Assume <wchar.h>.
64715         * m4/mbchar.m4: Likewise.
64716         * modules/mbswidth (Depends-on): Depend on wchar.
64717         * lib/mbswidth.c: Assume <wchar.h>.
64718         * m4/mbswidth.m4: Likewise.
64719         * modules/quotearg (Depends-on): Depend on wchar.
64720         * lib/quotearg.c: Assume <wchar.h>.
64721         * m4/quotearg.m4: Likewise.
64722         * modules/regex (Depends-on): Depend on wchar.
64723         * lib/regex_internal.h: Assume <wchar.h>.
64724         * m4/regex.m4: Likewise.
64725         * modules/stdint (Depends-on): Depend on wchar.
64726         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
64727         * m4/stdint.m4: Likewise.
64728         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
64729         * modules/strftime (Depends-on): Depend on wchar.
64730         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
64731         * modules/strtol (Depends-on): Depend on wchar.
64732         * lib/strtol.c: Assume <wchar.h>.
64733         * modules/wcwidth (Depends-on): Depend on wchar.
64734         * lib/wcwidth.h: Assume <wchar.h>.
64735         * m4/wcwidth.m4: Likewise.
64736
64737 2007-01-16  Bruno Haible  <bruno@clisp.org>
64738
64739         * modules/csharpexec-script: New, created from...
64740         * modules/csharpexec: ... this.
64741
64742 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
64743
64744         * modules/javaexec-script: New, created from...
64745         * modules/javaexec: ... this.
64746
64747 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
64748
64749         * modules/poll (Dependencies): Add sys_select.
64750
64751 2007-01-15  Jim Meyering  <jim@meyering.net>
64752
64753         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
64754         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
64755         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
64756         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
64757
64758 2007-01-15  Bruno Haible  <bruno@clisp.org>
64759
64760         * modules/striconveh: New file.
64761         * lib/striconveh.h: New file.
64762         * lib/striconveh.c: New file.
64763         * MODULES.html.sh (Internationalization functions): Add striconveh.
64764
64765         * modules/striconveh-tests: New file.
64766         * tests/test-striconveh.c: New file.
64767
64768 2007-01-15  Bruno Haible  <bruno@clisp.org>
64769
64770         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
64771         not from GNU libiconv or GNU libc.
64772
64773 2007-01-15  Bruno Haible  <bruno@clisp.org>
64774
64775         * doc/gnulib-intro.texi (Copyright): Explain the different license
64776         terms for module descriptions, autoconf macros, tests, documentation.
64777
64778 2007-01-14  Bruno Haible  <bruno@clisp.org>
64779
64780         * modules/striconv-tests: New file.
64781         * tests/test-striconv.c: New file.
64782
64783 2007-01-14  Bruno Haible  <bruno@clisp.org>
64784
64785         * modules/iconv-tests: New file.
64786         * tests/test-iconv.c: New file.
64787
64788 2007-01-14  Bruno Haible  <bruno@clisp.org>
64789
64790         * gnulib-tool (func_get_license): For test modules, use the license of
64791         the main module.
64792
64793 2007-01-14  Bruno Haible  <bruno@clisp.org>
64794
64795         * modules/iconv (Include): Clarify that <iconv.h> can only be included
64796         if iconv is found to exist.
64797
64798 2007-01-14  Bruno Haible  <bruno@clisp.org>
64799
64800         * modules/c-ctype-tests: New file.
64801         * tests/test-c-ctype.c: New file.
64802
64803 2007-01-14  Bruno Haible  <bruno@clisp.org>
64804
64805         * modules/binary-io-tests: New file.
64806         * tests/test-binary-io.sh: New file.
64807         * tests/test-binary-io.c: New file.
64808
64809 2007-01-14  Bruno Haible  <bruno@clisp.org>
64810
64811         * modules/array-oset-tests: New file.
64812         * tests/test-array_oset.c: New file.
64813
64814 2007-01-14  Bruno Haible  <bruno@clisp.org>
64815
64816         * modules/array-list-tests: New file.
64817         * tests/test-array_list.c: New file.
64818
64819 2007-01-14  Bruno Haible  <bruno@clisp.org>
64820
64821         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
64822         and make.
64823         Reported by Simon Josefsson in
64824         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
64825
64826 2007-01-14  Bruno Haible  <bruno@clisp.org>
64827
64828         * modules/allocsa-tests: New file.
64829         * tests/test-allocsa.c: New file.
64830
64831 2007-01-14  Bruno Haible  <bruno@clisp.org>
64832
64833         * modules/fchdir (Depends-on): Add absolute-header.
64834         * modules/unistd (Depends-on): Likewise.
64835
64836 2006-12-30  Bruno Haible  <bruno@clisp.org>
64837
64838         * modules/fchdir: New file.
64839         * modules/unistd (Files): Add lib/unistd_.h.
64840         (Makefile.am): Generate unistd.h from unistd_.h.
64841         * lib/fchdir.c: New file.
64842         * lib/dirent_.h: New file.
64843         * lib/unistd_.h: New file.
64844         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
64845         * m4/fchdir.m4: New file.
64846         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
64847         (gl_HEADER_UNISTD): Invoke it.
64848         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
64849         function.
64850         * lib/backupfile.c (opendir, closedir): Undefine.
64851         * lib/chown.c (open, close): Undefine.
64852         * lib/clean-temp.c (open, close): Undefine.
64853         * lib/copy-file.c (open, close): Undefine.
64854         * lib/execute.c (open, close): Undefine.
64855         * lib/fsusage.c (open, close): Undefine.
64856         * lib/gc-gnulib.c (open, close): Undefine.
64857         * lib/getcwd.c (opendir, closedir): Undefine.
64858         * lib/glob.c (opendir, closedir): Undefine.
64859         * lib/javacomp.c (open, close): Undefine.
64860         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
64861         * lib/openat-proc.c (open, close): Undefine.
64862         * lib/pagealign_alloc.c (open, close): Undefine.
64863         * lib/pipe.c (open, close): Undefine.
64864         * lib/progreloc.c (open, close): Undefine.
64865         * lib/savedir.c (opendir, closedir): Undefine.
64866         * lib/utime.c (open, close): Undefine.
64867         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
64868
64869 2007-01-10  Bruno Haible  <bruno@clisp.org>
64870
64871         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
64872
64873 2007-01-12  Eric Blake  <ebb9@byu.net>
64874
64875         Provide a robust <wchar.h>.  Further simplifications are now
64876         possible in other modules, but not included here.
64877         * modules/wchar: New module.
64878         * m4/wchar.m4: New file.
64879         * lib/wchar_.h: Likewise.
64880         * modules/mbchar (Depends-on): Depend on wchar, as the first use
64881         of the new module.
64882         * MODULES.html.sh (Extended multibyte and wide character utilities):
64883         New section.
64884
64885 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
64886
64887         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
64888         to a reasonable default for memory allocation.
64889         (xreadlink): Don't allocate a huge buffer, to work around a buggy
64890         file system that reports garbage st_size values for symlinks.
64891         Problem reported by Liyang Hu.
64892
64893 2007-01-11  Simon Josefsson  <simon@josefsson.org>
64894
64895         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
64896         Emacs .#* auto-save files).
64897
64898 2007-01-11  Bruno Haible  <bruno@clisp.org>
64899
64900         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
64901         directory.
64902
64903 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
64904
64905         Use @...@ consistently in lib/wctype_.h.
64906         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
64907         on it being set to 1 or 0.
64908         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
64909         go back to AC_SUBSTing it.
64910         * modules/wctype (Makefile.am): Undo previous change.
64911
64912 2007-01-10  Eric Blake  <ebb9@byu.net>
64913
64914         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
64915         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
64916         * modules/wctype (Makefile.am): Likewise.
64917         Reported by Chris McGuire.
64918
64919 2007-01-10  Jim Meyering  <jim@meyering.net>
64920
64921         fts.c: a small readability/maintainability improvement
64922         * lib/fts.c (fts_read): Make this code slightly more readable and
64923         maintainable by hoisting the "sp->fts_cur = p" assignments to
64924         immediately follow the statements that set P.  Derived from
64925         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
64926
64927 2007-01-10  Eric Blake  <ebb9@byu.net>
64928
64929         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
64930         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
64931         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
64932         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
64933         Reported by Chris McGuire.
64934
64935 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64936
64937         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
64938         in sed script.
64939
64940 2007-01-09  Bruno Haible  <bruno@clisp.org>
64941
64942         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
64943         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
64944         variables.
64945         (func_module): Use them.
64946
64947 2007-01-09  Bruno Haible  <bruno@clisp.org>
64948
64949         * modules/unistr/base: New file.
64950         * lib/unistr.h: New file.
64951
64952         * modules/unistr/u8-to-u16: New file.
64953         * lib/unistr/u8-to-u16.c: New file.
64954
64955         * modules/unistr/u8-to-u32: New file.
64956         * lib/unistr/u8-to-u32.c: New file.
64957
64958         * modules/unistr/u16-to-u8: New file.
64959         * lib/unistr/u16-to-u8.c: New file.
64960
64961         * modules/unistr/u16-to-u32: New file.
64962         * lib/unistr/u16-to-u32.c: New file.
64963
64964         * modules/unistr/u32-to-u8: New file.
64965         * lib/unistr/u32-to-u8.c: New file.
64966
64967         * modules/unistr/u32-to-u16: New file.
64968         * lib/unistr/u32-to-u16.c: New file.
64969
64970         * modules/unistr/u8-check: New file.
64971         * modules/unistr/u16-check: New file.
64972         * modules/unistr/u32-check: New file.
64973         * lib/unistr/u8-check.c: New file.
64974         * lib/unistr/u16-check.c: New file.
64975         * lib/unistr/u32-check.c: New file.
64976
64977         * modules/unistr/u8-chr: New file.
64978         * modules/unistr/u16-chr: New file.
64979         * modules/unistr/u32-chr: New file.
64980         * lib/unistr/u8-chr.c: New file.
64981         * lib/unistr/u16-chr.c: New file.
64982         * lib/unistr/u32-chr.c: New file.
64983
64984         * modules/unistr/u8-cmp: New file.
64985         * modules/unistr/u16-cmp: New file.
64986         * modules/unistr/u32-cmp: New file.
64987         * lib/unistr/u8-cmp.c: New file.
64988         * lib/unistr/u16-cmp.c: New file.
64989         * lib/unistr/u32-cmp.c: New file.
64990
64991         * modules/unistr/u8-cpy: New file.
64992         * modules/unistr/u16-cpy: New file.
64993         * modules/unistr/u32-cpy: New file.
64994         * lib/unistr/u8-cpy.c: New file.
64995         * lib/unistr/u16-cpy.c: New file.
64996         * lib/unistr/u32-cpy.c: New file.
64997         * lib/unistr/u-cpy.h: New file.
64998
64999         * modules/unistr/u8-cpy-alloc: New file.
65000         * modules/unistr/u16-cpy-alloc: New file.
65001         * modules/unistr/u32-cpy-alloc: New file.
65002         * lib/unistr/u8-cpy-alloc.c: New file.
65003         * lib/unistr/u16-cpy-alloc.c: New file.
65004         * lib/unistr/u32-cpy-alloc.c: New file.
65005         * lib/unistr/u-cpy-alloc.h: New file.
65006
65007         * modules/unistr/u8-endswith: New file.
65008         * modules/unistr/u16-endswith: New file.
65009         * modules/unistr/u32-endswith: New file.
65010         * lib/unistr/u8-endswith.c: New file.
65011         * lib/unistr/u16-endswith.c: New file.
65012         * lib/unistr/u32-endswith.c: New file.
65013         * lib/unistr/u-endswith.h: New file.
65014
65015         * modules/unistr/u8-mblen: New file.
65016         * modules/unistr/u16-mblen: New file.
65017         * modules/unistr/u32-mblen: New file.
65018         * lib/unistr/u8-mblen.c: New file.
65019         * lib/unistr/u16-mblen.c: New file.
65020         * lib/unistr/u32-mblen.c: New file.
65021
65022         * modules/unistr/u8-mbtouc: New file.
65023         * modules/unistr/u16-mbtouc: New file.
65024         * modules/unistr/u32-mbtouc: New file.
65025         * lib/unistr/u8-mbtouc.c: New file.
65026         * lib/unistr/u16-mbtouc.c: New file.
65027         * lib/unistr/u32-mbtouc.c: New file.
65028
65029         * modules/unistr/u8-mbtouc-safe: New file.
65030         * modules/unistr/u16-mbtouc-safe: New file.
65031         * modules/unistr/u32-mbtouc-safe: New file.
65032         * lib/unistr/u8-mbtouc-safe.c: New file.
65033         * lib/unistr/u16-mbtouc-safe.c: New file.
65034         * lib/unistr/u32-mbtouc-safe.c: New file.
65035
65036         * modules/unistr/u8-move: New file.
65037         * modules/unistr/u16-move: New file.
65038         * modules/unistr/u32-move: New file.
65039         * lib/unistr/u8-move.c: New file.
65040         * lib/unistr/u16-move.c: New file.
65041         * lib/unistr/u32-move.c: New file.
65042         * lib/unistr/u-move.h: New file.
65043
65044         * modules/unistr/u8-next: New file.
65045         * modules/unistr/u16-next: New file.
65046         * modules/unistr/u32-next: New file.
65047         * lib/unistr/u8-next.c: New file.
65048         * lib/unistr/u16-next.c: New file.
65049         * lib/unistr/u32-next.c: New file.
65050
65051         * modules/unistr/u8-prev: New file.
65052         * modules/unistr/u16-prev: New file.
65053         * modules/unistr/u32-prev: New file.
65054         * lib/unistr/u8-prev.c: New file.
65055         * lib/unistr/u16-prev.c: New file.
65056         * lib/unistr/u32-prev.c: New file.
65057
65058         * modules/unistr/u8-set: New file.
65059         * modules/unistr/u16-set: New file.
65060         * modules/unistr/u32-set: New file.
65061         * lib/unistr/u8-set.c: New file.
65062         * lib/unistr/u16-set.c: New file.
65063         * lib/unistr/u32-set.c: New file.
65064         * lib/unistr/u-set.h: New file.
65065
65066         * modules/unistr/u8-startswith: New file.
65067         * modules/unistr/u16-startswith: New file.
65068         * modules/unistr/u32-startswith: New file.
65069         * lib/unistr/u8-startswith.c: New file.
65070         * lib/unistr/u16-startswith.c: New file.
65071         * lib/unistr/u32-startswith.c: New file.
65072         * lib/unistr/u-startswith.h: New file.
65073
65074         * modules/unistr/u8-stpcpy: New file.
65075         * modules/unistr/u16-stpcpy: New file.
65076         * modules/unistr/u32-stpcpy: New file.
65077         * lib/unistr/u8-stpcpy.c: New file.
65078         * lib/unistr/u16-stpcpy.c: New file.
65079         * lib/unistr/u32-stpcpy.c: New file.
65080         * lib/unistr/u-stpcpy.h: New file.
65081
65082         * modules/unistr/u8-stpncpy: New file.
65083         * modules/unistr/u16-stpncpy: New file.
65084         * modules/unistr/u32-stpncpy: New file.
65085         * lib/unistr/u8-stpncpy.c: New file.
65086         * lib/unistr/u16-stpncpy.c: New file.
65087         * lib/unistr/u32-stpncpy.c: New file.
65088         * lib/unistr/u-stpncpy.h: New file.
65089
65090         * modules/unistr/u8-strcat: New file.
65091         * modules/unistr/u16-strcat: New file.
65092         * modules/unistr/u32-strcat: New file.
65093         * lib/unistr/u8-strcat.c: New file.
65094         * lib/unistr/u16-strcat.c: New file.
65095         * lib/unistr/u32-strcat.c: New file.
65096         * lib/unistr/u-strcat.h: New file.
65097
65098         * modules/unistr/u8-strchr: New file.
65099         * modules/unistr/u16-strchr: New file.
65100         * modules/unistr/u32-strchr: New file.
65101         * lib/unistr/u8-strchr.c: New file.
65102         * lib/unistr/u16-strchr.c: New file.
65103         * lib/unistr/u32-strchr.c: New file.
65104
65105         * modules/unistr/u8-strcmp: New file.
65106         * modules/unistr/u16-strcmp: New file.
65107         * modules/unistr/u32-strcmp: New file.
65108         * lib/unistr/u8-strcmp.c: New file.
65109         * lib/unistr/u16-strcmp.c: New file.
65110         * lib/unistr/u32-strcmp.c: New file.
65111
65112         * modules/unistr/u8-strcpy: New file.
65113         * modules/unistr/u16-strcpy: New file.
65114         * modules/unistr/u32-strcpy: New file.
65115         * lib/unistr/u8-strcpy.c: New file.
65116         * lib/unistr/u16-strcpy.c: New file.
65117         * lib/unistr/u32-strcpy.c: New file.
65118         * lib/unistr/u-strcpy.h: New file.
65119
65120         * modules/unistr/u8-strcspn: New file.
65121         * modules/unistr/u16-strcspn: New file.
65122         * modules/unistr/u32-strcspn: New file.
65123         * lib/unistr/u8-strcspn.c: New file.
65124         * lib/unistr/u16-strcspn.c: New file.
65125         * lib/unistr/u32-strcspn.c: New file.
65126         * lib/unistr/u-strcspn.h: New file.
65127
65128         * modules/unistr/u8-strdup: New file.
65129         * modules/unistr/u16-strdup: New file.
65130         * modules/unistr/u32-strdup: New file.
65131         * lib/unistr/u8-strdup.c: New file.
65132         * lib/unistr/u16-strdup.c: New file.
65133         * lib/unistr/u32-strdup.c: New file.
65134         * lib/unistr/u-strdup.h: New file.
65135
65136         * modules/unistr/u8-strlen: New file.
65137         * modules/unistr/u16-strlen: New file.
65138         * modules/unistr/u32-strlen: New file.
65139         * lib/unistr/u8-strlen.c: New file.
65140         * lib/unistr/u16-strlen.c: New file.
65141         * lib/unistr/u32-strlen.c: New file.
65142         * lib/unistr/u-strlen.h: New file.
65143
65144         * modules/unistr/u8-strmblen: New file.
65145         * modules/unistr/u16-strmblen: New file.
65146         * modules/unistr/u32-strmblen: New file.
65147         * lib/unistr/u8-strmblen.c: New file.
65148         * lib/unistr/u16-strmblen.c: New file.
65149         * lib/unistr/u32-strmblen.c: New file.
65150
65151         * modules/unistr/u8-strmbtouc: New file.
65152         * modules/unistr/u16-strmbtouc: New file.
65153         * modules/unistr/u32-strmbtouc: New file.
65154         * lib/unistr/u8-strmbtouc.c: New file.
65155         * lib/unistr/u16-strmbtouc.c: New file.
65156         * lib/unistr/u32-strmbtouc.c: New file.
65157
65158         * modules/unistr/u8-strncat: New file.
65159         * modules/unistr/u16-strncat: New file.
65160         * modules/unistr/u32-strncat: New file.
65161         * lib/unistr/u8-strncat.c: New file.
65162         * lib/unistr/u16-strncat.c: New file.
65163         * lib/unistr/u32-strncat.c: New file.
65164         * lib/unistr/u-strncat.h: New file.
65165
65166         * modules/unistr/u8-strncmp: New file.
65167         * modules/unistr/u16-strncmp: New file.
65168         * modules/unistr/u32-strncmp: New file.
65169         * lib/unistr/u8-strncmp.c: New file.
65170         * lib/unistr/u16-strncmp.c: New file.
65171         * lib/unistr/u32-strncmp.c: New file.
65172
65173         * modules/unistr/u8-strncpy: New file.
65174         * modules/unistr/u16-strncpy: New file.
65175         * modules/unistr/u32-strncpy: New file.
65176         * lib/unistr/u8-strncpy.c: New file.
65177         * lib/unistr/u16-strncpy.c: New file.
65178         * lib/unistr/u32-strncpy.c: New file.
65179         * lib/unistr/u-strncpy.h: New file.
65180
65181         * modules/unistr/u8-strnlen: New file.
65182         * modules/unistr/u16-strnlen: New file.
65183         * modules/unistr/u32-strnlen: New file.
65184         * lib/unistr/u8-strnlen.c: New file.
65185         * lib/unistr/u16-strnlen.c: New file.
65186         * lib/unistr/u32-strnlen.c: New file.
65187         * lib/unistr/u-strnlen.h: New file.
65188
65189         * modules/unistr/u8-strpbrk: New file.
65190         * modules/unistr/u16-strpbrk: New file.
65191         * modules/unistr/u32-strpbrk: New file.
65192         * lib/unistr/u8-strpbrk.c: New file.
65193         * lib/unistr/u16-strpbrk.c: New file.
65194         * lib/unistr/u32-strpbrk.c: New file.
65195         * lib/unistr/u-strpbrk.h: New file.
65196
65197         * modules/unistr/u8-strrchr: New file.
65198         * modules/unistr/u16-strrchr: New file.
65199         * modules/unistr/u32-strrchr: New file.
65200         * lib/unistr/u8-strrchr.c: New file.
65201         * lib/unistr/u16-strrchr.c: New file.
65202         * lib/unistr/u32-strrchr.c: New file.
65203
65204         * modules/unistr/u8-strspn: New file.
65205         * modules/unistr/u16-strspn: New file.
65206         * modules/unistr/u32-strspn: New file.
65207         * lib/unistr/u8-strspn.c: New file.
65208         * lib/unistr/u16-strspn.c: New file.
65209         * lib/unistr/u32-strspn.c: New file.
65210         * lib/unistr/u-strspn.h: New file.
65211
65212         * modules/unistr/u8-strstr: New file.
65213         * modules/unistr/u16-strstr: New file.
65214         * modules/unistr/u32-strstr: New file.
65215         * lib/unistr/u8-strstr.c: New file.
65216         * lib/unistr/u16-strstr.c: New file.
65217         * lib/unistr/u32-strstr.c: New file.
65218         * lib/unistr/u-strstr.h: New file.
65219
65220         * modules/unistr/u8-strtok: New file.
65221         * modules/unistr/u16-strtok: New file.
65222         * modules/unistr/u32-strtok: New file.
65223         * lib/unistr/u8-strtok.c: New file.
65224         * lib/unistr/u16-strtok.c: New file.
65225         * lib/unistr/u32-strtok.c: New file.
65226         * lib/unistr/u-strtok.h: New file.
65227
65228         * modules/unistr/u8-uctomb: New file.
65229         * modules/unistr/u16-uctomb: New file.
65230         * modules/unistr/u32-uctomb: New file.
65231         * lib/unistr/u8-uctomb.c: New file.
65232         * lib/unistr/u16-uctomb.c: New file.
65233         * lib/unistr/u32-uctomb.c: New file.
65234
65235         * MODULES.html.sh (Unicode string functions): Add the new modules.
65236
65237 2007-01-08  Bruno Haible  <bruno@clisp.org>
65238
65239         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
65240         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
65241         subdirectories.
65242
65243 2007-01-08  Karl Berry  <karl@gnu.org>
65244
65245         * doc/error.texi: mention that main() fns must set program_name
65246         when progname is used.
65247
65248 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
65249
65250         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
65251         WCTYPE_H is empty, for the benefit of builds from non-distclean
65252         directories.  Problem reported by Eric Blake in
65253         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
65254
65255 2007-01-08  Bruno Haible  <bruno@clisp.org>
65256
65257         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
65258         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
65259         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
65260         PROVIDE_CANONICALIZE_FILENAME_MODE.
65261         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
65262
65263 2007-01-08  Bruno Haible  <bruno@clisp.org>
65264
65265         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
65266         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
65267         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
65268         * lib/fts.c: Likewise.
65269         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
65270
65271 2006-12-25  Bruno Haible  <bruno@clisp.org>
65272
65273         * modules/utf8-ucs4-safe: New file.
65274         * lib/utf8-ucs4-safe.h: New file.
65275         * lib/unistr/utf8-ucs4-safe.c: New file.
65276
65277         * modules/utf16-ucs4-safe: New file.
65278         * lib/utf16-ucs4-safe.h: New file.
65279         * lib/unistr/utf16-ucs4-safe.c: New file.
65280
65281         * MODULES.html.sh (Unicode string functions): Add the new modules.
65282
65283 2007-01-08  Bruno Haible  <bruno@clisp.org>
65284
65285         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
65286         (Depends-on): Add unitypes.
65287         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
65288         (u8_mbtouc_aux): Move out to separate file.
65289         (u8_mbtouc): Use ucs4_t, uint8_t types.
65290         * lib/unistr/utf8-ucs4.c: New file.
65291
65292         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
65293         (Depends-on): Add unitypes.
65294         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
65295         (u16_mbtouc_aux): Move out to separate file.
65296         (u16_mbtouc): Use ucs4_t, uint16_t types.
65297         * lib/unistr/utf16-ucs4.c: New file.
65298
65299         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
65300         (Depends-on): Add unitypes.
65301         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
65302         (u8_uctomb_aux): Move out to separate file.
65303         (u8_uctomb): Use ucs4_t, uint8_t types.
65304         * lib/unistr/ucs4-utf8.c: New file.
65305
65306         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
65307         (Depends-on): Add unitypes.
65308         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
65309         (u16_uctomb_aux): Move out to separate file.
65310         (u16_uctomb): Use ucs4_t, uint16_t types.
65311         * lib/unistr/ucs4-utf16.c: New file.
65312
65313 2006-12-25  Bruno Haible  <bruno@clisp.org>
65314
65315         * modules/unitypes: New file.
65316         * lib/unitypes.h: New file.
65317         * MODULES.html.sh (func_all_modules): New section "Unicode string
65318         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
65319         this section. Add unitypes.
65320
65321 2007-01-08  Bruno Haible  <bruno@clisp.org>
65322
65323         Avoid variable names that conflict with those from libtool.
65324         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
65325         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
65326         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
65327         library_names_spec to acl_library_names_spec, hardcode_* to
65328         acl_hardcode_*.
65329         Reported by Ralf Wildenhues.
65330
65331 2007-01-08  Bruno Haible  <bruno@clisp.org>
65332
65333         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
65334         definition.
65335         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
65336         definition.
65337         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
65338         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
65339         definition.
65340         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
65341         definition.
65342         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
65343         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
65344         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
65345         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
65346         definition.
65347         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
65348         definition.
65349         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
65350         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
65351         GC_USE_<algorithm>.
65352         * lib/gc-libgcrypt.c: Likewise.
65353         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
65354         * modules/gc-arctwo (configure.ac): Likewise.
65355         * modules/gc-des (configure.ac): Likewise.
65356         * modules/gc-hmac-md5 (configure.ac): Likewise.
65357         * modules/gc-hmac-sha1 (configure.ac): Likewise.
65358         * modules/gc-md2 (configure.ac): Likewise.
65359         * modules/gc-md4 (configure.ac): Likewise.
65360         * modules/gc-md5 (configure.ac): Likewise.
65361         * modules/gc-random (configure.ac): Likewise.
65362         * modules/gc-rijndael (configure.ac): Likewise.
65363         * modules/gc-sha1 (configure.ac): Likewise.
65364
65365 2007-01-08  Bruno Haible  <bruno@clisp.org>
65366
65367         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
65368         macro definition.
65369         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
65370         definition.
65371         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
65372         definition.
65373         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
65374         * modules/fcntl-safer (configure.ac): Likewise.
65375         * modules/fopen-safer (configure.ac): Likewise.
65376         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
65377         GNULIB_FWRITEERROR macro definition.
65378
65379 2007-01-08  Bruno Haible  <bruno@clisp.org>
65380
65381         * m4/gnulib-common.m4: New file.
65382         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
65383         (func_get_filelist): Add m4/gnulib-common.m4.
65384
65385 2007-01-08  Bruno Haible  <bruno@clisp.org>
65386
65387         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
65388         command.
65389
65390 2007-01-08  Jim Meyering  <jim@meyering.net>
65391
65392         Use a more robust test for a "can't happen" condition.
65393         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
65394         narrowed the st_size value.  Presuming the "can't happen" condition
65395         is true, that narrowing could conceivably convert an invalid st_size
65396         value into a valid one.  Instead, use a change based on Matthew
65397         Woehlke's original patch.
65398
65399         Slight readability improvement: use an assert-like macro
65400         in place of literal "abort ()" uses.
65401         * lib/fts.c (fts_assert): Define.
65402         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
65403         Use this macro instead of a bare 'abort'.
65404
65405 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
65406
65407         Don't worry about using IRIX 5.3's wctype.h broken definitions;
65408         simply work around them.
65409         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
65410         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
65411         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
65412         declaring.
65413         Don't bother to define as macros, since the standard doesn't require it.
65414         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
65415         longer worry about IRIX 5.3.
65416         (HAVE_WCTYPE_CTMP_BUG): Remove.
65417
65418 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
65419
65420         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
65421         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
65422         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
65423         Problems reported by Georg Schwarz for IRIX 5.3.
65424
65425         * gnulib-tool (autoconf_minversion): Take the maximum version number
65426         found, not the minimum.  Problem reported by James Youngman.
65427
65428 2007-01-03  Karl Berry  <karl@gnu.org>
65429
65430         * doc/error.texi: new file, explaining interaction with progname.
65431         * doc/gnulib.texi: include it.  Update copyright.
65432
65433 2007-01-03  Simon Josefsson  <simon@josefsson.org>
65434
65435         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
65436         AC_CANONICAL_HOST, to improve autobuild outputs.
65437
65438 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
65439             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
65440
65441         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
65442         sockets, server sockets, and other file descriptors.  Count errors
65443         to compute the return value.  Reorder the code a bit to be easier
65444         to follow.  Don't set event bits that were not requested (except
65445         POLLERR and POLLHUP).
65446
65447 2007-01-01  Bruno Haible  <bruno@clisp.org>
65448
65449         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
65450
65451 2007-01-03  Jim Meyering  <jim@meyering.net>
65452
65453         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
65454
65455 2007-01-02  Bruno Haible  <bruno@clisp.org>
65456
65457         * modules/settime (Include): Require timespec.h.
65458         * modules/nanosleep (Include): Likewise.
65459
65460 2007-01-01  Bruno Haible  <bruno@clisp.org>
65461
65462         * gnulib-tool (func_emit_copyright_notice): Bump year.
65463         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
65464
65465 2007-01-01  Bruno Haible  <bruno@clisp.org>
65466
65467         Improve support for OpenBSD.
65468         * build-aux/config.rpath (libname_spec): Export.
65469         (library_names_spec): New variable. Export.
65470         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
65471         library_names_spec from the config.rpath output. Locate shared library
65472         through the name pattern in library_names_spec.
65473
65474 2007-01-01  Eric Blake  <ebb9@byu.net>
65475
65476         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
65477
65478 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
65479
65480         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
65481         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
65482         assume the C locale, and avoid an "eval" that could cause trouble.
65483         Problem with SORT reported by Bob Proulx.
65484
65485         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
65486         Define.  Trivial patch from Henning Nielsen Lund, originally
65487         sent to bug-grep@gnu.org today.
65488
65489 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
65490
65491         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
65492         struct stat.  Problem reported by Henning Nielsen Lund.
65493         * lib/acl.c: Include acl.h first, to check interface.  Don't
65494         bother to include sys/types.h and sys/stat.h again.
65495
65496 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
65497
65498         Import the following change from libc; problem reported by
65499         Sven Verdoolaege.
65500
65501         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
65502
65503         [BZ #1373]
65504         * lib/argp.h: Remove __NTH for __argp_usage inline function.
65505
65506 2006-12-28  Jim Meyering  <jim@meyering.net>
65507
65508         * build-aux/announce-gen: Do not assume that the package
65509         builds any of tar.gz, tar.bz2, and .xdelta files.
65510         Suggestion from Simon Josefsson.
65511
65512 2006-12-28  Simon Josefsson  <simon@josefsson.org>
65513
65514         * modules/announce-gen: New file.
65515
65516 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
65517
65518         * lib/mbchar.h: Just include <wctype.h>; the wctype module
65519         handles its gotchas now.
65520         * lib/mbswidth.c: Likewise.
65521         * lib/wcwidth.h: Likewise.
65522         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
65523         and iswcntrl; the wctype module does this stuff now.
65524         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
65525         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
65526         * modules/mbchar (Depends-on): Add wctype.
65527         * modules/mbswidth (Depends-on): Likewise.
65528         * modules/wcwidth (Depends-on): Likewise.
65529
65530 2006-12-27  Eric Blake  <ebb9@byu.net>
65531
65532         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
65533         module uses more than what <wctype.h> is required to provide.
65534
65535 2006-12-26  Eric Blake  <ebb9@byu.net>
65536
65537         * gnulib-tool (sed_extract_prog): Avoid space-tab.
65538
65539 2006-12-26  Eric Blake  <ebb9@byu.net>
65540
65541         * modules/absolute-header: New module.
65542         * modules/fcntl (Depends-on): Depend on it.
65543         * modules/inttypes (Depends-on): Likewise.
65544         * modules/stdint (Depends-on): Likewise.
65545         * modules/sys_stat (Depends-on): Likewise.
65546         * modules/wctype (Depends-on): Likewise.
65547         * MODULES.html.sh (Support for building libraries and
65548         executables): Document it.
65549
65550 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
65551
65552         * gnulib-tool (SED): Remove, undoing previous change.
65553         The problem was that it broke coreutils on Solaris, because
65554         "sed --posix" leaked into a makefile.
65555         (sed): New alias, if 'alias' and GNU sed.
65556
65557 2006-12-24  Jim Meyering  <jim@meyering.net>
65558
65559         Work around an fchownat bug in glibc-2.4:
65560         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
65561         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
65562         in spite of the -P option.
65563         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
65564         New macros.
65565         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
65566         * modules/openat (Files): Add lib/fchownat.c.
65567         * lib/openat.c (fchownat): Don't define here.  Move to...
65568         * lib/fchownat.c: ...this new file.
65569
65570 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
65571
65572         Fix bug reported by Bruno Haible in
65573         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
65574         where quotearg.c didn't compile on Mac OS X 10.2 because it
65575         lacks <wchar.h> and wint_t.
65576         * lib/wctype_.h (__wctype_wint_t): New type.
65577         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
65578         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
65579         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
65580         Arg is now of type __wctype_wint_t, not wint_t.
65581         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
65582         substitute HAVE_WINT_T.
65583         * modules/wctype (Files): Add m4/wint_t.m4.
65584         (wctype.h): Substitute HAVE_WINT_T.
65585
65586 2006-12-23  Bruno Haible  <bruno@clisp.org>
65587
65588         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
65589
65590 2006-12-23  Bruno Haible  <bruno@clisp.org>
65591
65592         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
65593         S_ISLNK.
65594         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
65595         mingw.
65596
65597 2006-12-22  Bruno Haible  <bruno@clisp.org>
65598
65599         * lib/copy-file.c: Include acl.h.
65600         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
65601         Close the file descriptors only after being done with copy_acl.
65602         * modules/copy-file (Depends-on): Add acl.
65603
65604 2006-12-22  Bruno Haible  <bruno@clisp.org>
65605
65606         * gnulib-tool (SED): New variable.
65607         Use $SED instead of sed everywhere.
65608
65609 2006-12-22  Bruno Haible  <bruno@clisp.org>
65610
65611         * modules/no-c++: New file.
65612         * m4/no-c++.m4: New file.
65613         * MODULES.html.sh (Support for building libraries and executables):
65614         Add no-c++.
65615
65616 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
65617
65618         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
65619         Include <limits.h>, and use its INT_MAX to rewrite the
65620         j loop so that it does not overflow 'int'.  Problem reported by
65621         Ralf Wildenhues in
65622         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
65623         Play it safe by shifting left by 1 rather than multiplying by 2,
65624         as GCC is less likely to optimize this away when the value
65625         is signed (when it assumes overflow leads to undefined behavior).
65626         Also, don't assume time_t uses two's complement.
65627
65628 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
65629
65630         * MODULES.html.sh: New module wctype.
65631         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
65632         * lib/fnmatch.c: Don't bother to include <wchar.h> before
65633         <wctype.h>, since the new wctype module should fix this.
65634         * lib/quotearg.c: Include <wctype.h> unconditionally, since
65635         the wctype module should arrange for it.
65636         * lib/regex_internal.h: Likewise.
65637         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
65638         since the wctype module should handle this now.
65639         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
65640         * modules/fnmatch (Depends-on): Add wctype.
65641         * modules/quotearg (Depends-on): Likewise.
65642         * modules/regex (Depends-on): Likewise.
65643
65644 2006-12-19  Bruno Haible  <bruno@clisp.org>
65645
65646         * lib/strdup.h [C++]: Wrap definitions in extern "C".
65647         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
65648
65649 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65650
65651         * modules/savewd (Depends-on): Fix dependency on fcntl.
65652
65653 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
65654
65655         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
65656         conforms to C99, rather than relying on the user's environment
65657         setting of STDINT_H.
65658
65659 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
65660         and Eric Blake  <ebb9@byu.net>
65661
65662         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
65663         This is more consistent with the other defines here.
65664         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
65665         Port to z/OS.  Problem reported by Paul Gilmartin.
65666         Change local vars to use gl_ prefix rather than ac_.
65667         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
65668         with other defines.
65669         * modules/double-slash-root: New module.
65670         * modules/dirname (Files): Remove m4/double-slash-root.m4.
65671         (Depends-on): Add double-slash-root.
65672         * MODULES.html.sh (File system functions): Mention new module.
65673
65674 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
65675
65676         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
65677         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
65678         This is for the benefit of gzip, which doesn't do i18n.
65679
65680 2006-12-12  Jim Meyering  <jim@meyering.net>
65681
65682         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
65683         Reported by Andreas Schwab <schwab@suse.de>.
65684
65685 2006-12-12  Bruno Haible  <bruno@clisp.org>
65686
65687         Merge these changes.
65688         2006-09-05  Bruno Haible  <bruno@clisp.org>
65689         * lib/iconvme.c (iconv_string): No need to save and restore errno when
65690         iconv_alloc succeeded.
65691         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
65692         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
65693         test for " && dest " at the end - dest is always != NULL there. Call
65694         iconv with 4xNULL arguments initially, to reset the state. Call iconv
65695         with 2xNULL arguments, also to flush the state storage. Handle the
65696         IRIX iconv behaviour. Realloc the final result, to throw away unused
65697         memory.
65698
65699 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
65700
65701         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
65702         and fchmodat unconditionally, since glibc 2.4 has them.
65703         Problem reported by Arkadiusz Miskiewicz.
65704
65705 2006-12-10  Bruno Haible  <bruno@clisp.org>
65706
65707         * gnulib-tool (func_import): Show the include files only for those
65708         modules that are copied and specified.
65709         Reported by Karl Berry.
65710
65711 2006-12-08  Jim Meyering  <jim@meyering.net>
65712
65713         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
65714         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
65715
65716         * build-aux/announce-gen: Add two new options, both optional:
65717         --bootstrap-tools=TOOL_LIST
65718               a comma-separated list of tools, e.g.,
65719               autoconf,automake,bison,gnulib
65720         --gnulib-snapshot-date=DATE
65721               if gnulib is in the bootstrap tool list,
65722               then report this as the snapshot date.
65723               If not specified, use the current date/time.
65724               If you specify a date here, be sure it's UTC.
65725
65726 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65727
65728         * tests/test-argp-2.sh: Fix test to match actual output.
65729         (func_compare): Fix sed script to be portable.
65730
65731 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
65732
65733         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
65734         workaround for this case.  It is not autoconfigured now; offhand
65735         it's hard to see how to autoconfigure it.
65736
65737 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
65738
65739         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
65740         a directory that is about to be chowned.  Such a directory's
65741         initial file permissions should permit the owner only and this
65742         should not be changed until after the chown, since the group and
65743         other bits would be incorrect if they granted permission before
65744         the chown.
65745
65746         Fix porting problem for iswctype reported by Georg Schwarz in:
65747         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
65748         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
65749         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
65750         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
65751         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
65752
65753 2006-12-03  Jim Meyering  <jim@meyering.net>
65754
65755         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
65756         p->fts_statp may not yet be defined.
65757         (fts_read): Instead, set it in the caller, once p->fts_statp is
65758         sure to be defined, and corresponds to a top-level directory.
65759         This bug made du -x fail.  Here's the coreutils test case:
65760         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
65761         Reported by Mike Frysinger.
65762
65763 2006-12-01  Jim Meyering  <jim@meyering.net>
65764
65765         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
65766         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
65767         Reported by Simon Josefsson.
65768
65769 2006-11-30  Jim Meyering  <jim@meyering.net>
65770
65771         * m4/warning.m4: Use the all-permissive copyright notice
65772         recommended by RMS (rather than LGPL).
65773         * m4/vararrays.m4: Likewise.
65774         * m4/flexmember.m4: Likewise.
65775
65776 2006-11-29  Bruno Haible  <bruno@clisp.org>
65777
65778         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
65779         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
65780         using +=.
65781         Reported by Simon Josefsson <simon@josefsson.org>.
65782
65783 2006-11-28  James Youngman <jay@gnu.org>
65784
65785         * README: Advise users that they might find the bug-gnulib@gnu.org
65786         and autotools-announce@gnu.org mailing lists useful.
65787
65788 2006-11-28  Bruno Haible  <bruno@clisp.org>
65789
65790         * m4/ptrdiff_max.m4: Remove file.
65791
65792 2006-11-21  Bruno Haible  <bruno@clisp.org>
65793
65794         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
65795         _AC_COMPUTE_INT.
65796         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
65797         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
65798         _AC_COMPUTE_INT.
65799         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
65800         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
65801         _AC_COMPUTE_INT.
65802         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
65803
65804 2006-11-28  Jim Meyering  <jim@meyering.net>
65805
65806         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
65807         warning from "gcc -Wshadow" about shadowing the builtin.
65808
65809 2006-11-27  Bruno Haible  <bruno@clisp.org>
65810
65811         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
65812         _AC_COMPUTE_INT.
65813         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
65814
65815 2006-11-27  Bruno Haible  <bruno@clisp.org>
65816             Paul Eggert  <eggert@cs.ucla.edu>
65817
65818         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
65819
65820 2006-11-26  Bruno Haible  <bruno@clisp.org>
65821
65822         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
65823         noinst_LTLIBRARIES.
65824
65825 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
65826             Bruno Haible  <bruno@clisp.org>
65827
65828         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
65829         if compiling with "gcc -ansi".
65830
65831 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
65832
65833         Fix some incompatibilities with gcc -ansi -pedantic.
65834         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
65835         if compiling pedantically with GCC, unless it's C99 or later.
65836         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
65837         it mishandles gcc -ansi -pedantic as well.
65838         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
65839         if gcc -pedantic.
65840         * lib/regexec.c (check_node_accept_bytes): Don't use auto
65841         initializers for struct if -pedantic, unless it's C99 or later.
65842
65843 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
65844
65845         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
65846         Don't close an fd more than once. Identical atimes indicate
65847         success, not failure.
65848
65849 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
65850
65851         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
65852
65853 2006-11-23  Jim Meyering  <jim@meyering.net>
65854
65855         * build-aux/announce-gen: New file.  From coreutils.
65856
65857 2006-11-22  Jim Meyering  <jim@meyering.net>
65858
65859         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
65860         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
65861         (fts_read): Use a temporary to narrow the overused st_size member
65862         before using it in a switch statement.  Reported by Matthew Woehlke.
65863
65864         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
65865         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
65866
65867 2006-11-20  Bruno Haible  <bruno@clisp.org>
65868
65869         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
65870         changequote instead of pairs of brackets.
65871         Reported by Andreas Schwab <schwab@suse.de>.
65872
65873 2006-11-21  Jim Meyering  <jim@meyering.net>
65874
65875         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
65876         so as to remain compatible with older compilers.
65877         Patch from Michael Deutschmann.
65878
65879 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
65880
65881         * MODULES.html.sh (File system functions): Add openat.
65882
65883         * lib/openat.h (rpl_fstatat): New macro, if
65884         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
65885         (fstatat): Define to rpl_fstatat under the same conditions,
65886         unless COMPILING_FSTATAT.
65887         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
65888         seems to have the bug.
65889         * lib/fstatat.c: New file.
65890         * modules/openat (Files): Add it.
65891
65892 2006-11-20  Bruno Haible  <bruno@clisp.org>
65893
65894         * Makefile: New file.
65895
65896 2006-11-20  Jim Meyering  <jim@meyering.net>
65897
65898         The beginnings of syntax-related checks for gnulib.
65899         * lib/Makefile: New file.
65900         * lib/t-idcache: New script.  Ensure that the two halves of
65901         idcache.c stay in sync.
65902
65903         * lib/idcache.c: Adjust comments in user- and group- portions to
65904         be more accurate, and to be consistent with one another.
65905
65906 2006-11-20  Jim Meyering  <jim@meyering.net>
65907
65908         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
65909         continue using the flexible array member (thus, this module performs
65910         half as many malloc calls), with the addition that...
65911         (getgroup, getuser): Consistently record a non-match via an empty
65912         "name" string, and map an empty string match to a NULL return value.
65913         * modules/idcache (Depends-on): Re-add flexmember.
65914
65915         * lib/idcache.c (getuser): Remove all uses of the register keyword.
65916         (getuidbyname, getgroup, getgidbyname): Likewise.
65917
65918         Use cleaner syntax: NULL rather than 0.
65919         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
65920
65921 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
65922
65923         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
65924         It mishandled the case where the group was missing.
65925         Problem reported by Greg Schafer.
65926         * modules/idcache: Likewise.
65927
65928 2006-11-18  Jim Meyering  <jim@meyering.net>
65929
65930         * check-module (%exempt_header): Add exception for some
65931         conditionally-included headers.
65932
65933         * modules/i-ring (Depends-on): Add verify.
65934         (License): Change to LGPL.
65935
65936 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
65937
65938         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
65939         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
65940         and inttostr.h.  Use snprintf rather than uinttostr, so that
65941         LGPLed code doesn't depend on GPLed.
65942
65943 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
65944
65945         * modules/inline (License): Change from GPL to LGPL.
65946
65947 2006-11-17  Jim Meyering  <jim@meyering.net>
65948
65949         * modules/d-type (License): Switch to LGPL.
65950
65951 2006-11-15  Bruno Haible  <bruno@clisp.org>
65952
65953         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
65954
65955 2006-11-15  Eric Blake  <ebb9@byu.net>
65956
65957         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
65958         the module dependency.
65959
65960 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
65961             Bruno Haible  <bruno@clisp.org>
65962
65963         * gnulib-tool (func_create_testdir): Add license consistency check.
65964
65965 2006-11-15  Eric Blake  <ebb9@byu.net>
65966
65967         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
65968         random "(cached)" in configure output.
65969
65970 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65971
65972         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
65973         test for conforming inttypes.h is both announced and cached.
65974
65975         * MODULES.html.sh (seen_modules, seen_files): New variables.
65976         (func_module): Rewrite to use a few less gnulib-tool and sed
65977         invocations.  Avoid a couple of quadratic algorithms for ...
65978         (missed_modules, missed_files): ... these, with ...
65979         (func_append, func_tmpdir): ... these new functions, from
65980         gnulib-tool.  Analogously, install traps for cleanup.
65981
65982         * tests/test-gc.c (main): Remove unused variables.
65983         * tests/test-read-file.c: Include stdlib.h, for 'free'.
65984
65985 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
65986
65987         * modules/inttostr (License): Change to LGPL.
65988
65989 2006-11-14  Eric Blake  <ebb9@byu.net>
65990
65991         * modules/tempname (License): Change to LGPL.
65992
65993 2006-11-14  Eric Blake  <ebb9@byu.net>
65994
65995         * doc/functions.texi (Function Portability): *printf functions on
65996         Cygwin now understand all POSIX size specifiers.
65997
65998 2006-11-14  Bruno Haible  <bruno@clisp.org>
65999
66000         * modules/c-ctype (License): Change to LGPL.
66001
66002 2006-11-12  Bruno Haible  <bruno@clisp.org>
66003
66004         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
66005         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
66006         for GNOME libraries, for which the include files are installed in
66007         subdirectories of $prefix/include.
66008
66009 2006-11-12  Bruno Haible  <bruno@clisp.org>
66010
66011         * m4/lib-link.m4: Require at least autoconf-2.54.
66012         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
66013         name to underscores for the --with option.
66014
66015 2006-11-13  Bruno Haible  <bruno@clisp.org>
66016
66017         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
66018         the tests directory.
66019         Reported by Ralf Wildenhues.
66020
66021 2006-11-13  Bruno Haible  <bruno@clisp.org>
66022
66023         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
66024         (func_emit_initmacro_end): Undo the override here.
66025         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
66026         Works around the famous automake error in coreutils.
66027
66028 2006-11-13  Eric Blake  <ebb9@byu.net>
66029
66030         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
66031         element, not its node.
66032
66033 2006-11-12  Bruno Haible  <bruno@clisp.org>
66034
66035         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
66036         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
66037
66038 2006-11-12  Bruno Haible  <bruno@clisp.org>
66039
66040         * gnulib-tool: New option --local-symlink.
66041         (func_usage): Document it.
66042         (lsymbolic): New variable.
66043         (func_import, func_create_testdir): If --symlink was not specified,
66044         test whether --local-symlink was specified and the file comes from
66045         the local_gnulib_dir.
66046
66047 2006-11-12  Bruno Haible  <bruno@clisp.org>
66048
66049         * gnulib-tool (func_ln): New function.
66050         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
66051
66052 2006-11-12  Bruno Haible  <bruno@clisp.org>
66053
66054         Finish support for source files in subdirectories.
66055         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
66056         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
66057         AUTOMAKE_OPTIONS.
66058         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
66059
66060 2006-11-12  Bruno Haible  <bruno@clisp.org>
66061
66062         * gnulib-tool (func_get_automake_snippet): Synthesize also an
66063         EXTRA_lib_SOURCES augmentation.
66064         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
66065
66066 2006-11-12  Jim Meyering  <jim@meyering.net>
66067
66068         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
66069         file descriptors.  This also averts a failure on systems with
66070         native openat support when a traversed directory lacks "x" access.
66071         * lib/fts_.h: Include "i-ring.h"
66072         (struct FTS) [fts_fd_ring]: New member.
66073         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
66074         (FCHDIR): Add parentheses.
66075         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
66076         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
66077         When descending, rather than simply closing the previous
66078         fts_cwd_fd value, push that file descriptor onto the ring.
66079         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
66080         (fts_open): Initialize the new fd_ring member.
66081         (fts_close): Clear the ring.
66082         (fts_safe_changedir): When possible, use our new fd_ring to skip
66083         the diropen and fstat and dev/ino comparison that would normally
66084         accompany a virtual `chdir ("..")'.
66085
66086         * modules/fts (Depends-on): Add i-ring.
66087         * modules/i-ring: New module.
66088         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
66089         * m4/i-ring.m4: New file.
66090
66091 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66092
66093         * gnulib-tool (func_create_testdir): Fix replacement of
66094         `build-aux' in configure.ac.  Run autotools in gltests
66095         subdirectory.
66096         (func_create_testdir, func_create_megatestdir, test): There is
66097         no need for '--force' in most autotool invocations in a new
66098         tree.  Actually fail the whole test if any of the tools, or the
66099         configure or make stages fail.
66100
66101         Sync from Automake.
66102         * build-aux/gnupload: Revert last change.  Add pointer to upload
66103         instructions of the GNU Maintenance Instructions.
66104         Suggestion by Karl Berry.
66105
66106 2006-11-10  Jim Meyering  <jim@meyering.net>
66107
66108         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
66109
66110 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
66111
66112         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
66113         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
66114         (bind_textdomain_codeset) [! ENABLE_NLS]:
66115         Evaluate all the arguments.  That way, callers get compatible behavior
66116         if the arguments have side effects.  Also, it avoids some GCC
66117         diagnostics in some cases; Joel E. Denny reported problems when Bison
66118         was configured with --enable-gcc-warnigs.
66119
66120 2006-11-10  Jim Meyering  <jim@meyering.net>
66121
66122         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
66123         relevant options in CFLAGS (like -O, -fno-inline) are taken into
66124         account.
66125
66126 2006-11-10  Jim Meyering  <jim@meyering.net>
66127
66128         * modules/inline: New file/module.
66129         * modules/xalloc (Files): Remove m4/inline.m4.
66130         (Depends-on): Add inline, instead.
66131         * modules/oset: Likewise.
66132         * modules/list: Likewise.
66133
66134 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
66135
66136         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
66137         Problem reported by Matthew Woehlke.
66138
66139 2006-11-09  Bruno Haible  <bruno@clisp.org>
66140
66141         * lib/tempname.c (gen_tempname): Remove variant that invokes
66142         __gen_tempname.
66143         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
66144         __gen_tempname.
66145
66146 2006-11-08  Bruno Haible  <bruno@clisp.org>
66147
66148         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
66149         to 'yes' instead of 'cross-compiling'.
66150
66151 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
66152
66153         * lib/quotearg.h (quotearg_free): New decl.
66154         * lib/quotearg.c (quotearg_free): New function.
66155         (slot0, nslots, slotvec0, slotvec):
66156         Now file-scope so that quotearg_free can get at them.
66157
66158 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66159
66160         Sync from Automake.
66161         * build-aux/gnupload: Add missing 'gnu' to example URL.
66162         Report by Karl Berry.
66163
66164 2006-11-08  Bruno Haible  <bruno@clisp.org>
66165
66166         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
66167         Suggested by Paul Eggert.
66168
66169 2006-11-08  Jim Meyering  <jim@meyering.net>
66170
66171         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
66172         It's already included if !_LIBC.
66173         (fts_safe_changedir): Add a comment.
66174
66175 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
66176
66177         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
66178         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
66179         Matthew Woehlke.
66180
66181         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
66182         definitions up, to avoid colliding with change below.
66183         (static_inline) [HAVE_INLINE]: New macro.
66184         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
66185         Provide extern decls when !HAVE_INLINE.  Do not define unless
66186         static_inline is defined, either by us or by xmalloc.c.  Use
66187         static_inline rather than static inline.
66188         (XCALLOC): Optimize sizeof(T) = 1 case.
66189         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
66190
66191 2006-11-07  Bruno Haible  <bruno@clisp.org>
66192
66193         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
66194         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
66195         AC_C_INLINE.
66196         * modules/xalloc (Files): Add m4/inline.m4.
66197
66198 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66199
66200         * README: Fix typo.
66201         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
66202         (Miscellanous Notes): ...from this.
66203
66204 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
66205
66206         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
66207         Mention that offsetof should be used instead of sizeof.
66208         From Bruno Haible.
66209
66210 2006-11-07  Bruno Haible  <bruno@clisp.org>
66211
66212         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
66213
66214 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
66215
66216         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
66217         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
66218         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
66219         (gl_tree_add_before, gl_tree_add_after):
66220         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
66221         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
66222         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
66223         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
66224         (gl_linked_add_after, gl_linked_add_at): Likewise.
66225         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
66226         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
66227         (gl_tree_add_before, gl_tree_add_after): Likewise.
66228         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
66229         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
66230         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
66231
66232 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66233
66234         * lib/gl_oset.h: Use C comment style, not C++ comment style.
66235
66236 2006-11-06  Bruno Haible  <bruno@clisp.org>
66237
66238         * m4/inline.m4: New file.
66239         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
66240         * modules/list (Files): Add m4/inline.m4.
66241         * modules/oset (Files): Likewise.
66242
66243 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
66244
66245         * lib/idcache.c: Include <stddef.h>, for offsetof.
66246         (struct userid.name): Change from char * to a flexible array member.
66247         All uses changed.
66248         * modules/idcache (Depends-on): Add flexmember.
66249
66250         * MODULES.html.sh (Core language properties): New module flexmember.
66251         * modules/flexmember, m4/flexmember.m4: New files.
66252
66253         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
66254         inline functions that are identical with the old xnmalloc_inline,
66255         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
66256         that we can avoid some unnecessary integer multiplications and
66257         divisions in the common case where the element size is known at
66258         compile time.
66259         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
66260         needed.
66261         (xnboundedmalloc): Remove.
66262         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
66263         arguments, for consistency with rest of this header.
66264         (xcharalloc): Rewrite using XNMALLOC.
66265         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
66266         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
66267         versions have been moved to lib/xalloc.h and renamed to be the
66268         non-*_inline versions.
66269         (xmalloc, xrealloc): Implement without reference to the xnmalloc
66270         and xnrealloc functions, since those functions are now inline and
66271         now call us.
66272         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
66273         renaming described above.
66274         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
66275         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
66276         captures the dependency in AC_C_INLINE.
66277
66278         New module canonicalize-lgpl, proposed by Charles Wilson in
66279         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
66280         with a few small changes afterwards.
66281         * MODULES.html.sh (File system functions): New module
66282         canonicalize-lgpl.
66283         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
66284         and canonicalize_file_name.
66285         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
66286         * modules/canonicalize-lgpl: New files.
66287
66288 2006-11-05  Bruno Haible  <bruno@clisp.org>
66289
66290         * gnulib-tool (func_import, func_create_testdir): Create directories
66291         also for files in subdirectories of lib/.
66292
66293 2006-11-05  Bruno Haible  <bruno@clisp.org>
66294
66295         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
66296         ANSI C compliant.
66297
66298 2006-11-03  Bruno Haible  <bruno@clisp.org>
66299
66300         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
66301         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
66302         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
66303         (xnboundedmalloc): New inline function.
66304         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
66305         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
66306         xmalloc.
66307         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
66308         xmalloc.
66309         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
66310         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
66311         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
66312         xmalloc.
66313         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
66314         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
66315         xmalloc.
66316         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
66317         gl_tree_add_after): Use XMALLOC instead of xmalloc.
66318         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
66319         xmalloc.
66320         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
66321         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
66322         gl_tree_add_after): Use XMALLOC instead of xmalloc.
66323         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
66324         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
66325         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
66326         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
66327
66328 2006-11-03  Bruno Haible  <bruno@clisp.org>
66329
66330         * lib/c-ctype.h [C++]: Define functions without name mangling.
66331         * lib/fwriteerror.h [C++]: Likewise.
66332         * lib/gcd.h [C++]: Likewise.
66333         * lib/linebreak.h [C++]: Likewise.
66334
66335 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
66336
66337         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
66338         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
66339         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
66340         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
66341         Check for functions and headers just once.
66342         Check for declaration of canonicalize_file_name.
66343         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
66344
66345 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
66346
66347         * gnulib-tool (func_import): Fix typo in actioncmd.
66348
66349 2006-11-02  Bruno Haible  <bruno@clisp.org>
66350
66351         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
66352         newline sequence in the Makefile.am snippet as a space, like "make"
66353         does.
66354         Reported by Roger Persson <perrog@gmail.com>.
66355
66356 2006-11-01  Bruno Haible  <bruno@clisp.org>
66357
66358         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
66359         already declared in <string.h>.
66360         * lib/strcase.h (strncasecmp): Don't declare it if yes.
66361
66362 2006-11-01  Bruno Haible  <bruno@clisp.org>
66363
66364         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
66365         * lib/strcase.h: Include <string.h>.
66366         (strcasecmp): Define to rpl_strcasecmp here.
66367
66368 2006-11-01  Bruno Haible  <bruno@clisp.org>
66369
66370         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
66371
66372 2006-11-01  Eric Blake  <ebb9@byu.net>
66373
66374         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
66375
66376         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
66377
66378 2006-10-29  Bruno Haible  <bruno@clisp.org>
66379
66380         Make it compile in C++ mode.
66381         * lib/full-write.c (full_rw): Add a cast.
66382
66383 2006-11-01  Bruno Haible  <bruno@clisp.org>
66384
66385         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
66386         be POSIX compliant.
66387         Reported by Roger Persson <perrog@gmail.com>.
66388
66389 2006-11-01  Eric Blake  <ebb9@byu.net>
66390
66391         * lib/getopt_.h: Fix comments.
66392
66393 2006-10-31  Eric Blake  <ebb9@byu.net>
66394
66395         * modules/tmpdir (Depends-on): Add sys_stat.
66396         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
66397         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
66398         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
66399         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
66400         tempname.
66401
66402 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
66403
66404         Avoid some C++ diagnostics reported by Bruno Haible.
66405         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
66406         xmalloc.
66407         (quotearg_alloc): Use xcharalloc rather than xmalloc.
66408         (struct slotvec): Move to top level.
66409         (quotearg_n_options): Rewrite to avoid xmalloc.
66410         * lib/xalloc.h (xcharalloc): New function.
66411         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
66412         [defined __cplusplus]: Add function template that provides result
66413         type propagation.  This part of the change is from Bruno Haible.
66414
66415 2006-10-29  Bruno Haible  <bruno@clisp.org>
66416
66417         Make it compile in C++ mode.
66418         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
66419         * lib/strnlen1.c (strnlen1): Cast memchr result.
66420         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
66421         * lib/clean-temp.c (string_equals, string_hash): Add casts.
66422         (create_temp_dir): Rename local variable 'template'.
66423         (compile_csharp_using_sscli): Add cast.
66424         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
66425         * lib/findprog.c (find_in_path): Likewise.
66426         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
66427         * lib/wait-process.c (register_slave_subprocess): Likewise.
66428
66429 2006-10-22  Bruno Haible  <bruno@clisp.org>
66430
66431         * modules/tsearch: New file.
66432         * lib/tsearch.h: New file.
66433         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
66434         * m4/tsearch.m4: New file.
66435         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
66436
66437 2006-10-29  Eric Blake  <ebb9@byu.net>
66438
66439         * lib/arcfour.c: Assume config.h.
66440         * lib/arctwo.c: Likewise.
66441         * lib/base64.c: Likewise.
66442         * lib/check-version.c: Likewise.
66443         * lib/crc.c: Likewise.
66444         * lib/des.c: Likewise.
66445         * lib/gc-gnulib.c: Likewise.
66446         * lib/gc-libgcrypt.c: Likewise.
66447         * lib/gc-pbkdf2-sha1.c: Likewise.
66448         * lib/getaddrinfo.c: Likewise.
66449         * lib/getdelim.c: Likewise.
66450         * lib/getline.c: Likewise.
66451         * lib/hmac-md5.c: Likewise.
66452         * lib/hmac-sha1.c: Likewise.
66453         * lib/iconvme.c: Likewise.
66454         * lib/md2.c: Likewise.
66455         * lib/md4.c: Likewise.
66456         * lib/memxor.c: Likewise.
66457         * lib/read-file.c: Likewise.
66458         * lib/readline.c: Likewise.
66459         * lib/rijndael-alg-fst.c: Likewise.
66460         * lib/rijndael-api-fst.c: Likewise.
66461         * lib/xgetdomainname.c: Likewise.
66462
66463 2006-10-28  Eric Blake  <ebb9@byu.net>
66464
66465         * lib/xstrndup.c: Assume config.h.
66466
66467 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
66468
66469         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
66470         stat-macros.h is now for our own macros, whereas stat_h is for
66471         macros in the <sys/stat.h> name space.
66472         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
66473         (STAT_MACROS_H): Remove.
66474         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
66475         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
66476         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
66477         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
66478         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
66479         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
66480         Move these macros to ...
66481         * lib/stat_.h: here.  Don't include stat-macros.h.
66482         * lib/canonicalize.c: Don't include stat-macros.h.
66483         * lib/chown.c: Likewise.
66484         * lib/euidaccess.c: Likewise.
66485         * lib/file-type.c: Likewise.
66486         * lib/filemode.c: Likewise.
66487         * lib/glob.c: Likewise.
66488         * lib/isapipe.c: Likewise.
66489         * lib/lchown.c: Likewise.
66490         * lib/lstat.c: Likewise.
66491         * lib/mkdir-p.c: Likewise.
66492         * lib/rmdir.c: Likewise.
66493         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
66494         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
66495         unless mkdir isn't declared, to speed up 'configure'.
66496         Always create sys/stat.h, since it's unlikely any real sys/stat.h
66497         would define all the S_* symbols.
66498         * modules/canonicalize (Depends-on):
66499         Depend on sys_stat, not stat-macros.
66500         * modules/chown: Likewise.
66501         * modules/euidaccess: Likewise.
66502         * modules/filemode: Likewise.
66503         * modules/file-type: Likewise.
66504         * modules/glob: Likewise.
66505         * modules/isapipe: Likewise.
66506         * modules/lchown: Likewise.
66507         * modules/lstat: Likewise.
66508         * modules/mkancesdirs: Likewise.
66509         * modules/rmdir: Likewise.
66510         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
66511         * modules/modechange: Likewise.
66512         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
66513         (configure.ac): Remove gl_STAT_MACROS.
66514         * modules/sys_stat (Depends-on): Remove stat-macros.
66515
66516 2006-10-27  Bruno Haible  <bruno@clisp.org>
66517
66518         * m4/signed.m4: Remove file.
66519         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
66520         invocation.
66521         * modules/vasnprintf (Files): Remove m4/signed.m4.
66522
66523 2006-10-27  Bruno Haible  <bruno@clisp.org>
66524
66525         Update to GNU gettext 0.16.
66526         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
66527         m4/inttypes-h.m4, m4/signed.m4.
66528         * m4/gettext.m4: Update to GNU gettext 0.16.
66529         * m4/intl.m4: New file, from GNU gettext.
66530         * m4/intldir.m4: New file, from GNU gettext.
66531         * config/srclist.txt: Update
66532
66533 2006-10-27  Eric Blake  <ebb9@byu.net>
66534
66535         * MODULES.html.sh: Document tempname.
66536         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
66537         dependencies.
66538         (Files): Move lib/tempname.c...
66539         * modules/tempname: ...to this new module.
66540         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
66541         (gl_PREREQ_TEMPNAME): Move...
66542         * m4/tempname.m4: ...to this new file.
66543         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
66544         * modules/sys_stat (Depends-on): Add stat-macros.
66545         * lib/stat_.h (includes): Pick up stat macros.
66546         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
66547         if stat macros are broken.
66548         * lib/tempname.c (includes): No need to include "stat-macros.h".
66549         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
66550         (direxists, __path_search) [!_LIBC]: Don't compile these in
66551         gnulib; the tmpdir module covers that.
66552         * lib/tempname.h: New file.
66553
66554 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
66555
66556         * COPYING: Explain how gnulib-tool converts licence headers.
66557         Almost all wording by Eric Blake.
66558
66559 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
66560
66561         * lib/mbchar.h (is_basic_table): Make read-only.
66562         * lib/mbchar.c (is_basic_table): Likewise.
66563         Reported by John Darrington.
66564
66565 2006-10-25  Bruno Haible  <bruno@clisp.org>
66566
66567         * lib/progname.h (set_program_name): Undefine before defining.
66568
66569 2006-10-25  Bruno Haible  <bruno@clisp.org>
66570
66571         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
66572         false for non-gcc C++ compilers.
66573         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
66574
66575 2006-10-24  Bruno Haible  <bruno@clisp.org>
66576
66577         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
66578         iconv implementations like Irix iconv.
66579
66580 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
66581
66582         * modules/vararrays: New file.
66583         * m4/vararrays.m4: New file, taken from diffutils.
66584         * MODULES.html.sh: New module vararrays.
66585
66586 2006-10-24  Karl Berry  <karl@gnu.org>
66587
66588         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
66589         Don't call GNU Unix.
66590
66591 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66592
66593         * users.txt: Add Libtool.
66594
66595         Sync from Libtool:
66596
66597         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
66598
66599         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
66600         to gnulib's policy of including config.h unconditionally.
66601
66602 2006-10-24  Bruno Haible  <bruno@clisp.org>
66603
66604         * modules/wcwidth (Files): Add m4/wint_t.m4.
66605         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
66606         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
66607
66608 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
66609
66610         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
66611         to pacify GCC with some -W flags enabled.  Problem reported by
66612         Bruno Haible.
66613
66614 2006-10-24  Jim Meyering  <jim@meyering.net>
66615
66616         * MODULES.html.sh: Remove uinttostr.  It's not a module.
66617         Reported by Karl Berry.
66618
66619 2006-10-23  Bruno Haible  <bruno@clisp.org>
66620
66621         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
66622
66623 2006-10-24  Bruno Haible  <bruno@clisp.org>
66624
66625         * lib/gl_list.h: Use C comment style, not C++ comment style.
66626
66627 2006-10-23  Eric Blake  <ebb9@byu.net>
66628
66629         * lib/getaddrinfo.c (includes): Add missing include.
66630
66631 2006-10-23  Bruno Haible  <bruno@clisp.org>
66632             Paul Eggert  <eggert@cs.ucla.edu>
66633
66634         Ability to rename obstack_free.
66635         * lib/obstack.h (__obstack_free): New macro. Declare instead of
66636         obstack_free.
66637         (obstack_free): Invoke the __obstack_free macro.
66638         * lib/obstack.c (obstack_free): Use __obstack_free macro.
66639
66640 2006-10-23  Bruno Haible  <bruno@clisp.org>
66641             Paul Eggert  <eggert@cs.ucla.edu>
66642
66643         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
66644         __argc, __argv from the declaration. (They are defined as macros on
66645         mingw.)
66646
66647 2006-10-22  Bruno Haible  <bruno@clisp.org>
66648
66649         * doc/gnulib-intro.texi: New file.
66650         * doc/gnulib.texi: Include it.
66651
66652 2006-10-21  Bruno Haible  <bruno@clisp.org>
66653
66654         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
66655         "Introduction", "Miscellanous Notes", "Particular Modules".
66656
66657 2006-10-21  Bruno Haible  <bruno@clisp.org>
66658
66659         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
66660         Change mostlyclean-local rule to avoid sh syntax error from bash
66661         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
66662
66663 2006-10-23  Jim Meyering  <jim@meyering.net>
66664
66665         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
66666         in place of snprintf.
66667
66668         * modules/inttostr (Files): Add lib/uinttostr.c.
66669         * lib/uinttostr.c (inttostr): New file/function.
66670         * lib/inttostr.h (uinttostr): Declare.
66671         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
66672         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
66673         Add uinttostr.
66674         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
66675
66676 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
66677
66678         * lib/canonicalize.c (ELOOP): Define if not already defined.
66679         Problem reported by Bruno Haible in
66680         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
66681
66682 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
66683
66684         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
66685         Problem reported by Perry Smith and Ville Laurikari.
66686
66687         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
66688         uses.
66689
66690 2006-10-19  Bruno Haible  <bruno@clisp.org>
66691
66692         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
66693         for mingw.
66694
66695 2006-10-19  Bruno Haible  <bruno@clisp.org>
66696
66697         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
66698         Needed for mingw.
66699
66700 2006-10-19  Bruno Haible  <bruno@clisp.org>
66701
66702         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
66703
66704 2006-10-19  Bruno Haible  <bruno@clisp.org>
66705
66706         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
66707         it.
66708
66709 2006-10-19  Bruno Haible  <bruno@clisp.org>
66710
66711         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
66712         invocation.
66713
66714 2006-10-19  Bruno Haible  <bruno@clisp.org>
66715
66716         * gnulib-tool (func_create_testdir): Don't include ftruncate and
66717         mountlist by default.
66718
66719 2006-10-16  Bruno Haible  <bruno@clisp.org>
66720
66721         * lib/c-strstr.c: Include c-strstr.h.
66722
66723 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
66724
66725         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
66726         in a slash.
66727
66728 2006-10-18  Bruno Haible  <bruno@clisp.org>
66729
66730         * lib/lock.h [C++]: Wrap definitions in extern "C".
66731
66732 2006-10-18  Bruno Haible  <bruno@clisp.org>
66733
66734         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
66735         gl_LIBOBJS list.
66736
66737 2006-10-18  Bruno Haible  <bruno@clisp.org>
66738
66739         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
66740
66741 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
66742
66743         * lib/xstrtol.h: Include gettext.h.
66744         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
66745         Problem reported by Eric Blake.
66746         * modules/xstrtol (Depends-on): Add gettext-h.
66747
66748 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
66749
66750         * lib/strftime.c (advance): New macro.
66751         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
66752         incomplete type, so you can't add 0 to it.  Problem and patch
66753         reported by Eelco Dolstra for dietlibc.
66754
66755 2006-10-18  Jim Meyering  <jim@meyering.net>
66756
66757         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
66758         type for a local, and rename it: s/up/user_proc/.
66759
66760 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
66761
66762         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
66763         READ_UTMP_USER_PROCESS.
66764         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
66765
66766 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
66767
66768         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
66769         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
66770
66771 2006-10-17  Eric Blake  <ebb9@byu.net>
66772
66773         * lib/sigprocmask.c (sigprocmask): Fix typo.
66774
66775         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
66776
66777         * modules/clean-temp (Makefile.am): Don't add to make output...
66778         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
66779         config.h.
66780
66781 2006-10-17  Bruno Haible  <bruno@clisp.org>
66782
66783         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
66784         differently if DEFAULT_TEXT_DOMAIN is set.
66785
66786 2006-10-16  Bruno Haible  <bruno@clisp.org>
66787
66788         * lib/clean-temp.c: Include fwriteerror.h.
66789
66790 2006-10-16  Bruno Haible  <bruno@clisp.org>
66791
66792         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
66793
66794 2006-10-16  Bruno Haible  <bruno@clisp.org>
66795
66796         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
66797         * lib/sigprocmask.h: Include <sys/types.h>.
66798         (sigset_t): Use the system's definition if present.
66799
66800 2006-10-17  Eric Blake  <ebb9@byu.net>
66801
66802         * lib/xvasprintf.c (includes): Assume config.h.
66803         * lib/xasprintf.c (includes): Likewise.
66804
66805 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
66806
66807         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
66808         at least as wide as intmax_t.
66809
66810 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
66811
66812         (Imported from Automake.)
66813         * build-aux/gnupload: Update to version 1.1 of directive file.
66814
66815 2006-10-16  Eric Blake  <ebb9@byu.net>
66816
66817         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
66818         match Automake 1.10a.
66819
66820 2006-10-14  Bruno Haible  <bruno@clisp.org>
66821
66822         * modules/sigprocmask: New file.
66823         * lib/sigprocmask.h: New file.
66824         * lib/sigprocmask.c: New file.
66825         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
66826         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
66827         request sigprocmask.o.
66828         (gl_PREREQ_SIGPROCMASK): New macro.
66829         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
66830         (Depends-on): Add sigprocmask.
66831         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
66832         gt_SIGNALBLOCKING. Test for 'raise' only once.
66833         * lib/fatal-signal.c: Include sigprocmask.h.
66834         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
66835         unblock_fatal_signals): Define always.
66836         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
66837         sigprocmask.
66838
66839 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
66840
66841         Sync from Automake.
66842         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
66843         which incorrectly sets the mode of an existing destination
66844         directory.  In some cases the unpatched install-sh could do the
66845         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
66846         system.  We hope this is rare in practice, but it's clearly worth
66847         fixing.  Problem reported by Alex Unleashed in
66848         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
66849         Also, don't bother to check for -m bugs unless we're using -m;
66850         suggested by Stepan Kasal.
66851
66852 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66853
66854         Sync from Automake.
66855         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
66856         `-c' flag, so they appear at the same position as in %FASTDEP%
66857         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
66858         which ignores unknown options only after the first non-option.
66859         Bug report against M4 by Nelson H. F. Beebe.
66860
66861 2006-10-13  Jim Meyering  <jim@meyering.net>
66862
66863         Fix a bug in yesterday's change.
66864         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
66865         p->fts_statp->st_dev would be used uninitialized.
66866         Ensures that we always call fts_stat on the very first entry.
66867         Miklos Szeredi reported that find -xdev stopped working.
66868
66869 2006-10-12  Bruno Haible  <bruno@clisp.org>
66870
66871         * gnulib-tool (func_get_automake_snippet): Append an automatically
66872         computed EXTRA_DIST augmentation.
66873         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
66874         * modules/alloca-opt (Makefile.am): Likewise.
66875         * modules/allocsa (Makefile.am): Likewise.
66876         * modules/arcfour (Makefile.am): Likewise.
66877         * modules/arctwo (Makefile.am): Likewise.
66878         * modules/argmatch (Makefile.am): Likewise.
66879         * modules/argz (Makefile.am): Likewise.
66880         * modules/atexit (Makefile.am): Likewise.
66881         * modules/backupfile (Makefile.am): Likewise.
66882         * modules/byteswap (Makefile.am): Likewise.
66883         * modules/c-strtod (Makefile.am): Likewise.
66884         * modules/c-strtold (Makefile.am): Likewise.
66885         * modules/calloc (Makefile.am): Likewise.
66886         * modules/canon-host (Makefile.am): Likewise.
66887         * modules/canonicalize (Makefile.am): Likewise.
66888         * modules/chdir-long (Makefile.am): Likewise.
66889         * modules/chdir-safer (Makefile.am): Likewise.
66890         * modules/check-version (Makefile.am): Likewise.
66891         * modules/chown (Makefile.am): Likewise.
66892         * modules/cloexec (Makefile.am): Likewise.
66893         * modules/close-stream (Makefile.am): Likewise.
66894         * modules/closeout (Makefile.am): Likewise.
66895         * modules/crc (Makefile.am): Likewise.
66896         * modules/csharpexec (Makefile.am): Likewise.
66897         * modules/cycle-check (Makefile.am): Likewise.
66898         * modules/des (Makefile.am): Likewise.
66899         * modules/dev-ino (Makefile.am): Likewise.
66900         * modules/dirfd (Makefile.am): Likewise.
66901         * modules/dirname (Makefile.am): Likewise.
66902         * modules/dup2 (Makefile.am): Likewise.
66903         * modules/eealloc (Makefile.am): Likewise.
66904         * modules/error (Makefile.am): Likewise.
66905         * modules/euidaccess (Makefile.am): Likewise.
66906         * modules/exclude (Makefile.am): Likewise.
66907         * modules/exitfail (Makefile.am): Likewise.
66908         * modules/fcntl-safer (Makefile.am): Likewise.
66909         * modules/fcntl (Makefile.am): Likewise.
66910         * modules/file-type (Makefile.am): Likewise.
66911         * modules/fileblocks (Makefile.am): Likewise.
66912         * modules/filemode (Makefile.am): Likewise.
66913         * modules/filenamecat (Makefile.am): Likewise.
66914         * modules/fnmatch (Makefile.am): Likewise.
66915         * modules/fopen-safer (Makefile.am): Likewise.
66916         * modules/fpending (Makefile.am): Likewise.
66917         * modules/fprintftime (Makefile.am): Likewise.
66918         * modules/free (Makefile.am): Likewise.
66919         * modules/fsusage (Makefile.am): Likewise.
66920         * modules/ftruncate (Makefile.am): Likewise.
66921         * modules/fts (Makefile.am): Likewise.
66922         * modules/gc-arcfour (Makefile.am): Likewise.
66923         * modules/gc-des (Makefile.am): Likewise.
66924         * modules/gc-hmac-md5 (Makefile.am): Likewise.
66925         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
66926         * modules/gc-md4 (Makefile.am): Likewise.
66927         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
66928         * modules/gc-sha1 (Makefile.am): Likewise.
66929         * modules/gc (Makefile.am): Likewise.
66930         * modules/getaddrinfo (Makefile.am): Likewise.
66931         * modules/getcwd (Makefile.am): Likewise.
66932         * modules/getdelim (Makefile.am): Likewise.
66933         * modules/getdomainname (Makefile.am): Likewise.
66934         * modules/getgroups (Makefile.am): Likewise.
66935         * modules/gethostname (Makefile.am): Likewise.
66936         * modules/gethrxtime (Makefile.am): Likewise.
66937         * modules/getline (Makefile.am): Likewise.
66938         * modules/getloadavg (Makefile.am): Likewise.
66939         * modules/getlogin_r (Makefile.am): Likewise.
66940         * modules/getndelim2 (Makefile.am): Likewise.
66941         * modules/getopt (Makefile.am): Likewise.
66942         * modules/getpagesize (Makefile.am): Likewise.
66943         * modules/getpass-gnu (Makefile.am): Likewise.
66944         * modules/getpass (Makefile.am): Likewise.
66945         * modules/getsubopt (Makefile.am): Likewise.
66946         * modules/gettime (Makefile.am): Likewise.
66947         * modules/gettimeofday (Makefile.am): Likewise.
66948         * modules/getugroups (Makefile.am): Likewise.
66949         * modules/getusershell (Makefile.am): Likewise.
66950         * modules/glob (Makefile.am): Likewise.
66951         * modules/group-member (Makefile.am): Likewise.
66952         * modules/hard-locale (Makefile.am): Likewise.
66953         * modules/hash (Makefile.am): Likewise.
66954         * modules/hmac-md5 (Makefile.am): Likewise.
66955         * modules/hmac-sha1 (Makefile.am): Likewise.
66956         * modules/human (Makefile.am): Likewise.
66957         * modules/idcache (Makefile.am): Likewise.
66958         * modules/imaxabs (Makefile.am): Likewise.
66959         * modules/imaxdiv (Makefile.am): Likewise.
66960         * modules/inet_ntop (Makefile.am): Likewise.
66961         * modules/inet_pton (Makefile.am): Likewise.
66962         * modules/intprops (Makefile.am): Likewise.
66963         * modules/inttostr (Makefile.am): Likewise.
66964         * modules/inttypes (Makefile.am): Likewise.
66965         * modules/isapipe (Makefile.am): Likewise.
66966         * modules/javaversion (Makefile.am): Likewise.
66967         * modules/lchmod (Makefile.am): Likewise.
66968         * modules/lchown (Makefile.am): Likewise.
66969         * modules/localcharset (Makefile.am): Likewise.
66970         * modules/long-options (Makefile.am): Likewise.
66971         * modules/lstat (Makefile.am): Likewise.
66972         * modules/malloc (Makefile.am): Likewise.
66973         * modules/mathl (Makefile.am): Likewise.
66974         * modules/mbchar (Makefile.am): Likewise.
66975         * modules/md2 (Makefile.am): Likewise.
66976         * modules/md4 (Makefile.am): Likewise.
66977         * modules/md5 (Makefile.am): Likewise.
66978         * modules/memcasecmp (Makefile.am): Likewise.
66979         * modules/memchr (Makefile.am): Likewise.
66980         * modules/memcmp (Makefile.am): Likewise.
66981         * modules/memcoll (Makefile.am): Likewise.
66982         * modules/memcpy (Makefile.am): Likewise.
66983         * modules/memmem (Makefile.am): Likewise.
66984         * modules/memmove (Makefile.am): Likewise.
66985         * modules/mempcpy (Makefile.am): Likewise.
66986         * modules/memrchr (Makefile.am): Likewise.
66987         * modules/memset (Makefile.am): Likewise.
66988         * modules/memxor (Makefile.am): Likewise.
66989         * modules/mkancesdirs (Makefile.am): Likewise.
66990         * modules/mkdir-p (Makefile.am): Likewise.
66991         * modules/mkdir (Makefile.am): Likewise.
66992         * modules/mkdtemp (Makefile.am): Likewise.
66993         * modules/mkstemp (Makefile.am): Likewise.
66994         * modules/mktime (Makefile.am): Likewise.
66995         * modules/modechange (Makefile.am): Likewise.
66996         * modules/mountlist (Makefile.am): Likewise.
66997         * modules/nanosleep (Makefile.am): Likewise.
66998         * modules/obstack (Makefile.am): Likewise.
66999         * modules/openat (Makefile.am): Likewise.
67000         * modules/pagealign_alloc (Makefile.am): Likewise.
67001         * modules/pathmax (Makefile.am): Likewise.
67002         * modules/physmem (Makefile.am): Likewise.
67003         * modules/poll (Makefile.am): Likewise.
67004         * modules/posixtm (Makefile.am): Likewise.
67005         * modules/posixver (Makefile.am): Likewise.
67006         * modules/putenv (Makefile.am): Likewise.
67007         * modules/quote (Makefile.am): Likewise.
67008         * modules/quotearg (Makefile.am): Likewise.
67009         * modules/raise (Makefile.am): Likewise.
67010         * modules/read-file (Makefile.am): Likewise.
67011         * modules/readline (Makefile.am): Likewise.
67012         * modules/readlink (Makefile.am): Likewise.
67013         * modules/readtokens (Makefile.am): Likewise.
67014         * modules/readutmp (Makefile.am): Likewise.
67015         * modules/realloc (Makefile.am): Likewise.
67016         * modules/regex (Makefile.am): Likewise.
67017         * modules/rename-dest-slash (Makefile.am): Likewise.
67018         * modules/rename (Makefile.am): Likewise.
67019         * modules/rijndael (Makefile.am): Likewise.
67020         * modules/rmdir (Makefile.am): Likewise.
67021         * modules/rpmatch (Makefile.am): Likewise.
67022         * modules/safe-read (Makefile.am): Likewise.
67023         * modules/safe-write (Makefile.am): Likewise.
67024         * modules/same-inode (Makefile.am): Likewise.
67025         * modules/same (Makefile.am): Likewise.
67026         * modules/save-cwd (Makefile.am): Likewise.
67027         * modules/savedir (Makefile.am): Likewise.
67028         * modules/setenv (Makefile.am): Likewise.
67029         * modules/settime (Makefile.am): Likewise.
67030         * modules/sha1 (Makefile.am): Likewise.
67031         * modules/sig2str (Makefile.am): Likewise.
67032         * modules/snprintf (Makefile.am): Likewise.
67033         * modules/stat-macros (Makefile.am): Likewise.
67034         * modules/stat-time (Makefile.am): Likewise.
67035         * modules/stdbool (Makefile.am): Likewise.
67036         * modules/stdint (Makefile.am): Likewise.
67037         * modules/stdlib-safer (Makefile.am): Likewise.
67038         * modules/stpcpy (Makefile.am): Likewise.
67039         * modules/stpncpy (Makefile.am): Likewise.
67040         * modules/strcase (Makefile.am): Likewise.
67041         * modules/strcasestr (Makefile.am): Likewise.
67042         * modules/strchrnul (Makefile.am): Likewise.
67043         * modules/strcspn (Makefile.am): Likewise.
67044         * modules/strdup (Makefile.am): Likewise.
67045         * modules/strerror (Makefile.am): Likewise.
67046         * modules/strftime (Makefile.am): Likewise.
67047         * modules/strndup (Makefile.am): Likewise.
67048         * modules/strnlen (Makefile.am): Likewise.
67049         * modules/strpbrk (Makefile.am): Likewise.
67050         * modules/strsep (Makefile.am): Likewise.
67051         * modules/strstr (Makefile.am): Likewise.
67052         * modules/strtod (Makefile.am): Likewise.
67053         * modules/strtoimax (Makefile.am): Likewise.
67054         * modules/strtok_r (Makefile.am): Likewise.
67055         * modules/strtol (Makefile.am): Likewise.
67056         * modules/strtoll (Makefile.am): Likewise.
67057         * modules/strtoul (Makefile.am): Likewise.
67058         * modules/strtoull (Makefile.am): Likewise.
67059         * modules/strtoumax (Makefile.am): Likewise.
67060         * modules/strverscmp (Makefile.am): Likewise.
67061         * modules/sys_socket (Makefile.am): Likewise.
67062         * modules/sys_stat (Makefile.am): Likewise.
67063         * modules/sysexits (Makefile.am): Likewise.
67064         * modules/time_r (Makefile.am): Likewise.
67065         * modules/timegm (Makefile.am): Likewise.
67066         * modules/timespec (Makefile.am): Likewise.
67067         * modules/tmpfile-safer (Makefile.am): Likewise.
67068         * modules/trim (Makefile.am): Likewise.
67069         * modules/unistd-safer (Makefile.am): Likewise.
67070         * modules/unlinkdir (Makefile.am): Likewise.
67071         * modules/unlocked-io (Makefile.am): Likewise.
67072         * modules/userspec (Makefile.am): Likewise.
67073         * modules/utime (Makefile.am): Likewise.
67074         * modules/utimecmp (Makefile.am): Likewise.
67075         * modules/utimens (Makefile.am): Likewise.
67076         * modules/vasnprintf (Makefile.am): Likewise.
67077         * modules/vasprintf (Makefile.am): Likewise.
67078         * modules/vsnprintf (Makefile.am): Likewise.
67079         * modules/xalloc (Makefile.am): Likewise.
67080         * modules/xgetcwd (Makefile.am): Likewise.
67081         * modules/xnanosleep (Makefile.am): Likewise.
67082         * modules/xreadlink (Makefile.am): Likewise.
67083         * modules/xstrtod (Makefile.am): Likewise.
67084         * modules/xstrtol (Makefile.am): Likewise.
67085         * modules/xstrtold (Makefile.am): Likewise.
67086         * modules/yesno (Makefile.am): Likewise.
67087         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
67088
67089 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
67090
67091         * modules/error (Makefile.am): Distribute files through
67092         EXTRA_DIST, not lib_SOURCES.
67093
67094 2006-10-12  Eric Blake  <ebb9@byu.net>
67095
67096         * modules/error (Makefile.am): Distribute files in /lib.
67097         * modules/obstack (Makefile.am): Likewise.
67098
67099 2006-10-12  Bruno Haible  <bruno@clisp.org>
67100
67101         * modules/acl (Makefile.am): Distribute all files in lib/ through
67102         EXTRA_DIST.
67103         * modules/arcfour (Makefile.am): Likewise.
67104         * modules/arctwo (Makefile.am): Likewise.
67105         * modules/argmatch (Makefile.am): Likewise.
67106         * modules/argz (Makefile.am): Likewise.
67107         * modules/atexit (Makefile.am): Likewise.
67108         * modules/backupfile (Makefile.am): Likewise.
67109         * modules/c-strtod (Makefile.am): Likewise.
67110         * modules/c-strtold (Makefile.am): Likewise.
67111         * modules/calloc (Makefile.am): Likewise.
67112         * modules/canon-host (Makefile.am): Likewise.
67113         * modules/canonicalize (Makefile.am): Likewise.
67114         * modules/chdir-long (Makefile.am): Likewise.
67115         * modules/chdir-safer (Makefile.am): Likewise.
67116         * modules/check-version (Makefile.am): Likewise.
67117         * modules/chown (Makefile.am): Likewise.
67118         * modules/cloexec (Makefile.am): Likewise.
67119         * modules/close-stream (Makefile.am): Likewise.
67120         * modules/closeout (Makefile.am): Likewise.
67121         * modules/crc (Makefile.am): Likewise.
67122         * modules/cycle-check (Makefile.am): Likewise.
67123         * modules/des (Makefile.am): Likewise.
67124         * modules/dirfd (Makefile.am): Likewise.
67125         * modules/dirname (Makefile.am): Likewise.
67126         * modules/dup2 (Makefile.am): Likewise.
67127         * modules/euidaccess (Makefile.am): Likewise.
67128         * modules/exclude (Makefile.am): Likewise.
67129         * modules/exitfail (Makefile.am): Likewise.
67130         * modules/fcntl-safer (Makefile.am): Likewise.
67131         * modules/file-type (Makefile.am): Likewise.
67132         * modules/fileblocks (Makefile.am): Likewise.
67133         * modules/filemode (Makefile.am): Likewise.
67134         * modules/filenamecat (Makefile.am): Likewise.
67135         * modules/fnmatch (Makefile.am): Likewise.
67136         * modules/fopen-safer (Makefile.am): Likewise.
67137         * modules/fpending (Makefile.am): Likewise.
67138         * modules/fprintftime (Makefile.am): Likewise.
67139         * modules/free (Makefile.am): Likewise.
67140         * modules/fsusage (Makefile.am): Likewise.
67141         * modules/ftruncate (Makefile.am): Likewise.
67142         * modules/fts (Makefile.am): Likewise.
67143         * modules/gc (Makefile.am): Likewise.
67144         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
67145         * modules/getaddrinfo (Makefile.am): Likewise.
67146         * modules/getcwd (Makefile.am): Likewise.
67147         * modules/getdelim (Makefile.am): Likewise.
67148         * modules/getdomainname (Makefile.am): Likewise.
67149         * modules/getgroups (Makefile.am): Likewise.
67150         * modules/gethostname (Makefile.am): Likewise.
67151         * modules/gethrxtime (Makefile.am): Likewise.
67152         * modules/getline (Makefile.am): Likewise.
67153         * modules/getloadavg (Makefile.am): Likewise.
67154         * modules/getlogin_r (Makefile.am): Likewise.
67155         * modules/getopt (Makefile.am): Likewise.
67156         * modules/getpass (Makefile.am): Likewise.
67157         * modules/getpass-gnu (Makefile.am): Likewise.
67158         * modules/getsubopt (Makefile.am): Likewise.
67159         * modules/gettime (Makefile.am): Likewise.
67160         * modules/gettimeofday (Makefile.am): Likewise.
67161         * modules/getugroups (Makefile.am): Likewise.
67162         * modules/getusershell (Makefile.am): Likewise.
67163         * modules/glob (Makefile.am): Likewise.
67164         * modules/group-member (Makefile.am): Likewise.
67165         * modules/hard-locale (Makefile.am): Likewise.
67166         * modules/hash (Makefile.am): Likewise.
67167         * modules/hmac-md5 (Makefile.am): Likewise.
67168         * modules/hmac-sha1 (Makefile.am): Likewise.
67169         * modules/human (Makefile.am): Likewise.
67170         * modules/idcache (Makefile.am): Likewise.
67171         * modules/imaxabs (Makefile.am): Likewise.
67172         * modules/imaxdiv (Makefile.am): Likewise.
67173         * modules/inet_ntop (Makefile.am): Likewise.
67174         * modules/inet_pton (Makefile.am): Likewise.
67175         * modules/inttostr (Makefile.am): Likewise.
67176         * modules/isapipe (Makefile.am): Likewise.
67177         * modules/lchown (Makefile.am): Likewise.
67178         * modules/long-options (Makefile.am): Likewise.
67179         * modules/lstat (Makefile.am): Likewise.
67180         * modules/malloc (Makefile.am): Likewise.
67181         * modules/mathl (Makefile.am): Likewise.
67182         * modules/mbchar (Makefile.am): Likewise.
67183         * modules/md2 (Makefile.am): Likewise.
67184         * modules/md4 (Makefile.am): Likewise.
67185         * modules/md5 (Makefile.am): Likewise.
67186         * modules/memcasecmp (Makefile.am): Likewise.
67187         * modules/memchr (Makefile.am): Likewise.
67188         * modules/memcmp (Makefile.am): Likewise.
67189         * modules/memcoll (Makefile.am): Likewise.
67190         * modules/memcpy (Makefile.am): Likewise.
67191         * modules/memmem (Makefile.am): Likewise.
67192         * modules/memmove (Makefile.am): Likewise.
67193         * modules/mempcpy (Makefile.am): Likewise.
67194         * modules/memrchr (Makefile.am): Likewise.
67195         * modules/memset (Makefile.am): Likewise.
67196         * modules/memxor (Makefile.am): Likewise.
67197         * modules/mkancesdirs (Makefile.am): Likewise.
67198         * modules/mkdir (Makefile.am): Likewise.
67199         * modules/mkdir-p (Makefile.am): Likewise.
67200         * modules/mkdtemp (Makefile.am): Likewise.
67201         * modules/mkstemp (Makefile.am): Likewise.
67202         * modules/mktime (Makefile.am): Likewise.
67203         * modules/modechange (Makefile.am): Likewise.
67204         * modules/mountlist (Makefile.am): Likewise.
67205         * modules/nanosleep (Makefile.am): Likewise.
67206         * modules/openat (Makefile.am): Likewise.
67207         * modules/pagealign_alloc (Makefile.am): Likewise.
67208         * modules/physmem (Makefile.am): Likewise.
67209         * modules/poll (Makefile.am): Likewise.
67210         * modules/posixtm (Makefile.am): Likewise.
67211         * modules/posixver (Makefile.am): Likewise.
67212         * modules/putenv (Makefile.am): Likewise.
67213         * modules/quote (Makefile.am): Likewise.
67214         * modules/quotearg (Makefile.am): Likewise.
67215         * modules/raise (Makefile.am): Likewise.
67216         * modules/read-file (Makefile.am): Likewise.
67217         * modules/readline (Makefile.am): Likewise.
67218         * modules/readlink (Makefile.am): Likewise.
67219         * modules/readtokens (Makefile.am): Likewise.
67220         * modules/readutmp (Makefile.am): Likewise.
67221         * modules/realloc (Makefile.am): Likewise.
67222         * modules/regex (Makefile.am): Likewise.
67223         * modules/rename (Makefile.am): Likewise.
67224         * modules/rename-dest-slash (Makefile.am): Likewise.
67225         * modules/rijndael (Makefile.am): Likewise.
67226         * modules/rmdir (Makefile.am): Likewise.
67227         * modules/rpmatch (Makefile.am): Likewise.
67228         * modules/safe-read (Makefile.am): Likewise.
67229         * modules/safe-write (Makefile.am): Likewise.
67230         * modules/same (Makefile.am): Likewise.
67231         * modules/save-cwd (Makefile.am): Likewise.
67232         * modules/savedir (Makefile.am): Likewise.
67233         * modules/setenv (Makefile.am): Likewise.
67234         * modules/settime (Makefile.am): Likewise.
67235         * modules/sha1 (Makefile.am): Likewise.
67236         * modules/sig2str (Makefile.am): Likewise.
67237         * modules/snprintf (Makefile.am): Likewise.
67238         * modules/stdlib-safer (Makefile.am): Likewise.
67239         * modules/stpcpy (Makefile.am): Likewise.
67240         * modules/stpncpy (Makefile.am): Likewise.
67241         * modules/strcase (Makefile.am): Likewise.
67242         * modules/strcasestr (Makefile.am): Likewise.
67243         * modules/strchrnul (Makefile.am): Likewise.
67244         * modules/strcspn (Makefile.am): Likewise.
67245         * modules/strdup (Makefile.am): Likewise.
67246         * modules/strerror (Makefile.am): Likewise.
67247         * modules/strftime (Makefile.am): Likewise.
67248         * modules/strndup (Makefile.am): Likewise.
67249         * modules/strnlen (Makefile.am): Likewise.
67250         * modules/strpbrk (Makefile.am): Likewise.
67251         * modules/strsep (Makefile.am): Likewise.
67252         * modules/strstr (Makefile.am): Likewise.
67253         * modules/strtod (Makefile.am): Likewise.
67254         * modules/strtoimax (Makefile.am): Likewise.
67255         * modules/strtok_r (Makefile.am): Likewise.
67256         * modules/strtol (Makefile.am): Likewise.
67257         * modules/strtoll (Makefile.am): Likewise.
67258         * modules/strtoul (Makefile.am): Likewise.
67259         * modules/strtoull (Makefile.am): Likewise.
67260         * modules/strtoumax (Makefile.am): Likewise.
67261         * modules/strverscmp (Makefile.am): Likewise.
67262         * modules/time_r (Makefile.am): Likewise.
67263         * modules/timegm (Makefile.am): Likewise.
67264         * modules/tmpfile-safer (Makefile.am): Likewise.
67265         * modules/unistd-safer (Makefile.am): Likewise.
67266         * modules/unlinkdir (Makefile.am): Likewise.
67267         * modules/userspec (Makefile.am): Likewise.
67268         * modules/utime (Makefile.am): Likewise.
67269         * modules/utimecmp (Makefile.am): Likewise.
67270         * modules/utimens (Makefile.am): Likewise.
67271         * modules/vasnprintf (Makefile.am): Likewise.
67272         * modules/vasprintf (Makefile.am): Likewise.
67273         * modules/vsnprintf (Makefile.am): Likewise.
67274         * modules/xalloc (Makefile.am): Likewise.
67275         * modules/xgetcwd (Makefile.am): Likewise.
67276         * modules/xnanosleep (Makefile.am): Likewise.
67277         * modules/xreadlink (Makefile.am): Likewise.
67278         * modules/xstrtod (Makefile.am): Likewise.
67279         * modules/xstrtol (Makefile.am): Likewise.
67280         * modules/xstrtold (Makefile.am): Likewise.
67281         * modules/yesno (Makefile.am): Likewise.
67282
67283 2006-10-12  Jim Meyering  <jim@meyering.net>
67284
67285         * m4/getloadavg.m4: Revert the change below.
67286
67287         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
67288         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
67289         fail with a symlink, which is what coreutils' ./bootstrap now
67290         creates by default.
67291
67292 2006-10-12  Bruno Haible  <bruno@clisp.org>
67293
67294         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
67295         mingw.
67296         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
67297         MSVC and mingw explicitly.
67298
67299 2006-10-11  Simon Josefsson  <jas@extundo.com>
67300             Bruno Haible  <bruno@clisp.org>
67301
67302         Add support for multiple gnulib-tool invocations in the scope of a
67303         single configure.ac file.
67304         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
67305         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
67306         with the same contents as the _LIBADD variable.
67307         (func_emit_initmacro_start, func_emit_initmacro_end,
67308         func_emit_initmacro_done): New functions.
67309         (func_import, func_create_testdir): Invoke them. Allow the identifiers
67310         gl_LIBOBJS and gl_LTLIBOBJS.
67311
67312 2006-10-11  Bruno Haible  <bruno@clisp.org>
67313
67314         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
67315         (func_create_testdir): Don't create po/Makefile.am, don't invoke
67316         autoreconf. Instead, invoke autopoint explicitly but move back the
67317         *.m4 files from gnulib.
67318
67319 2006-10-11  Bruno Haible  <bruno@clisp.org>
67320
67321         * gnulib-tool (func_usage): Make module names after --create-testdir
67322         optional.
67323         (func_create_testdir): If no module was specified, use nearly all
67324         modules.
67325
67326 2006-10-12  Jim Meyering  <jim@meyering.net>
67327
67328         Big performance improvement for fts-based tools that use FTS_NOSTAT.
67329         Avoid spurious inode-mismatch problems on non-POSIX file systems.
67330         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
67331         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
67332         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
67333         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
67334         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
67335         (fts_set_stat_required): New function.
67336         (fts_open): Defer the calls to fts_stat, if possible or requested.
67337         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
67338         into fts_stat itself.
67339         (fts_read): Perform any required (deferred) fts_stat call.
67340         (fts_build): Likewise, for the directory we're about to open and read.
67341         In the readdir loop, carefully decide whether each entry will require
67342         an eventual call to fts_stat, using dirent.d_type info if available.
67343         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
67344         a command line argument into this function.  Update all callers.
67345         Map a return value of FTS_DOT to FTS_D for a command line argument.
67346         * modules/fts (Depends-on): Add d-type.  Alphabetize.
67347         Thanks to Miklos Szeredi for his tenacity and for the initial
67348         bug report about "find" failing on a FUSE-based file system.
67349
67350         * lib/fts.c (fts_open): Use consistent indentation.
67351
67352 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
67353
67354         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
67355         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
67356         reported by Jim Meyering.  All uses of cache variables renamed
67357         to match Autoconf's.
67358         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
67359         the other one.
67360
67361         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
67362         Fix misspelling in diagnostic.
67363
67364 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
67365
67366         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
67367         defined.  Problem reported by Matthew Woehlke.
67368
67369         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
67370         Add support for Tandem NonStop R series.
67371         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
67372         Use new macro.
67373
67374         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
67375         (has_trailing_slash): Omit size arg; all callers changed.
67376         Omit 'inline', since it doesn't help performance and we'd
67377         need to configure it.
67378         Don't count //, ///, etc. as having a trailing slash.
67379         As a side effect, this removes a C99ism reported by Matthew Woehlke.
67380         (rpl_rename_dest_slash): On failure, use rename's errno rather
67381         than (in some cases) an incorrect or junk errno.
67382         Simplify code by removing need to compute length; this does
67383         cause it to make two passes instead of one over the file name,
67384         but it's worth it.
67385
67386         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
67387         change, since Autoconf's version may no longer be appropriate now
67388         that we are using CVS Autoconf's version.  Add support for Tandem.
67389
67390 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
67391             Bruno Haible  <bruno@clisp.org>
67392
67393         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
67394         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
67395         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
67396         gl_AC_TYPE_LONG_LONG.
67397
67398         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
67399         instead of HAVE_LONG_LONG.
67400         * lib/printf-args.c (printf_fetchargs): Likewise.
67401         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
67402         * lib/vasnprintf.c (VASNPRINTF): Likewise.
67403         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
67404         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
67405         gl_AC_TYPE_LONG_LONG.
67406
67407 2006-10-11  Bruno Haible  <bruno@clisp.org>
67408
67409         * m4/longlong.m4: Add comments.
67410         * m4/ulonglong.m4: Likewise.
67411
67412 2006-10-10  Bruno Haible  <bruno@clisp.org>
67413
67414         Make it possible to #define stpcpy, strdup to aliases.
67415         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
67416         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
67417
67418 2006-10-10  Bruno Haible  <bruno@clisp.org>
67419
67420         Make it possible to #define gcd to an alias.
67421         * lib/gcd.c: Include config.h.
67422
67423 2006-10-10  Bruno Haible  <bruno@clisp.org>
67424
67425         Make it possible to #define c_isascii to an alias.
67426         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
67427         defined. Undefine the macros before defining them, to avoid gcc
67428         warnings.
67429         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
67430         define NO_C_CTYPE_MACROS early.
67431
67432 2006-10-10  Bruno Haible  <bruno@clisp.org>
67433
67434         Make it possible to #define set_program_name to an alias.
67435         * lib/progname.c: Don't undefine set_program_name; instead, undefine
67436         ENABLE_RELOCATABLE early.
67437
67438 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
67439
67440         Port to Tandem NSK OSS, which has 64-bit signed int but at most
67441         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
67442         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
67443         More generally, don't assume that 64-bit signed int is available
67444         if unsigned int is, and vice versa.
67445         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
67446         unsigned symbols, not on their signed counterparts.
67447         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
67448         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
67449         (UINT64_C, UINTMAX_C):
67450         Likewise.
67451         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
67452         unsigned counterparts.
67453         (Have_long_long, Unsigned): New macros.
67454         (Int): Renamed from INT.
67455         (strtoimax): Use the new macros.
67456         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
67457         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
67458         * modules/inttypes (inttypes.h): Substitute
67459         HAVE_UNSIGNED_LONG_LONG_INT.
67460         * modules/stdint (stdint.h): Likewise.
67461         (Files): Add m4/ulonglong.m4.
67462
67463 2006-10-10  Bruno Haible  <bruno@clisp.org>
67464
67465         Fix a gcc -Wshadow warning.
67466         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
67467         to 'bucket'.
67468         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
67469         gl_linked_indexof_from_to): Likewise.
67470         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
67471         Likewise.
67472         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
67473         Likewise.
67474         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
67475         Reported by Eric Blake.
67476
67477 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
67478
67479         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
67480         for NetBSD.  Problem reported by Bruno Haible.
67481
67482 2006-10-09  Jim Meyering  <jim@meyering.net>
67483
67484         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
67485         Patch from Bruno Haible.
67486
67487 2006-10-09  Jim Meyering  <jim@meyering.net>
67488
67489         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
67490         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
67491         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
67492
67493 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
67494
67495         Don't include <config.h> twice; this doesn't work in some cases,
67496         e.g., when config.h has "#define intmax_t long long int" and
67497         we include <config.h>, <inttypes.h>, <config.h> in that order.
67498         Problem reported by Matthew Woehlke in:
67499         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
67500         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
67501         * lib/fts-cycle.c: Don't include config.h.
67502         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
67503         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
67504         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
67505         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
67506         inttypes.h.
67507         * lib/xstrtoumax.c: Likewise.
67508         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
67509         __strtol and the like, so that this module is more like its siblings.
67510         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
67511         Remove; no longer needed now that we assume gnulib inttypes.h.
67512
67513 2006-10-08  Bruno Haible  <bruno@clisp.org>
67514
67515         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
67516         option.
67517
67518 2006-10-07  Jim Meyering  <jim@meyering.net>
67519
67520         * modules/inttypes (inttypes.h): Revert what seems to have been
67521         an inadvertent part of today's change: use "|", not "/" in the
67522         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
67523
67524 2006-10-07  Bruno Haible  <bruno@clisp.org>
67525
67526         * modules/sublist: New file.
67527
67528 2006-10-07  Bruno Haible  <bruno@clisp.org>
67529
67530         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
67531         * modules/argz (argz.h): Likewise.
67532         * modules/arpa_inet (arpa/inet.h): Likewise.
67533         * modules/byteswap (byteswap.h): Likewise.
67534         * modules/configmake (configmake.h): Likewise.
67535         * modules/fcntl (fcntl.h): Likewise.
67536         * modules/fnmatch (fnmatch.h): Likewise.
67537         * modules/getopt (getopt.h): Likewise.
67538         * modules/glob (glob.h): Likewise.
67539         * modules/inttypes (inttypes.h): Likewise.
67540         * modules/netinet_in (netinet/in.h): Likewise.
67541         * modules/poll (poll.h): Likewise.
67542         * modules/stdbool (stdbool.h): Likewise.
67543         * modules/stdint (stdint.h): Likewise.
67544         * modules/sys_select (sys/select.h): Likewise.
67545         * modules/sys_socket (sys/socket.h): Likewise.
67546         * modules/sys_stat (sys/stat.h): Likewise.
67547         * modules/sysexits (sysexits.h): Likewise.
67548         * modules/unistd (unistd.h): Likewise.
67549         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
67550         Add a "DO NOT EDIT" comment to the generated file.
67551         (func_import): Likewise for gnulib-comp.m4.
67552
67553 2006-10-07  Bruno Haible  <bruno@clisp.org>
67554
67555         * lib/gl_sublist.h: New file.
67556         * lib/gl_sublist.c: New file.
67557
67558 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
67559
67560         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
67561         name (relative to the original working directory) and the file
67562         name component (relative to the temporary working directory).  All
67563         callers changed.
67564         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
67565         * lib/mkdir-p.c (make_dir_parents): Likewise.
67566         * lib/mkdir-p.h (make_dir_parents): Likewise.
67567
67568 2006-10-06  Eric Blake  <ebb9@byu.net>
67569
67570         Define several macros for use by the clean-temp module.
67571         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
67572         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
67573         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
67574
67575         * lib/clean-temp.h (close_stream_temp): New declaration.
67576         * lib/clean-temp.c (includes): Pull in headers according to what
67577         other modules are in use.
67578         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
67579
67580 2006-10-06  Bruno Haible  <bruno@clisp.org>
67581
67582         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
67583         instead of fopen, fwriteerror.
67584
67585 2006-10-06  Bruno Haible  <bruno@clisp.org>
67586
67587         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
67588         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
67589         int.
67590         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
67591         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
67592         Return an error indicator.
67593         Suggested by Eric Blake.
67594
67595 2006-10-06  Bruno Haible  <bruno@clisp.org>
67596
67597         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
67598         Reported by Eric Blake.
67599
67600 2006-10-06  Bruno Haible  <bruno@clisp.org>
67601
67602         * modules/closeout (Description): Mention stderr too.
67603
67604 2006-10-06  Bruno Haible  <bruno@clisp.org>
67605         and Paul Eggert  <eggert@cs.ucla.edu>
67606
67607         * lib/closeout.c (close_stdout): Also close stderr.
67608         * lib/closeout.h: Update comment.
67609
67610 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
67611
67612         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
67613         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
67614         * lib/dirchownmod.c: Include lchown.h.
67615         * lib/lchown.c: Don't include files that lchown.h now includes.
67616         Don't declare chown, since lchown.h now does that.
67617         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
67618         (lchown): Define to rpl_chown if lchown is declared but
67619         does not exist.  Declare using a prototype if lchown is not
67620         declared.  Add a copyright notice.
67621         * lib/mkstemp.h: Include <unistd.h>.
67622         * lib/openat.c: Include lchown.h.
67623
67624         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
67625         we now test for that separately.
67626         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
67627         rather than O_NOFOLLOW, when testing whether it's possible to
67628         avoid a race condition reliably.
67629         * lib/savewd.c (savewd_chdir): Likewise.
67630
67631         Remove macros that are no longer needed now that stdint.h is
67632         reliable.
67633         * lib/fsusage.c (UINTMAX_MAX): Remove.
67634         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
67635         * lib/utimecmp.c (SIZE_MAX): Remove.
67636
67637         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
67638
67639         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
67640         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
67641         O_NOATIME works.
67642
67643 2006-10-05  Bruno Haible  <bruno@clisp.org>
67644
67645         * lib/gl_list.h (gl_sortedlist_search_from_to,
67646         gl_sortedlist_indexof_from_to): New declarations.
67647         (gl_list_implementation): New fields sortedlist_search_from_to,
67648         sortedlist_indexof_from_to.
67649         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
67650         inline functions.
67651         * lib/gl_list.c (gl_sortedlist_search_from_to,
67652         gl_sortedlist_indexof_from_to): New functions.
67653         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
67654         function.
67655         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
67656         (gl_array_sortedlist_search_from_to): New function.
67657         (gl_array_list_implementation): Update.
67658         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
67659         function.
67660         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
67661         (gl_carray_sortedlist_search_from_to): New function.
67662         (gl_carray_list_implementation): Update.
67663         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
67664         gl_linked_sortedlist_indexof_from_to): New functions.
67665         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
67666         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
67667         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
67668         gl_tree_sortedlist_indexof_from_to): New functions.
67669         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
67670         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
67671         Update.
67672         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
67673         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
67674         Update.
67675
67676 2006-10-05  Bruno Haible  <bruno@clisp.org>
67677
67678         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
67679         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
67680         (struct gl_list_implementation): Add fields search_from_to,
67681         indexof_from_to. Remove fields search, indexof.
67682         (gl_list_search): Use the search_from_to method.
67683         (gl_list_search_from, gl_list_search_from_to): New functions.
67684         (gl_list_indexof): Use the indexof_from_to method.
67685         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
67686         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
67687         (gl_list_search_from, gl_list_search_from_to): New functions.
67688         (gl_list_indexof): Use the indexof_from_to method.
67689         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
67690         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
67691         gl_array_indexof. Add start_index, end_index arguments.
67692         (gl_array_search_from_to): Renamed from gl_array_search. Add
67693         start_index, end_index arguments.
67694         (gl_array_remove, gl_array_list_implementation): Update.
67695         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
67696         gl_carray_indexof. Add start_index, end_index arguments.
67697         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
67698         start_index, end_index arguments.
67699         (gl_carray_remove, gl_carray_list_implementation): Update.
67700         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
67701         gl_linked_search. Add start_index, end_index arguments.
67702         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
67703         start_index, end_index arguments.
67704         (gl_linked_remove): Update.
67705         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
67706         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
67707         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
67708         field to 'size_t'.
67709         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
67710         gl_tree_search. Add start_index, end_index arguments.
67711         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
67712         start_index, end_index arguments.
67713         (gl_tree_remove): Update.
67714         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
67715         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
67716         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
67717         function.
67718         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
67719         gl_tree_search. Add start_index, end_index arguments.
67720         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
67721         start_index, end_index arguments.
67722         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
67723         Update.
67724         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
67725
67726 2006-10-05  Bruno Haible  <bruno@clisp.org>
67727
67728         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
67729
67730         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
67731         fwriteerror_temp): New declarations.
67732         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
67733         (descriptors): New variable.
67734         (cleanup): First, close the descriptors.
67735         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
67736         fclose_temp, fwriteerror_temp): New functions.
67737
67738 2006-10-04  Jim Meyering  <jim@meyering.net>
67739
67740         * lib/fts.c (fts_open): Tiny comment change.
67741
67742 2006-10-04  Bruno Haible  <bruno@clisp.org>
67743
67744         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
67745         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
67746         gl_LOCK_BODY.
67747         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
67748         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
67749         gl_LOCK_EARLY_BODY.
67750         (gl_LOCK): Require gl_LOCK_BODY.
67751
67752 2006-10-04  Bruno Haible  <bruno@clisp.org>
67753
67754         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
67755         (gl_oset_search_atleast): New declaration.
67756         (struct gl_oset_implementation): Add field 'search_atleast'.
67757         (gl_oset_search_atleast): New inline function.
67758         * lib/gl_oset.c (gl_oset_search_atleast): New function.
67759         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
67760         (gl_array_oset_implementation): Update.
67761         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
67762         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
67763         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
67764
67765 2006-10-04  Bruno Haible  <bruno@clisp.org>
67766
67767         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
67768
67769 2006-10-03  Bruno Haible  <bruno@clisp.org>
67770
67771         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
67772         from gl_avltreehash_list_implementation.
67773
67774 2006-10-03  Bruno Haible  <bruno@clisp.org>
67775
67776         * lib/gl_oset.c (gl_oset_add): Fix return type.
67777
67778 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
67779
67780         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
67781
67782 2006-10-02  Eric Blake  <ebb9@byu.net>
67783
67784         * modules/strnlen (Depends-on): Add extensions.
67785
67786 2006-10-02  Eric Blake  <ebb9@byu.net>
67787
67788         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
67789         definition in 2.60+.
67790
67791 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
67792
67793         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
67794         checks.
67795
67796 2006-10-02  Bruno Haible  <bruno@clisp.org>
67797
67798         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
67799         to the AUTOMAKE_OPTIONS.
67800         Reported by Jim Meyering.
67801
67802 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
67803
67804         Work around bug in Solaris 10 /proc file system:
67805         /proc/self/fd/NNN/.. isn't the parent directory of
67806         the directory whose file descriptor is NNN.  This needs to
67807         be worked around at run time, not compile time, since a
67808         program might be built on Solaris 8, where things work, and
67809         run on Solaris 10.
67810         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
67811         to use the following interface instead:
67812         (OPENAT_BUFFER_SIZE): New macro.
67813         (openat_proc_name): New function.
67814         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
67815         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
67816         Likewise.
67817         * lib/openat-proc.c: New file.
67818         * modules/openat (Files): Add lib/openat-proc.c.
67819         (Depends-on): Add same-inode, stdbool.
67820         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
67821
67822 2006-09-29  Bruno Haible  <bruno@clisp.org>
67823
67824         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
67825         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
67826         argument. Set stdout_closed before testing for ferror, not after.
67827         (fwriteerror, fwriteerror_no_ebadf): New functions.
67828
67829 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67830
67831         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
67832
67833 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
67834
67835         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
67836         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
67837
67838 2006-09-28  Jim Meyering  <jim@meyering.net>
67839
67840         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
67841         Include <unistd.h>.
67842
67843 2006-09-28  Bruno Haible  <bruno@clisp.org>
67844
67845         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
67846         * modules/linkedhash-list (Depends-on): Likewise.
67847         * modules/rbtreehash-list (Depends-on): Likewise.
67848
67849 2006-09-28  Bruno Haible  <bruno@clisp.org>
67850
67851         * lib/strndup.h: Simplify the redefinition of strndup.
67852         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
67853         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
67854
67855 2006-09-28  Bruno Haible  <bruno@clisp.org>
67856
67857         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
67858         * lib/gl_linkedhash_list.c: Likewise.
67859         * lib/gl_rbtreehash_list.c: Likewise.
67860
67861 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
67862
67863         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
67864         getaddrinfo.
67865
67866         * lib/__fpending.h: Don't include <stdio_ext.h> unless
67867         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
67868         it causes <stdio_ext.h> to cause a compile-time error.
67869         Problem reported by Nelson H. F. Beebe.
67870         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
67871         of HAVE_DECL___PENDING.
67872
67873         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
67874         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
67875         declaration.
67876
67877 2006-09-27  Jim Meyering  <jim@meyering.net>
67878
67879         This file could end up with a definition for a function
67880         named __strndup, rather than rpl_strndup on a system with
67881         incomplete weak_alias support.
67882         * lib/strndup.c (strndup): Rename from __strndup.
67883         Remove #defines that used to map __strndup to strndup.
67884         Don't use K&R prototypes.
67885         Remove LIBC-related code, since this file is not sync'd with glibc.
67886         * lib/strndup.h: Revamp, accordingly.
67887         * m4/strndup.m4: Modernize.
67888
67889 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
67890
67891         * modules/savewd (Depends-on): Add 'raise'.
67892         * lib/savewd.c: Include <signal.h>, for 'raise'.
67893
67894 2006-09-26  Jim Meyering  <jim@meyering.net>
67895
67896         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
67897         when we detect Darwin 8.7.0's acl_get_file bug.
67898         Rearrange to perform the new (below) run-test while $LIBS
67899         contains any acl-related library.  Set USE_ACL at the end.
67900         (gl_ACL_GET_FILE): New function.
67901
67902 2006-09-26  Eric Blake  <ebb9@byu.net>
67903
67904         * lib/verror.c: Include <config.h> unconditionally.
67905
67906 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
67907
67908         * modules/clock-time (Maintainer): Add self.
67909         * modules/getlogin_r (Depends-on): Add extensions.
67910
67911 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67912
67913         * modules/clock-time: New module.
67914         * modules/nanosleep (Depends-on): Add clock-time.
67915         * modules/gethrxtime (Depends-on): Likewise.
67916         * modules/gettime (Depends-on): Likewise.
67917         * modules/settime (Depends-on): Likewise.
67918
67919         * modules/fts-lgpl: Depend on openat.
67920         * modules/mkancesdirs: Depend on savewd.
67921         * modules/mkdir-p: Likewise.
67922
67923 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67924
67925         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
67926
67927         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
67928         `gl_have_arbitrary_file_name_length_limit' to
67929         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
67930         actually works between configure runs.
67931
67932 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67933             Bruno Haible  <bruno@clisp.org>
67934
67935         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
67936
67937 2006-09-25  Jim Meyering  <jim@meyering.net>
67938
67939         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
67940         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
67941
67942 2006-09-25  Eric Blake  <ebb9@byu.net>
67943
67944         * gnulib-tool (func_import, func_create_testdir): Fix typos in
67945         exec's in 2006-09-18 patch when shuffling fds.
67946
67947 2006-09-25  Bruno Haible  <bruno@clisp.org>
67948
67949         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
67950         Reported by Jim Meyering.
67951
67952 2006-09-24  Jim Meyering  <jim@meyering.net>
67953
67954         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
67955         compare a pointer against a literal "0".  That caused failures with
67956         at least HP-UX's hpcc.
67957
67958 2006-09-22  Simon Josefsson  <jas@extundo.com>
67959
67960         * modules/gc-sha1:
67961         * modules/gc-md4:
67962         * modules/gc-hmac-sha1:
67963         * modules/gc-hmac-md5:
67964         * modules/gc-des:
67965         * modules/gc-arcfour: Distribute more files.
67966
67967 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67968
67969         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
67970         (gl_linked_iterator_from_to): Initialize struct completely.
67971         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
67972         (gl_tree_iterator_from_to): Likewise
67973         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
67974         * lib/gl_array_list.c [lint] (gl_array_iterator)
67975         (gl_array_iterator_from_to): Likewise.
67976         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
67977         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
67978         (gl_carray_iterator_from_to): Likewise.
67979
67980         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
67981         * lib/md4.c (md4_process_block): Remove unused variable.
67982         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
67983         parentheses for clarity.
67984
67985 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67986
67987         * modules/bison-i18n (Depends-on): Add gettext.
67988
67989 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67990
67991         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
67992         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
67993         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
67994         also add missing comma that caused broken test.
67995         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
67996         stdlib.h, for `abort'.
67997         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
67998         variables.
67999         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
68000         include unistd.h if present, for `rmdir'.
68001         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
68002         variables.
68003         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
68004         in the process include standard headers for prototypes.
68005         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
68006         gets declared on GNU/Linux.
68007         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
68008         unistd.h, for `rmdir'.
68009         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
68010
68011         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
68012         always true.
68013         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
68014
68015         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
68016
68017 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68018
68019         * gnulib-tool (func_version): Create output all at once.  This
68020         may help avoid triggering unnecessary SIGPIPEs, and at any
68021         rate it doesn't hurt.
68022
68023 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68024             Bruno Haible  <bruno@clisp.org>
68025
68026         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
68027         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
68028         * m4/signed.m4 (bh_C_SIGNED): Likewise.
68029
68030         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
68031         (gl_FUNC_VASPRINTF): Invoke it.
68032
68033 2006-09-22  Bruno Haible  <bruno@clisp.org>
68034
68035         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
68036         getloadavg.c as first argument.
68037
68038 2006-09-22  Bruno Haible  <bruno@clisp.org>
68039
68040         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
68041         at the beginning of the gl_INIT macro.
68042         * modules/getloadavg (configure.ac): Pass $gl_source_base to
68043         gl_GETLOADAVG.
68044
68045 2006-09-22  Bruno Haible  <bruno@clisp.org>
68046
68047         * gnulib-tool (func_create_megatestdir): Don't include the config-h
68048         module.
68049         Suggested by Ralf Wildenhues.
68050
68051 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
68052
68053         Import this patch from libc:
68054
68055         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
68056
68057         * lib/regex_internal.c (re_string_reconstruct): Handle
68058         offset < pstr->valid_raw_len && pstr->offsets_needed case.
68059         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
68060         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
68061         re_string_context_at.
68062
68063         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
68064         now requires it.
68065         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
68066         gl_REGEX now does it for us.
68067         (gl_REGEX): Add test taken from
68068         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
68069
68070         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
68071         Check that large offsets work.  Modernize Autoconf usages.
68072         Prefer "yes" to mean a good thing rather than a bad.
68073         Don't put "#define mkstemp" in config.h, as this might interfere
68074         with standard system headers that "#define mkstemp mkstemp64".
68075
68076         * modules/mkstemp (Depends-on): Add extensions, so that
68077         mkstemp is visible on some platforms.
68078         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
68079         (Include): Change to "mkstemp.h" from <stdlib.h>.
68080         (Files): Add mkstemp.h.
68081
68082         * lib/mkstemp.h: New file, since some standard headers
68083         #define mkstemp.
68084         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
68085         Include "mkstemp.h".
68086         Make the _LIBC code resemble glibc original more,
68087         e.g., use K&R style.
68088         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
68089         (mkstemp): Remove, since mkstemp.h does this for us.
68090         * lib/stdlib--.h: Include mkstemp.h.
68091
68092         Import this patch from libc:
68093
68094         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
68095
68096         * lib/tempname.c (__gen_tempname): Change attempts_min
68097         into a macro.  Use preprocessor to decide how to initialize
68098         attempts [Coverity CID 67].
68099
68100 2006-09-20  Bruno Haible  <bruno@clisp.org>
68101
68102         * lib/mkdtemp.c: Import from libc.
68103         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
68104                 * sysdeps/posix/tempname.c (__gen_tempname): Change
68105                 attempts_min into a macro.  Use preprocessor to decide how to
68106                 initialize attempts [Coverity CID 67].
68107         2001-11-27  Paul Eggert  <eggert@twinsun.com>
68108                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
68109                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
68110
68111 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68112
68113         * gnulib-tool (func_exit): New function, to allow to pass the
68114         exit status portably through the trap.  Use everywhere.
68115         (--help, --version): Signal a write error.
68116         (trap): catch SIGPIPE, for write errors.
68117         Exit at the end of the trap, with the correct exit status.
68118
68119 2006-09-19  Karl Berry  <karl@gnu.org>
68120
68121         * doc/gnulib.texi: note about the license texinfo files.
68122
68123 2006-09-19  Eric Blake  <ebb9@byu.net>
68124
68125         * gnulib-tool: Avoid space-tab.
68126
68127 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
68128
68129         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
68130         that prevented coreutils 6.1 from building.  Problem reported
68131         by Petter Reinholdtsen.
68132
68133 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
68134
68135         * gnulib-tool (avoidlist): Fix typo that broke options like
68136         --avoid=lock that are used by coreutils bootstrap.
68137
68138 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
68139
68140         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
68141         more systematically.
68142
68143 2006-09-18  Jim Meyering  <jim@meyering.net>
68144
68145         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
68146
68147 2006-09-18  Bruno Haible  <bruno@clisp.org>
68148
68149         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
68150
68151 2006-09-18  Bruno Haible  <bruno@clisp.org>
68152
68153         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
68154         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
68155         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
68156         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
68157         * m4/gettext.m4: Require autoconf >= 2.52.
68158         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
68159         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
68160         of gl_cv_header_inttypes_h.
68161
68162 2006-09-18  Bruno Haible  <bruno@clisp.org>
68163
68164         * lib/javaversion.c: Include configmake.h.
68165
68166 2006-09-18  Bruno Haible  <bruno@clisp.org>
68167
68168         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
68169         avoid that the while loops be executed in a subshell.
68170
68171 2006-09-18  Bruno Haible  <bruno@clisp.org>
68172
68173         * MODULES.html.sh (func_module): Break long lines.
68174         Suggested by Bruce Korb <bkorb@gnu.org>.
68175
68176 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68177
68178         Speed up by a factor of 1.12.
68179         * gnulib-tool (nl): New variable.
68180         (func_import): Rewrite include directive extraction to only read each
68181         directive once.
68182
68183 2006-09-17  Bruno Haible  <bruno@clisp.org>
68184
68185         * modules/javaversion (Makefile.am): Remove DEFS setting.
68186         (Depends-on): Add configmake, for PKGDATADIR definition.
68187
68188 2006-09-17  Bruno Haible  <bruno@clisp.org>
68189
68190         * gnulib-tool (func_create_testdir): Rewrite all files at once.
68191
68192 2006-09-17  Bruno Haible  <bruno@clisp.org>
68193
68194         * gnulib-tool (func_append): New function, stolen from libtool.m4.
68195         (func_modules_transitive_closure, func_modules_add_dummy,
68196         func_modules_to_filelist, func_import, func_create_testdir,
68197         func_create_megatestdir, ...): Use it wherever possible.
68198         Suggested by Ralf Wildenhues.
68199
68200 2006-09-16  Karl Berry  <karl@gnu.org>
68201
68202         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
68203         to avoid sectioning errors.
68204         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
68205         [ifinfo]: blank line after @center-ed titles.
68206         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
68207         Spell FSF address consistently with others.
68208         (These changes approved by rms.)
68209
68210 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68211
68212         Speed up by a factor of 1.61.
68213         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
68214         already checked module names again.
68215
68216 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68217
68218         Speed up by a factor of 1.13.
68219         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
68220         for new_files, and the input to func_add_or_update.
68221
68222 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68223
68224         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
68225         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
68226
68227 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
68228
68229         * modules/mkancesdirs (Depends-on): Add fcntl.
68230         * modules/savewd: New file.
68231         * MODULES.html.sh (File system functions): Add savewd.
68232
68233         * modules/configmake (Makefile.am): Add support for the
68234         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
68235
68236 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
68237
68238         * m4/savewd.m4: New file.
68239
68240 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
68241
68242         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
68243         (dirchownmod): New arg FD.  All callers changed.
68244         Use FD rather than opening the directory ourself, as opening is
68245         now the caller's responsibility.
68246         * lib/dirchownmod.h: Likewise.
68247         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
68248         hosts that require <sys/types.h> before <sys/stat.h>.  Include
68249         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
68250         (test_dir): Remove.
68251         (mkancesdirs): Return length of prefix of FILE that has already
68252         been made, or -2 if there is a child doing the work.  Redo
68253         algorithm so that it is O(N) rather than O(N**2).  Optimize away
68254         ".", and treat ".." specially since it might stray back into
68255         already-created areas.  Use a subprocess if necessary.  New arg
68256         WD; all users changed.  MAKE_DIR function should now return 1
68257         if it creates a directory that is not readable.  Return -2 if
68258         a child process is spun off.
68259         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
68260         Adjust signature to match code.
68261         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
68262         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
68263         all users changed.
68264         * lib/savewd.c, lib/savewd.h: New files.
68265
68266 2006-09-15  Jim Meyering  <jim@meyering.net>
68267
68268         * modules/rename-dest-slash: New module.
68269         * MODULES.html.sh (posix_compat): Add it here.
68270
68271         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
68272
68273 2006-09-15  Jim Meyering  <jim@meyering.net>
68274
68275         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
68276         file.
68277
68278         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
68279
68280 2006-09-15  Jim Meyering  <jim@meyering.net>
68281
68282         * lib/rename-dest-slash.c (has_trailing_slash): Use
68283         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
68284         (rpl_rename_dest_slash): Perform the cheaper trailing slash
68285         test before testing whether SRC is a directory.
68286         Suggestions from Bruno Haible.
68287
68288         Avoid a warning about an unused variable.
68289         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
68290         into the #ifdef block where it's used.
68291
68292         * lib/rename-dest-slash.c: New file.
68293
68294 2006-09-14  Bruno Haible  <bruno@clisp.org>
68295
68296         * lib/allocsa.c: Include <config.h> unconditionally.
68297         * lib/asnprintf.c: Likewise.
68298         * lib/asprintf.c: Likewise.
68299         * lib/c-strcasecmp.c: Likewise.
68300         * lib/c-strcasestr.c: Likewise.
68301         * lib/c-strncasecmp.c: Likewise.
68302         * lib/c-strstr.c: Likewise.
68303         * lib/classpath.c: Likewise.
68304         * lib/clean-temp.c: Likewise.
68305         * lib/concatpath.c: Likewise.
68306         * lib/copy-file.c: Likewise.
68307         * lib/csharpcomp.c: Likewise.
68308         * lib/csharpexec.c: Likewise.
68309         * lib/execute.c: Likewise.
68310         * lib/fatal-signal.c: Likewise.
68311         * lib/findprog.c: Likewise.
68312         * lib/fwriteerror.c: Likewise.
68313         * lib/gl_array_list.c: Likewise.
68314         * lib/gl_array_oset.c: Likewise.
68315         * lib/gl_avltree_list.c: Likewise.
68316         * lib/gl_avltree_oset.c: Likewise.
68317         * lib/gl_avltreehash_list.c: Likewise.
68318         * lib/gl_carray_list.c: Likewise.
68319         * lib/gl_linked_list.c: Likewise.
68320         * lib/gl_linkedhash_list.c: Likewise.
68321         * lib/gl_list.c: Likewise.
68322         * lib/gl_oset.c: Likewise.
68323         * lib/gl_rbtree_list.c: Likewise.
68324         * lib/gl_rbtree_oset.c: Likewise.
68325         * lib/gl_rbtreehash_list.c: Likewise.
68326         * lib/imaxabs.c: Likewise.
68327         * lib/imaxdiv.c: Likewise.
68328         * lib/javacomp.c: Likewise.
68329         * lib/javaexec.c: Likewise.
68330         * lib/javaversion.c: Likewise.
68331         * lib/linebreak.c: Likewise.
68332         * lib/localcharset.c: Likewise.
68333         * lib/lock.c: Likewise.
68334         * lib/mbchar.c: Likewise.
68335         * lib/mbswidth.c: Likewise.
68336         * lib/mkdtemp.c: Likewise.
68337         * lib/pipe.c: Likewise.
68338         * lib/printf-args.c: Likewise.
68339         * lib/printf-parse.c: Likewise.
68340         * lib/progname.c: Likewise.
68341         * lib/progreloc.c: Likewise.
68342         * lib/readlink.c: Likewise.
68343         * lib/sh-quote.c: Likewise.
68344         * lib/stpcpy.c: Likewise.
68345         * lib/stpncpy.c: Likewise.
68346         * lib/strcasecmp.c: Likewise.
68347         * lib/strcasestr.c: Likewise.
68348         * lib/strcspn.c: Likewise.
68349         * lib/striconv.c: Likewise.
68350         * lib/strncasecmp.c: Likewise.
68351         * lib/strnlen1.c: Likewise.
68352         * lib/strstr.c: Likewise.
68353         * lib/strtok_r.c: Likewise.
68354         * lib/tls.c: Likewise.
68355         * lib/tmpdir.c: Likewise.
68356         * lib/unicodeio.c: Likewise.
68357         * lib/unsetenv.c: Likewise.
68358         * lib/vasnprintf.c: Likewise.
68359         * lib/vasprintf.c: Likewise.
68360         * lib/wait-process.c: Likewise.
68361         * lib/xallocsa.c: Likewise.
68362         * lib/xsetenv.c: Likewise.
68363         * lib/xstriconv.c: Likewise.
68364
68365 2006-09-13  Simon Josefsson  <jas@extundo.com>
68366
68367         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
68368         that internally, suggested by Ralf Wildenhues
68369         <Ralf.Wildenhues@gmx.de>.
68370
68371 2006-09-13  Simon Josefsson  <jas@extundo.com>
68372
68373         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
68374         @LIBOBJS@.
68375         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
68376
68377 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
68378
68379         * lib/_fpending.c: Include <config.h> unconditionally, since we no
68380         longer worry about uses that don't define HAVE_CONFIG_H.
68381         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
68382         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
68383         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
68384         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
68385         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
68386         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
68387         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
68388         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
68389         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
68390         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
68391         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
68392         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
68393         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
68394         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
68395         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
68396         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
68397         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
68398         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
68399         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
68400         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
68401         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
68402         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
68403         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
68404         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
68405         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
68406         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
68407         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
68408         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
68409         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
68410         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
68411         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
68412         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
68413         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
68414         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
68415         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
68416         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
68417         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
68418         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
68419         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
68420         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
68421         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
68422         Likewise.
68423
68424 2006-09-13  Eric Blake  <ebb9@byu.net>
68425
68426         * lib/getopt.c: Fix typo in last commit.
68427
68428 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
68429
68430         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
68431         dgettext.
68432
68433 2006-09-12  Jim Meyering  <jim@meyering.net>
68434
68435         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
68436         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
68437         Reported by Nelson H. F. Beebe.
68438
68439 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
68440
68441         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
68442         program_invocation_name and program_invocation_short_name are
68443         initialized.
68444         * lib/argp-namefrob.h: Move declarations of program_invocation_name
68445         and program_invocation_short_name to argp.h, so they are visible
68446         to user programs.
68447         * lib/argp.h: Likewise
68448
68449 2006-09-10  Bruno Haible  <bruno@clisp.org>
68450
68451         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
68452         m4/inttypes_h.m4, m4/uintmax_t.m4.
68453
68454 2006-09-10  Bruno Haible  <bruno@clisp.org>
68455
68456         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
68457         gl_AC_TYPE_UINTMAX_T.
68458
68459 2006-09-10  Bruno Haible  <bruno@clisp.org>
68460
68461         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
68462
68463 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
68464
68465         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
68466         convention.  Text proposed by Bruno Haible.
68467         (struct argp_option): Document the use of N_() wrappers.
68468
68469         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
68470         '\v', and translate the two parts separately, instead of feeding
68471         the whole string to gettext.  This allows to exclude
68472         '\v' from the strings visible to the translator by writing doc
68473         strings as N_("..") "\v" N_("..").
68474
68475 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
68476
68477         * config/srclist.txt: Undo latest change; the bug was fixed.
68478
68479 2006-09-09  Bruno Haible  <bruno@clisp.org>
68480
68481         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
68482         assignments if building a library without libtool.
68483         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
68484         in func_emit_lib_Makefile_am.
68485         (func_import): When building a static library libfoo.a, arrange to
68486         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
68487         (func_create_testdir): Likewise.
68488         * modules/gc (configure.ac, Makefile.am): If building statically,
68489         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
68490         * modules/iconvme (configure.ac, Makefile.am): Likewise.
68491         * modules/striconv (configure.ac, Makefile.am): Likewise.
68492         Based on a suggestion by Ralf Wildenhues.
68493
68494 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
68495
68496         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
68497         Check for unistd.h too, since Autoconf doesn't assume POSIX.
68498         Also:
68499
68500         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
68501         Add year_2050_test to catch glibc bug 2821
68502         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
68503
68504         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
68505         Prefer #ifdef to #if.
68506
68507         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
68508         Return from 'main' instead of calling 'exit'.
68509
68510 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
68511
68512         * lib/mktime.c (guess_time_tm): Fix bug where mktime
68513         returned the maximum time_t value rather than (time_t) -1.
68514         Problem originally reported by William Bardwell
68515         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
68516
68517         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
68518         Moved to here ...
68519         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
68520         ... from here.
68521
68522 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
68523
68524         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
68525         2821 is fixed.
68526
68527 2006-09-08  Jim Meyering  <jim@meyering.net>
68528
68529         Don't make generated files read-only.  That would bother too many
68530         people.  However, do retain the ability to work when targets are
68531         read-only: remove the destination and temporary files before writing
68532         them (when generated via sed or echo), or by using the -f option for
68533         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
68534         * modules/alloca-opt, modules/argz, modules/arpa_inet:
68535         * modules/byteswap, modules/configmake, modules/fcntl:
68536         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
68537         * modules/localcharset, modules/netinet_in, modules/poll:
68538         * modules/stdbool, modules/stdint, modules/sys_select:
68539         * modules/sys_socket, modules/sys_stat, modules/sysexits:
68540
68541 2006-09-08  Jim Meyering  <jim@meyering.net>
68542
68543         Avoid new build failure on FreeBSD 6.0.
68544         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
68545         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
68546         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
68547
68548 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68549
68550         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
68551
68552 2006-09-07  Jim Meyering  <jim@meyering.net>
68553
68554         Fix global typo in last change: use chmod u-w, not chmod u-x.
68555         Spotted by Paul Eggert and Bruce Korb.
68556         * modules/alloca-opt, modules/argz, modules/arpa_inet:
68557         * modules/byteswap, modules/configmake, modules/fcntl:
68558         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
68559         * modules/localcharset, modules/netinet_in, modules/poll:
68560         * modules/stdbool, modules/stdint, modules/sys_select:
68561         * modules/sys_socket, modules/sys_stat, modules/sysexits:
68562
68563 2006-09-06  Jim Meyering  <jim@meyering.net>
68564
68565         Make generated files be read-only.
68566         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
68567         Ensure that each generated file is now read-only.
68568         * modules/argz: Likewise.
68569         * modules/arpa_inet: Likewise.
68570         * modules/byteswap: Likewise.
68571         * modules/configmake: Likewise.
68572         * modules/fcntl: Likewise.
68573         * modules/fnmatch: Likewise.
68574         * modules/getopt: Likewise.
68575         * modules/glob: Likewise.
68576         * modules/inttypes: Likewise.
68577         * modules/netinet_in: Likewise.
68578         * modules/poll: Likewise.
68579         * modules/stdbool: Likewise.
68580         * modules/stdint: Likewise.
68581         * modules/sys_select: Likewise.
68582         * modules/sys_socket: Likewise.
68583         * modules/sys_stat: Likewise.
68584         * modules/sysexits: Likewise.
68585         * modules/localcharset: Same as above, but continue using temporary
68586         file named "t-$@" (why different?) rather than the "$@-t" used
68587         everywhere else.
68588
68589         * modules/sysexits (Makefile.am): Replace literal occurrences
68590         of "sysexit.h" more readable, and more consistent, "$@".
68591
68592 2006-09-06  Bruno Haible  <bruno@clisp.org>
68593
68594         * modules/striconv: New file.
68595         * modules/xstriconv: New file.
68596         * MODULES.html.sh (Internationalization functions): Add striconv,
68597         xstriconv.
68598
68599 2006-09-06  Bruno Haible  <bruno@clisp.org>
68600
68601         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
68602         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
68603         not using libtool correctly.
68604
68605 2006-09-06  Bruno Haible  <bruno@clisp.org>
68606
68607         * lib/striconv.h: New file.
68608         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
68609         iconvstring.c.
68610         * lib/xstriconv.h: New file.
68611         * lib/xstriconv.c: New file.
68612
68613 2006-09-06  Bruno Haible  <bruno@clisp.org>
68614
68615         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
68616         lib_..._LDFLAGS.
68617
68618 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68619
68620         * lib/argz_.h: Sync from Libtool.
68621
68622         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
68623                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
68624
68625         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
68626
68627 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
68628
68629         * modules/trim: New file.
68630
68631 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
68632
68633         * lib/trim.h: New file.
68634         * lib/trim.c: New file.
68635
68636 2006-09-05  Bruno Haible  <bruno@clisp.org>
68637
68638         * MODULES.html.sh (String handling): Add trim.
68639
68640 2006-09-04  Karl Berry  <karl@gnu.org>
68641
68642         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
68643         until next release.
68644
68645 2006-09-03  Bruno Haible  <bruno@clisp.org>
68646
68647         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
68648         correctly.
68649
68650 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
68651
68652         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
68653         not gl_GETLOADAVG.  Omit unneeded semicolons.
68654         Problems reported by Ralf Wildenhues in
68655         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
68656         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
68657         at the end, which is the usual gnulib style.
68658
68659         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
68660         of doing all the work ourselves.
68661         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
68662         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
68663
68664 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
68665
68666         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
68667         Problem reported by Ralf Wildenhues in
68668         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
68669
68670         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
68671         HAVE_STRUCT_STATFS_F_FSTYPENAME.
68672
68673 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
68674
68675         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
68676         yesterday's patch by changing test -n to test -z.
68677
68678 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
68679
68680         * modules/getloadavg (Files): Add m4/getloadavg.m4.
68681         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
68682         the former is now obsolescent.
68683
68684         * modules/chdir-long (Depends-on): Add fcntl.
68685
68686 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
68687
68688         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
68689         obsolescent, and programs should use gnulib instead.
68690         * m4/getloadavg.m4: New file, with contents taken from Autoconf
68691         but with prefixes changed.
68692
68693 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
68694
68695         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
68696         or stdbool.h, because they might not exist while configuring.
68697
68698         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
68699         Don't include unistd.h or limits.h; not needed, since chdir-long.h
68700         does that for us.
68701         (O_DIRECTORY): Remove.
68702
68703 2006-08-31  Eric Blake  <ebb9@byu.net>
68704
68705         * gnulib-tool: Don't let emacs change spaces to TAB.
68706
68707 2006-08-31  Bruno Haible  <bruno@clisp.org>
68708
68709         * gnulib-tool: When calling func_import more than once, do it in a
68710         subshell.
68711         Reported by Eric Blake <ebb9@byu.net>.
68712
68713 2006-08-31  Bruno Haible  <bruno@clisp.org>
68714
68715         * gnulib-tool (nl): Remove variable.
68716         (sed_transform_lib_file): Use more robust test for config-h module.
68717         (func_import): Fix typo in 2006-08-25 patch.
68718
68719 2006-08-31  Bruno Haible  <bruno@clisp.org>
68720
68721         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
68722         specified, augment Makefile.am variables instead of assigning them.
68723
68724 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
68725
68726         Work around a bug in both the Linux and SunOS 64-bit kernels:
68727         nanosleep mishandles sleeps for longer than 2**31 seconds.
68728         Problem reported by Frank v Waveren in
68729         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
68730         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
68731         Check for nanosleep bug.
68732         (LIB_NANOSLEEP): Append clock_gettime library if needed.
68733
68734 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
68735
68736         Work around a bug in both the Linux and SunOS 64-bit kernels:
68737         nanosleep mishandles sleeps for longer than 2**31 seconds.
68738         Problem reported by Frank v Waveren in
68739         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
68740         * lib/nanosleep.c (BILLION): New constant.
68741         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
68742         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
68743         implementation.
68744
68745 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
68746
68747         * modules/nanosleep (Depends-on): Add gettime.
68748
68749 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
68750         and Simon Josefsson  <jas@extundo.com>
68751         and Oskar Liljeblad  <oskar@osk.mine.nu>
68752
68753         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
68754         * gnulib-tool (func_import): New license type 'unmodifiable license
68755         text'.
68756         * modules/fdl: Use it.  Longer description.
68757         * module/gpl, module/lgpl: New files.
68758
68759 2006-08-30  Jim Meyering  <jim@meyering.net>
68760
68761         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
68762         shadowing the parameter.
68763
68764 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68765
68766         Sync from Libtool:
68767
68768         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68769
68770         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
68771         sharing with gnulib.  Report by Eric Blake.
68772
68773 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
68774
68775         * modules/isapipe: New file.
68776         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
68777
68778 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
68779
68780         * modules/configmake (Makefile.am): Add a comment, and omit
68781         the CONFIGMAKE_ prefix from generated macro names.  Suggested
68782         by Bruno Haible.
68783
68784 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
68785
68786         * m4/isapipe.m4: New file.
68787
68788 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
68789
68790         * lib/isapipe.c, lib/isapipe.h: New files.
68791
68792 2006-08-29  Jim Meyering  <jim@meyering.net>
68793
68794         * modules/configmake (Makefile.am): Make configmake.h depend on
68795         Makefile.  Otherwise, a stale configmake.h could hang around.
68796
68797 2006-08-29  Eric Blake  <ebb9@byu.net>
68798
68799         * lib/error.c (error_at_line, print_errno_message): Match libc, after
68800         resolution of upstream bug 3044.
68801
68802 2006-08-29  Bruno Haible  <bruno@clisp.org>
68803
68804         * modules/localcharset (Depends-on): Add configmake.
68805         (Makefile.am): Remove setting of LIBDIR through DEFS.
68806
68807 2006-08-29  Bruno Haible  <bruno@clisp.org>
68808
68809         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
68810         defined.
68811
68812 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
68813
68814         * modules/fcntl: New file.
68815         * modules/chdir-safer (Depends-on): Add fcntl.
68816         * modules/fts: Likewise.
68817         * modules/mkdir-p: Likewise.
68818
68819         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
68820         This undoes the most recent change, since we're now addressing the
68821         problem in a different way.
68822
68823         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
68824         into output, since the output might be called Makefile.am even
68825         if $makefile_name is something different.
68826         (func_import): Use $makefile_am rather than
68827         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
68828         empty.
68829
68830         * modules/inttypes (Files): Add m4/inttypes-h.m4.
68831
68832 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
68833
68834         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
68835         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
68836         recent change to stdint.m4, since we're now addressing the problem in a
68837         different way.
68838
68839 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
68840
68841         * m4/fcntl_h.m4: New file.
68842
68843 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
68844
68845         * lib/fcntl_.h: New file.
68846         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
68847         the fcntl module.
68848         * lib/dirchownmod.c: Likewise.
68849         * lib/fts.c: Likewise.
68850
68851         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
68852         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
68853         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
68854         just before including <inttypes.h>, to avoid circular inclusion.
68855
68856 2006-08-28  Jim Meyering  <jim@meyering.net>
68857
68858         * doc/visibility.texi: Actually read and correct the grammar of the
68859         sentence affected by yesterday's change.
68860
68861 2006-08-28  Eric Blake  <ebb9@byu.net>
68862
68863         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
68864         needs wrapper.
68865
68866 2006-08-28  Eric Blake  <ebb9@byu.net>
68867
68868         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
68869
68870 2006-08-28  Eric Blake  <ebb9@byu.net>
68871
68872         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
68873
68874 2006-08-28  Bruno Haible  <bruno@clisp.org>
68875
68876         * modules/c-strstr: New file, from GNU gettext.
68877         * MODULES.html.sh (String handling): Add c-strstr.
68878
68879 2006-08-28  Bruno Haible  <bruno@clisp.org>
68880
68881         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
68882         macros.
68883         Reported by Eric Blake.
68884
68885 2006-08-28  Bruno Haible  <bruno@clisp.org>
68886
68887         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
68888         (VASNPRINTF): Return a string of length > INT_MAX without failing.
68889         * lib/vasprintf.c: Include errno.h, limits.h.
68890         (EOVERFLOW): New fallback definition.
68891         (vasprintf): Test here whether the string length is > INT_MAX.
68892         * lib/vsnprintf.c: Include errno.h, limits.h.
68893         (EOVERFLOW): New fallback definition.
68894         (vsnprintf): Fix bug when generated string was too long for the buffer.
68895         Test here whether the string length is > INT_MAX.
68896
68897 2006-08-28  Bruno Haible  <bruno@clisp.org>
68898
68899         * lib/inttypes_.h (SCNX*): Remove definitions.
68900         Reported by Eric Blake.
68901
68902 2006-08-28  Bruno Haible  <bruno@clisp.org>
68903
68904         * lib/c-strstr.h: New file, from GNU gettext.
68905         * lib/c-strstr.c: New file, from GNU gettext.
68906
68907 2006-08-28  Bruno Haible  <bruno@clisp.org>
68908
68909         * gnulib-tool: Reorder some statements.
68910
68911 2006-08-28  Bruno Haible  <bruno@clisp.org>
68912
68913         * gnulib-tool: New option --makefile-name.
68914         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
68915         $makefile_name.
68916         (func_import): Write $makefile_name to the cache file, and read it from
68917         there unless explicitly specified. Use $makefile_name as file name
68918         instead of Makefile.am. Adjust the recommendations accordingly.
68919
68920 2006-08-28  Bruno Haible  <bruno@clisp.org>
68921
68922         * gnulib-tool (func_verify_module): Check against misapplying patch.
68923
68924 2006-08-28  Bruno Haible  <bruno@clisp.org>
68925
68926         * gnulib-tool (func_relativize, func_relconcat): New functions.
68927         Give an error if --local-dir is given with --update.
68928         Remove trailing slashes from $local_gnulib_dir.
68929         (func_import): Store the relativized $local_gnulib_dir in
68930         gnulib-cache.m4, and read it from there if not specified explicitly.
68931
68932 2006-08-28  Bruno Haible  <bruno@clisp.org>
68933
68934         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
68935         is the current directory. Respect also $local_gnulib_dir.
68936
68937 2006-08-28  Bruno Haible  <bruno@clisp.org>
68938             Simon Josefsson  <jas@extundo.com>
68939
68940         BeOS portability.
68941         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
68942
68943 2006-08-27  Jim Meyering  <jim@meyering.net>
68944
68945         * doc/visibility.texi: Remove duplicate word: "pointer".
68946
68947 2006-08-26  Bruno Haible  <bruno@clisp.org>
68948
68949         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
68950         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
68951         (Makefile.am): Create inttypes.h from inttypes_.h.
68952         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
68953
68954         * modules/imaxabs: New file.
68955
68956         * modules/imaxdiv: New file.
68957
68958 2006-08-26  Bruno Haible  <bruno@clisp.org>
68959
68960         * m4/inttypes.m4: New file.
68961         * m4/_inttypes_h.m4: Remove file.
68962         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
68963         PRI_MACROS_BROKEN.
68964         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
68965
68966         * m4/imaxabs.m4: New file.
68967
68968         * m4/imaxdiv.m4: New file.
68969
68970 2006-08-26  Bruno Haible  <bruno@clisp.org>
68971
68972         * lib/inttypes_.h: New file.
68973         * lib/inttypes.h: Remove file.
68974         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
68975
68976         * lib/imaxabs.c: New file.
68977
68978         * lib/imaxdiv.c: New file.
68979
68980 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
68981
68982         New config-h module, so that "make" output needn't be cluttered
68983         by -DHAVE_CONFIG_H.
68984         * MODULES.html.sh (Support for building libraries and executables):
68985         Add config-h.
68986         * modules/config-h: New file.
68987         * gnulib-tool (nl, sed_transform_lib_file): New vars.
68988         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
68989         the config-h module is used.
68990
68991         New configmake module, so that "make" output needn't be cluttered
68992         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
68993         * MODULES.html.sh (Support for building libraries and executables):
68994         Add configmake.
68995         * modules/configmake: New file.
68996
68997 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
68998
68999         * m4/config-h.m4: New file.
69000
69001 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
69002
69003         * config/srclist.txt: Add elisp-comp.
69004
69005 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
69006
69007         * MODULES.html.sh (Support for building libraries and executables):
69008         Add elisp-comp.
69009         * build-aux/elisp-comp: New file.
69010         * modules/elisp-comp: New file.
69011
69012 2006-08-24  Bruno Haible  <bruno@clisp.org>
69013
69014         * gnulib-tool (func_create_testdir): Use non-default values of
69015         sourcebase and m4base.
69016
69017 2006-08-24  Bruno Haible  <bruno@clisp.org>
69018
69019         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
69020         HTML structure.
69021
69022 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
69023
69024         * modules/openat (Depends-on): Add lchown.
69025
69026 2006-08-23  Bruno Haible  <bruno@clisp.org>
69027
69028         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
69029         of gl_LOCK_EARLY instead of gl_LOCK.
69030
69031 2006-08-23  Bruno Haible  <bruno@clisp.org>
69032
69033         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
69034         on OSF/1 to no.
69035         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
69036
69037 2006-08-23  Bruno Haible  <bruno@clisp.org>
69038
69039         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
69040         as unusable.
69041
69042         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
69043         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
69044         (gl_LOCK): New macro.
69045
69046 2006-08-22  Simon Josefsson  <jas@extundo.com>
69047
69048         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
69049         to md5 module.
69050
69051 2006-08-22  Simon Josefsson  <jas@extundo.com>
69052
69053         * MODULES.html.sh: Add "Support for maintaining and release
69054         projects".
69055
69056         * build-aux/gnupload: New file, from coreutils.
69057
69058 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
69059
69060         Avoid the need for AC_LIBSOURCES in m4 macros.
69061         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
69062         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
69063         * modules/check-version (EXTRA_DIST): Add check-version.h.
69064         * modules/crc (EXTRA_DIST): Add crc.h.
69065         * modules/des (EXTRA_DIST): Add des.h.
69066         * modules/gc (EXTRA_DIST): Add gc.h.
69067         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
69068         * modules/getline (EXTRA_DIST): Add getline.h.
69069         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
69070         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
69071         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
69072         * modules/md2 (EXTRA_DIST): Add md2.h.
69073         * modules/md4 (EXTRA_DIST): Add md4.h.
69074         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
69075         * modules/read-file (EXTRA_DIST): Add read-file.h.
69076         * modules/readline (EXTRA_DIST): Add readline.h.
69077         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
69078         rijndael-api-fst.h.
69079
69080 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
69081
69082         * m4/rijndael.m4 (gl_ARCFOUR):
69083         * m4/arctwo.m4 (gl_ARCTWO):
69084         * m4/check-version.m4 (gl_CHECK_VERSION):
69085         * m4/crc.m4 (gl_CRC):
69086         * m4/des.m4 (gl_DES):
69087         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
69088         * m4/gc.m4 (gl_GC):
69089         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
69090         * m4/getline.m4 (gl_FUNC_GETLINE):
69091         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
69092         * m4/hmac-md5.m4 (gl_HMAC_MD5):
69093         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
69094         * m4/md2.m4 (gl_MD2):
69095         * m4/md4.m4 (gl_MD4):
69096         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
69097         * m4/read-file.m4 (gl_FUNC_READ_FILE):
69098         * m4/readline.m4 (gl_FUNC_READLINE):
69099         * m4/rijndael.m4 (gl_RIJNDAEL):
69100         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
69101         to get the necessary .h files and whatnot.
69102
69103 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
69104
69105         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
69106         gnulib rather than the other way around.
69107         * config/srclistvars.sh (COREUTILS): Remove.
69108
69109 2006-08-22  Jim Meyering  <jim@meyering.net>
69110
69111         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
69112
69113         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
69114
69115 2006-08-22  Eric Blake  <ebb9@byu.net>
69116
69117         * modules/regexprops-generic: New file.
69118         * MODULES.html.sh (Support for building documentation): List it.
69119
69120 2006-08-22  Eric Blake  <ebb9@byu.net>
69121
69122         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
69123         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
69124         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
69125         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
69126
69127 2006-08-22  Bruno Haible  <bruno@clisp.org>
69128
69129         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
69130         and lib_LTLIBRARIES like the other lib_* variables.
69131
69132 2006-08-22  Bruno Haible  <bruno@clisp.org>
69133
69134         * build-aux/x-to-1.in: New file, from GNU gettext.
69135
69136 2006-08-22  Bruno Haible  <bruno@clisp.org>
69137
69138         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
69139         <utmpx.h> exists.
69140
69141 2006-08-22  Bruno Haible  <bruno@clisp.org>
69142
69143         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
69144         <utmpx.h> exists.
69145
69146 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
69147
69148         BeOS portability.
69149         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
69150         exist.
69151         Problem reported by Bruno Haible.
69152
69153 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
69154
69155         Avoid the need for AC_LIBSOURCES in m4 macros.
69156         * modules/acl (EXTRA_DIST): Add acl.h.
69157         * modules/argmatch (Files): Add m4/argmatch.m4.
69158         (configure.ac): Add gl_ARGMATCH.
69159         (EXTRA_DIST): Renamed from lib_SOURCES, for
69160         consistency with the other modules.  Remove argmatch.c.
69161         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
69162         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
69163         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
69164         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
69165         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
69166         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
69167         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
69168         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
69169         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
69170         * modules/closeout (EXTRA_DIST): Add closeout.h.
69171         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
69172         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
69173         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
69174         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
69175         dirname.h; remove basename.c and stripslash.c.
69176         * modules/exclude (EXTRA_DIST): Add exclude.h.
69177         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
69178         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
69179         * modules/file-type (EXTRA_DIST): Add file-type.h.
69180         * modules/filemode (EXTRA_DIST): Add filemode.h.
69181         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
69182         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
69183         * modules/fpending (EXTRA_DIST): Add __fpending.h.
69184         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
69185         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
69186         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
69187         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
69188         * modules/getdate (EXTRA_DIST): Add getdate.c.
69189         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
69190         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
69191         * modules/getpass (EXTRA_DIST): Add getpass.h.
69192         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
69193         * modules/group-member (EXTRA_DIST): Add group-member.h.
69194         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
69195         * modules/hash (EXTRA_DIST): Add hash.h.
69196         * modules/human (EXTRA_DIST): Add human.h.
69197         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
69198         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
69199         * modules/lchown (EXTRA_DIST): Add lchown.h.
69200         * modules/long-options (EXTRA_DIST): Add long-options.h.
69201         * modules/lstat (EXTRA_DIST): Add lstat.h.
69202         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
69203         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
69204         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
69205         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
69206         * modules/memxor (EXTRA_DIST): Add memxor.h.
69207         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
69208         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
69209         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
69210         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
69211         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
69212         * modules/physmem (EXTRA_DIST): Add physmem.h.
69213         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
69214         * modules/posixver (EXTRA_DIST): Add posixver.h.
69215         * modules/quote (EXTRA_DIST): Add quote.h.
69216         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
69217         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
69218         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
69219         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
69220         regex_internal.h regexec.c.
69221         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
69222         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
69223         * modules/same (EXTRA_DIST): Add same.h.
69224         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
69225         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
69226         * modules/savedir (EXTRA_DIST): Add savedir.h.
69227         * modules/sha1 (EXTRA_DIST): Add sha1.h.
69228         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
69229         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
69230         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
69231         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
69232         * modules/strdup (EXTRA_DIST): Add strdup.h.
69233         * modules/strftime (EXTRA_DIST): Add strftime.h.
69234         * modules/strndup (EXTRA_DIST): Add strndup.h.
69235         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
69236         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
69237         * modules/time_r (EXTRA_DIST): Add time_r.h.
69238         * modules/timespec (EXTRA_DIST): Add timespec.h.
69239         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
69240         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
69241         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
69242         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
69243         * modules/userspec (EXTRA_DIST): Add userspec.h.
69244         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
69245         * modules/utimens (EXTRA_DIST): Add utimens.h.
69246         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
69247         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
69248         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
69249         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
69250         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
69251         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
69252         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
69253         * modules/yesno (EXTRA_DIST): Add yesno.h.
69254
69255 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
69256
69257         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
69258
69259         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
69260         * m4/dev-ino.m4, same-inode.m4: Remove.
69261
69262         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
69263         * m4/acl.m4 (AC_FUNC_ACL):
69264         * m4/backupfile.m4 (gl_BACKUPFILE):
69265         * m4/c-strtod.m4 (gl_C99_STRTOLD):
69266         * m4/canon-host.m4 (gl_CANON_HOST):
69267         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
69268         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
69269         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
69270         * m4/cloexec.m4 (gl_CLOEXEC):
69271         * m4/close-stream.m4 (gl_CLOSE_STREAM):
69272         * m4/closeout.m4 (gl_CLOSEOUT):
69273         * m4/dirfd.m4 (gl_FUNC_DIRFD):
69274         * m4/dirname.m4 (gl_DIRNAME):
69275         * m4/exclude.m4 (gl_EXCLUDE):
69276         * m4/exitfail.m4 (gl_EXITFAIL):
69277         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
69278         * m4/file-type.m4 (gl_FILE_TYPE):
69279         * m4/filemode.m4 (gl_FILEMODE):
69280         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
69281         * m4/fpending.m4 (gl_FUNC_FPENDING):
69282         * m4/fprintftime.m4 (gl_FPRINTFTIME):
69283         * m4/fts.m4 (gl_FUNC_FTS):
69284         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
69285         * m4/getdate.m4 (gl_GETDATE):
69286         * m4/gethrxtime.m4 (gl_GETHRXTIME):
69287         * m4/getpagesize.m4 (gl_GETPAGESIZE):
69288         * m4/getpass.m4 (gl_FUNC_GETPASS):
69289         * m4/gettime.m4 (gl_GETTIME):
69290         * m4/getugroups.m4 (gl_GETUGROUPS):
69291         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
69292         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
69293         * m4/hard-locale.m4 (gl_HARD_LOCALE):
69294         * m4/hash.m4 (gl_HASH):
69295         * m4/idcache.m4 (gl_IDCACHE):
69296         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
69297         * m4/lchown.m4 (gl_FUNC_LCHOWN):
69298         * m4/long-options.m4 (gl_LONG_OPTIONS):
69299         * m4/lstat.m4 (gl_FUNC_LSTAT):
69300         * m4/md5.m4 (gl_MD5):
69301         * m4/memcasecmp.m4 (gl_MEMCASECMP):
69302         * m4/memcoll.m4 (gl_MEMCOLL):
69303         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
69304         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
69305         * m4/memxor.m4 (gl_MEMXOR):
69306         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
69307         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
69308         * m4/modechange.m4 (gl_MODECHANGE):
69309         * m4/mountlist.m4 (gl_MOUNTLIST):
69310         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
69311         * m4/openat.m4 (gl_FUNC_OPENAT):
69312         * m4/pathmax.m4 (gl_PATHMAX):
69313         * m4/physmem.m4 (gl_PHYSMEM):
69314         * m4/posixtm.m4 (gl_POSIXTM):
69315         * m4/posixver.m4 (gl_POSIXVER):
69316         * m4/quote.m4 (gl_QUOTE):
69317         * m4/quotearg.m4 (gl_QUOTEARG):
69318         * m4/readtokens.m4 (gl_READTOKENS):
69319         * m4/readutmp.m4 (gl_READUTMP):
69320         * m4/regex.m4 (gl_REGEX):
69321         * m4/safe-read.m4 (gl_SAFE_READ):
69322         * m4/safe-write.m4 (gl_SAFE_WRITE):
69323         * m4/same.m4 (gl_SAME):
69324         * m4/save-cwd.m4 (gl_SAVE_CWD):
69325         * m4/savedir.m4 (gl_SAVEDIR):
69326         * m4/settime.m4 (gl_SETTIME):
69327         * m4/sha1.m4 (gl_SHA1):
69328         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
69329         * m4/stat-macros.m4 (gl_STAT_MACROS):
69330         * m4/stat-time.m4 (gl_STAT_TIME):
69331         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
69332         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
69333         * m4/strdup.m4 (gl_FUNC_STRDUP):
69334         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
69335         * m4/strndup.m4 (gl_FUNC_STRNDUP):
69336         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
69337         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
69338         * m4/time_r.m4 (gl_TIME_R):
69339         * m4/timespec.m4 (gl_TIMESPEC):
69340         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
69341         * m4/unlinkdir.m4 (gl_UNLINKDIR):
69342         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
69343         * m4/userspec.m4 (gl_USERSPEC):
69344         * m4/utimecmp.m4 (gl_UTIMECMP):
69345         * m4/utimens.m4 (gl_UTIMENS):
69346         * m4/xalloc.m4 (gl_XALLOC):
69347         * m4/xgetcwd.m4 (gl_XGETCWD):
69348         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
69349         * m4/xreadlink.m4 (gl_XREADLINK):
69350         * m4/xstrtod.m4 (gl_XSTRTOD):
69351         * m4/yesno.m4 (gl_YESNO):
69352         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
69353         to get the necessary .h files and whatnot.
69354
69355 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
69356             Bruno Haible  <bruno@clisp.org>
69357
69358         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
69359         /bin/sh understanding of '!' conditional negation.
69360
69361 2006-08-21  Jim Meyering  <jim@meyering.net>
69362
69363         * modules/openat (Depends-on): Really alphabetize.
69364
69365         * modules/acl (Depends-on): Add error and quote.
69366
69367         * check-module (find_included_lib_files): Add at-func.c to the
69368         ok-to-include-more-than-once white list.
69369
69370         * modules/openat (Depends-on): Add lstat.  Alphabetize.
69371
69372 2006-08-21  Bruno Haible  <bruno@clisp.org>
69373
69374         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
69375         Emit a pkgdata_DATA variable only if some snippets add contents to it.
69376         Reported by Martin Lambers <marlam@marlam.de>.
69377
69378 2006-08-21  Bruno Haible  <bruno@clisp.org>
69379
69380         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
69381         specify an installation location, don't emit a noinst_LIBRARIES or
69382         noinst_LTLIBRARIES assignment.
69383
69384 2006-08-21  Bruno Haible  <bruno@clisp.org>
69385
69386         BeOS portability.
69387         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
69388         BeOS has mbrtowc() but no <wctype.h>.
69389
69390 2006-08-21  Bruno Haible  <bruno@clisp.org>
69391
69392         BeOS portability.
69393         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
69394         exist.
69395
69396 2006-08-21  Bruno Haible  <bruno@clisp.org>
69397
69398         BeOS portability.
69399         * lib/mbchar.h: Include <wctype.h> only if it exists.
69400
69401 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
69402
69403         Remove files that are no longer needed by their respective modules.
69404         * m4/obstack.m4: Remove.
69405         * m4/strerror_r.m4: Remove.
69406         * m4/uint32_t.m4: Remove.
69407         * m4/uintptr_t.m4: Remove.
69408         * m4/ullong_max.m4: Remove.
69409         * m4/xstrtoimax.m4: Remove.
69410         * m4/xstrtoumax.m4: Remove.
69411
69412         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
69413         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
69414         dependencies now capture this.
69415
69416         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
69417         Do not use AC_LIBSOURCES, since gnulib modules now do this.
69418         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
69419         * m4/human.m4 (gl_HUMAN): Likewise.
69420         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
69421         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
69422
69423         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
69424
69425         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
69426         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
69427         stdint.
69428         * m4/human.m4 (gl_HUMAN): Likewise.
69429         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
69430         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
69431         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
69432         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
69433         * m4/xstrtol (gl_XSTRTOL): Likewise.
69434
69435         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
69436         AC_TYPE_LONG_LONG_INT.
69437         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
69438         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
69439         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
69440         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
69441
69442         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
69443         on stdbool.
69444
69445         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
69446         (gl_PREREQ_XSTRTOUL): Remove.
69447
69448         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
69449
69450         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
69451         mode.
69452
69453 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
69454
69455         Add and change modules to make it easier for coreutils to use
69456         gnulib-tool.
69457         * modules/backupfile (Files): Remove m4/d-ino.m4.
69458         (Depends-on): Add d-ino.
69459         * modules/cycle-check (Depends-on): Add stdint.
69460         (lib_SOURCES): Add cycle-check.h.
69461         * modules/d-ino: New module.
69462         * modules/d-type: New module.
69463         * modules/error (Files): Remove m4/strerror_r.m4.
69464         * modules/filemode (Files): Add m4/st_dm_mode.m4.
69465         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
69466         m4/inttypes_h.m4, m4/uintmax_t.m4.
69467         (Depends-on): Add stdint.
69468         (lib_SOURCES): Add fsusage.h.
69469         * modules/getcwd (Files): Remove d-ino.m4.
69470         (Depends-on): Add d-ino.
69471         * modules/getndelim2 (Depends-on): Add stdint.
69472         * modules/glob (Files): Remove m4/d-type.m4.
69473         (Depends-on): Add d-type.
69474         * modules/host-os: New module.
69475         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
69476         m4/inttypes_h.m4, m4/uintmax_t.m4.
69477         * Depends-on: Add stdint.
69478         (lib_SOURCES): Add human.h.
69479         * modules/inttostr (Files): Remove m4/intmax_t.m4,
69480         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
69481         m4/uintmax_t.m4, m4/ulonglong.m4.
69482         (Depends-on): Add stdint.
69483         (EXTRA_DIST): Add inttostr.h.
69484         * modules/lchmod: New module.
69485         * modules/link-follow: New module.
69486         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
69487         (Depends-on): Add lchmod.
69488         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
69489         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
69490         (Depends-on): Add stdint.
69491         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
69492         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
69493         (Depends-on): Add stdint.
69494         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
69495         * modules/perl: New module.
69496         * modules/regex (Depends-on): Add stdint.
69497         * modules/rmdir-errno: New module.
69498         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
69499         m4/intmax_t.m4.
69500         (Depends-on): Add stdint.
69501         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
69502         m4/uintmax_t.m4.
69503         (Depends-on): Add stdint.
69504         * modules/unlink-busy: New module.
69505         * modules/utimecmp (Depends-on): Add stdint.
69506         * modules/uptime: New module.
69507         * modules/winsz-ioctl: New module.
69508         * modules/winsz-termios: New module.
69509         * modules/xnanosleep (Depends-on): Add nanosleep.
69510         * modules/ullong_max: Remove.
69511         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
69512         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
69513         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
69514         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
69515         (Depends-on): Add inttypes.
69516         (lib_SOURCES): Add xstrtol.h.
69517         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
69518         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
69519         * MODULES.html.sh: Move 'assert' into the assert section.
69520         Move 'dummy' into the linking section.
69521         Remove ullong_max.
69522         Add section for compatibility checks for POSIX:2001 functions,
69523         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
69524         winsz-ioctl, and winsz-termios into it.
69525         Add lchmod.
69526         Add top-level Misc section and put host-os, perl, and uptime
69527         into it.
69528
69529 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
69530
69531         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
69532         now assume the stdint module.  Do not include inttypes.h.
69533         * lib/fsusage.h: Likewise.
69534         * lib/getndelim2.c: Likewise.
69535         * lib/human.h: Likewise.
69536         * lib/inttostr.h: Likewise.
69537         * lib/obstack.c: Likewise.
69538         * lib/regex_internal.h: Likewise.
69539         * lib/tempname.c: Likewise.
69540         * lib/utimecmp.c: Likewise.
69541         * lib/xstrtol.h: Likewise.
69542
69543         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
69544
69545         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
69546         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
69547         * lib/xtime.h: Likewise.
69548
69549 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
69550
69551         * modules/openat (Files): Add lib/fchmodat.c.
69552         Fixes problem reported by Jay Youngman.
69553
69554 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
69555
69556         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
69557         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
69558
69559 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
69560             Bruno Haible  <bruno@clisp.org>
69561
69562         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
69563         and is a script that invokes bison. Tighten the code. Add comments.
69564
69565 2006-08-18  Jim Meyering  <jim@meyering.net>
69566
69567         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
69568         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
69569         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
69570         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
69571
69572 2006-08-18  Bruno Haible  <bruno@clisp.org>
69573
69574         * modules/bison-i18n: New file.
69575         * MODULES.html.sh (Internationalization functions): Add it.
69576
69577 2006-08-18  Bruno Haible  <bruno@clisp.org>
69578
69579         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
69580         sys/statvfs.h. When getmntinfo was found, check its declaration and
69581         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
69582
69583 2006-08-18  Bruno Haible  <bruno@clisp.org>
69584
69585         * m4/bison-i18n.m4: New file, from bison.
69586
69587 2006-08-18  Bruno Haible  <bruno@clisp.org>
69588
69589         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
69590         (ME_DUMMY): Treat "kernfs" as a dummy.
69591         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
69592
69593 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
69594
69595         Update from coreutils.
69596
69597         2006-08-15  Jim Meyering  <jim@meyering.net>
69598
69599         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
69600
69601         2006-01-17  Jim Meyering  <jim@meyering.net>
69602
69603         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
69604
69605         2006-01-11  Jim Meyering  <jim@meyering.net>
69606
69607         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
69608         Check for the lchmod function.
69609
69610 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
69611
69612         Update from coreutils.
69613
69614         * lib/__fpending.h: Add copyright notice.
69615         * lib/fprintftime.h: Likewise.
69616         * lib/savedir.c: Use (C) in copyright notice.
69617         * lib/savedir.h: Likewise.
69618
69619         2006-08-15  Jim Meyering  <jim@meyering.net>
69620
69621         * lib/at-func.c: New file, with the logic of all emulated at-functions.
69622         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
69623         in support of the EXPECTED_ERRNO macro.
69624         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
69625         definitions.  Instead, define the appropriate symbols and include
69626         "at-func.c".
69627         * lib/mkdirat.c (mkdirat): Likewise.
69628         * lib/fchmodat.c (fchmodat): Likewise.
69629         (ENOSYS): Remove definition.
69630         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
69631         it.  Don't include "unistd--.h" -- it wasn't ever used.
69632
69633         2006-01-17  Jim Meyering  <jim@meyering.net>
69634
69635         Rewrite fts.c not to change the current working directory,
69636         by using openat, fstatat, fdopendir, etc..
69637
69638         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
69639         (HAVE_OPENAT_SUPPORT): Define.
69640         [_LIBC] (fchdir): Don't undef or define; no longer used.
69641         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
69642         Now, this `function' always succeeds, and consumes its file descriptor
69643         parameter -- so callers must not close such FDs.  Update callers.
69644         (diropen_fd, opendirat, cwd_advance_fd): New functions.
69645         (diropen): Add parameter, SP.  Adjust all callers.
69646         Implement using diropen_fd, rather than open.
69647         (fts_open): Initialize new member, fts_cwd_fd.
69648         Remove fts_rft-setting code.
69649         (fts_close): Close fts_cwd_fd, if necessary.
69650         (__opendir2): Define in terms of opendir or opendirat,
69651         depending on whether the FST_NOCHDIR flag is set.
69652         (fts_build): Since fts_safe_changedir consumes its FD, and since
69653         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
69654         and close the dup'd file descriptor upon failure.
69655         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
69656         (fts_safe_changedir): Tweak semantics to reflect that this function
69657         now calls cwd_advance_fd and hence consumes its FD argument.
69658         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
69659         [struct FTS] (fts_rft): Remove now-unused member.
69660         [struct FTS] (fts_cycle.state): Improve comment.
69661
69662         * lib/openat.c (openat_needs_fchdir): New function.
69663         * lib/openat.h (openat_needs_fchdir): Declare it.
69664
69665 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
69666
69667         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
69668         Problem and fix reported by Pádraig Brady in
69669         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
69670
69671 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
69672
69673         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
69674
69675 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
69676
69677         * lib/memcoll.c (memcoll): Optimize for the common case where the
69678         arguments are bytewise equal.
69679
69680 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
69681
69682         * doc/regexprops-generic.texi: Add a copyright notice.
69683
69684 2006-08-15  Bruno Haible  <bruno@clisp.org>
69685
69686         * modules/tmpdir (License): Change to LGPL.
69687
69688 2006-08-15  Bruno Haible  <bruno@clisp.org>
69689
69690         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
69691         module.
69692
69693 2006-08-14  Simon Josefsson  <jas@extundo.com>
69694
69695         * config/srclist.txt: Add gnupload.
69696
69697 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
69698
69699         Change copyright notice from LGPL 2 to GPL 2, since that's the
69700         standard form used in the gnulib repository.
69701         * tests/test-lock.c: Likewise.
69702         * tests/test-stdint.c: Likewise.
69703         * tests/test-tls.c: Likewise.
69704
69705         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
69706         prelude-manager.  User shorter URLs for GNU projects, without '?'.
69707         Add copyright notice.
69708
69709         * check-module: Add copyright notice.  Output a copyright
69710         notice if "--version" is specified.
69711         * modules/COPYING: New file.
69712         * tests/test-getaddrinfo.c: Add copyright notice.
69713         * tests/test-verify.c: Likewise.
69714
69715 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
69716
69717         Change copyright notice from LGPL 2 to GPL 2, since that's the
69718         standard form used in the gnulib repository.
69719         * lib/lock.c: LGPL -> GPL.
69720         * lib/lock.h: Likewise.
69721         * lib/strnlen1.c: Likewise.
69722         * lib/strnlen1.h: Likewise.
69723         * lib/tls.c: Likewise.
69724         * lib/tls.h: Likewise.
69725         * lib/tmpdir.c: Likewise.
69726
69727         * lib/TODO: Remove; this belongs only in coreutils.
69728
69729 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
69730
69731         Add copyright notices to long-enough files that lack them, since
69732         otherwise the files aren't clearly free.  Use the same notice that
69733         getdate.texi already uses.
69734         * doc/alloca-opt.texi: Add copyright notice.
69735         * doc/alloca.texi: Likewise.
69736         * doc/ctime.texi: Likewise.
69737         * doc/functions.texi: Likewise.
69738         * doc/gcd.texi: Likewise.
69739         * doc/gnulib-tool.texi: Likewise.
69740         * doc/inet_ntoa.texi: Likewise.
69741         * doc/visibility.texi: Likewise.
69742
69743         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
69744         * doc/quote.texi: Add copyright notice.
69745
69746         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
69747         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
69748         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
69749         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
69750         is now obsolete, and give a pointer to the Sun list.
69751         Add copyright notice.
69752
69753 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
69754
69755         * config/srclistvars.sh: Add copyright notice.
69756
69757 2006-08-14  Eric Blake  <ebb9@byu.net>
69758
69759         Import the following change from libc:
69760
69761         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
69762
69763         Upstream bug 2997.
69764         * lib/misc/error.c: Add space between program name and message if file
69765         name is missing.
69766
69767 2006-08-12  Karl Berry  <karl@gnu.org>
69768
69769         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
69770         remove, these originate in gnulib now.
69771
69772 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69773
69774         * doc/Makefile (standards.info standards.html standards.dvi):
69775         Also depend on make-stds.texi.
69776
69777 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
69778
69779         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
69780         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
69781
69782         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
69783         in wchar_t.  Problem reported by Eric Blake.
69784
69785         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
69786         LEN is smaller than SIZE.  Suggested by Bruno Haible.
69787         Also, help the compiler to keep LEN in a register.
69788
69789 2006-08-11  Eric Blake  <ebb9@byu.net>
69790
69791         * users.txt: Sort.  Add tar.
69792
69793 2006-08-11  Bruno Haible  <bruno@clisp.org>
69794
69795         * users.txt: New file.
69796
69797 2006-08-11  Bruno Haible  <bruno@clisp.org>
69798
69799         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
69800         before <wchar.h>. Needed for OSF/1 and BSD/OS.
69801
69802 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
69803
69804         * modules/snprintf (Depends-on): Remove minmax.
69805         (Maintainer): Add self and Bruno.
69806
69807 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
69808
69809         * lib/.cppi-disable: Add snprintf.h, socket_.h.
69810         * lib/snprintf.c: Include <errno.h> and <limits.h>.
69811         (EOVERFLOW): Define if the system does not.
69812         Do not include "minmax.h"; it wasn't used.
69813         (snprintf): Don't assume size_t promotes to an unsigned type.
69814         Fix bug when generated string was too long for the buffer: the
69815         buffer's contents are supposed to be the initial prefix of the
69816         output.  Don't assume vasnprintf returns EOVERFLOW if the size
69817         exceeds INT_MAX; do the check ourselves.
69818
69819         Import the following changes from libc:
69820
69821         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
69822
69823         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
69824         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
69825         set wc to the byte which couldn't be converted.
69826         (re_string_reconstruct): Don't clear valid_raw_len before calling
69827         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
69828         tip_context using re_string_context_at.
69829
69830         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
69831
69832         * lib/posix/regex.h: g++ still cannot handled [restrict].
69833
69834         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
69835
69836         * lib/posix/regex.h: Remove special handling for VMS.
69837
69838 2006-08-10  Jim Meyering  <jim@meyering.net>
69839
69840         * modules/same-inode: New module.
69841         * modules/dev-ino: New module.
69842         * modules/cycle-check: Depend on these modules, rather than simply
69843         including their .h files.
69844         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
69845         required via m4/cycle-check.m4.
69846         * modules/same: Depend on new same-inode module, rather than
69847         including same-inode.h.
69848         * modules/chdir-safer: New file.
69849
69850         * modules/chown (Depends-on): Add stat-macros.
69851
69852 2006-08-10  Jim Meyering  <jim@meyering.net>
69853
69854         * m4/cycle-check.m4: New file.
69855         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
69856         * m4/dev-ino.m4, m4/same-inode.m4: New files.
69857
69858 2006-08-10  Eric Blake  <ebb9@byu.net>
69859
69860         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
69861         in from original proposal.
69862
69863 2006-08-10  Eric Blake  <ebb9@byu.net>
69864         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
69865
69866         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
69867         namespace.
69868
69869 2006-08-10  Bruno Haible  <bruno@clisp.org>
69870
69871         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
69872         as well.
69873
69874 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
69875
69876         Sync from coreutils.
69877
69878         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
69879
69880         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
69881         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
69882
69883 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
69884
69885         * modules/restrict: Remove; no longer needed now that we assume
69886         Autoconf 2.59 or later.
69887         * MODULES.html.sh: Remove 'restrict'.
69888         * modules/argp (Depends-on): Remove 'restrict'.
69889         * modules/base64 (Depends-on): Likewise.
69890         * modules/gc (Depends-on): Likewise.
69891         * modules/getaddrinfo (Depends-on): Likewise.
69892         * modules/glob (Depends-on): Likewise.
69893         * modules/inet_ntop (Depends-on): Likewise.
69894         * modules/inet_pton (Depends-on): Likewise.
69895         * modules/memxor (Depends-on): Likewise.
69896         * modules/regex (Depends-on): Likewise.
69897         * modules/strtok_r (Depends-on): Likewise.
69898         * modules/time_r (Depends-on): Likewise.
69899
69900 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
69901
69902         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
69903         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
69904         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
69905         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
69906         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
69907         * m4/memxor.m4 (gl_MEMXOR): Likewise.
69908         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
69909         gl_C_RESTRICT replaced by AC_C_RESTRICT.
69910
69911         Merge from coreutils.
69912         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
69913         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
69914         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
69915         * m4/time_r.m4 (gl_TIME_R): Likewise.
69916
69917 2006-08-09  Karl Berry  <karl@gnu.org>
69918
69919         * config/srclist.txt: no more gettext-tools, per Bruno.
69920
69921 2006-08-08  Eric Blake  <ebb9@byu.net>
69922
69923         * modules/verror: New module.
69924         * MODULES.html.sh: Document it.
69925
69926 2006-08-08  Eric Blake  <ebb9@byu.net>
69927
69928         * lib/verror.h, lib/verror.c: New files.
69929
69930 2006-08-08  Eric Blake  <ebb9@byu.net>
69931
69932         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
69933         verror_at_line output complies with GNU Coding Standards even when
69934         file is NULL.
69935
69936 2006-08-07  Bruno Haible  <bruno@clisp.org>
69937
69938         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
69939         versions of AIX.
69940         Reported by Ralf Wildenhues.
69941
69942 2006-08-07  Bruno Haible  <bruno@clisp.org>
69943
69944         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
69945         in an AC_DEFUN. Needed so that the autoconf snippets can use
69946         AC_REQUIRE.
69947
69948 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69949
69950         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
69951         Initialize pkgdata_DATA.
69952         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
69953         overriding it.
69954
69955 2006-08-06  Eric Blake  <ebb9@byu.net>
69956
69957         * lib/error.h: Fold in some upstream changes from glibc.
69958         * lib/error.c: Likewise.
69959
69960 2006-08-04  Bruno Haible  <bruno@clisp.org>
69961
69962         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
69963         Make the mostlyclean-local rule depend on mostlyclean-generic.
69964         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
69965
69966 2006-07-31  Bruno Haible  <bruno@clisp.org>
69967
69968         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
69969         <stdlib.h>, <string.h>.
69970
69971 2006-07-30  Bruno Haible  <bruno@clisp.org>
69972
69973         * modules/readlink (License): Change to LGPL.
69974
69975 2006-07-30  Bruno Haible  <bruno@clisp.org>
69976
69977         * modules/javaversion (Makefile.am): Distribute javaversion.java and
69978         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
69979         set PKGDATADIR to point to it.
69980
69981 2006-07-30  Bruno Haible  <bruno@clisp.org>
69982
69983         * modules/csharpexec (configure.ac): Comment out macro invocation.
69984         * modules/javaexec (configure.ac): Likewise.
69985         * modules/javacomp-script (configure.ac): Likewise.
69986
69987         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
69988
69989 2006-07-30  Bruno Haible  <bruno@clisp.org>
69990
69991         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
69992         linked-list.
69993
69994 2006-07-30  Bruno Haible  <bruno@clisp.org>
69995
69996         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
69997
69998 2006-07-30  Bruno Haible  <bruno@clisp.org>
69999
70000         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
70001         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
70002         get removed.
70003
70004 2006-07-29  Bruno Haible  <bruno@clisp.org>
70005
70006         Make it possible for gnulib-tool to work with locally modified or
70007         augmented gnulib repositories.
70008         * gnulib-tool (func_usage): Document --local-dir option.
70009         (local_gnulib_dir): New variable.
70010         Handle --local-dir option.
70011         (func_lookup_file): New function.
70012         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
70013         (func_get_description, func_get_filelist, func_get_description,
70014         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
70015         func_get_automake_snippet, func_get_include_directive,
70016         func_get_license, func_get_maintainer): Use func_lookup_file.
70017         (func_import, func_create_testdir): Use func_lookup_file.
70018
70019 2006-07-29  Bruno Haible  <bruno@clisp.org>
70020
70021         * modules/setenv (Depends-on): Add unistd.
70022
70023 2006-07-29  Bruno Haible  <bruno@clisp.org>
70024
70025         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
70026
70027 2006-07-29  Bruno Haible  <bruno@clisp.org>
70028
70029         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
70030
70031 2006-07-29  Bruno Haible  <bruno@clisp.org>
70032
70033         * gnulib-tool (import, update): If there is no Makefile.am, look at
70034         aclocal.m4, instead of bailing out.
70035
70036 2006-07-29  Bruno Haible  <bruno@clisp.org>
70037
70038         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
70039         Categorize the options by when they are useful.
70040
70041 2006-07-29  Bruno Haible  <bruno@clisp.org>
70042
70043         * gnulib-tool (func_usage): Document option --no-libtool.
70044         Handle option --no-libtool.
70045         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
70046         for changed semantics of $libtool variable.
70047         (func_import): Likewise. If libtool is not used, show this through
70048         an option --no-libtool.
70049         (func_create_testdir): Update.
70050
70051 2006-07-29  Bruno Haible  <bruno@clisp.org>
70052
70053         * gnulib-tool (func_import): Extend error message about missing
70054         --doc-base.
70055
70056 2006-07-29  Bruno Haible  <bruno@clisp.org>
70057
70058         * gnulib-tool (func_import): Don't create the $docbase directory if
70059         there is no file to store there.
70060
70061 2006-07-29  Bruno Haible  <bruno@clisp.org>
70062
70063         * gnulib-tool (autoconf_minversion): If a --dir option is given and
70064         relevant, look for configure.ac there, not in the current directory.
70065         Also use a simple search for AC_PREREQ, not "autoconf --trace".
70066
70067 2006-07-29  Bruno Haible  <bruno@clisp.org>
70068
70069         * gnulib-tool (SORT): New variable.
70070         (func_usage): Undocument --assume-autoconf option.
70071         Remove --assume-autoconf option handling.
70072         (autoconf_minversion): Determine from the contents of configure.ac.
70073         (func_import): Remove autoconf_minversion handling.
70074         Suggested by Eric Blake.
70075
70076 2006-07-29  Bruno Haible  <bruno@clisp.org>
70077
70078         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
70079
70080 2006-07-29  Bruno Haible  <bruno@clisp.org>
70081
70082         * config/srclist.txt (*setenv.[ch]): Remove rules.
70083
70084 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
70085
70086         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
70087
70088 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
70089
70090         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
70091         arpa/inet.h.
70092
70093 2006-07-28  Simon Josefsson  <jas@extundo.com>
70094
70095         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
70096         * modules/inet_pton (Depends-on): Likewise.
70097
70098 2006-07-28  Simon Josefsson  <jas@extundo.com>
70099
70100         * m4/netinet_in_h.m4: New file.
70101
70102 2006-07-28  Simon Josefsson  <jas@extundo.com>
70103
70104         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
70105         #include's.
70106
70107 2006-07-28  Simon Josefsson  <jas@extundo.com>
70108
70109         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
70110         #include's.
70111
70112 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
70113
70114         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
70115         setgid on directories only if they set these bits.
70116         * lib/modechange.h: Remove obsolete comment about masks.
70117
70118 2006-07-28  Eric Blake  <ebb9@byu.net>
70119
70120         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
70121         macro expansion.
70122
70123 2006-07-28  Bruno Haible  <bruno@clisp.org>
70124
70125         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
70126
70127 2006-07-28  Bruno Haible  <bruno@clisp.org>
70128
70129         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
70130
70131 2006-07-28  Bruno Haible  <bruno@clisp.org>
70132
70133         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
70134         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
70135         Define fallbacks.
70136         Avoids link error on FreeBSD 4.x.
70137         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
70138
70139         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
70140         encoding.
70141         * lib/mbswidth.c (iswcntrl): Likewise.
70142
70143 2006-07-27  Bruno Haible  <bruno@clisp.org>
70144
70145         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
70146         test.
70147
70148 2006-07-27  Bruno Haible  <bruno@clisp.org>
70149
70150         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
70151         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
70152         defined.
70153
70154 2006-07-26  Eric Blake  <ebb9@byu.net>
70155
70156         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
70157
70158 2006-07-26  Eric Blake  <ebb9@byu.net>
70159
70160         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
70161         like mingw that lack mkstemp.
70162         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
70163         avoid compilation warning on mingw.
70164
70165 2006-07-26  Bruno Haible  <bruno@clisp.org>
70166
70167         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
70168         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
70169         INT_FAST*_MIN, INTPTR_MIN.
70170
70171 2006-07-25  Bruno Haible  <bruno@clisp.org>
70172
70173         * modules/version-etc (Depends-on): Add stdarg.
70174
70175 2006-07-25  Bruno Haible  <bruno@clisp.org>
70176
70177         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
70178         complex commands.
70179
70180 2006-07-25  Bruno Haible  <bruno@clisp.org>
70181
70182         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
70183         defined in <stdarg.h> or config.h.
70184
70185 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
70186
70187         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
70188         (gl_STDIO_SAFER): Remove.
70189
70190 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
70191
70192         * MODULES.html.sh (File stream based Input/Output):
70193         Add fopen-safer, tmpfile-safer; remove stdio-safer.
70194         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
70195         * modules/fopen-safer, modules/tmpfile-safer: New files.
70196         * modules/stdio-safer: Remove.
70197
70198 2006-07-24  Bruno Haible  <bruno@clisp.org>
70199
70200         * modules/tmpdir: New file.
70201         * MODULES.html.sh (File system functions): Add it.
70202
70203 2006-07-24  Bruno Haible  <bruno@clisp.org>
70204
70205         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
70206         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
70207
70208 2006-07-24  Bruno Haible  <bruno@clisp.org>
70209
70210         * modules/clean-temp: New file.
70211
70212 2006-07-24  Bruno Haible  <bruno@clisp.org>
70213
70214         * m4/tmpdir.m4: New file, from GNU gettext.
70215
70216 2006-07-24  Bruno Haible  <bruno@clisp.org>
70217
70218         * lib/tmpdir.h: New file, from GNU gettext.
70219         * lib/tmpdir.c: New file, from GNU gettext.
70220
70221 2006-07-24  Bruno Haible  <bruno@clisp.org>
70222
70223         * lib/clean-temp.h: New file, from GNU gettext.
70224         * lib/clean-temp.c: New file, from GNU gettext.
70225
70226 2006-07-23  Eric Blake  <ebb9@byu.net>
70227
70228         * modules/stdio-safer (Files): Add tmpfile-safer.c.
70229         (Depends-on): Add binary-io.
70230
70231 2006-07-23  Eric Blake  <ebb9@byu.net>
70232
70233         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
70234
70235 2006-07-23  Eric Blake  <ebb9@byu.net>
70236
70237         * lib/tmpfile-safer.c: New file.
70238         * lib/stdio-safer.h (fopen_safer): Add prototype.
70239         * lib/stdio--.h (tmpfile): Make safer.
70240
70241 2006-07-23  Bruno Haible  <bruno@clisp.org>
70242
70243         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
70244         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
70245         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
70246         gl_linked_remove_at): Use it.
70247
70248 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
70249         and Simon Josefsson <jas@extundo.com>
70250
70251         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
70252
70253         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
70254
70255 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
70256
70257         * modules/close-stream: New file.
70258         * modules/closeout (Description): Make it clear that it exits
70259         with a diagnostic on error.
70260         (Depends-on): Add close-stream.  Remove fpending, stdbool.
70261         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
70262
70263 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
70264
70265         * m4/close-stream.m4: New file.
70266
70267 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
70268
70269         * lib/close-stream.c, lib/close-stream.h: New files.
70270
70271 2006-07-22  Bruno Haible  <bruno@clisp.org>
70272
70273         Merge from GNU gettext 0.15.
70274
70275         2006-05-01  Bruno Haible  <bruno@clisp.org>
70276
70277                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
70278
70279         2006-07-22  Bruno Haible  <bruno@clisp.org>
70280
70281                 * modules/javaversion: New file.
70282                 * MODULES.html.sh (Java): Add javaversion.
70283
70284         2006-03-12  Bruno Haible  <bruno@clisp.org>
70285
70286                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
70287
70288         2005-12-04  Bruno Haible  <bruno@clisp.org>
70289
70290                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
70291                 (untested).
70292
70293         2006-06-21  Bruno Haible  <bruno@clisp.org>
70294
70295                 Avoid warnings from recent versions of mcs.
70296                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
70297                 -o, -L, -r any more. Use options documented since mcs-1.0
70298                 instead. Similarly for -g.
70299
70300         2005-12-04  Bruno Haible  <bruno@clisp.org>
70301
70302                 * build-aux/csharpcomp.sh.in: Suffix for resources is
70303                 .resources, not .resource.
70304
70305         2005-07-09  Bruno Haible  <bruno@clisp.org>
70306
70307                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
70308                 add a .dll suffix.
70309                 Reported by Mark Junker <mjscod@gmx.de>.
70310
70311         2006-07-22  Bruno Haible  <bruno@clisp.org>
70312
70313                 * modules/gettext: Upgrade to gettext-0.15.
70314                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
70315                 m4/visibility.m4.
70316                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
70317
70318 2006-07-22  Bruno Haible  <bruno@clisp.org>
70319
70320         Merge from GNU gettext 0.15.
70321
70322         2006-03-25  Bruno Haible  <bruno@clisp.org>
70323
70324                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
70325
70326         2006-07-21  Bruno Haible  <bruno@clisp.org>
70327
70328                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
70329                 "1.1".
70330
70331         2006-05-09  Bruno Haible  <bruno@clisp.org>
70332
70333                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
70334                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
70335                 for the conftestver execution.
70336
70337         2006-05-01  Bruno Haible  <bruno@clisp.org>
70338
70339                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
70340                 optional target-version argument. Verify that the compiler
70341                 groks source of the specified source-version, or add -source
70342                 option as necessary. Verify that the compiler produces
70343                 bytecode in the specified target-version, or add -target and
70344                 -source options as necessary. Make the result of the test
70345                 available as variable CONF_JAVAC. Also log error output in
70346                 config.log.
70347
70348         2006-03-11  Bruno Haible  <bruno@clisp.org>
70349
70350                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
70351
70352         2006-05-09  Bruno Haible  <bruno@clisp.org>
70353
70354                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
70355                 CLASSPATH_SEPARATOR to a semicolon.
70356
70357         2006-03-12  Bruno Haible  <bruno@clisp.org>
70358
70359                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
70360                 available as variable CONF_JAVA, for subsequent autoconf
70361                 tests. Also log error output in config.log.
70362
70363         2006-07-19  Bruno Haible  <bruno@clisp.org>
70364
70365                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
70366                 that getline works on glibc2 systems. Needed to avoid trouble
70367                 in relocatable.c.
70368                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
70369
70370         2005-12-04  Bruno Haible  <bruno@clisp.org>
70371
70372                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
70373                 launcher (untested).
70374
70375         2005-12-04  Bruno Haible  <bruno@clisp.org>
70376
70377                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
70378
70379         2006-07-22  Bruno Haible  <bruno@clisp.org>
70380
70381                 * gettext.m4: Update from GNU gettext-0.15.
70382                 * nls.m4: Likewise.
70383                 * po.m4: Likewise.
70384                 * inttypes-pri.m4: Likewise.
70385                 * inttypes-h.m4: Renamed from inttypes.m4.
70386                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
70387
70388 2006-07-22  Bruno Haible  <bruno@clisp.org>
70389
70390         Merge from GNU gettext 0.15.
70391
70392         2005-07-05  Bruno Haible  <bruno@clisp.org>
70393
70394                 * printf-args.c (printf_fetchargs): Work around broken
70395                 definition of wint_t on mingw.
70396
70397         2005-02-12  Bruno Haible  <bruno@clisp.org>
70398
70399                 * xallocsa.h: Add extern "C" for C++.
70400
70401         2006-05-17  Bruno Haible  <bruno@clisp.org>
70402
70403                 Cygwin portability.
70404                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
70405
70406         2006-04-30  Bruno Haible  <bruno@clisp.org>
70407
70408                 * progreloc.c: Include <mach-o/dyld.h> if available.
70409                 (find_executable): Use _NSGetExecutablePath when possible.
70410
70411         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
70412
70413                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
70414                 function.
70415
70416         2005-12-29  Bruno Haible  <bruno@clisp.org>
70417
70418                 * progreloc.c (set_program_name_and_installdir): Fix
70419                 compilation error.
70420
70421         2005-12-04  Bruno Haible  <bruno@clisp.org>
70422
70423                 Cygwin portability.
70424                 * progreloc.c: Include <windows.h> also on Cygwin.
70425                 (find_executable): Add support for Cygwin.
70426                 (set_program_name_and_installdir): Handle also platforms with
70427                 nonempty EXEEXT.
70428
70429         2006-07-11  Bruno Haible  <bruno@clisp.org>
70430
70431                 * javacomp.c: Fix a comment.
70432                 Reported by Jim Meyering.
70433
70434         2006-04-30  Bruno Haible  <bruno@clisp.org>
70435
70436                 * javacomp.h (compile_java_class): Add source_version,
70437                 target_version arguments.
70438                 * javacomp.c: Rewritten to choose only a compiler that
70439                 respects the specified source_version and target_version.
70440
70441         2006-06-27  Bruno Haible  <bruno@clisp.org>
70442
70443                 Assume correct S_ISDIR macro.
70444                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
70445
70446         2006-07-22  Bruno Haible  <bruno@clisp.org>
70447
70448                 * javaversion.h: New file, from GNU gettext.
70449                 * javaversion.c: New file, from GNU gettext.
70450                 * javaversion.java: New file, from GNU gettext.
70451                 * javaversion.class: New file, from GNU gettext.
70452
70453         2006-05-17  Bruno Haible  <bruno@clisp.org>
70454
70455                 Cygwin portability.
70456                 * javaexec.c (execute_java_class): Test for jview program
70457                 also on Cygwin.
70458
70459         2006-04-09  Bruno Haible  <bruno@clisp.org>
70460
70461                 * fatal-signal.c: Don't include string.h.
70462                 (at_fatal_signal): Use a copying loop instead of memcpy.
70463
70464         2005-12-04  Bruno Haible  <bruno@clisp.org>
70465
70466                 * csharpexec.c: Add support for 'clix' launcher (untested).
70467                 (execute_csharp_using_sscli): New function.
70468                 (execute_csharp_program): Call it.
70469
70470         2006-06-21  Bruno Haible  <bruno@clisp.org>
70471
70472                 Avoid warnings from recent versions of mcs.
70473                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
70474                 -o, -L, -r any more. Use options documented since mcs-1.0
70475                 instead. Similarly for -g.
70476
70477         2005-07-09  Bruno Haible  <bruno@clisp.org>
70478
70479                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
70480                 add a .dll suffix.
70481                 Reported by Mark Junker <mjscod@gmx.de>.
70482
70483         2006-06-17  Bruno Haible  <bruno@clisp.org>
70484
70485                 * config.charset: Update for NetBSD 3.0.
70486
70487         2006-05-17  Bruno Haible  <bruno@clisp.org>
70488
70489                 Cygwin portability.
70490                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
70491
70492         2006-05-16  Bruno Haible  <bruno@clisp.org>
70493
70494                 * localcharset.c [CYGWIN]: Include <windows.h>.
70495                 (get_charset_aliases): For Cygwin, return the same CPxxx
70496                 aliases list as under WIN32.
70497                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
70498                 the environment variables. Fall back to GetACP().
70499
70500         2006-04-05  Bruno Haible  <bruno@clisp.org>
70501
70502                 * config.charset: Update Juan Manuel Guerrero's address.
70503
70504         2005-02-12  Bruno Haible  <bruno@clisp.org>
70505
70506                 * allocsa.h: Add extern "C" for C++.
70507
70508         2005-02-10  Bruno Haible  <bruno@clisp.org>
70509
70510                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
70511                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
70512
70513         2006-07-22  Bruno Haible  <bruno@clisp.org>
70514
70515                 * gettext.h: Update to GNU gettext-0.15.
70516
70517 2006-07-22  Bruno Haible  <bruno@clisp.org>
70518
70519         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
70520         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
70521         lib-prefix.m4, longdouble.m4, ssize_t.m4.
70522
70523 2006-07-21  Eric Blake  <ebb9@byu.net>
70524
70525         * modules/stdlib-safer: New file.
70526         * MODULES.html.sh (File stream based Input/Output): Add
70527         stdlib-safer.
70528
70529 2006-07-21  Eric Blake  <ebb9@byu.net>
70530
70531         * lib/stdlib-safer.h: New file from coreutils, required by
70532         stdlib--.h.
70533
70534 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
70535
70536         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
70537
70538 2006-07-20  Bruno Haible  <bruno@clisp.org>
70539
70540         * gnulib-tool: Recognize new option --assume-autoconf.
70541         (autoconf_minversion): New variable.
70542         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
70543
70544 2006-07-20  Bruno Haible  <bruno@clisp.org>
70545
70546         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
70547
70548 2006-07-19  Derek R. Price  <derek@ximbiot.com>
70549
70550         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
70551         Reindent and repaginate.
70552
70553 2006-07-19  Derek Price  <derek@ximbiot.com>
70554
70555         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
70556         Correct grammar.
70557
70558 2006-07-17  Bruno Haible  <bruno@clisp.org>
70559
70560         * modules/list: New file.
70561         * modules/array-list: New file.
70562         * modules/carray-list, modules/carray-list-tests: New files.
70563         * modules/linked-list, modules/linked-list-tests: New files.
70564         * modules/avltree-list, modules/avltree-list-tests: New files.
70565         * modules/rbtree-list, modules/rbtree-list-tests: New files.
70566         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
70567         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
70568         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
70569         * modules/oset: New file.
70570         * modules/array-oset: New file.
70571         * modules/avltree-oset, modules/avltree-oset-tests: New files.
70572         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
70573         * tests/test-carray_list.c: New file.
70574         * tests/test-linked_list.c: New file.
70575         * tests/test-avltree_list.c: New file.
70576         * tests/test-rbtree_list.c: New file.
70577         * tests/test-linkedhash_list.c: New file.
70578         * tests/test-avltreehash_list.c: New file.
70579         * tests/test-rbtreehash_list.c: New file.
70580         * tests/test-avltree_oset.c: New file.
70581         * tests/test-rbtree_oset.c: New file.
70582         * MODULES.html.sh (Container data structures): New section.
70583
70584 2006-07-17  Bruno Haible  <bruno@clisp.org>
70585
70586         * m4/gl_list.m4: New file.
70587
70588 2006-07-17  Bruno Haible  <bruno@clisp.org>
70589
70590         * lib/gl_list.h: New file.
70591         * lib/gl_list.c: New file.
70592         * lib/gl_array_list.h: New file.
70593         * lib/gl_array_list.c: New file.
70594         * lib/gl_carray_list.h: New file.
70595         * lib/gl_carray_list.c: New file.
70596         * lib/gl_linked_list.h: New file.
70597         * lib/gl_linked_list.c: New file.
70598         * lib/gl_anylinked_list1.h: New file.
70599         * lib/gl_anylinked_list2.h: New file.
70600         * lib/gl_avltree_list.h: New file.
70601         * lib/gl_avltree_list.c: New file.
70602         * lib/gl_anyavltree_list1.h: New file.
70603         * lib/gl_anyavltree_list2.h: New file.
70604         * lib/gl_rbtree_list.h: New file.
70605         * lib/gl_rbtree_list.c: New file.
70606         * lib/gl_anyrbtree_list1.h: New file.
70607         * lib/gl_anyrbtree_list2.h: New file.
70608         * lib/gl_anytree_list1.h: New file.
70609         * lib/gl_anytree_list2.h: New file.
70610         * lib/gl_linkedhash_list.h: New file.
70611         * lib/gl_linkedhash_list.c: New file.
70612         * lib/gl_anyhash_list1.h: New file.
70613         * lib/gl_anyhash_list2.h: New file.
70614         * lib/gl_avltreehash_list.h: New file.
70615         * lib/gl_avltreehash_list.c: New file.
70616         * lib/gl_rbtreehash_list.h: New file.
70617         * lib/gl_rbtreehash_list.c: New file.
70618         * lib/gl_anytreehash_list1.h: New file.
70619         * lib/gl_anytreehash_list2.h: New file.
70620
70621         * lib/gl_oset.h: New file.
70622         * lib/gl_oset.c: New file.
70623         * lib/gl_array_oset.h: New file.
70624         * lib/gl_array_oset.c: New file.
70625         * lib/gl_avltree_oset.h: New file.
70626         * lib/gl_avltree_oset.c: New file.
70627         * lib/gl_rbtree_oset.h: New file.
70628         * lib/gl_rbtree_oset.c: New file.
70629         * lib/gl_anytree_oset.h: New file.
70630
70631 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
70632
70633         * m4/mkancesdirs.m4: New file.
70634         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
70635         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
70636         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
70637         it.
70638
70639 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
70640
70641         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
70642         * lib/mkancesdirs.h: New files.
70643         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
70644         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
70645         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
70646         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
70647         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
70648         callers changed.  Revamp internals significantly, by not
70649         attempting to create directories that are temporarily more
70650         permissive than the final results.  Do not attempt to use
70651         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
70652         This removes some race conditions, fixes some bugs, and simplifies
70653         things.  Use new dirchownmod function to do owner and mode changes.
70654         * lib/mkdir-p.h: Likewise.
70655         * lib/modechange.c (octal_to_mode): New function.
70656         (struct mode_change): New member mentioned.
70657         (make_node_op_equals): New arg mentioned.  All callers changed.
70658         (mode_compile): Keep track of which mode bits the user has explicitly
70659         mentioned.
70660         (mode_adjust): New arg DIR, so that we implement the X op correctly.
70661         New arg PMODE_BITS, to keep track of which mode bits the user
70662         mentioned; it treats S_ISUID and S_ISGID speciall.
70663         All callers changed.
70664         * lib/modechange.h: Likewise.
70665
70666 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
70667
70668         * MODULES.html.sh: Add mkancestors.
70669         * modules/mkancesdirs: New module.
70670         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
70671         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
70672         The chdir-safer and afs files are now orphans; I'll remove them
70673         unless someone speaks up.
70674         Add lib/dirchownmod.c, lib/dirchownmod.h.
70675         (Depends-on): Remove alloca, chown, save-cwd, dirname.
70676         Add lchown, mkancesdirs.
70677         (Maintainer): Add self.
70678
70679 2006-07-15  Karl Berry  <karl@gnu.org>
70680
70681         * gnulib-tool: help message wording/arrangement.
70682
70683 2006-07-14  Simon Josefsson  <jas@extundo.com>
70684
70685         * doc/gnulib.texi (Libtool and Windows): New section.
70686
70687 2006-07-12  Simon Josefsson  <jas@extundo.com>
70688
70689         * modules/gendocs (License): Fix license, approved by Karl.
70690
70691 2006-07-12  Eric Blake  <ebb9@byu.net>
70692
70693         * MODULES.html.sh: Add gendocs.
70694
70695 2006-07-11  Eric Blake  <ebb9@byu.net>
70696
70697         * modules/fdl: New module, to install doc/fdl.texi.
70698         * MODULES.html.sh: Add new section for documentation modules.
70699         * gnulib-tool: Avoid space-tab.
70700         (--doc-base): New option, to manage files from doc.
70701
70702 2006-07-11  Eric Blake  <ebb9@byu.net>
70703
70704         * m4/absolute-header.m4: Fix comments to match recent change.
70705
70706 2006-07-11  Eric Blake  <ebb9@byu.net>
70707
70708         * gnulib-tool: List --doc-base before --tests-base.
70709
70710 2006-07-11  Derek R. Price  <derek@ximbiot.com>
70711
70712         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
70713
70714 2006-07-11  Bruno Haible  <bruno@clisp.org>
70715
70716         * README: Mention where to put documentation.
70717
70718 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70719
70720         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
70721
70722 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
70723
70724         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
70725         to stdint.m4.
70726
70727 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
70728
70729         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
70730         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
70731         "no/such/file/stdint.h" when there is no such file, so that
70732         the resulting C code can be parsed by dodgy compilers.
70733         Problems reported by Bob Proulx.
70734
70735 2006-07-10  Derek R. Price  <derek@ximbiot.com>
70736
70737         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
70738         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
70739         macros into the GNU _D_EXACT_NAMLEN.
70740         * lib/savedir.c:  Likewise.
70741         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
70742
70743 2006-07-10  Derek R. Price  <derek@ximbiot.com>
70744         and Paul Eggert  <eggert@cs.ucla.edu>
70745
70746         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
70747         * m4/savedir.m4:
70748         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
70749         macros into the GNU _D_EXACT_NAMLEN.
70750
70751 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
70752
70753         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
70754         around the absolute name, to work around a problem with the HP-UX
70755         11.23 native C compiler, reported by Bob Proulx.
70756
70757 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
70758
70759         * doc/maintain.texi, make-stds.texi: Sync from
70760         <http://savannah.gnu.org/projects/gnustandards>.
70761
70762 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
70763
70764         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
70765
70766 2006-07-09  Jim Meyering  <jim@meyering.net>
70767
70768         * m4/glob.m4: Remove a doubled word in a comment.
70769
70770 2006-07-09  Jim Meyering  <jim@meyering.net>
70771
70772         * lib/argp-pv.c: Remove a doubled word in a comment.
70773         * lib/check-version.c (check_version): Likewise.
70774         * lib/javacomp.c (compile_java_class): Likewise.
70775
70776 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
70777
70778         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
70779         for the benefit of people using Autoconf 2.60.  If you want to
70780         support older Autoconf versions you can copy m4/onceonly_2_57.m4
70781         (or m4/onceonly.m4, if pre-2.57) manually.
70782
70783 2006-07-08  Jim Meyering  <jim@meyering.net>
70784
70785         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
70786         comment.
70787         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
70788         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
70789         comment.
70790
70791 2006-07-08  Jim Meyering  <jim@meyering.net>
70792
70793         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
70794
70795 2006-07-07  Simon Josefsson  <jas@extundo.com>
70796
70797         * tests/test-crc.c: Change expected crc value, the test vector
70798         were probably computed using the old broken crc.c?
70799
70800 2006-07-06  Simon Josefsson  <jas@extundo.com>
70801
70802         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
70803         now the canonical place for the M4 file).
70804
70805         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
70806         from the sys_socket dependency now.
70807
70808         * modules/inet_pton (Files): Ditto.
70809
70810         * modules/inet_ntop (Files): Ditto.
70811
70812 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
70813
70814         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
70815         not gl_PREREQ_GETUSERSHELL.
70816
70817 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70818
70819         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
70820         with only one argument, for Autoconf 2.60.
70821         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
70822         expand to nothing, so add a shell command to avoid syntax error.
70823         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
70824
70825 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70826
70827         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
70828
70829 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
70830
70831         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
70832         no longer needed.  Check for isblank decl.
70833         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
70834         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
70835         of existence.
70836
70837 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
70838
70839         * lib/getloadavg.c: Use __VMS, not VMS.
70840         * lib/getopt.c: Likewise.
70841         * lib/getpagesize.h: Likewise.
70842         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
70843         and probably does not work.
70844
70845 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
70846
70847         * lib/.cppi-disable: Add wcwidth.
70848         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
70849         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
70850         (ISGRAPH): Remove.  All uses changed to isgraph.
70851         (FOLD) [!defined _LIBC]: Remove special case.
70852         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
70853         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
70854         HAVE_ISBLANK.
70855         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
70856         case.
70857
70858 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
70859
70860         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
70861         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
70862         brackets.  Other minor changes to suppress some compiler
70863         warnings.
70864
70865 2006-07-06  Derek R. Price  <derek@ximbiot.com>
70866         and Paul Eggert  <eggert@cs.ucla.edu>
70867
70868         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
70869         of invoking obsolescent AC_HEADER_DIRENT macro.
70870         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
70871         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
70872         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
70873         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
70874         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
70875         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
70876         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
70877         * m4/readdir.m4: Remove; no longer needed.
70878
70879 2006-07-06  Derek R. Price  <derek@ximbiot.com>
70880         and Paul Eggert  <eggert@cs.ucla.edu>
70881
70882         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
70883         Don't worry about this obsolete case any more.
70884         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
70885         directories.
70886         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
70887         worry about this obsolete case any more.
70888         * lib/fts.c: Likewise.
70889         * lib/getcwd.c: Likewise.
70890         * lib/glob.h: Likewise.
70891         * lib/savedir.c: Likewise.
70892
70893 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
70894
70895         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
70896         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
70897         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
70898         needed.
70899         All uses removed.
70900         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
70901         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
70902         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
70903         needed.
70904         * m4/getdate.m4 (gl_GETDATE): Likewise.
70905         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
70906         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
70907         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
70908         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
70909         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
70910         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
70911         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
70912         needed.
70913
70914 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
70915
70916         * lib/memcasecmp.c: Include <limits.h>.
70917         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
70918         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
70919         Don't assume isdigit succeeds only on '0' through '9'.
70920
70921 2006-07-05  Eric Blake  <ebb9@byu.net>
70922
70923         * modules/getaddrinfo (Depends-on): Add snprintf.
70924
70925 2006-07-05  Eric Blake  <ebb9@byu.net>
70926
70927         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
70928         to avoid 'header present but could not be compiled' on cygwin.
70929
70930 2006-07-05  Eric Blake  <ebb9@byu.net>
70931
70932         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
70933         missing from netdb.h.
70934         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
70935
70936 2006-07-05  Derek R. Price  <derek@ximbiot.com>
70937
70938         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
70939         no longer needed.
70940         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
70941         * m4/getdate.m4 (gl_GETDATE): Likewise.
70942         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
70943         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
70944         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
70945         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
70946         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
70947
70948 2006-07-05  Derek R. Price  <derek@ximbiot.com>
70949
70950         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
70951         All uses of is_space replaced by isspace.
70952         * lib/exit.h: Don't talk about STDC_HEADERS.
70953         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
70954         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
70955         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
70956         replaced by isprint etc.
70957         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
70958         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
70959         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
70960         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
70961         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
70962         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
70963
70964 2006-07-05  Bruno Haible  <bruno@clisp.org>
70965
70966         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
70967         the function exists, before testing against AIX.
70968         Reported by Martin Lambers <marlam@marlam.de>.
70969
70970 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
70971
70972         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
70973         From Mark D. Baushke.
70974
70975 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
70976
70977         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
70978         to the absolute name, not just one, to bypass Sun C 5.8's
70979         "warning: #include of /usr/include/... may be non-portable".
70980
70981 2006-07-04  Eric Blake  <ebb9@byu.net>
70982
70983         * modules/dirname-tests: New test module.
70984         * tests/test-dirname.c: New file, replacing dirname.c
70985         TEST_DIRNAME section that was recently deleted.
70986
70987 2006-07-04  Bruno Haible  <bruno@clisp.org>
70988
70989         Assume ANSI C header files and <ctype.h> functions.
70990         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
70991         (mbsnwidth): Use isprint, iscntrl instead.
70992
70993 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
70994
70995         Merge from coreutils.
70996         * MODULES.html.sh: Add xstrtold.
70997         * modules/xstrtold: New file.
70998         * modules/cycle-check (Files): Add lib/same-inode.h.
70999         * modules/dirname (Files): Add m4/double-slash-root.m4.
71000         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
71001         * modules/mkdir-p (Files): Add lib/same-inode.h.
71002         * modules/same (Files): Add lib/same-inode.h.
71003
71004 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
71005
71006         * m4/absolute-header.m4: Renamed from full-header-path.m4.
71007         This is to keep the terminology clean; POSIX talks about
71008         "absolute pathnames", not "full pathnames", but the GNU
71009         Coding Standards say to use "path" for something else;
71010         so use "absolute" to keep both sides happy.
71011         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
71012         Set gl_absolute_header, not gl_full_header_path.
71013         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
71014         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
71015         All uses changed.
71016
71017         Merge from coreutils.
71018
71019         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
71020
71021         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
71022         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
71023         want to require the building of c-strtod.o.
71024         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
71025         needs -lm directly.
71026         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
71027
71028         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
71029
71030         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
71031         --as-needed option if available.  Problem reported by Albert Chin in
71032         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
71033         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
71034         cc merely issues a bunch of annoying warnings for --as-needed
71035         (this problem was reported by Bob Proulx).  Also, try linking with
71036         -lm to detect a bug in binutils 2.16 (this problem was reported
71037         by Ralf Wildenhues).
71038
71039         2006-06-18  Jim Meyering  <jim@meyering.net>
71040
71041         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
71042         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
71043         macro.
71044         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
71045         also check for glibc-2.4's abort-inducing bug.
71046
71047         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
71048         Low-probability clean-up should be to use rmdir to get rid of
71049         the just-created directory, not unlink.
71050
71051         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
71052         configure fail, and request a bug report to inform us about it.
71053         Add a comment that, barring reports to the contrary, in 2007 we'll
71054         assume ftruncate is universally available.
71055
71056         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
71057
71058         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
71059
71060         2006-03-12  Jim Meyering  <jim@meyering.net>
71061
71062         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
71063         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
71064         * m4/same.m4 (gl_SAME): Likewise.
71065         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
71066
71067         2006-03-11  Eric Blake  <ebb9@byu.net>
71068
71069         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
71070         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
71071         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
71072         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
71073
71074 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
71075
71076         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
71077         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
71078         reported by Mark D. Baushke, one in
71079         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
71080
71081         Merge from coreutils.
71082
71083         * lib/.cppi-disable: Add stdint_.h.
71084         * lib/.cvsignore: Add stdint.h.
71085
71086         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
71087
71088         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
71089         both double and long double versions.
71090         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
71091         * lib/xstrtold.c: New file.
71092         * lib/xstrtod.h (xstrtold): New decl.
71093
71094         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
71095
71096         * lib/filemode.c (setst): Remove.
71097         (strmode): Rewrite to avoid setst.  This makes the code shorter,
71098         (arguably) clearer, and the generated code is a bit smaller on my
71099         Debian GNU/Linux stable x86 host.
71100
71101         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
71102
71103         * lib/filemode.c: Include "filemode.h" first, to test the interface.
71104         Assume that filemode.h includes sys/types.h and sys/stat.h.
71105         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
71106         (ftypelet): Reorder to put common cases first, for efficiency.
71107         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
71108         to do 'M'.
71109         (strmode): Renamed from mode_string, and now stores 12 bytes instead
71110         of 10, for compatibility with FreeBSD.  All callers changed.
71111         (filemodestring): Now stores 12 bytes instead of 10, and sets file
71112         types that can't be deduced solely from st_mode.  First arg is now a
71113         const pointer.
71114         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
71115         (strmode): Renamed from mode_string.
71116         (filemodestring): New decl.
71117         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
71118         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
71119         needed.
71120         (S_ISPORT, S_ISWHT): New macros, if not already defined.
71121
71122         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
71123
71124         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
71125         fsusage.h now does that.  Include fsusage.h first, to test interface.
71126         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
71127         at most one method (the old code could have generated decls that
71128         didn't conform to C89, not that this was ever exercised).
71129         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
71130
71131         2006-03-19  Jim Meyering  <jim@meyering.net>
71132
71133         Work even in a chroot where d_ino values for entries in "/"
71134         don't match the stat.st_ino values for the same names.
71135         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
71136         number, iterate through all entries again, using lstat instead.
71137         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
71138         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
71139
71140         * lib/getcwd.c (__getcwd): Clarify a comment.
71141         Use memcpy in place of a call to strcpy.
71142
71143         2006-03-12  Jim Meyering  <jim@meyering.net>
71144
71145         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
71146         matches that of the current directory (which we're about to chdir ".."
71147         out of), then save the dev-ino of the parent, instead.
71148
71149         * lib/same-inode.h (SAME_INODE): New file/macro.
71150         * lib/chdir-safer.c (SAME_INODE): Remove definition.
71151         Include "same-inode.h", instead.
71152         * lib/same.c: Likewise.
71153         * lib/cycle-check.h: Include "same-inode.h".
71154         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
71155         * lib/cycle-check.c (SAME_INODE): Remove definition.
71156         * lib/root-dev-ino.h: Include "same-inode.h".
71157
71158         2006-03-11  Eric Blake  <ebb9@byu.net>
71159
71160         * lib/same.c (same_name): s/base_name/last_component/
71161         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
71162         * lib/filenamecat.c (file_name_concat): Likewise.
71163
71164         2006-03-11  Eric Blake  <ebb9@byu.net>,
71165                     Paul Eggert  <eggert@cs.ucla.edu>
71166
71167         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
71168         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
71169         drive prefix.
71170         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
71171         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
71172         (last_component): New method.
71173         * lib/dirname.c (dir_len): Determine when drive letters need a
71174         subsequent slash.  Preserve // when it is special.
71175         (dir_name): Don't append dot when drive letter is absolute.
71176         [TEST_DIRNAME]: Move into a full-blown gnulib test.
71177         * lib/basename.c (base_name): New semantics - malloc the result.
71178         Preserve // when it is special.  Preserve relative files that look
71179         like drive letters.
71180         (base_len): Preserve // when it is special.
71181         (last_component): New method, similar to old base_name semantics.
71182         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
71183         base_name.  Strip redundant slashes from ///.
71184
71185 2006-07-03  Jim Meyering  <jim@meyering.net>
71186
71187         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
71188         macro is used before the first cycle_check call.
71189
71190 2006-07-03  Eric Blake  <ebb9@byu.net>
71191
71192         * modules/dirname (Depends-on): Add xstrndup.
71193
71194 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
71195
71196         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
71197         test cases, so that config.log is a bit easier to follow.
71198
71199 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
71200
71201         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
71202         both are 64 bits, since this seems to be the tradition, and this
71203         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
71204         we ever run into a host that prefers long long to long in this
71205         case, we'll need another configure-time test.  Problem reported by
71206         Jim Meyering.
71207
71208 2006-07-02  Eric Blake  <ebb9@byu.net>
71209
71210         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
71211
71212 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
71213
71214         * modules/inttypes (Depends-on): No longer depends on stdint.
71215         * modules/stdint (Description): Say more about assumptions.
71216         Say that the fast types might differ.  Say macros are used.
71217         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
71218         (Makefile.am): Revise list of substituted symbols to match
71219         new stdint.m4.
71220         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
71221         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
71222         * tests/test-stdint.c (verify_same_types)
71223         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
71224         the code conforms to C99/C89.
71225         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
71226         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
71227
71228 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
71229
71230         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
71231         but fix a bug, by requiring at least 64 bits.
71232         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
71233         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
71234         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
71235         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
71236
71237         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
71238         changes.  Make 2.59 a prerequisite.  Check and substitute for
71239         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
71240         inttypes.h.  Do not use special include files; just use the
71241         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
71242         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
71243         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
71244         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
71245         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
71246         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
71247         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
71248         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
71249         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
71250         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
71251         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
71252         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
71253         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
71254         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
71255         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
71256         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
71257         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
71258         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
71259         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
71260         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
71261         WINT_MAX.  Check for C99 conformance more strictly, by detecting
71262         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
71263         not check for things that C99 does not require, e.g., int8_t.  If
71264         a test isn't needed unless <stdint.h> isn't working, and is
71265         unlikely to be needed for any other reason, then don't do it
71266         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
71267         size_t, since we assume C89 freestanding at least.  Do not check
71268         for sig_atomic_t, wchar_t, or wint_t, since the code now does
71269         the right thing even if the types are not defined.  Instead use:
71270         (gl_STDINT_TYPE_PROPERTIES): New macro.
71271         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
71272         testing whether <sys/types.h> clashes, as Autoconf does this for
71273         us now.  All uses removed.
71274         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
71275         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
71276         (gl_CHECK_TYPE_SAME):
71277         Remove; no longer needed.
71278         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
71279         exists, since we'll return 0 anyway in that case.
71280         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
71281
71282 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
71283
71284         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
71285         possible collision with system files.
71286         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
71287         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
71288         WCHAR_MIN and WCHAR_MAX in this case.
71289         (<stddef.h>): Do not include; no longer needed.
71290         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
71291         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
71292         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
71293         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
71294         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
71295         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
71296         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
71297         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
71298         !defined(__c99))]: Include in this case too, since it's harmless
71299         now.
71300         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
71301         dangerous to do so.
71302         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
71303         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
71304         (_STDINT_MIN, _STDINT_MAX): New macros.
71305         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
71306         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
71307         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
71308         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
71309         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
71310         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
71311         macros, not typedefs; this simplifies things quite a bit.
71312         Use long int for all types narrower than int64_t.
71313         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
71314         Define in terms of long long int or int64_t or long int,
71315         not int64_t or int32_t.  This saves some compile-time testing.
71316         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
71317         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
71318         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
71319         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
71320         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
71321         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
71322         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
71323         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
71324         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
71325         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
71326         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
71327         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
71328         undef any previous version and define our own version, for
71329         simplicity and consistency with the new macros for types.
71330         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
71331         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
71332         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
71333         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
71334         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
71335         @WINT_T_SUFFIX@ to keep things simple here.
71336         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
71337         Simplify by assuming typical 8/16/32/64 host, since we're
71338         already doing that elsewhere anyway.
71339         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
71340         and assume long long int is 64 bits if available.  This
71341         speeds up 'configure'.
71342
71343 2006-07-01  Eric Blake  <ebb9@byu.net>
71344
71345         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
71346         Reported by Andreas Buening.
71347
71348 2006-07-01  Eric Blake  <ebb9@byu.net>
71349
71350         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
71351
71352 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
71353
71354         * lib/getaddrinfo.c: fixed typo
71355
71356 2006-06-29  Jim Meyering  <jim@meyering.net>
71357
71358         * modules/strftime (Maintainer): Add my name, since with the
71359         FPRINTFTIME changes strftime.c has forked from glibc.
71360
71361 2006-06-29  Eric Blake  <ebb9@byu.net>
71362
71363         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
71364
71365 2006-06-29  Eric Blake  <ebb9@byu.net>
71366
71367         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
71368
71369 2006-06-29  Eric Blake  <ebb9@byu.net>
71370
71371         * lib/stat_.h: New file.
71372
71373 2006-06-29  Eric Blake  <ebb9@byu.net>
71374
71375         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
71376         unused static function.
71377
71378 2006-06-29  Eric Blake  <ebb9@byu.net>
71379
71380         * doc/functions.texi (Function Portability): Document missing lstat
71381         on mingw.
71382
71383 2006-06-29  Eric Blake  <ebb9@byu.net>
71384
71385         * MODULES.html.sh: Add sys_stat.
71386         * modules/sys_stat: New module.
71387         * modules/mkstemp (Depends-on): Add sys_stat.
71388
71389 2006-06-29  Derek R. Price  <derek@ximbiot.com>
71390
71391         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
71392
71393 2006-06-29  Derek R. Price  <derek@ximbiot.com>
71394
71395         * m4/c-bs-a.m4: Removed.
71396
71397 2006-06-29  Derek R. Price  <derek@ximbiot.com>
71398
71399         * lib/strftime.c: Assume strftime() exists.
71400
71401 2006-06-29  Derek Price  <derek@ximbiot.com>
71402
71403         * modules/c-bs-a: Removed - \a is C89.
71404         * MODULES.html.sh: Remove c-bs-a.
71405
71406 2006-06-29  Bruno Haible  <bruno@clisp.org>
71407
71408         * modules/wcwidth (License): Change to LGPL.
71409
71410 2006-06-28  Simon Josefsson  <jas@extundo.com>
71411
71412         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
71413         on _WIN32.
71414
71415         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
71416         getnameinfo.
71417
71418 2006-06-28  Simon Josefsson  <jas@extundo.com>
71419
71420         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
71421
71422 2006-06-28  Simon Josefsson  <jas@extundo.com>
71423
71424         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
71425         functions there.  It will succeed on Windows XP, but on Windows
71426         2000 and (presumably) earlier, it will fail, and use the internal
71427         re-implementation.
71428         (use_win32_p): New function.
71429         (getaddrinfo): Use strtoul on servname, to support numeric ports.
71430         Support AI_NUMERICSERV to disable getservbyname.
71431         (getnameinfo): New function, only supports
71432         NI_NUMERICHOST|NI_NUMERICSERV for now.
71433
71434         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
71435         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
71436         getnameinfo.
71437
71438 2006-06-28  Eric Blake  <ebb9@byu.net>
71439
71440         * modules/wcwidth: New file.
71441         * modules/mbchar (Depends-on): Add wcwidth.
71442         * modules/mbswidth (Depends-on): Add wcwidth.
71443         * MODULES.html.sh: Add wcwidth.
71444
71445 2006-06-28  Eric Blake  <ebb9@byu.net>
71446
71447         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
71448         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
71449
71450 2006-06-28  Eric Blake  <ebb9@byu.net>
71451
71452         * lib/xvasprintf.h: Fix comments.
71453
71454 2006-06-28  Eric Blake  <ebb9@byu.net>
71455
71456         * lib/mbchar.h (wcwidth): Include wcwidth.h.
71457         * lib/mbswidth.c (wcwidth): Move from here...
71458         * lib/wcwidth.h: ...to this new file.
71459
71460 2006-06-28  Derek R. Price  <derek@ximbiot.com>
71461
71462         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
71463
71464         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
71465         it's obsolete.
71466         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
71467
71468 2006-06-28  Derek R. Price  <derek@ximbiot.com>
71469
71470         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
71471         Autoconf 2.60 says this stuff was obsolete.
71472
71473 2006-06-28  Bruno Haible  <bruno@clisp.org>
71474
71475         * modules/wcwidth (Files): Add m4/wchar_t.m4.
71476
71477 2006-06-28  Bruno Haible  <bruno@clisp.org>
71478
71479         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
71480         gt_TYPE_WCHAR_T.
71481
71482 2006-06-28  Bruno Haible  <bruno@clisp.org>
71483
71484         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
71485         declaration for wcwidth.
71486         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
71487
71488 2006-06-28  Bruno Haible  <bruno@clisp.org>
71489
71490         * lib/mkdtemp.c [MINGW]: Include <io.h>.
71491         (mkdir): Define using _mkdir.
71492
71493 2006-06-28  Bruno Haible  <bruno@clisp.org>
71494
71495         * lib/getaddrinfo.h: Fix POSIX URL.
71496         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
71497         _WIN32.
71498         (use_win32_p): Make static.
71499         (getaddrinfo): Reject service name if it is empty or does not consist
71500         solely of decimal digits, or if its value is > 65535.
71501         (getnameinfo): Remove useless casts.
71502
71503 2006-06-27  Simon Josefsson  <jas@extundo.com>
71504
71505         * modules/sys_select: New file, suggested by Bruno Haible, Paul
71506         Eggert and Martin Lambers.
71507
71508 2006-06-27  Simon Josefsson  <jas@extundo.com>
71509
71510         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
71511         Eggert and Martin Lambers.
71512
71513 2006-06-27  Bruno Haible  <bruno@clisp.org>
71514
71515         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
71516         result to 0, not to empty.
71517         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
71518
71519 2006-06-27  Bruno Haible  <bruno@clisp.org>
71520
71521         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
71522
71523 2006-06-26  Simon Josefsson  <jas@extundo.com>
71524
71525         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
71526         present.
71527
71528 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
71529
71530         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
71531         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
71532         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
71533
71534 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
71535
71536         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
71537
71538 2006-06-26  Bruno Haible  <bruno@clisp.org>
71539
71540         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
71541
71542 2006-06-26  Bruno Haible  <bruno@clisp.org>
71543
71544         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
71545
71546 2006-06-26  Bruno Haible  <bruno@clisp.org>
71547
71548         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
71549         SGI C compiler in pre-C99 mode.
71550         Suggested by Mark D. Baushke and Larry Jones.
71551
71552 2006-06-26  Bruno Haible  <bruno@clisp.org>
71553
71554         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
71555         WCHAR_MAX.
71556         Reported by Mark D. Baushke and Larry Jones.
71557
71558 2006-06-26  Bruno Haible  <bruno@clisp.org>
71559
71560         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
71561         in pre-C99 mode.
71562         Suggested by Mark D. Baushke and Larry Jones.
71563
71564 2006-06-23  Simon Josefsson  <jas@extundo.com>
71565             Bruno Haible  <bruno@clisp.org>
71566
71567         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
71568         Emit mostlyclean-local rule.
71569         (func_emit_tests_Makefile_am): Likewise.
71570         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
71571
71572 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
71573
71574         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
71575
71576 2006-06-23  Bruno Haible  <bruno@clisp.org>
71577
71578         * tests/test-stdint.c: Update to match ISO C 99 Technical
71579         Corrigendum 1.
71580
71581 2006-06-23  Bruno Haible  <bruno@clisp.org>
71582
71583         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
71584
71585 2006-06-23  Bruno Haible  <bruno@clisp.org>
71586
71587         * lib/stdint_.h: Treat IRIX like OpenBSD.
71588
71589 2006-06-23  Bruno Haible  <bruno@clisp.org>
71590
71591         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
71592         ISO C 99 Technical Corrigendum 1.
71593
71594 2006-06-22  Simon Josefsson  <jas@extundo.com>
71595
71596         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
71597         MinGW.
71598
71599 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
71600
71601         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
71602         needed.  Some compiler complained about some of them.  Problem reported
71603         by Larry Jones in
71604         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
71605
71606 2006-06-21  Simon Josefsson  <jas@extundo.com>
71607
71608         * tests/test-getaddrinfo.c: New file.
71609
71610         * modules/getaddrinfo-tests: New file.
71611
71612         * MODULES.html.sh: Add inet_pton.
71613
71614         * modules/inet_pton: New file.
71615
71616 2006-06-21  Simon Josefsson  <jas@extundo.com>
71617
71618         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
71619         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
71620         of using the (limited) gnulib implementation on Windows XP.
71621
71622         * m4/inet_pton.m4: New file.
71623
71624 2006-06-21  Simon Josefsson  <jas@extundo.com>
71625
71626         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
71627         variable.
71628
71629         * lib/socket_.h: Don't define WINVER.
71630
71631         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
71632         slightly modified to work in gnulib.
71633
71634 2006-06-21  Simon Josefsson  <jas@extundo.com>
71635
71636         * doc/gnulib.texi (Windows sockets): Add.
71637
71638 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
71639
71640         * lib/read-file.c (fread_file): Start with buffer allocation of
71641         0 bytes rather than 1 byte; this simplifies the code.
71642         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
71643         code to free buffer and save/restore errno.
71644         (internal_read_file): Remove unused local.
71645
71646 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
71647
71648         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
71649         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
71650         Problem reported by Denis Excoffier in
71651         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
71652
71653 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71654
71655         * modules/sys_socket, modules/socklen: Include sys/types since
71656         FreeBSD 4.x's sys/socket.h needs it.
71657
71658 2006-06-19  Simon Josefsson  <jas@extundo.com>
71659
71660         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
71661
71662 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
71663
71664         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
71665
71666 2006-06-19  Bruno Haible  <bruno@clisp.org>
71667
71668         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
71669         and FULL_PATH_INTTYPES_H in angle brackets.
71670         Reported by Mark D. Baushke <mdb@gnu.org>.
71671
71672 2006-06-17  Eric Blake  <ebb9@byu.net>
71673
71674         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
71675         errno.
71676
71677 2006-06-17  Bruno Haible  <bruno@clisp.org>
71678
71679         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
71680         <sys/inttypes.h>.
71681
71682 2006-06-17  Bruno Haible  <bruno@clisp.org>
71683
71684         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
71685         whether errno is declared. Assume <errno.h> declares errno.
71686
71687 2006-06-17  Bruno Haible  <bruno@clisp.org>
71688
71689         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
71690
71691 2006-06-17  Bruno Haible  <bruno@clisp.org>
71692
71693         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
71694         problem on Solaris 2.5.1.
71695
71696 2006-06-16  Eric Blake  <ebb9@byu.net>
71697
71698         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
71699         * lib/unicodeio.c [!defined errno]: Likewise.
71700         * lib/strtol.c [!defined errno]: Likewise.
71701         * lib/strtod.c [!defined errno]: Likewise.
71702
71703 2006-06-15  Eric Blake  <ebb9@byu.net>
71704
71705         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
71706
71707 2006-06-15  Eric Blake  <ebb9@byu.net>
71708
71709         * config/srclist.txt (ssize_t.m4): Lose sync.
71710
71711 2006-06-15  Bruno Haible  <bruno@clisp.org>
71712
71713         * modules/stdint (Files): Include m4/full-header-path.m4,
71714         m4/size_max.m4, m4/wchar_t.m4.
71715         (Makefile.am): Many more substitutions.
71716         * modules/stdint-tests: New file.
71717         * tests/test-stdint.c: New file.
71718
71719 2006-06-15  Bruno Haible  <bruno@clisp.org>
71720
71721         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
71722         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
71723         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
71724         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
71725         gl_CHECK_TYPE_SAME): New macros.
71726
71727 2006-06-15  Bruno Haible  <bruno@clisp.org>
71728
71729         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
71730
71731 2006-06-15  Bruno Haible  <bruno@clisp.org>
71732
71733         * lib/stdint_.h: Rewritten to be fully auto-configured.
71734         Fixes bug on HP-UX/IA64.
71735
71736 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
71737
71738         * lib/getdate.y (__attribute__): Don't define if already defined.
71739         Problem reported by Larry Jones.
71740         * lib/utimens.c (__attribute__): Likewise.
71741
71742 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
71743
71744         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
71745         reported by Andreas Schwab.
71746
71747 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71748             Bruno Haible  <bruno@clisp.org>
71749
71750         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
71751         check for the declaration of strnlen and a run test that exposes the
71752         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
71753         rpl_strndup.
71754
71755 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71756             Bruno Haible  <bruno@clisp.org>
71757
71758         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
71759
71760 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71761
71762         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
71763         compile test, for Tru64 4.0D.
71764
71765 2006-05-28  Karl Berry  <karl@gnu.org>
71766
71767         * config/srclist.txt (printf-args.c): lose sync.
71768
71769 2006-05-26  Martin Lambers  <marlam@marlam.de>
71770
71771         * lib/getpass.c: Updates the test for the native W32 API, and adds
71772         missing includes, thus fixing compilation warnings.
71773
71774 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
71775
71776         * lib/exclude.c (exclude_fnmatch): New function.
71777         (excluded_file_name): Call exclude_fnmatch.
71778         * lib/exclude.h (excluded_file_name): New prototype
71779
71780 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
71781
71782         * lib/tempname.c (small_open, large_open): New macros.
71783         (__open, __open64) [!_LIBC]: Remove.
71784         (__gen_tempname): Use small_open and large_open instead of __open
71785         and __open64.  This fixes a portability bug on HP-UX 11.11i
71786         reported by Simon Wing-Tang in
71787         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
71788
71789 2006-05-24  Bruno Haible  <bruno@clisp.org>
71790
71791         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
71792         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
71793         Reported by Thorsten Maerz <torte@netztorte.de> via
71794         Aaron Stone <aaron@serendipity.cx>.
71795
71796 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
71797
71798         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
71799         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
71800         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
71801         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
71802         not really conditional on the cache.
71803         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
71804
71805 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
71806
71807         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
71808         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
71809         (my_usleep): Don't mishandle maximum value.
71810
71811 2006-05-19  Jim Meyering  <jim@meyering.net>
71812
71813         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
71814
71815 2006-05-17  Bruno Haible  <bruno@clisp.org>
71816
71817         Cygwin portability.
71818         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
71819
71820 2006-05-17  Bruno Haible  <bruno@clisp.org>
71821
71822         * lib/stdint_.h: Fix recognition of Cygwin.
71823
71824 2006-05-15  Bruno Haible  <bruno@clisp.org>
71825
71826         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
71827         on libtool patch by Ralf Wildenhues.
71828
71829 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
71830
71831         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
71832         test for C99 conformance; (bool) 0.5 is an integer constant
71833         expression, but (bool) -0.5 is not.  Problem reported by Fedor
71834         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
71835
71836 2006-05-11  Simon Josefsson  <jas@extundo.com>
71837
71838         * m4/xvasprintf.m4: Fix obvious typo.
71839
71840 2006-05-11  Jim Meyering  <jim@meyering.net>
71841
71842         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
71843         James Lemley.
71844
71845 2006-05-10  Simon Josefsson  <jas@extundo.com>
71846
71847         * lib/md4.c: Typo fix, update copyright years.
71848         (K1, K2): Don't use L because it turn computations into 64-bit on
71849         64-bit platforms.
71850
71851 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
71852
71853         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
71854         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
71855         unwanted sign propagation, e.g., on hosts with 64-bit int.
71856         There still are some problems with reeelly weird theoretical hosts
71857         (e.g., 33-bit int) but it's not worth worrying about now.
71858         * lib/sha1.c (rol): Likewise.
71859         (K1, K2, K3, K4): Remove unnecessary L suffix.
71860
71861 2006-05-10  Bruno Haible  <bruno@clisp.org>
71862
71863         * lib/des.c: Cast to avoid warnings.
71864
71865 2006-05-09  Bruno Haible  <bruno@clisp.org>
71866
71867         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
71868         (Depends-on): Depend also on xsize, stdarg.
71869         (configure.ac): Add gl_XVASPRINTF.
71870
71871 2006-05-09  Bruno Haible  <bruno@clisp.org>
71872
71873         * m4/xvasprintf.m4: New file.
71874
71875 2006-05-09  Bruno Haible  <bruno@clisp.org>
71876
71877         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
71878         (EOVERFLOW): Define fallback value.
71879         (xstrcat): New function.
71880         (xvasprintf): Recognize the special case of a string concatenation.
71881
71882 2006-05-08  Eric Blake  <ebb9@byu.net>
71883
71884         * gnulib-tool (func_version): Base copyright year on CVS date.
71885         (func_emit_copyright_notice): New function.
71886         (func_emit_lib_Makefile_am): Use it.
71887         (func_emit_tests_Makefile_am): Likewise.
71888         (func_import): Likewise.
71889
71890 2006-05-08  Bruno Haible  <bruno@clisp.org>
71891
71892         * modules/stdarg: New file.
71893         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
71894
71895 2006-05-08  Bruno Haible  <bruno@clisp.org>
71896
71897         * m4/stdarg.m4: New file, from GNU gettext.
71898
71899 2006-05-08  Bruno Haible  <bruno@clisp.org>
71900
71901         * config/srclist.txt (build-aux/config.rpath): different from latest
71902         release.
71903
71904 2006-05-08  Bruno Haible  <bruno@clisp.org>
71905
71906         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
71907
71908 2006-05-05  Jim Meyering  <jim@meyering.net>
71909
71910         * m4/warning.m4: New file, derived from bison's file by the same name.
71911
71912 2006-05-03  Bruno Haible  <bruno@clisp.org>
71913
71914         * lib/stdint_.h: Shorter URL.
71915         * lib/inttypes.h: Likewise.
71916
71917 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
71918
71919         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
71920
71921 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
71922
71923         * lib/verify.h: Document the internals better.  Most of this change
71924         was written by Bruno Haible.
71925
71926 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
71927
71928         * doc/verify.texi: New file, partly based on a proposal by
71929         Bruno Haible.
71930
71931 2006-05-02  Bruno Haible  <bruno@clisp.org>
71932
71933         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
71934         test from here...
71935         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
71936
71937 2006-04-29  Bruno Haible  <bruno@clisp.org>
71938
71939         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
71940         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
71941
71942 2006-04-29  Bruno Haible  <bruno@clisp.org>
71943
71944         * gnulib-tool: Make --update option actually work.
71945
71946 2006-04-29  Bruno Haible  <bruno@clisp.org>
71947
71948         * doc/gcd.texi: New file.
71949         * doc/gnulib.texi: Include it.
71950
71951 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
71952
71953         * lib/getdate.y (get_date): When adding relative date, start with the
71954         initial time, not with the result of the first mktime call.
71955
71956 2006-04-25  Bruno Haible  <bruno@clisp.org>
71957
71958         * gnulib-tool (func_import): Output the include directives in three
71959         blocks, sorted separately.
71960         Reported by Ben Pfaff <blp@cs.stanford.edu>.
71961
71962 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
71963
71964         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
71965         to define main with arguments, for C++.  Reported by Eric Blake.
71966         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
71967         Prefer 'int main ()' to 'int main (void)', for C++.
71968         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
71969         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
71970         for 'main', for C99 and C++.
71971
71972 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
71973
71974         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
71975         Don't assume that exit status -1 is valid.
71976         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
71977         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
71978         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
71979         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
71980         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
71981         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
71982         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
71983         functions can be used without declaring them, or that you can
71984         exit with status -1.
71985         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
71986
71987 2006-04-24  Karl Berry  <karl@gnu.org>
71988
71989         * config/srclist.txt (longdouble.m4): sync lost.
71990
71991 2006-04-24  Eric Blake  <ebb9@byu.net>
71992
71993         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
71994
71995 2006-04-24  Bruno Haible  <bruno@clisp.org>
71996
71997         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
71998         poll() implementation in AIX.
71999         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
72000
72001 2006-04-24  Bruno Haible  <bruno@clisp.org>
72002
72003         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
72004         assigned exactly once.
72005
72006 2006-04-23  Claudio Fontana  <claudio@gnu.org>
72007             Bruno Haible  <bruno@clisp.org>
72008
72009         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
72010         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
72011         for AM_CPPFLAGS.
72012
72013 2006-04-23  Bruno Haible  <bruno@clisp.org>
72014
72015         * modules/copy-file: Depend on unistd.
72016         * modules/execute: Likewise.
72017         * modules/fatal-signal: Likewise.
72018         * modules/findprog: Likewise.
72019         * modules/mkdtemp : Likewise.
72020         * modules/pipe: Likewise.
72021         * modules/wait-process: Likewise.
72022
72023 2006-04-23  Bruno Haible  <bruno@clisp.org>
72024
72025         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
72026         condition was already detected.
72027         Reported by Ben Pfaff <blp@cs.stanford.edu>.
72028
72029 2006-04-23  Bruno Haible  <bruno@clisp.org>
72030
72031         * lib/copy-file.c: Include <unistd.h> unconditionally.
72032         * lib/execute.c: Likewise.
72033         * lib/fatal-signal.c: Likewise.
72034         * lib/findprog.c: Likewise.
72035         * lib/mkdtemp.c: Likewise.
72036         * lib/pipe.h: Likewise.
72037         * lib/pipe.c: Likewise.
72038         * lib/wait-process.h: Likewise.
72039
72040 2006-04-23  Bruno Haible  <bruno@clisp.org>
72041
72042         * gnulib-tool (func_usage): Fix --import description. Document
72043         --update.
72044         (func_import): Create temporary file in a temporary directory, if
72045         --dry-run is specified. Silence errors from 'grep' when there are no
72046         m4 files in $m4dir.
72047         (func_create_testdir): Silence errors from 'grep' when there are no
72048         m4 files in $m4dir.
72049         Reported by Karl Berry <karl@freefriends.org>.
72050
72051 2006-04-20  Bruno Haible  <bruno@clisp.org>
72052
72053         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
72054         one argument, so that the code will be portable to Autoconf 2.60.
72055         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
72056         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
72057         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
72058
72059 2006-04-19  Derek Price  <derek@ximbiot.com>
72060             Eric Blake  <ebb9@byu.net>
72061
72062         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
72063         rather than "/full/path.h".  Update comment to match.  Shorten &
72064         generalize m4_translit call via AS_TR_CPP.
72065
72066 2006-04-19  Derek Price  <derek@ximbiot.com>
72067             Eric Blake  <ebb9@byu.net>
72068
72069         * lib/inttypes.h: Correct grammar in comment.
72070
72071 2006-04-18  Derek Price  <derek@ximbiot.com>
72072             Paul Eggert  <eggert@cs.ucla.edu>
72073
72074         * modules/inttypes: New file.
72075         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
72076
72077 2006-04-18  Derek Price  <derek@ximbiot.com>
72078             Paul Eggert  <eggert@cs.ucla.edu>
72079
72080         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
72081         New files.
72082
72083 2006-04-18  Derek Price  <derek@ximbiot.com>
72084             Paul Eggert  <eggert@cs.ucla.edu>
72085
72086         * lib/inttypes.h: New file.
72087         * lib/strtoimax.c: Assume <inttypes.h>.
72088
72089 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
72090
72091         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
72092         isn't mounted.  Problem reported by Kir Kolyshkin.
72093
72094 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
72095
72096         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
72097         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
72098         Derek R. Price.
72099         * lib/regex.h (RE_DUP_MAX): Update comment to match current
72100         implementation.
72101
72102 2006-04-12  Eric Blake  <ebb9@byu.net>
72103
72104         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
72105         is now done automatically by the corresponding Autoconf macro.
72106
72107 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
72108
72109         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
72110         time_r.h.
72111
72112 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
72113
72114         Merge regex changes from libc, removing some of our
72115         POSIX-conformance changes that were rejected and redoing them in a
72116         less-intrusive way.
72117
72118         * lib/regcomp.c (re_compile_internal, init_dfa):
72119         Length arg is now size_t, not Idx.  All uses changed.
72120         (peek_token): Forward decl now says internal_function.
72121         (__re_error_msgid, __re_error_msgid_idx):
72122         Now static rather than extern with attribute_hidden.
72123         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
72124         For some reason libc prefers K&R style defns for external functions.
72125         (regerror) [!defined _LIBC]: Likewise.
72126         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
72127         (seek_collating_symbol_entry, lookup_collation_sequence_value):
72128         (build_range_exp, build_collating_symbol):
72129         Use K&R-style defn.
72130         (re_compile_fastmap): Use '\0' to memset, not 0.
72131         (utf8_sb_map): Make the calculations more obvious.
72132         (init_dfa, parse_bracket_exp, build_charclass_op):
72133         Call calloc and cast result, as glibc does.
72134         (init_word_char, fetch_token, peek_token, peek_token_bracket):
72135         (build_range_exp, build_collating_symbol):
72136         Now internal functions.
72137
72138         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
72139
72140         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
72141         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
72142         Don't depend on VMS; depend on __VMS instead, for POSIX
72143         namespace cleanness.
72144         (regoff_t): Define to ssize_t, not long int.
72145
72146         Remove the REG_ macros named below.  Instead, make the old names
72147         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
72148         __USE_GNU_REGEX.
72149         (REG_BACKSLASH_ESCAPE_IN_LISTS):
72150         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
72151         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
72152         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
72153         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
72154         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
72155         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
72156         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
72157         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
72158         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
72159         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
72160         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
72161         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
72162         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
72163         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
72164         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
72165         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
72166         (REG_NREGS):
72167         Remove.  All uses replaced by the old RE_* names.
72168         (RE_BACKSLASH_ESCAPE_IN_LISTS):
72169         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
72170         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
72171         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
72172         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
72173         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
72174         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
72175         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
72176         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
72177         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
72178         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
72179         Don't bother having these macros be independent of each others'
72180         values, since they no longer exist in the POSIX name space.
72181
72182         Rename the following member names back to their old names,
72183         unless !__USE_GNU_REGEX.  All uses changed back.
72184         (buffer): Renamed from re_buffer.
72185         (allocated): Renamed from re_allocated.
72186         (used): Renamed from re_used.
72187         (syntax): Renamed from re_syntax.
72188         (fastmap): Renamed from re_fastmap.
72189         (translate): Renamed from re_translate.
72190         (can_be_null): Renamed from re_can_be_null.
72191         (regs_allocated): Renamed from re_regs_allocated.
72192         (fastmap_accurate): Renamed from re_fastmap_accurate.
72193         (no_sub): Renamed from re_no_sub.
72194         (not_bol): Renamed from re_not_bol.
72195         (not_eol): Renamed from re_not_eol.
72196         (newline_anchor): Renamed from re_newline_anchor.
72197         (num_regs): Renamed from rm_num_regs.
72198         (start): Renamed from rm_start.
72199         (end): Renamed from rm_end.
72200
72201         (free_state): Move up a bit.
72202
72203         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
72204         #define to be empty.
72205         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
72206         when that is what is intended.
72207         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
72208         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
72209         (MAX): New macro.
72210         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
72211         All uses changed back to re_malloc, etc.  It's now the caller's
72212         responsibility to check for overflow; all callers changed.
72213         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
72214         (re_x2nrealloc): Remove.
72215         (free_state): Remove decl.
72216
72217         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
72218         (re_set_registers, re_exec):
72219         Use K&R-style defn.
72220
72221         2006-01-31  Roland McGrath  <roland@redhat.com>
72222
72223         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
72224         Reported by Mike Frysinger <vapier@gentoo.org>.
72225
72226         2006-01-15  Andreas Jaeger  <aj@suse.de>
72227
72228         [BZ #1950]
72229         * lib/regex_internal.c (re_string_reconstruct): Adjust for
72230         build_wcs_upper_buffer change.
72231         (build_wcs_upper_buffer): Change return type.
72232
72233         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
72234
72235         * lib/regex_internal.h: Include <stdint.h> if available.
72236
72237         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
72238
72239         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
72240
72241         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
72242
72243         * lib/regcomp.c: Adjust for changed secondary hash function.
72244
72245         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
72246
72247         * lib/regex.h: Pretty printing.
72248         Clean up namespace a bit.
72249
72250         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
72251
72252         * lib/regexec.c (update_cur_sifted_state, check_arrival,
72253         check_arrival_add_next_nodes): Avoid using uninitialized variable.
72254
72255         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
72256                     Ulrich Drepper  <drepper@redhat.com>
72257
72258         [BZ #1302]
72259         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
72260         changed.
72261         (bitset_word_t): Renamed from bitset_word.  All uses changed.
72262
72263         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
72264
72265         [BZ #281]
72266         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
72267         * lib/regcomp.c: Remove unnecessary uses of
72268         unsigned RE_TRANSLATE_TYPE.
72269         * lib/regex_internal.h: Likewise.
72270         * lib/regex_internal.c: Likewise.
72271         * lib/regexec.c: Likewise.
72272         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
72273
72274         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
72275
72276         * lib/regexec.c (find_recover_state): Remove unnecessary
72277         initialization.
72278         (transit_state_bkref): Make DFA a const pointer.
72279         (get_subexp): Likewise.
72280         (check_arrival): Likewise.
72281         (update_cur_sifted_state): Likewise.
72282         (re_search_internal): Likewise.
72283         (prune_impossible_nodes): Likewise.
72284         (acquire_init_state_context): Likewise.
72285         (proceed_next_node): Likewise.
72286         (set_regs): Likewise.
72287         (free_fail_stack_return): Likewise.
72288         (check_arrival_expand_ecl): Mark DFA parameter as const.
72289         (check_arrival_expand_ecl_sub): Likewise.
72290         (check_subexp_limits): Likewise.
72291         (sub_epsilon_src_nodes):  Likewise.
72292         (add_epsilon_src_nodes):  Likewise.
72293         (merge_state_array): Likewise.
72294         (update_regs): Likewise.
72295         (build_trtable): Likewise.
72296         (sift_states_backward): Mark MCTX parameter as const.
72297         (build_sifted_states): Likewise.
72298         (update_cur_sifted_state): Likewise.
72299         (sift_states_mkref): Likewise.
72300         (check_arrival_expand_ecl): Mark eclosure as const.
72301         (check_dst_limits_calc_pos_1): Likewise.
72302         * lib/regex_internal.h (re_match_context_t): Make dfa a const
72303         pointer.
72304
72305         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
72306
72307         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
72308         (transit_state_sb): Likewise.
72309         (transit_state_mb): Likewise.
72310         (sift_states_iter_mb): Likewise.
72311         (check_arrival_add_next_nodes): Likewise.
72312         (check_node_accept_bytes): Change first parameter to pointer-to-const.
72313         [_LIBC] (re_search_2_stub): Use mempcpy.
72314
72315         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
72316         mbrtowc for very simple UTF-8 case.
72317
72318         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
72319         a pointer-to-const.
72320         (re_acquire_state_context): Likewise.
72321         * lib/regex_internal.h: Adjust prototypes.
72322
72323         * lib/regex.c: Prevent using C++ compilers.
72324
72325         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
72326         (re_acquire_state_context): Likewise.
72327
72328 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
72329
72330         * modules/regex (Depends-on): Add ssize_t.
72331
72332 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
72333
72334         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
72335         translation table.
72336
72337 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
72338
72339         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
72340
72341 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
72342             Bruno Haible  <bruno@clisp.org>
72343
72344         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
72345         <sys/types.h> and <inttypes.h>.
72346
72347 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72348
72349         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
72350         `__error_t_defined', so argp.h will not typedef the former.
72351
72352 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
72353
72354         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
72355         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
72356         glibc names.  Even if glibc is changed to conform to POSIX, the
72357         traditional names will be available anyway, since regex depends on
72358         the extensions module.  Also, fix a longstanding typo in the
72359         implementation of Spencer ERE test #75 from grep 2.3.  Problems
72360         reported by Emanuele Giaquinta.  Also, change sense of cached
72361         variable, so that the message makes sense.
72362
72363 2006-03-24  Simon Josefsson  <jas@extundo.com>
72364
72365         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
72366         including some doc fixes.
72367         (base64_encode_alloc): Fix +1 bug on allocation failures.
72368
72369 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72370
72371         * lib/base64.c (base64_encode): Do not read past end of array with
72372         unsanitized input on systems with CHAR_BIT > 8.
72373
72374 2006-03-24  Eric Blake  <ebb9@byu.net>
72375
72376         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
72377
72378 2006-03-22  Karl Berry  <karl@gnu.org>
72379
72380         * config/srclist.txt (*setenv.[ch]): get from coreutils.
72381         * config/srclistvars.sh (COREUTILS): new var.
72382
72383 2006-03-17  Jim Meyering  <jim@meyering.net>
72384
72385         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
72386         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
72387
72388 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
72389
72390         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
72391         no longer needs it.  Instead, check that regoff_t is as least
72392         as wide as ptrdiff_t.
72393
72394         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
72395         so that our regex.h stays compatible with the installed regex.
72396         This is helpful for installers who configure --without-included-regex.
72397         Problem reported by Emanuele Giaquinta.
72398
72399 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
72400
72401         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
72402         Typedef to long int, not to off_, as POSIX will likely change
72403         in that direction.
72404
72405 2006-03-15  Eric Blake  <ebb9@byu.net>
72406
72407         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
72408
72409 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
72410
72411         * lib/argp-help.c (validate_uparams): Fix typo
72412         * lib/argp-parse.c (argp_default_options): Consistently begin help
72413         messages with a lowercase letter.
72414
72415 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
72416
72417         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
72418         overrun buffers and shouldn't be used (much as gets shouldn't be
72419         used).
72420         * lib/time_r.c (asctime_r, ctime_r): Likewise.
72421
72422 2006-03-08  Simon Josefsson  <jas@extundo.com>
72423
72424         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
72425         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
72426
72427 2006-03-08  Simon Josefsson  <jas@extundo.com>
72428
72429         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
72430         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
72431
72432 2006-03-08  Simon Josefsson  <jas@extundo.com>
72433
72434         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
72435         signal that configure disabled the device.
72436
72437 2006-03-08  Simon Josefsson  <jas@extundo.com>
72438
72439         * build-aux/maint.mk: Fix refresh-po, to handle no translated
72440         languages.
72441
72442 2006-03-07  Simon Josefsson  <jas@extundo.com>
72443
72444         * modules/getopt (Depends-on): Add unistd.
72445
72446         * modules/unistd: New file.
72447
72448 2006-03-07  Simon Josefsson  <jas@extundo.com>
72449
72450         * modules/gc-random: New file.
72451
72452 2006-03-07  Simon Josefsson  <jas@extundo.com>
72453
72454         * m4/unistd_h.m4: New file.
72455
72456 2006-03-07  Simon Josefsson  <jas@extundo.com>
72457
72458         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
72459         test to be side-effect free by storing the result in the cache
72460         variable gl_cv_lib_readline, and moving the assignment of
72461         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
72462         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
72463
72464 2006-03-07  Simon Josefsson  <jas@extundo.com>
72465
72466         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
72467         error on missing devices (the functions will return an error).
72468
72469         * m4/gc.m4: Move random stuff to gc-random.m4
72470
72471 2006-03-07  Simon Josefsson  <jas@extundo.com>
72472
72473         * lib/unistd_.h: New file.
72474
72475 2006-03-07  Simon Josefsson  <jas@extundo.com>
72476
72477         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
72478
72479 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
72480
72481         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
72482         Problem reported by Juan Manuel Guerrero.
72483
72484 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
72485
72486         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
72487         the unistd module.
72488         * lib/getlogin_r.c: Likewise.
72489         * lib/getlogin_r.h: Likewise.
72490         * lib/glob.c: Likewise.
72491         * lib/pagealign_alloc.c: Likewise.
72492         * lib/unistd_.h: Remove; no longer needed.
72493
72494 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
72495
72496         * MODULES.html.sh (Support for systems lacking POSIX:2001):
72497         Add unistd.
72498         * modules/c-stack (Depends-on): Add unistd.
72499         * modules/getlogin_r: Likewise.
72500         * modules/glob: Likewise.
72501         * modules/pagealign_alloc: Likewise.
72502         * modules/unistd (Files): Remove lib/unistd_.h.
72503         (EXTRA_DIST): Remove.
72504         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
72505         need unistd_.h.
72506         (MOSTLYCLEANFILES): Remove unistd.h-t.
72507
72508 2006-03-03  Simon Josefsson  <jas@extundo.com>
72509
72510         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
72511
72512 2006-03-03  Simon Josefsson  <jas@extundo.com>
72513
72514         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
72515         libidn and bison.
72516
72517 2006-03-03  Simon Josefsson  <jas@extundo.com>
72518
72519         * build-aux/maint.mk: Add indent target.
72520
72521 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
72522
72523         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
72524         our replacement poll.h in any case, to avoid a differing
72525         declaration from a system header.  Seen on AIX.
72526
72527 2006-03-01  Simon Josefsson  <jas@extundo.com>
72528
72529         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
72530         <kasal@ucw.cz>.
72531
72532 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
72533
72534         * modules/gettime (Depends-on): Add extensions module.
72535         * modules/nanosleep (Depends-on): Likewise.
72536         * modules/settime (Depends-on): Likewise.
72537
72538 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
72539
72540         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
72541         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
72542         pedantically.
72543         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
72544         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
72545
72546         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
72547         not "==".  Reported by Ralf Wildenhues.
72548
72549 2006-03-01  Karl Berry  <karl@gnu.org>
72550
72551         * doc/Copyright/request-*: new files, synced from gnuorg.
72552
72553 2006-03-01  Karl Berry  <karl@gnu.org>
72554
72555         * config/srclist.txt (Copyright/*): new entries.
72556
72557 2006-02-28  Simon Josefsson  <jas@extundo.com>
72558
72559         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
72560
72561 2006-02-27  Simon Josefsson  <jas@extundo.com>
72562
72563         * lib/base64.h: Indent #define's.  From Jim Meyering
72564         <jim@meyering.net>.
72565
72566 2006-02-27  Jim Meyering  <jim@meyering.net>
72567
72568         Revert the change of 2006-02-24, so these files can continue
72569         to be sync'd from gettext.
72570         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
72571         of `config.h'.
72572
72573 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
72574
72575         * modules/intprops: New file.
72576         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
72577         Add intprops.
72578         * modules/getloadavg (Files): Remove lib/intprops.h.
72579         (Depends-on): Add intprops.
72580         * modules/human: Likewise.
72581         * modules/inttostr: Likewise.
72582         * modules/openat: Likewise.
72583         * modules/sig2str: Likewise.
72584         * modules/userspec: Likewise.
72585         * modules/utimecmp: Likewise.
72586         * modules/xnanosleep: Likewise.
72587         * modules/xstrtol: Likewise.
72588
72589 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
72590
72591         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
72592         * modules/lock-tests (TESTS): Use $(EXEEXT).
72593         * modules/tls-tests: Likewise.
72594         * modules/argp-tests: Likewise.
72595         (check_PROGRAMS): New var, replacing...
72596         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
72597
72598 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72599
72600         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
72601         `config.h'.
72602
72603 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
72604
72605         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
72606
72607 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72608
72609         Sync from coreutils.
72610         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
72611         gl_CHDIR_SAFER.
72612
72613 2006-02-22  Jim Meyering  <jim@meyering.net>
72614
72615         Sync from coreutils.
72616         * m4/chdir-safer.m4: New file.
72617
72618 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
72619
72620         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
72621         AT_FDCWD exceeds INT_MAX.
72622         * lib/openat.h (AT_FDCWD): Likewise.
72623
72624 2006-02-17  Eric Blake  <address@hidden>
72625
72626         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
72627
72628 2006-02-16  Simon Josefsson  <jas@extundo.com>
72629
72630         * modules/getaddrinfo (Depends-on): Add sys_socket.
72631
72632 2006-02-15  Simon Josefsson  <jas@extundo.com>
72633
72634         * build-aux/maint.mk: Add dsyntax-check rule.
72635
72636 2006-02-15  Eric Blake  <ebb9@byu.net>
72637
72638         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
72639         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
72640         'present but cannot compile' warnings on cygwin.
72641         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
72642         use ws2tcpip.h if sys/socket.h works.
72643         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
72644         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
72645
72646 2006-02-14  Simon Josefsson  <jas@extundo.com>
72647
72648         * modules/maintainer-makefile (Files): Rename.
72649
72650         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
72651         and (the local) Makefile.cfg to maint-cfg.mk.
72652
72653         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
72654         to the latter.
72655
72656         * modules/maintainer-makefile: New module.
72657
72658         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
72659         severaly stripped to make it possible to build it up from scratch
72660         with reliable tests.
72661
72662         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
72663         fixes to permit overriding the default actions when configure and
72664         makefile are not available.
72665
72666 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
72667
72668         Sync from coreutils.
72669         * modules/lstat (Depends-on): Don't depend on xalloc.
72670         (License): Change from GPL to LGPL, since this is now simply a
72671         replacement for a libc function.
72672
72673 2006-02-14  Jim Meyering  <jim@meyering.net>
72674
72675         Sync from coreutils.
72676
72677         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
72678         failure on deficient systems, and simplify gnulib lgpl dependencies.
72679         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
72680         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
72681
72682         * lib/xalloc-die.c: Remove unused definition of N_.
72683
72684 2006-02-14  Jim Meyering  <jim@meyering.net>
72685
72686         Sync from coreutils.
72687         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
72688         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
72689         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
72690         double-quote uses of that variable, to accommodate the rare case in
72691         which getmntent is available in none of the libraries checked.  This
72692         happens at least on FreeBSD 5.0.
72693
72694 2006-02-13  Simon Josefsson  <jas@extundo.com>
72695
72696         * gnulib-tool (Usage): Fix --import, from
72697         karl@freefriends.org (Karl Berry).
72698
72699 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
72700
72701         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
72702
72703 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
72704
72705         * lib/argp-namefrob.h: Restore changes accidentally lost during the
72706         "autoupdate" on 2005-12-12.
72707
72708 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
72709
72710         * modules/closeout (Depends-on): Remove atexit.
72711
72712 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
72713
72714         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
72715         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
72716
72717 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
72718
72719         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
72720         __EXTENSIONS__ if this causes compilation to fail.  Problem
72721         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
72722         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
72723
72724 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
72725
72726         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
72727         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
72728         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
72729         All uses changed.
72730
72731 2006-01-26  Simon Josefsson  <jas@extundo.com>
72732
72733         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
72734         prototype is visible on mingw32.
72735
72736         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
72737         for mingw32.
72738
72739         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
72740         mingw32).
72741
72742 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
72743
72744         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
72745         attempt to open for write; this always fails, at least on POSIX
72746         hosts.  This reinstates the 2006-01-09 change, which was
72747         inadvertently removed.
72748
72749 2006-01-26  Bruno Haible  <bruno@clisp.org>
72750
72751         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
72752         Reported by Paul Eggert.
72753
72754 2006-01-26  Bruno Haible  <bruno@clisp.org>
72755             Paul Eggert  <eggert@cs.ucla.edu>
72756
72757         * lib/stdbool_.h (_Bool)
72758         [(! (defined __cplusplus || defined __BEOS__)
72759           && !defined __GNUC__
72760           && !(defined __HP_cc || defined __xlc__
72761                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
72762                || defined __sgi))]:
72763         #define to signed char in these cases too; this simplifies
72764         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
72765         etc., separately) and makes it more conservative.
72766
72767 2006-01-25  Simon Josefsson  <jas@extundo.com>
72768
72769         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
72770         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
72771         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
72772
72773 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
72774
72775         * lib/argp-namefrob.h: Bugfix. Remove stray #
72776
72777 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
72778
72779         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
72780         so that we test the test.
72781         Check for yet another HP-UX cc bug involving *bool |= bool.
72782
72783 2006-01-25  Karl Berry  <karl@gnu.org>
72784
72785         * config/srclist.txt (vasnprintf.c): sync lost.
72786
72787 2006-01-25  Jim Meyering  <jim@meyering.net>
72788
72789         Sync from the stable (b5) branch of coreutils:
72790
72791         * lib/fts.c (fts_children): Don't let close() clobber errno from
72792         failed fchdir().
72793
72794         * lib/fts.c (fts_stat): When following a symlink-to-directory,
72795         don't necessarily interpret stat-fails+lstat-succeeds as indicating
72796         a dangling symlink.  That can also happen at least for ELOOP.
72797         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
72798         FYI, this bug predates the inclusion of fts.c in coreutils.
72799
72800         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
72801         in their own block, so pre-c99 compilers don't object.
72802
72803         Avoid the double-free (first in fts_read, second in fts_close) that
72804         would occur when an `active' directory is made inaccessible (e.g.,
72805         via chmod a-x) during a traversal.
72806         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
72807         before returning.  Reproduce this failure by
72808         mkdir -p a/b; cd a; chmod a-x . b
72809         Reported by Stavros Passas.
72810
72811 2006-01-25  Jim Meyering  <jim@meyering.net>
72812
72813         * lib/fileblocks.c: Remove more useless parentheses.
72814         * lib/readutmp.h: Likewise.
72815
72816 2006-01-25  Bruno Haible  <bruno@clisp.org>
72817
72818         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
72819         warnings.
72820         Reported by Paul Eggert.
72821
72822 2006-01-25  Bruno Haible  <bruno@clisp.org>
72823
72824         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
72825         rid of a trap command. For Solaris sh.
72826         Reported by Mark D. Baushke <mdb@gnu.org>.
72827
72828 2006-01-24  Simon Josefsson  <jas@extundo.com>
72829
72830         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
72831         Bruno.
72832
72833 2006-01-24  Karl Berry  <karl@gnu.org>
72834
72835         * config/srclist.txt (argp-namefrob.h): sync lost.
72836
72837 2006-01-24  Jim Meyering  <jim@meyering.net>
72838
72839         * modules/openat (Files): Add lib/intprops.h.
72840         From Mark D. Baushke.
72841
72842 2006-01-24  Jim Meyering  <jim@meyering.net>
72843
72844         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
72845         Reported by Mark D. Baushke.
72846
72847 2006-01-24  Jim Meyering  <jim@meyering.net>
72848
72849         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
72850
72851 2006-01-24  Bruno Haible  <bruno@clisp.org>
72852
72853         * modules/strnlen (Maintainer): Change from glibc to all.
72854
72855 2006-01-24  Bruno Haible  <bruno@clisp.org>
72856
72857         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
72858         Patch by Paul Eggert.
72859
72860 2006-01-24  Bruno Haible  <bruno@clisp.org>
72861
72862         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
72863         already has it.
72864         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
72865         2005-11-26.
72866
72867         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
72868         'signed char' to avoid problems with the built-in _Bool type.
72869         Reported by Paul Eggert on 2005-11-26.
72870
72871 2006-01-24  Bruno Haible  <bruno@clisp.org>
72872
72873         * gnulib-tool (func_import): Avoid constructing complicated sed
72874         expressions inside backquote.
72875         Report and solution by Mark D. Baushke <mdb@gnu.org>.
72876
72877 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
72878
72879         These changes imported from libc.
72880         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
72881         test and two separate function calls.
72882         * lib/strndup.c (__strndup): Add libc_hidden_def.
72883
72884 2006-01-23  Simon Josefsson  <jas@extundo.com>
72885
72886         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
72887         Remove the test_*_SOURCES variable: automake infers it by default.
72888         * modules/tls-tests: Likewise.
72889
72890 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
72891
72892         Work around porting bugs reported by Dieter in
72893         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
72894         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
72895         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
72896         Include "getopt.h" first, to check interface.
72897         (getenv): Declare only if defined HAVE_DECL_GETENV &&
72898         !HAVE_DECL_GETENV.
72899         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
72900         (__strndup): Revert to K&R-style function dfns, the glibc style.
72901         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
72902         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
72903         Include strnlen.h first, to get prototype properly.
72904         (strnlen): Renamed from __strnlen.
72905         Remove weak alias.
72906
72907 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
72908
72909         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
72910
72911 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
72912
72913         * config/srclist.txt: Adjust to reflect glibc reorganization.
72914         This affects only comments.
72915
72916 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
72917
72918          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
72919          Reported by Bruce Korb <bkorb@gnu.org>.
72920
72921 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
72922
72923         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
72924         to pacify gcc -Wswitch-default.
72925
72926 2006-01-22  Bruno Haible  <bruno@clisp.org>
72927
72928         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
72929         temporary buffer for sprintf, take into account the precision also
72930         for 'd', 'i', 'u', 'o', 'x', 'X'.
72931
72932 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
72933
72934         * modules/argp-tests: New module
72935         * tests/test-argp.c: New file
72936         * tests/test-argp-2.sh: New file
72937
72938 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
72939
72940         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
72941         (__argp_base_name): Removed
72942         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
72943         typo.
72944         (__argp_base_name): Provide macro definition or extern declaration
72945         depending on the configuration
72946
72947 2006-01-20  Simon Josefsson  <jas@extundo.com>
72948
72949         * modules/inet_ntop (Depends-on): Depend on sys_socket.
72950
72951 2006-01-20  Simon Josefsson  <jas@extundo.com>
72952
72953         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
72954
72955 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
72956
72957         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
72958         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
72959         Suggested by Bruno Haible.
72960
72961 2006-01-20  Karl Berry  <karl@gnu.org>
72962
72963         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
72964         until changes propagate, I guess.
72965
72966 2006-01-19  Simon Josefsson  <jas@extundo.com>
72967
72968         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
72969
72970 2006-01-19  Simon Josefsson  <jas@extundo.com>
72971
72972         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
72973
72974 2006-01-19  Simon Josefsson  <jas@extundo.com>
72975
72976         * gnulib-tool: Set check_PROGRAMS.
72977
72978         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
72979         modules/des-tests, modules/gc-arcfour-tests,
72980         modules/gc-arctwo-tests, modules/gc-des-tests,
72981         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
72982         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
72983         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
72984         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
72985         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
72986         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
72987         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
72988         test_*_SOURCES.
72989
72990 2006-01-18  Simon Josefsson  <jas@extundo.com>
72991
72992         * modules/socklen (Depends-on): Depend on sys_socket.
72993
72994 2006-01-18  Simon Josefsson  <jas@extundo.com>
72995
72996         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
72997         modules/des-tests, modules/gc-arcfour-tests,
72998         modules/gc-arctwo-tests, modules/gc-des-tests,
72999         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
73000         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
73001         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
73002         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
73003         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
73004         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
73005         $(EXEEXT) to automake TESTS variable, for mingw32.
73006
73007 2006-01-17  Simon Josefsson  <jas@extundo.com>
73008
73009         * modules/socklen (Include): Need sys/socket.h.
73010
73011 2006-01-17  Bruno Haible  <bruno@clisp.org>
73012
73013         * modules/ssize_t (Include): Add <sys/types.h>.
73014
73015 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
73016
73017         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
73018         it's not portable and it doesn't work with cross-compiles.
73019         Problem reported by Bruno Haible.  Fix missing-$ typo in
73020         'test "gl_cv_ignore_unused_libraries" ...' that prevented
73021         -zignore from being used with Sun's C compiler.
73022
73023 2006-01-12  Simon Josefsson  <jas@extundo.com>
73024
73025         * lib/base64.c: Fix warning, reported by Bruno Haible
73026         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
73027
73028 2006-01-12  Bruno Haible  <bruno@clisp.org>
73029
73030         * modules/ldd: New file.
73031         * build-aux/ldd.sh.in: New file.
73032         * MODULES.html.sh (Support for building libraries and executables): Add
73033         ldd.
73034
73035 2006-01-12  Bruno Haible  <bruno@clisp.org>
73036
73037         * m4/ldd.m4: New file.
73038
73039 2006-01-12  Bruno Haible  <bruno@clisp.org>
73040
73041         * gnulib-tool (func_import, func_create_testdir): Don't go into an
73042         endless loop while replacing $auxdir with build-aux.
73043
73044 2006-01-11  Simon Josefsson  <jas@extundo.com>
73045
73046         * lib/stdint_.h (SIZE_MAX): Add missing (.
73047
73048 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
73049
73050         Sync from coreutils.
73051         * lib/md5.c: Fix commentary typos.
73052         (alignof, UNALIGNED_P): No need for a GCC-specific version.
73053         * lib/md5.h (__attribute__): Remove; unused.
73054         * lib/sha1.c: Fix commentary to match md5 better.
73055         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
73056         so that we don't need to worry about alignment.  All uses changed.
73057         This merges the 2005-10-28 md5 change into sha1.
73058
73059 2006-01-11  Jim Meyering  <jim@meyering.net>
73060
73061         Sync from coreutils.
73062         * lib/md5.c (OP): Fix spacing.
73063
73064 2006-01-11  Bruno Haible  <bruno@clisp.org>
73065
73066         Ensure automatic ordering between gl_LOCK and gl_ARGP.
73067         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
73068         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
73069
73070 2006-01-11  Bruno Haible  <bruno@clisp.org>
73071
73072         Ensure automatic ordering between gl_LOCK and gl_ARGP.
73073         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
73074         the "early" section as well.
73075
73076 2006-01-11  Bruno Haible  <bruno@clisp.org>
73077
73078         Avoid "ar: no archive members specified" error on MacOS X.
73079         * gnulib-tool (func_modules_add_dummy): New function.
73080         (func_import, func_create_testdir): Invoke it.
73081
73082 2006-01-11  Bruno Haible  <bruno@clisp.org>
73083
73084         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
73085         with $auxdir in AC_CONFIG_FILES statements.
73086
73087 2006-01-11  Bruno Haible  <bruno@clisp.org>
73088
73089         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
73090         Initialize also noinst_HEADERS to empty.
73091
73092 2006-01-11  Bruno Haible  <bruno@clisp.org>
73093
73094         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
73095         variables.
73096         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
73097         autoreconf.
73098
73099 2006-01-11  Bruno Haible  <bruno@clisp.org>
73100
73101         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
73102         overridable by the user.
73103         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
73104
73105 2006-01-10  Simon Josefsson  <jas@extundo.com>
73106
73107         * modules/sys_socket: New file.
73108
73109 2006-01-10  Simon Josefsson  <jas@extundo.com>
73110
73111         * m4/sys_socket_h.m4: New file.
73112
73113 2006-01-10  Simon Josefsson  <jas@extundo.com>
73114
73115         * lib/socket_.h: New file.
73116
73117 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
73118
73119         * modules/readutmp (Maintainer): Add myself.
73120
73121 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
73122
73123         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
73124         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
73125         People who are still concerned with buggy memcmp implementations
73126         can invoke gl_FUNC_MEMCMP themselves.
73127
73128 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
73129
73130         * lib/regex_internal.h (BITSET_WORD_BITS):
73131         Work around a bug in 64-bit PGC (before version 6.1-2), where the
73132         preprocessor mishandles large unsigned values as if they were signed.
73133         Problem reported by Claudio Fontana in
73134         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
73135
73136 2006-01-10  Jim Meyering  <jim@meyering.net>
73137
73138         Avoid the double-free (first in fts_read, second in fts_close) that
73139         would occur when an `active' directory is made inaccessible (e.g.,
73140         via chmod a-x) during a traversal.
73141         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
73142         before returning.  Reproduce this failure by
73143         mkdir -p a/b; cd a; chmod a-x . b
73144         Reported by Stavros Passas.
73145
73146         Sync from coreutils.
73147         * lib/sha1.c: Tweak grammar in a comment.
73148
73149 2006-01-10  Jim Meyering  <jim@meyering.net>
73150
73151         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
73152         Patch by Joerg Sonnenberger.
73153
73154 2006-01-10  Bruno Haible  <bruno@clisp.org>
73155
73156         * modules/readutmp: Depend on module free.
73157         * modules/strtok_r: Depend on module restrict.
73158
73159 2006-01-10  Bruno Haible  <bruno@clisp.org>
73160
73161         * modules/gettext (configure.ac): Add an invocation of
73162         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
73163
73164 2006-01-10  Bruno Haible  <bruno@clisp.org>
73165
73166         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
73167         Reported by Werner Lemberg <wl@gnu.org>.
73168
73169 2006-01-10  Bruno Haible  <bruno@clisp.org>
73170
73171         * lib/localcharset.c: Update from GNU gettext.
73172
73173 2006-01-10  Bruno Haible  <bruno@clisp.org>
73174
73175         * lib/argp.h (__const): Remove macro. Use const instead.
73176         * lib/argp-fmtstream.h (__const): Likewise.
73177         * lib/glob_.h (__const): Remove macro.
73178         * lib/glob-libc.h: Use const instead of __const.
73179
73180 2006-01-10  Bruno Haible  <bruno@clisp.org>
73181
73182         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
73183         variable.
73184         Needed to avoid an automake error regarding the 'gettext' module.
73185
73186 2006-01-09  Simon Josefsson  <jas@extundo.com>
73187
73188         * modules/inet_ntop (Depends-on): Add restrict.
73189
73190 2006-01-09  Simon Josefsson  <jas@extundo.com>
73191
73192         * modules/gc-rijndael-tests (License): Put under LGPL.
73193
73194         * modules/gc-des-tests (License): Likewise.
73195
73196         * modules/gc-arcfour-tests (License): Likewise.
73197
73198         * modules/gc-arctwo-tests (License): Likewise.
73199
73200         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
73201
73202         * modules/gc-hmac-sha1-tests (Files): Likewise.
73203
73204         * modules/gc-hmac-md5-tests (License): Likewise.
73205
73206         * modules/gc-sha1-tests (License): Likewise.
73207
73208         * modules/gc-md5-tests (License): Likewise.
73209
73210         * modules/gc-md4-tests (License): Likewise.
73211
73212         * modules/gc-md2-tests (License): Likewise.
73213
73214         * modules/gc-tests (License): Likewise.
73215
73216         * modules/des-tests (License): Likewise.
73217
73218         * modules/md4-tests (License): Likewise.
73219
73220         * modules/md2-tests (License): Likewise.
73221
73222 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
73223
73224         Sync from coreutils:
73225
73226         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
73227         * modules/lib-ignore: New file.
73228         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
73229         chdir-safer.m4, lchmod.m4.
73230         * modules/openat: Add mkdirat.c, openat-priv.h.
73231
73232 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
73233
73234         Sync from coreutils.
73235         * m4/lib-ignore.m4: New file.
73236         * m4/lchmod.m4: New file.
73237
73238 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
73239
73240         Sync from coreutils.
73241         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
73242         for write access: POSIX says that must fail.
73243         * lib/fts.c (diropen): Likewise.
73244         * lib/save-cwd.c (save_cwd): Likewise.
73245         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
73246         well, for minor improvements on hosts that lack O_DIRECTORY.
73247         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
73248         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
73249         Fall back on chown if open failed with EACCES.
73250
73251         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
73252         Report an error at compile-time if only a 1-second nominal clock
73253         resolution is found.
73254
73255         * lib/lchmod.h: New file.
73256         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
73257         (make_dir_parents): Use lchown rather than chown, and
73258         lchmod rather than chmod.
73259
73260         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
73261         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
73262         "proc" reported by n0dalus.
73263
73264         * lib/mountlist.c: Include <limits.h>.
73265         (dev_from_mount_options)
73266         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
73267         New function.  It no longer assumes "dev=" has the System V meaning
73268         on Linux (since it doesn't).  It also parses "dev=" more carefully.
73269         (read_file_system_list)
73270         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
73271         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
73272         dev= in that case.
73273
73274         * lib/posixtm.h (PDS_PRE_2000): New macro.
73275         * lib/posixtm.c (year): Arg is now syntax_bits rather than
73276         allow_century.  All usages changed.  Reject dates outside the range
73277         1969-1999 if PDS_PRE_2000 is used.
73278
73279 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
73280
73281         Sync from coreutils.
73282         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
73283         (Time of day items): Mention the possibility of leap seconds.
73284         Problem reported by Dr. David Alan Gilbert.
73285
73286 2006-01-09  Jim Meyering  <jim@meyering.net>
73287
73288         Sync from coreutils.
73289
73290         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
73291
73292         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
73293
73294         * lib/modechange.c (mode_compile): Reject an invalid mode string
73295         that starts with an octal digit.  From Andreas Gruenbacher.
73296
73297         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
73298         and dup to open_safer and dup_safer, respectively.
73299         (openat_permissive): Fix typo in comment.
73300
73301         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
73302         "gettext.h"; either no longer needed or are guaranteed by openat.h.
73303         (_): Remove; no longer needed.
73304         (openat): Renamed from rpl_openat; no need for rpl_openat
73305         since openat.h renames openat for us.
73306         Replace most of the body with a call to openat_permissive,
73307         to avoid duplicate code.
73308         Port to (probably hypothetical) environments were mode_t is
73309         wider than int.
73310         (openat_permissive): Require mode arg, so that we can check
73311         types better.  Put it just after flags.  Change cwd failure
73312         indicator from pointer-to-bool to pointer-to-errno-value.
73313         All callers changed.
73314         Invoke openat_save_fail and/or openat_restore_fail if
73315         cwd_errno is null, so that openat can call us.
73316         (openat_permissive, fdopendir, fstatat, unlinkat):
73317         Simplify errno handling to avoid some duplicate code,
73318         as it's OK to set errno on success.
73319         * lib/openat.h: Revamp code so that function macros depend on
73320         __OPENAT_PREFIX only, not also on AT_FDCWD.
73321         (openat_ro): Remove.  Caller changed to use openat_permissive.
73322         (openat_permissive): Now a macro, if not a function.
73323         (openat_restore_fail, openat_save_fail): Now always functions,
73324         since mkdirat needs them even if __OPENAT_PREFIX is defined.
73325
73326         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
73327         and openat.c.
73328         * lib/mkdirat.c: Include openat-priv.h.
73329         Remove definitions of macros defined therein.
73330         * lib/openat.c: Likewise.
73331
73332         * lib/mkdirat.c (mkdirat): New file and function.
73333         * lib/openat.h (mkdirat): Declare.
73334
73335         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
73336
73337         * lib/openat.h (openat_permissive): Declare.
73338         (openat_ro): Define.
73339
73340         * lib/openat.c (EXPECTED_ERRNO): New macro.
73341         (openat_permissive): New function -- used in remove.c rewrite.
73342         (all functions): Set errno just before returning, only if there
73343         was an actual failure.
73344         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
73345
73346         Emulate openat-family functions using Linux's procfs, if possible.
73347         Idea and some code based on Ulrich Drepper's glibc changes.
73348
73349         * lib/openat.c: (BUILD_PROC_NAME): New macro.
73350         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
73351         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
73352         before falling back on save_cwd and restore_cwd.
73353         (fdopendir, fstatat, unlinkat): Likewise.
73354
73355         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
73356         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
73357
73358         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
73359         as second argument to va_arg.  Otherwise, some versions of gcc
73360         warn that `if this code is reached, the program will abort'.
73361
73362 2006-01-09  Jim Meyering  <jim@meyering.net>
73363
73364         Sync from coreutils.
73365         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
73366         Require openat-priv.h.
73367
73368 2006-01-09  Bruno Haible  <bruno@clisp.org>
73369
73370         * modules/strnlen (Include): Use strnlen.h.
73371
73372 2006-01-09  Bruno Haible  <bruno@clisp.org>
73373
73374         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
73375
73376 2006-01-09  Bruno Haible  <bruno@clisp.org>
73377
73378         * lib/sysexit_.h (EX_OK): New macro.
73379         Suggested by Martin Lambers <marlam@marlam.de>.
73380
73381 2006-01-09  Bruno Haible  <bruno@clisp.org>
73382
73383         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
73384         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
73385
73386 2006-01-09  Bruno Haible  <bruno@clisp.org>
73387
73388         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
73389         numbers.
73390
73391 2006-01-09  Bruno Haible  <bruno@clisp.org>
73392
73393         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
73394         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
73395         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
73396         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
73397
73398 2006-01-09  Bruno Haible  <bruno@clisp.org>
73399
73400         * build-aux/javacomp.sh.in: New file, moved from lib/.
73401         * modules/javacomp-script (Files): Update.
73402         (configure.ac): Add AC_CONFIG_FILES invocation.
73403         (EXTRA_DIST): Remove variable.
73404
73405         * build-aux/javaexec.sh.in: New file, moved from lib/.
73406         * modules/javaexec (Files): Update.
73407         (configure.ac): Add AC_CONFIG_FILES invocation.
73408         (EXTRA_DIST): Remove javaexec.sh.in.
73409
73410         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
73411         * modules/csharpcomp-script (Files): Update.
73412         (configure.ac): Add AC_CONFIG_FILES invocation.
73413         (EXTRA_DIST): Remove variable.
73414
73415         * build-aux/csharpexec.sh.in: New file, moved from lib/.
73416         * modules/csharpexec (Files): Update.
73417         (configure.ac): Add AC_CONFIG_FILES invocation.
73418         (EXTRA_DIST): Remove csharpexec.sh.in.
73419
73420 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
73421
73422         Sync from coreutils.
73423
73424         Add POSIX ACL support
73425         * lib/acl.h (copy_acl, set_acl): Add declarations.
73426         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
73427         systems other than Linux.
73428         (chmod_or_fchmod): New function: use fchmod when possible,
73429         and chmod otherwise.
73430         (file_has_acl): Add a POSIX ACL implementation, with a
73431         Linux-specific subcase.
73432         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
73433         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
73434         acls are unsupported.
73435         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
73436         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
73437         are unsupported.
73438
73439 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
73440
73441         Sync from coreutils.
73442         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
73443
73444 2006-01-07  Bruno Haible  <bruno@clisp.org>
73445
73446         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
73447         gl_EARLY.
73448
73449 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
73450
73451         * lib/strftime.c (tzname): Don't declare if it is already #defined.
73452         Problem reported for Mingw by Mark Junker.
73453
73454 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
73455
73456         * README: Gnulib normally doesn't generate a tarball.
73457
73458 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
73459
73460         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
73461         long int, not int, for nanosecond counts, so that people who are
73462         used to POSIX struct timespec won't be surprised.  Reported by Jim
73463         Meyering.
73464
73465 2005-12-28  Bruno Haible  <bruno@clisp.org>
73466
73467         * build-aux/config.rpath: Update from GNU gettext.
73468
73469 2005-12-16  Jim Meyering  <jim@meyering.net>
73470
73471         * modules/fprintftime: New module.
73472         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
73473
73474 2005-12-16  Jim Meyering  <jim@meyering.net>
73475
73476         * m4/fprintftime.m4: New file.
73477
73478 2005-12-16  Jim Meyering  <jim@meyering.net>
73479
73480         * lib/fprintftime.c, lib/fprintftime.h: New files.
73481
73482 2005-12-15  Simon Josefsson  <jas@extundo.com>
73483
73484         * modules/socklen (configure.ac): Fix M4 macro name, to align with
73485         new m4/socklen.m4.
73486
73487 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
73488
73489         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
73490         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
73491
73492 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
73493
73494         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
73495         * lib/argp-help.c (fill_in_uparams): Check if the constructed
73496         struct uparams is valid. Fall back to the default values if it is
73497         not.
73498
73499 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
73500
73501         * modules/argp (Files): Add argp-pin.c
73502         (Depends-on): dirname
73503         (lib_SOURCES): Add argp-pin.c
73504
73505 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
73506
73507         * m4/argp.m4:  Check if program_invocation_name and
73508         program_invocation_short_name are declared and define appropriate
73509         macros if they are not.
73510
73511 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
73512
73513         * lib/argp-help.c (__argp_base_name): New function
73514         (__argp_short_program_name): Rewrite using __argp_base_name
73515         * lib/argp-namefrob.h: Define program_invocation_name and
73516         program_invocation_short_name if requested
73517         (__argp_base_name): Add prototype
73518         * lib/argp-parse.c (argp_def): Use gettext wrappers
73519         (argp_default_parser): Use __argp_base_name
73520         * lib/argp-pin.c: New file. Defines program_invocation_name and
73521         program_invocation_short_name on systems that lack them.
73522
73523 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
73524
73525         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
73526         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
73527         porting problem reported by Georg Schwarz in
73528         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
73529
73530 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
73531
73532         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
73533         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
73534         porting problem reported by Georg Schwarz in
73535         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
73536
73537 2005-12-05  Bruno Haible  <bruno@clisp.org>
73538
73539         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
73540         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
73541         Reported by Mark Junker <mjscod@gmx.de>.
73542
73543 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
73544
73545         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
73546         Use implementation from Albert Chin, with some
73547         comments/corrections by Stepan Kasal and myself.
73548
73549 2005-12-02  Bruno Haible  <bruno@clisp.org>
73550
73551         * gnulib-tool (func_import): Accept GPLed build tool modules when
73552         --lgpl is given.
73553         * modules/csharpcomp-script: New file.
73554         * modules/csharpcomp: Depend on it.
73555         * modules/javacomp-script: New file.
73556         * modules/javacomp: Depend on it.
73557         Suggested by Simon Josefsson.
73558
73559 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
73560
73561         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
73562         statement, to work around an HP-UX 10.20 compiler bug reported by
73563         Peter O'Gorman.
73564
73565 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
73566
73567         * modules/savedir (Depends-on): Add openat.
73568
73569 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
73570
73571         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
73572         (uintmax_t) [defined uintmax_t]: Do not declare.
73573         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
73574         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
73575         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
73576         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
73577         sake of portability to weird hosts that C allows (though we don't
73578         know of any practical examples).
73579
73580         * lib/savedir.h (fdsavedir): New decl.
73581         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
73582         contains most of the former guts of savedir.
73583         (savedir): Use savedirstream.
73584         Include "openat.h".
73585
73586 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
73587
73588         * modules/obstack (Files): Add m4/ulonglong.m4.
73589         Problem reported by Davide Angelocola.
73590
73591 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
73592
73593         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
73594         coreutils no longer futzes with rounding modes.
73595
73596 2005-11-14  Jim Meyering  <jim@meyering.net>
73597
73598         * lib/mkstemp-safer.c: Include <config.h>, required for possible
73599         replacement of mkstemp.
73600
73601 2005-11-10  Simon Josefsson  <jas@extundo.com>
73602
73603         * lib/readline.c: Remove EOL.
73604
73605 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
73606
73607         * modules/gethrxtime (Depends-on): Add gettime.
73608
73609 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
73610
73611         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
73612         or gettimeofday; no longer needed.
73613
73614 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
73615
73616         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
73617         time business.
73618         (gethrxtime) [! (HAVE_NANOUPTIME
73619         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
73620         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
73621         our own approximation.
73622
73623 2005-11-08  Eric Blake  <ebb9@byu.net>
73624
73625         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
73626
73627 2005-11-08  Eric Blake  <ebb9@byu.net>
73628
73629         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
73630
73631 2005-11-04  Bruno Haible  <bruno@clisp.org>
73632
73633         * gnulib-tool: Implement --update mode.
73634
73635 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
73636
73637         Fix porting problem reported by Theodoros V. Kalamatianos.
73638         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
73639         Don't assume that futimes failing means we must fail.
73640
73641 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
73642
73643         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
73644         variables to suggest the intended function of the PATH_MAX check.
73645
73646 2005-10-30  Kean Johnston  <jkj@sco.com>
73647
73648         Trivial changes to support SCO systems.
73649         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
73650         as PATH_MAX.
73651         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
73652         where __ptr is null when no I/O is pending.
73653
73654 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
73655
73656         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
73657         leave errno alone.  Problem reported by Dmitry V. Levin.
73658
73659 2005-10-28  Simon Josefsson  <jas@extundo.com>
73660
73661         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
73662         Test more.
73663
73664         * tests/test-gc-md2.c, tests/test-md2.c: New files.
73665
73666         * modules/md2, modules/md2-tests: New files.
73667
73668 2005-10-28  Simon Josefsson  <jas@extundo.com>
73669
73670         * m4/inet_ntop.m4: More tests.
73671
73672         * m4/gc-md2.m4, md2.m4: New file.
73673
73674 2005-10-28  Simon Josefsson  <jas@extundo.com>
73675
73676         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
73677         "restrict" keywords, as per POSIX.  Protect the function
73678         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
73679         Don't use K&R prototypes.  Check the sprintf return values.
73680         Re-define EAFNOSUPPORT if not present.  Indent.
73681
73682         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
73683         suggested by Bruno Haible <bruno@clisp.org>.
73684
73685         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
73686
73687         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
73688
73689         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
73690         libgcrypt).
73691
73692         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
73693
73694         * lib/md2.h, lib/md2.c: New files.
73695
73696 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
73697
73698         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
73699         errno alone.  Problem reported by Frederic Jolliton.
73700
73701 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
73702
73703         * modules/verify (License): Change from GPL to LGPL.  This is a
73704         tiny module and there are apparently near-equivalents that are
73705         under the BSD license.
73706
73707 2005-10-24  Simon Josefsson  <jas@extundo.com>
73708
73709         * modules/sha1: Relicense to LGPL.
73710
73711 2005-10-24  Simon Josefsson  <jas@extundo.com>
73712
73713         * lib/md4.h: Shrink buffer size, now that we changed the type.
73714
73715 2005-10-23  Simon Josefsson  <jas@extundo.com>
73716
73717         * gnulib-tool (func_import): Fix --tests-base.
73718
73719 2005-10-22  Simon Josefsson  <jas@extundo.com>
73720
73721         * modules/arcfour (Depends-on): Need stdint.
73722
73723 2005-10-22  Simon Josefsson  <jas@extundo.com>
73724
73725         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
73726         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
73727
73728 2005-10-22  Simon Josefsson  <jas@extundo.com>
73729
73730         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
73731         suggested by Bruno Haible <bruno@clisp.org>.
73732
73733 2005-10-22  Simon Josefsson  <jas@extundo.com>
73734
73735         * lib/crc.h: Include stddef.h, for size_t.
73736
73737 2005-10-22  Simon Josefsson  <jas@extundo.com>
73738
73739         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
73740         arcfour_context struct (simplify test vector testing in GNU
73741         Shishi).
73742
73743 2005-10-21  Simon Josefsson  <jas@extundo.com>
73744
73745         * modules/des, modules/des-tests: New files.
73746
73747         * modules/gc-des, modules/gc-des-tests: New files.
73748
73749         * tests/test-des.c, tests/test-gc-des.c: New file.
73750
73751 2005-10-21  Simon Josefsson  <jas@extundo.com>
73752
73753         * modules/arctwo, modules/arctwo-tests: New files.
73754
73755         * tests/test-arctwo.c: New file.
73756
73757         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
73758
73759         * tests/test-gc-arctwo.c: New file.
73760
73761 2005-10-21  Simon Josefsson  <jas@extundo.com>
73762
73763         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
73764         Bruno Haible <bruno@clisp.org>.
73765
73766         * m4/gc-des.m4: New file.
73767
73768 2005-10-21  Simon Josefsson  <jas@extundo.com>
73769
73770         * m4/arctwo.m4: New file.
73771
73772         * m4/gc-arctwo.m4: New file.
73773
73774 2005-10-21  Simon Josefsson  <jas@extundo.com>
73775
73776         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
73777         block.
73778
73779 2005-10-21  Simon Josefsson  <jas@extundo.com>
73780
73781         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
73782         <bruno@clisp.org>.
73783
73784         * lib/hmac-sha1.c (hmac_sha1): Likewise.
73785
73786         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
73787         Bruno Haible <bruno@clisp.org>.
73788
73789         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
73790         <bruno@clisp.org>.
73791
73792 2005-10-21  Simon Josefsson  <jas@extundo.com>
73793
73794         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
73795
73796 2005-10-21  Simon Josefsson  <jas@extundo.com>
73797
73798         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
73799
73800 2005-10-21  Simon Josefsson  <jas@extundo.com>
73801
73802         * lib/des.h, lib/des.c: New files.
73803
73804         * lib/gc-gnulib.c: Support DES.c
73805
73806 2005-10-21  Simon Josefsson  <jas@extundo.com>
73807
73808         * lib/arctwo.h, lib/arctwo.c: New files.
73809
73810         * lib/gc-gnulib.c: Support ARCTWO.
73811
73812 2005-10-21  Simon Josefsson  <jas@extundo.com>
73813
73814         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
73815         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
73816
73817 2005-10-21  Simon Josefsson  <jas@extundo.com>
73818
73819         * gnulib-tool (func_import, func_create_testdir): Define automake
73820         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
73821         Makefile.am snippet),
73822         suggested by Bruno Haible <bruno@clisp.org>.
73823
73824         * modules/gc (Makefile.am): Use it.
73825
73826 2005-10-21  Bruno Haible  <bruno@clisp.org>
73827
73828         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
73829         patch.
73830
73831 2005-10-19  Simon Josefsson  <jas@extundo.com>
73832
73833         * tests/test-gc-rijndael.c: New file.
73834
73835         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
73836
73837 2005-10-19  Simon Josefsson  <jas@extundo.com>
73838
73839         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
73840         interface too.
73841
73842 2005-10-19  Simon Josefsson  <jas@extundo.com>
73843
73844         * tests/test-gc-arcfour.c: New file.
73845
73846         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
73847
73848 2005-10-19  Simon Josefsson  <jas@extundo.com>
73849
73850         * modules/gc-md4, modules/gc-md4-tests: New file.
73851
73852         * tests/test-gc-md4.c: New file.
73853
73854 2005-10-19  Simon Josefsson  <jas@extundo.com>
73855
73856         * m4/gc-md4.m4: New file.
73857
73858 2005-10-19  Simon Josefsson  <jas@extundo.com>
73859
73860         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
73861         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
73862         <kasal@ucw.cz>.
73863
73864 2005-10-19  Simon Josefsson  <jas@extundo.com>
73865
73866         * m4/gc-arcfour.m4: New file.
73867
73868         * m4/gc-rijndael.m4: New file.
73869
73870 2005-10-19  Simon Josefsson  <jas@extundo.com>
73871
73872         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
73873
73874 2005-10-19  Simon Josefsson  <jas@extundo.com>
73875
73876         * lib/gc-gnulib.c: Support ARCFOUR.
73877
73878 2005-10-19  Simon Josefsson  <jas@extundo.com>
73879
73880         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
73881         support.
73882
73883         * lib/gc.h: Add ECB enum type.
73884
73885         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
73886
73887 2005-10-18  Simon Josefsson  <jas@extundo.com>
73888
73889         * tests/test-md5.c: New file.
73890
73891         * modules/md5-tests: New file.
73892
73893 2005-10-18  Simon Josefsson  <jas@extundo.com>
73894
73895         * tests/test-md4.c: New file.
73896
73897         * modules/md4, modules/md4-tests: New files.
73898
73899 2005-10-18  Simon Josefsson  <jas@extundo.com>
73900
73901         * m4/md4.m4: New file.
73902
73903 2005-10-18  Simon Josefsson  <jas@extundo.com>
73904
73905         * lib/md4.h, lib/md4.c: New files, based on md5.?.
73906
73907 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
73908
73909         * gnulib-tool (func_create_testdir): Omit the second check whether
73910         BUILT_SOURCES in nonempty.
73911
73912 2005-10-17  Simon Josefsson  <jas@extundo.com>
73913
73914         * tests/test-rijndael.c: New file.
73915
73916 2005-10-17  Simon Josefsson  <jas@extundo.com>
73917
73918         * modules/sha1: Depend on stdint instead of md5.
73919
73920         * modules/md5: Depend on stdint, remove uint32_t.
73921
73922 2005-10-17  Simon Josefsson  <jas@extundo.com>
73923
73924         * modules/gc-sha1-tests: New file.
73925
73926         * tests/test-gc-sha1.c: New file.
73927
73928 2005-10-17  Simon Josefsson  <jas@extundo.com>
73929
73930         * m4/md5.m4: Remove call to uint32_t.m4.
73931
73932 2005-10-17  Simon Josefsson  <jas@extundo.com>
73933
73934         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
73935
73936         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
73937         md5.h.
73938
73939         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
73940
73941         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
73942
73943 2005-10-17  Simon Josefsson  <jas@extundo.com>
73944
73945         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
73946
73947 2005-10-17  Simon Josefsson  <jas@extundo.com>
73948
73949         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
73950
73951 2005-10-17  Simon Josefsson  <jas@extundo.com>
73952
73953         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
73954
73955         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
73956
73957 2005-10-17  Bruno Haible  <bruno@clisp.org>
73958
73959         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
73960         that it can also be used in a test.
73961
73962 2005-10-16  Bruno Haible  <bruno@clisp.org>
73963
73964         * gnulib-tool (func_emit_tests_Makefile_am): Also define
73965         TESTS_ENVIRONMENT, so that individual tests can augment it.
73966
73967         * gnulib-tool (func_create_testdir): Use an intermediate target for
73968         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
73969         macros, like $(ALLOCA_H), which cannot be passed through the command
73970         line.
73971
73972 2005-10-15  Simon Josefsson  <jas@extundo.com>
73973
73974         * modules/rijndael-tests: New file.
73975
73976         * modules/rijndael: New file.
73977
73978 2005-10-15  Simon Josefsson  <jas@extundo.com>
73979
73980         * m4/rijndael.m4: New file.
73981
73982 2005-10-15  Simon Josefsson  <jas@extundo.com>
73983
73984         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
73985
73986         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
73987
73988 2005-10-14  Simon Josefsson  <jas@extundo.com>
73989
73990         * tests/test-arcfour.c: New file.
73991
73992         * modules/arcfour, modules/arcfour-tests: New files.
73993
73994 2005-10-14  Simon Josefsson  <jas@extundo.com>
73995
73996         * m4/arcfour.m4: New file.
73997
73998 2005-10-14  Simon Josefsson  <jas@extundo.com>
73999
74000         * lib/arcfour.h, lib/arcfour.c: New files.
74001
74002 2005-10-14  Roland McGrath  <roland@redhat.com>
74003
74004         Import from libc.  [BZ #1331]
74005         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
74006         macro argument.
74007         Reported by Matej Vela <vela@debian.org>.
74008
74009 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
74010
74011         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
74012         include <wchar.h>; no longer needed.
74013
74014 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
74015
74016         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
74017
74018 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
74019         and  Ulrich Drepper  <drepper@redhat.com>
74020
74021         Import from libc.
74022         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
74023         instead of inline stream orientation test and two separate
74024         function calls.  Pay no attention to USE_IN_LIBIO.
74025
74026 2005-10-13  Simon Josefsson  <jas@extundo.com>
74027
74028         * modules/gc-hmac-md5-tests: New file.
74029
74030         * tests/test-gc-hmac-sha1.c: New file.
74031
74032         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
74033
74034         * modules/gc-hmac-md5-tests: New file.
74035
74036         * tests/test-gc-md5.c: New file.
74037
74038         * modules/gc-md5-tests: New file.
74039
74040 2005-10-13  Simon Josefsson  <jas@extundo.com>
74041
74042         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
74043         Move memory allocation outside of loop.
74044
74045 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
74046
74047         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
74048         intermediate directory is in a read-only file system.  Problem
74049         reported by Eric Blake.
74050
74051 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
74052
74053         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
74054
74055 2005-10-12  Simon Josefsson  <jas@extundo.com>
74056
74057         * tests/test-hmac-sha1.c: New file.
74058
74059         * modules/hmac-sha1-tests: New file.
74060
74061         * modules/hmac-sha1: New file.
74062
74063 2005-10-12  Simon Josefsson  <jas@extundo.com>
74064
74065         * modules/gc-sha1: New file.
74066
74067 2005-10-12  Simon Josefsson  <jas@extundo.com>
74068
74069         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
74070
74071         * tests/test-gc-pbkdf2-sha1.c: New file.
74072
74073 2005-10-12  Simon Josefsson  <jas@extundo.com>
74074
74075         * modules/gc-md5, modules/gc-hmac-md5: New files.
74076
74077         * modules/gc (Files): Remove md5, memxor and hmac files.
74078
74079 2005-10-12  Simon Josefsson  <jas@extundo.com>
74080
74081         * m4/gc-pbkdf2-sha1.m4: New file.
74082
74083         * m4/gc-hmac-sha1.m4: New file.
74084
74085         * m4/gc-sha1: New file.
74086
74087         * m4/hmac-sha1.m4: New file.
74088
74089 2005-10-12  Simon Josefsson  <jas@extundo.com>
74090
74091         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
74092
74093         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
74094
74095 2005-10-12  Simon Josefsson  <jas@extundo.com>
74096
74097         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
74098         suggested by Bruno Haible <bruno@clisp.org>.
74099
74100 2005-10-12  Simon Josefsson  <jas@extundo.com>
74101
74102         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
74103
74104 2005-10-12  Simon Josefsson  <jas@extundo.com>
74105
74106         * lib/gc-pbkdf2-sha1.c: New file.
74107
74108         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
74109
74110 2005-10-12  Simon Josefsson  <jas@extundo.com>
74111
74112         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
74113
74114         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
74115
74116 2005-10-12  Simon Josefsson  <jas@extundo.com>
74117
74118         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
74119         GC_USE_HMAC_MD5, respectively.
74120
74121         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
74122         (gc_md5): Fix typo.
74123
74124         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
74125
74126         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
74127
74128         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
74129
74130 2005-10-12  Bruno Haible  <bruno@clisp.org>
74131
74132         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
74133         Reported by Stepan Kasal <kasal@ucw.cz>.
74134
74135 2005-10-11  Simon Josefsson  <jas@extundo.com>
74136
74137         * tests/test-crc.c: New file.
74138
74139         * modules/crc, modules/crc-tests: New files.
74140
74141 2005-10-11  Simon Josefsson  <jas@extundo.com>
74142
74143         * m4/crc.m4: New file.
74144
74145 2005-10-11  Simon Josefsson  <jas@extundo.com>
74146
74147         * lib/gc.h: Add gc_hash and gc_hash_buffer.
74148
74149         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
74150
74151         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
74152
74153 2005-10-11  Simon Josefsson  <jas@extundo.com>
74154
74155         * lib/crc.h, lib/crc.c: New files.
74156
74157         * lib/gc.h (gc_hash_buffer): Add doc.
74158
74159 2005-10-11  Bruno Haible  <bruno@clisp.org>
74160
74161         * modules/c-strcasestr: New file.
74162         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
74163
74164 2005-10-11  Bruno Haible  <bruno@clisp.org>
74165
74166         * modules/c-strcase: New file.
74167         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
74168
74169 2005-10-11  Bruno Haible  <bruno@clisp.org>
74170
74171         * lib/strcasecmp.c: Include limits.h.
74172         (strcasecmp): Avoid integer overflow on exotic platforms.
74173         * lib/strncasecmp.c: Include limits.h.
74174         (strncasecmp): Avoid integer overflow on exotic platforms.
74175         Reported by Paul Eggert.
74176
74177 2005-10-11  Bruno Haible  <bruno@clisp.org>
74178
74179         * lib/c-strcasestr.h: New file, from GNU gettext.
74180         * lib/c-strcasestr.c: New file, from GNU gettext.
74181
74182 2005-10-11  Bruno Haible  <bruno@clisp.org>
74183
74184         * lib/c-strcase.h: New file, from GNU gettext.
74185         * lib/c-strcasecmp.c: New file, from GNU gettext.
74186         * lib/c-strncasecmp.c: New file, from GNU gettext.
74187
74188 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
74189
74190         * modules/mempcpy (License): GPL -> LGPL.
74191         * modules/strchrnul (License): Likewise.
74192         * modules/sysexits (License): Likewise.
74193
74194 2005-10-08  Simon Josefsson  <jas@extundo.com>
74195
74196         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
74197
74198 2005-10-07  Simon Josefsson  <jas@extundo.com>
74199
74200         * m4/memxor.m4: Remove gl_C_RESTRICT call.
74201
74202 2005-10-06  Simon Josefsson  <jas@extundo.com>
74203
74204         * tests/test-hmac-md5.c: New file.
74205
74206         * modules/hmac-md5-tests: New file.
74207
74208         * modules/hmac-md5: New file.
74209
74210 2005-10-06  Simon Josefsson  <jas@extundo.com>
74211
74212         * m4/hmac-md5.m4: New file.
74213
74214         * m4/memxor.m4: Require gl_C_RESTRICT.
74215
74216 2005-10-06  Simon Josefsson  <jas@extundo.com>
74217
74218         * lib/memxor.c (memxor): Avoid casts and warnings.
74219
74220 2005-10-06  Simon Josefsson  <jas@extundo.com>
74221
74222         * lib/hmac-md5.c: New file.
74223
74224         * lib/hmac.h: New file.
74225
74226 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
74227
74228         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
74229         promotes to int, not unsigned int, to catch the AIX 5.3
74230         compiler bug.
74231
74232 2005-10-05  Simon Josefsson  <jas@extundo.com>
74233
74234         * modules/memxor: New file.
74235
74236         * modules/iconv (Files): Move config.rpath to havelib, it is used
74237         there.
74238
74239         * modules/havelib (Files): Add config.rpath.
74240
74241 2005-10-05  Simon Josefsson  <jas@extundo.com>
74242
74243         * m4/memxor.m4: New file.
74244
74245 2005-10-05  Simon Josefsson  <jas@extundo.com>
74246
74247         * lib/memxor.c (memxor): Fix compiler error.
74248
74249         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
74250         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
74251
74252         * lib/memxor.h, lib/memxor.c: New files.
74253
74254         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
74255         we assume all systems have it, suggested by Jim Meyering
74256         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
74257         any systems lack sys/socket.h; mingw32 is known to lack it, but we
74258         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
74259         same reasons.
74260
74261 2005-10-05  Simon Josefsson  <jas@extundo.com>
74262
74263         * config/srclist.txt: Add glibc bug 1423 for md5.h.
74264
74265 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
74266
74267         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
74268         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
74269         needed, since the source code now assumes these .h files.
74270
74271 2005-10-05  Derek Price  <derek@ximbiot.com>
74272
74273         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
74274
74275 2005-10-05  Bruno Haible  <bruno@clisp.org>
74276
74277         * modules/stdint (License): Change to LGPL.
74278
74279 2005-10-04  Simon Josefsson  <jas@extundo.com>
74280
74281         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
74282         D. Baushke" <mdb@gnu.org>.
74283
74284 2005-10-04  Bruno Haible  <bruno@clisp.org>
74285
74286         * lib/verify.h (verify_true): Provide alternative definition for C++.
74287
74288 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
74289
74290         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
74291         (SSIZE_MAX): New macro, if not already defined.
74292         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
74293         than 2 GiB.
74294
74295 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
74296
74297         Sync from coreutils.
74298         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
74299         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
74300         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
74301         ULLONG_MAX doesn't work with 2.7.2.1.
74302
74303 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
74304
74305         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
74306         From Ben Pfaff.
74307
74308         * modules/exclude (Depends-on): Depend on verify.
74309         * modules/strtoimax (Depends-on): Likewise.
74310         * modules/utimecmp (Depends-on): Likewise.
74311
74312 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
74313
74314         * lib/exclude.c: Include verify.h.
74315         (verify): Remove.  All callers changed to use verify.h's version.
74316         * lib/strtoimax.c: Likewise.
74317         * lib/utimecmp.c: Likewis.e
74318
74319         Sync from coreutils.
74320         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
74321         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
74322         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
74323         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
74324         bother returning ENOSYS if settimeofday or stime fails; just let
74325         them return whatever errno they want to return.
74326         * lib/utimens.c: Include unistd.h, for dup2.
74327         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
74328         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
74329
74330 2005-10-02  Jim Meyering  <jim@meyering.net>
74331
74332         Sync from coreutils.
74333         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
74334         from glibc-2.2.5 that fails for read-only files.
74335
74336 2005-10-02  Jim Meyering  <jim@meyering.net>
74337
74338         Sync from coreutils.
74339         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
74340         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
74341         `#if HAVE_CONFIG_H'.
74342         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
74343         Remove AT_FDCWD test.
74344         Do not consume the fd unless successful.
74345         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
74346         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
74347         block, so that we don't even try to compile it if settimeofday is
74348         available.  This works around a compilation failure on OSF1 V5.1,
74349         due to stime requiring a `long int*' while tv_sec is `int'.
74350
74351 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
74352
74353         Sync from coreutils.
74354         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
74355         against `yes', rather than just testing for nonempty.
74356
74357 2005-10-01  Simon Josefsson  <jas@extundo.com>
74358
74359         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
74360         and Darwin.
74361
74362         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
74363         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
74364         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
74365         freeaddrinfo and gai_strerror are declared by the POSIX headers.
74366         Check if struct addrinfo is declared.
74367
74368 2005-10-01  Simon Josefsson  <jas@extundo.com>
74369
74370         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
74371         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
74372         AI_* and EAI_* definitions.  Protect function declarations.
74373
74374 2005-10-01  Jim Meyering  <jim@meyering.net>
74375
74376         Sync from coreutils.
74377
74378         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
74379         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
74380         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
74381         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
74382         in the inet and nsl libraries.  Required on Solaris 5.7.
74383
74384 2005-10-01  Jim Meyering  <jim@meyering.net>
74385
74386         Sync from coreutils.
74387         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
74388         in the inet and nsl libraries.  Required on Solaris 5.7.
74389
74390 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
74391
74392         * lib/getdelim.c (getdelim): Remove unused variables.
74393
74394 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
74395
74396         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
74397         so that the code works even with ancient cpp.  Portability problem
74398         with GCC 2.7.2.1 reported by Thomas M.Ott.
74399
74400 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
74401
74402         * modules/regex (Depends-on): Add strcase.
74403
74404         * modules/gethostname (Licence): Change from GPL to LGPL, since
74405         gethostname.c is a trivial implementation of a standard library
74406         function.
74407         * modules/poll (License): Change from GPL to LGPL, since it's
74408         derived from LGPL code.
74409
74410 2005-09-27  Jim Meyering  <jim@meyering.net>
74411
74412         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
74413         HAVE_CONFIG_H.
74414
74415         * lib/intprops.h (signed_type_or_expr__): Define.
74416         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
74417         for unsigned types.
74418
74419 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
74420
74421         * lib/verify.h (verify_expr): Remove, replacing with:
74422         (verify_true): New macro that returns true instead of void.
74423         (verify_type__): Remove.
74424         (verify): Use verify_true rather than verify_type__.
74425
74426 2005-09-26  Bruno Haible  <bruno@clisp.org>
74427
74428         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
74429         is necessary.
74430         (lib_SOURCES): Remove mbchar.c.
74431         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
74432         (Files): Add m4/mbrtowc.m4.
74433         * modules/mbiter: Likewise.
74434         * modules/mbuiter: Likewise.
74435
74436 2005-09-26  Bruno Haible  <bruno@clisp.org>
74437
74438         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
74439         compile mbchar.c if they are not both present.
74440         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
74441         * m4/mbiter.m4 (gl_MBITER): Likewise.
74442         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
74443         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
74444         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
74445
74446 2005-09-25  Jim Meyering  <jim@meyering.net>
74447
74448         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
74449         also uses socklen_t.
74450
74451 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
74452
74453         * lib/utimens.c (ENOSYS): Define if not already defined.
74454         (futimens): Support having a null PATH if the file descriptor
74455         is nonnegative.
74456
74457         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
74458         Remove.
74459         (__attribute): Define to empty unless GCC 3.1 or later.
74460         This works around a core dump on OpenBSD 3.4, which has GCC
74461         2.95.3, which dumps core when given __attribute__(()).  It also
74462         simplifies other tests, since we really don't want to bother with
74463         worrying about which ancient version of GCC supported what.
74464         Original problem reported by Yoann Vandoorselaere, with part of
74465         the fix suggested by Derek Price.
74466
74467 2005-09-24  Jim Meyering  <jim@meyering.net>
74468
74469         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
74470         so we can once again use a positive bitfield width of 1 -- now we
74471         don't have to explain why we were using a bitfield width of 2.
74472
74473 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
74474
74475         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
74476         and similarly for the other external symbols.  Problem reported
74477         by James Gallager.
74478
74479         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
74480         bug reported by Jim Meyering.
74481
74482         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
74483         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
74484         not needed, since socklen is a prerequisite module.
74485
74486 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
74487
74488         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
74489         Problem reported by Eric Blake.
74490         (getaddrinfo): Initialize se so that it's not garbage.
74491         Redo internal storage allocation so that it doesn't make unportable
74492         assumptions about alignment.
74493         Fix a memory leak.
74494
74495         * lib/utimens.c (futimens): Use futimesat if available.
74496         Prefer it to futimes since it doesn't have the futimes bug.
74497
74498         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
74499         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
74500         Instead, declare a function that returns a pointer to an array,
74501         and use verify_type__ to declare the size of the array.
74502         Problem and germ of a solution reported by Bruno Haible.
74503         (verify_type__): Use 2, not 1, for bitfield size, to avoid
74504         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
74505
74506 2005-09-23  Jim Meyering  <jim@meyering.net>
74507
74508         Sync from coreutils.
74509         Correct build failure (socklen_t not defined) on at least
74510         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
74511         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
74512
74513 2005-09-23  Jim Meyering  <jim@meyering.net>
74514
74515         * modules/getaddrinfo (Depends-on): Add socklen.
74516
74517 2005-09-23  Bruno Haible  <bruno@clisp.org>
74518
74519         * tests/test-verify.c: New file.
74520
74521 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
74522
74523         Sync from coreutils.
74524
74525         * modules/argmatch (Depends-on): Add verify.
74526         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
74527         unistd-safer.
74528         * modules/save-cwd (Depends-on): Likewise.
74529
74530         * modules/openat (Files): Add lib/openat-die.c.
74531         (Depends-on): Remove error, exitfail.
74532         Add dirname.
74533
74534         * modules/verify: New file.
74535         * MODULES.html.sh (Diagnostics <assert.h>): New section,
74536         with "verify" module.
74537
74538 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
74539
74540         Sync from coreutils.
74541
74542         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
74543         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
74544         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
74545         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
74546         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
74547         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
74548         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
74549         Don't bother checking for string.h, stdlib.h, unistd.h.
74550         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
74551         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
74552         module's job.
74553         * m4/jm-macros.m4 (gl_MACROS): Likewise.
74554         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
74555
74556         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
74557         (gl_GETDATE): Use it.
74558
74559         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
74560
74561 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
74562
74563         Sync from coreutils.
74564
74565         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
74566         stat-time.h.
74567         * lib/argmatch.h: Include verify.h
74568         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
74569         (ARGMATCH_ASSERT): Remove; unused.
74570         * lib/canonicalize.c: Assume STDC_HEADERS.
74571         * lib/exclude.c: Include "strcase.h".
74572         * lib/regex_internal.h [!defined _LIBC]: Likewise.
74573         * lib/getusershell.c: Include stdio--.h rather than stdio.h
74574         and stdio-safer.h.
74575         (getusershell): Call fopen, not fopen_safer.
74576         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
74577         Do not include unistd-safer.h.
74578         (save_cwd): Don't call fd_safer; no longer needed
74579         now that we include fcntl--.h.
74580
74581         * lib/getdate.y (relative_time): New type.
74582         (RELATIVE_TIME_0): New constant.
74583         (parser_control): Use relative_time instead of doing it ourselves.
74584         (%union): Add new relative_time rel member.
74585         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
74586         Now typeless.
74587         (relunit, relunit_snumber): Now of type rel.
74588         (zone, rel, relunit, get_date): Adjust to above changes.
74589
74590         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
74591         Do not include unistd-safer.h.
74592         (getloadavg): Don't call fd_safer; no longer needed
74593         now that we include fcntl--.h.
74594
74595         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
74596         (make_dir_parents): Treat ENOSYS like EEXIST.
74597
74598         Improve quality of diagnostics on restore_cwd failure.
74599         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
74600         (make_dir_parents): Last arg is now int * (for errno), not bool *.
74601         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
74602         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
74603         each time through the loop.  Do not diagnose restore_cwd failure;
74604         that is the caller's job (and perhaps the caller does not care).
74605
74606         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
74607         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
74608         If the file already exists but is not a directory, don't bother
74609         to try to make its parents.
74610         Close potential file descriptor leak if we can't chdir("/") (!).
74611         Don't always return true if chdir($PWD) fails; return true only
74612         if the requested action was done successfully (except for the
74613         chdir($PWD)).
74614         Don't log final directory unless we actually made it.
74615         Refactor to avoid duplicate code to fix up permissions.
74616         Don't attempt to fix up parent permissions if chdir($PWD) fails.
74617
74618         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
74619         to make it a bit faster and (I hope) clearer.
74620         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
74621         Fix bug in formats like %2N.
74622
74623         * lib/verify.h: New file.
74624
74625 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
74626
74627         Sync from coreutils.
74628         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
74629
74630 2005-09-22  Jim Meyering  <jim@meyering.net>
74631
74632         Sync from coreutils.
74633
74634         * m4/lstat.m4 (gl_FUNC_LSTAT):
74635         Use AC_LIBSOURCES to require lstat.c and lstat.h.
74636         Remove obsolete comment.
74637         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
74638         * m4/xstrtod.m4: Likewise.
74639
74640         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
74641
74642 2005-09-22  Jim Meyering  <jim@meyering.net>
74643
74644         Sync from coreutils.
74645
74646         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
74647
74648         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
74649         the .tm_year member, since otherwise gcc-4.0 would now warn about
74650         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
74651
74652         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
74653         order to avoid an unsuppressible warning from gcc on 64-bit systems.
74654
74655         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
74656         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
74657         when run in a time zone for which daylight savings time is in effect
74658         for the starting date.
74659
74660         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
74661         stop us from restricting permissions of just-created absolute-named
74662         directories.
74663         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
74664         to restore initial working directory.
74665         * lib/mkdir-p.c (make_dir_parents): New parameter:
74666         different_working_dir, to tell caller if/when we change the working
74667         directory and are unable to return to the initial one.
74668         * lib/mkdir-p.h (make_dir_parents): Update prototype.
74669         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
74670         `return false'.  This fixes a bug introduced on 2004-07-30.
74671
74672         * lib/openat.c (fdopendir): Be sure to close the supplied
74673         file descriptor before returning.  This makes our replacement
74674         implementation a little closer to Solaris's, where fdopendir
74675         ties the file descriptor to the returned DIR* pointer.
74676         * lib/openat.c (unlinkat): New function.
74677         * lib/openat.h (unlinkat): Add prototype.
74678         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
74679         (openat_restore_fail): Rename from openat_restore_die.
74680         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
74681
74682         Provide an alternative to exiting immediately upon save_cwd or
74683         restore_cwd failure.  Now, an application can arrange e.g.,
74684         to perform a longjump in that case.
74685         * lib/openat.c: Include dirname.h.
74686         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
74687         (rpl_openat, fdopendir, fstatat): Call openat_save_die
74688         and openat_restore_die rather than calling error directly.
74689         Don't include "error.h" or "exitfail.h"; they're no longer needed.
74690
74691         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
74692         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
74693         define.
74694
74695         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
74696         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
74697                             int utc, int nanoseconds);
74698         Background:
74699         date should not have to allocate a megabyte of virtual memory to
74700         handle a format argument like +%1048575T.  When implemented with
74701         strftime, it must allocate such a buffer, use strftime to fill it
74702         in, print it, then free it.
74703         With fprintftime, it simply prints everything and exits.
74704         With no need for memory allocation, that's one fewer way to fail.
74705         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
74706         optional field width, not before, so we accept %9:z, not %:9z.
74707         (my_strftime): Be sure to use L_('x') for literals.
74708
74709         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
74710         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
74711         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
74712         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
74713         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
74714         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
74715         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
74716         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
74717         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
74718         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
74719         * lib/xgethostname.c, lib/xreadlink.c:
74720         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
74721
74722         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
74723         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
74724         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
74725         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
74726         and don't include <sys/file.h>).
74727
74728 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
74729
74730         Sync from coreutils.
74731
74732         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
74733         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
74734         [!LDAV_DONE]: Avoid unused variable warning.
74735
74736 2005-09-21  Bruno Haible  <bruno@clisp.org>
74737
74738         * lib/unicodeio.h (unicode_to_mb): New declaration.
74739
74740 2005-09-20  Derek Price  <derek@ximbiot.com>
74741
74742         * lib/getaddrinfo.c: Don't include <netdb.h> included from
74743         getaddrinfo.h.
74744
74745 2005-09-20  Bruno Haible  <bruno@clisp.org>
74746
74747         * gnulib-tool: Remove trailing slashes from the values specified for
74748         --source-base, --m4-base, --tests-base, --aux-dir.
74749         Suggested by Simon Josefsson <jas@extundo.com>.
74750
74751 2005-09-20  Bruno Haible  <bruno@clisp.org>
74752
74753         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
74754         func_modules_to_filelist, func_import, func_create_testdir): Make all
74755         sorting results locale-independent, so that gnulib-cache.m4 doesn't
74756         change when gnulib-tool is invoked in a different locale.
74757
74758 2005-09-19  Simon Josefsson  <jas@extundo.com>
74759
74760         * m4/socklen.m4: Fix typo.
74761
74762 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74763
74764         Use a consistent style for including <config.h>.
74765         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
74766         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
74767         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
74768         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
74769         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
74770         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
74771         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
74772         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
74773         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
74774         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
74775         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
74776         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
74777         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
74778         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
74779         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
74780         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
74781         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
74782         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
74783         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
74784         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
74785         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
74786         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
74787         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
74788         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
74789         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
74790         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
74791         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
74792         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
74793         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
74794         lib/xstrtoumax.c, lib/yesno.c:
74795         Standardize inclusion of config.h.
74796         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
74797         lib/inttostr.h:  Removed inclusion of config.h from header files.
74798         * lib/inttostr.c:  Adjusted in-tree users.
74799         * lib/timespec.h: Remove superfluous warning to include config.h.
74800         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
74801         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
74802         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
74803         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
74804         config.h with HAVE_CONFIG_H.
74805
74806 2005-09-19  Jim Meyering  <jim@meyering.net>
74807
74808         * modules/pathmax (License): Change to LGPL.
74809
74810 2005-09-19  Derek Price  <derek@ximbiot.com>
74811
74812         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
74813
74814 2005-09-19  Bruno Haible  <bruno@clisp.org>
74815
74816         * gnulib-tool (import): Provide default for --tests-base.
74817
74818 2005-09-19  Bruno Haible  <bruno@clisp.org>
74819
74820         * doc/quote.texi: New file, extracted from gnulib.texi.
74821         * doc/ctime.texi: New file, extracted from gnulib.texi.
74822         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
74823         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
74824         * doc/gnulib.texi: Include them.
74825
74826 2005-09-18  Bruno Haible  <bruno@clisp.org>
74827
74828         Portability fix.
74829         * gnulib-tool (func_readlink): New function.
74830         (func_ln_if_changed): Use it.
74831
74832 2005-09-18  Bruno Haible  <bruno@clisp.org>
74833
74834         * gnulib-tool: Support --with-tests also with --import.
74835         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
74836         (func_import): Use variables $testsbase and $inctests. Emit a
74837         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
74838         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
74839         SUBDIRS += $testsdir.
74840         (func_create_testdir): Update.
74841
74842 2005-09-18  Bruno Haible  <bruno@clisp.org>
74843
74844         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
74845         instead of $dry_run.
74846         (func_cp_if_changed, func_mv_if_changed): Remove functions.
74847         (func_ln_if_changed): Don't handle dry-run here.
74848         (func_import): In dry-run mode, detect more precisely which actions
74849         would be performed, and don't use "...ing" verbs.
74850
74851 2005-09-18  Bruno Haible  <bruno@clisp.org>
74852
74853         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
74854         (func_import): Use join on two temporary files instead of three nested
74855         loops, in order to determine which files are new or old.
74856
74857 2005-09-18  Bruno Haible  <bruno@clisp.org>
74858
74859         * gnulib-tool (func_import): Comment out code that spits out the
74860         new files with --dry-run.
74861
74862 2005-09-18  Bruno Haible  <bruno@clisp.org>
74863
74864         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
74865
74866 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
74867
74868         * lib/stat-time.h: New file.
74869         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
74870         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
74871         in a different way.
74872         (timespec_cmp): New function.
74873         * lib/utimecmp.c: Include stat-time.h.
74874         (SYSCALL_RESOLUTION): Depend on whether various struct stat
74875         members exist, not on the obsolescent ST_MTIM_NSEC.
74876         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
74877
74878 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
74879
74880         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
74881
74882 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
74883
74884         * MODULES.html.sh (File system functions): Add stat-time.
74885         * modules/stat-time: New file.
74886         * modules/timespec (Files): Remove m4/st_mtim.m4; this
74887         is now done in a different way, by the stat-time module.
74888         * modules/utimecmp (Depends-on): Add stat-time.
74889
74890 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
74891
74892         * m4/st_mtim.m4: Remove.  Superseded by...
74893         * m4/stat-time.m4: New file.
74894         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
74895         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
74896
74897 2005-09-15  Derek Price  <derek@ximbiot.com>
74898
74899         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
74900
74901 2005-09-15  Derek Price  <derek@ximbiot.com>
74902
74903         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
74904         * lib/regex_internal.c: Ditto, using this...
74905         (__GNUC_PREREQ): ...new macro.
74906         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
74907         using...
74908         (__GNUC_PREREQ): ...this new macro.
74909
74910         * lib/strstr.h: Include string.h. Define strstr as a macro here.
74911
74912 2005-09-15  Derek Price  <derek@ximbiot.com>
74913             Paul Eggert  <eggert@cs.ucla.edu>
74914
74915         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
74916         changes, consolidating in...
74917         * lib/regex_internal.h: ...this file.
74918
74919 2005-09-13  Jim Meyering  <jim@meyering.net>
74920
74921         * lib/canon-host.c: Filter through gnu indent and reword comments
74922         slightly.
74923         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
74924
74925 2005-09-13  Derek Price  <derek@ximbiot.com>
74926
74927         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
74928         failure.
74929         Reported by Jim Meyering  <jim@meyering.net>.
74930
74931 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
74932
74933         * lib/base64.c: Typo.
74934         (base64_encode): Put b64str in initialized data section.
74935
74936 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
74937
74938         Merge glibc and coreutils changes into gnulib, plus a few
74939         extra fixes.
74940         * lib/md5.c: Use #error rather than a string.
74941         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
74942         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
74943         (__attribute__): Define to empty for non recent-GCC.
74944         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
74945         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
74946         Renamed from their non-__ counterparts, with new macros replacing
74947         them if not _LIBC.  Add __THROW attribute.
74948         (rol): Remove.
74949         (struct md5_ctx): Align buffer if using GCC.
74950         * lib/sha1.h (struct sha1_ctx): Likewise.
74951         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
74952         The old name was backwards.
74953         (NOTSWAP): Remove; not used.
74954         (rol): New macro, moved here from md5.h.
74955         (sha1_process_block): Remove a FIXME that doesn't make sense.
74956
74957 2005-09-12  Derek Price  <derek@ximbiot.com>
74958
74959         Return usable errors from canon-host.
74960         * lib/canon-host.h: New file.
74961         * lib/canon-host.c (canon_host): Wrap...
74962         (canon_host_r): ...this new function, which now relies exclusively on
74963         getaddrinfo.
74964         (ch_strerror): New function.
74965         (last_cherror): New global.
74966         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
74967         interface.
74968         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
74969         void *.
74970         (freeaddrinfo): Free ai->ai_canonname when set.
74971
74972 2005-09-12  Derek Price  <derek@ximbiot.com>
74973
74974         Make canon-host require getaddrinfo.
74975         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
74976         AC_LIBSOURCE canon-host.h.  Call...
74977         (gl_PREREQ_CANON_HOST): ...this new function, which requires
74978         gl_GETADDRINFO.
74979         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
74980
74981 2005-09-12  Derek Price  <derek@ximbiot.com>
74982
74983         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
74984         LGPL.
74985         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
74986
74987 2005-09-12  Derek Price  <derek@ximbiot.com>
74988
74989         * lib/gai_strerror.c: Include config.h when available.  Include
74990         getaddrinfo.h before other headers to test interface.
74991         Reported by Larry Jones <lawrence.jones@ugs.com>.
74992
74993 2005-09-12  Derek Price  <derek@ximbiot.com>
74994             Paul Eggert  <eggert@cs.ucla.edu>
74995
74996         * modules/glob (Files): Add glob-libc.h.
74997
74998 2005-09-12  Derek Price  <derek@ximbiot.com>
74999             Paul Eggert  <eggert@cs.ucla.edu>
75000
75001         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
75002         glob_.h, glob-libc.h.
75003         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
75004
75005 2005-09-12  Derek Price  <derek@ximbiot.com>
75006             Paul Eggert  <eggert@cs.ucla.edu>
75007
75008         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
75009         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
75010         protecting things that should be done only in gnulib contexts.
75011         * lib/glob_.h: New file, containing only the glob things needed for
75012         gnulib.
75013         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
75014         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
75015         (glob, globfree, glob_pattern_p): Now defined simply in terms of
75016         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
75017         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
75018         and to respect the namespace rules better.
75019
75020 2005-09-08  Simon Josefsson  <jas@extundo.com>
75021
75022         * modules/socklen: New file.
75023
75024 2005-09-08  Simon Josefsson  <jas@extundo.com>
75025
75026         * m4/socklen.m4: New file.
75027
75028 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
75029
75030         * modules/utimens (Files): Add m4/utimbuf.m4, since
75031         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
75032         Reported by Sergey Poznyakoff.
75033
75034 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
75035
75036         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
75037         definitions, since that's the preferred style in glibc.
75038         Fix a minor spacing issue, and update copyright notice to match
75039         glibc's.
75040
75041 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
75042
75043         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
75044
75045 2005-09-06  Simon Josefsson  <jas@extundo.com>
75046
75047         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
75048         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
75049
75050 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
75051
75052         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
75053         warning.
75054
75055 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
75056
75057         * config/srclist.txt: Add glibc bug 1302.
75058
75059 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
75060
75061         Change bitset word type from unsigned int to unsigned long int,
75062         as this has better performance on typical 64-bit hosts.
75063         Port bitset code to hosts with unusual word sizes.
75064         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
75065         (build_collating_symbol):
75066         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
75067         argument is a bitset.  This is merely a style issue, but it makes
75068         it clearer that an entire array is expected.
75069         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
75070         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
75071         Port to the case where bitset_word is not the same as unsigned int.
75072         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
75073         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
75074         Likewise.
75075         * lib/regexec.c (check_dst_limits_calc_pos_1,
75076         check_subexp_matching_top):
75077         (build_trtable, group_nodes_into_DFAstates):
75078         Likewise.
75079         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
75080         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
75081         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
75082         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
75083         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
75084         * lib/regcomp.c (optimize_subexps, lower_subexp):
75085         Work even if bitset_word has holes in its bitwise representation.
75086         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
75087         * lib/regexec.c (check_dst_limits_calc_pos_1,
75088         check_subexp_matching_top):
75089         Likewise.
75090         * lib/regex_internal.c (re_string_reconstruct):
75091         Don't assume UCHAR_MAX == 255.
75092         * lib/regex_internal.h (bitset_set_all): Likewise.
75093         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
75094         All uses changed.
75095         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
75096         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
75097         All uses changed.
75098         (BITSET_WORD_MAX): New macro.
75099         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
75100         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
75101         (bitset_empty, bitset_copy):
75102         Prefer sizeof (bitset) to multiplying it out ourselves.
75103         (bitset_not_merge): Remove; unused.
75104         (bitset_contain): Return bool, not unsigned int with one bit on.
75105         All callers changed.
75106         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
75107         alignment than re_node_set; do this by defining a new internal
75108         type struct dests_alloc and using it to allocate memory.
75109
75110 2005-09-05  Bruno Haible  <bruno@clisp.org>
75111
75112         * gnulib-tool (func_import): Fix comparison in handling of symbolic
75113         links.
75114
75115 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
75116
75117         * modules/size_max (Makefile.am): Add size_max.h
75118
75119 2005-09-04  Derek Price  <derek@ximbiot.com>
75120
75121         * gnulib-tool (func_import): Fix reversed $symbolic logic.
75122
75123 2005-09-03  Simon Josefsson  <jas@extundo.com>
75124
75125         * gnulib-tool: Fix typo.
75126
75127 2005-09-03  Simon Josefsson  <jas@extundo.com>
75128
75129         * config/srclist.txt: Add glibc bug 1293.
75130
75131 2005-09-03  Derek Price  <derek@ximbiot.com>
75132
75133         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
75134         From Larry Jones <lawrence.jones@ugs.com>.
75135
75136 2005-09-02  Simon Josefsson  <jas@extundo.com>
75137
75138         * modules/socklen: New file.
75139
75140 2005-09-02  Simon Josefsson  <jas@extundo.com>
75141
75142         * modules/havelib: New module.
75143
75144         * modules/gettext, modules/iconv, modules/lock, modules/readline:
75145         Use havelib.
75146
75147 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
75148
75149         Check for arithmetic overflow when calculating sizes, to prevent
75150         some buffer-overflow issues.  These patches are conservative, in the
75151         sense that when I couldn't determine whether an overflow was possible,
75152         I inserted a run-time check.
75153         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
75154         macros.
75155         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
75156         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
75157         (re_xnrealloc, re_x2nrealloc): New inline functions.
75158         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
75159         parse_bracket_exp):
75160         (build_equiv_class, build_charclass): Check for arithmetic overflow
75161         in size expression calculations.
75162         * lib/regex_internal.c (re_string_realloc_buffers):
75163         (build_wcs_upper_buffer, re_node_set_add_intersect):
75164         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
75165         (re_dfa_add_node, register_state): Likewise.
75166         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
75167         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
75168         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
75169         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
75170
75171 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
75172
75173         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
75174         m4/ulonglong.m4.  Problem reported by Martin Lambers.
75175
75176 2005-09-02  Bruno Haible  <bruno@clisp.org>
75177
75178         Support for lib vs. lib64 distinction on biarch platforms.
75179         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
75180         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
75181         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
75182
75183 2005-09-02  Bruno Haible  <bruno@clisp.org>
75184
75185         * gnulib-tool (import): In the other first-use case, provide defaults
75186         as well.
75187
75188 2005-09-02  Bruno Haible  <bruno@clisp.org>
75189
75190         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
75191         patches not yet found in the latest gettext release.
75192
75193 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
75194
75195         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
75196         to avoid a collision with bits/local_lim.h in glibc.
75197         All uses changed.  Problem reported by Dmitry V. Levin in
75198         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
75199
75200         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
75201         bugs in int versus size_t comparisons.
75202         (re_string_context_at): Fix bug where the code assumed that
75203         Idx is signed.
75204
75205         Use bool where appropriate.
75206         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
75207         All callers changed.
75208         (calc_eclosure_iter): Likewise, for ROOT arg.
75209         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
75210         (build_charclass_op): Likewise, for NON_MATCH arg.
75211         * lib/regex_internal.c (re_string_allocate, re_string_construct):
75212         (re_string_construct_common): Likewise, for ICASE arg.
75213         * lib/regexec.c (re_search_2_stub, re_search_stub):
75214         Likewise, for RET_LEN arg.
75215         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
75216         (set_regs): Likewise, for FL_BACKTRACK arg.
75217         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
75218         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
75219         (calc_eclosure_iter, parse_bracket_exp):
75220         Use bool for internal variables that are booleans.
75221         * lib/regexec.c (re_search_internal, check_matching,
75222         proceed_next_node):
75223         (set_regs, build_sifted_states, sift_states_bkref):
75224         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
75225         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
75226         (find_collation_sequence_value):
75227         Likewise.
75228         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
75229         (re_node_set_compare):
75230         Return bool, not int. All callers changed.
75231         * lib/regexec.c (check_halt_node_context, check_dst_limits):
75232         (build_trtable, check_node_accept): Likewise.
75233         * lib/regex_internal.h: Include stdbool.h.
75234
75235         Fix bugs uncovered when converting to bool.
75236         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
75237         failure instead of charging ahead blindly.
75238         * lib/regex_internal.c (register_state): Likewise.
75239         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
75240         for freeing internal storage.
75241         (group_nodes_into_DFA_states): Use unsigned int, not int, for
75242         bitset pieces used as boolean, to avoid undefined behavior
75243         on hosts that do int overflow checking.
75244
75245 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
75246
75247         * config/srclist.txt: Add glibc bugs 1285-1287.
75248
75249 2005-09-01  Jim Meyering  <jim@meyering.net>
75250
75251         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
75252         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
75253         Require gl_STAT_MACROS, too.
75254
75255 2005-09-01  Bruno Haible  <bruno@clisp.org>
75256
75257         * gnulib-tool (import): In the first-use case, provide defaults.
75258
75259 2005-09-01  Bruno Haible  <bruno@clisp.org>
75260
75261         * gnulib-tool (func_import): Remove the .tmp files.
75262
75263 2005-09-01  Bruno Haible  <bruno@clisp.org>
75264
75265         * gnulib-tool (func_import): Fix handling of symbolic links.
75266
75267 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
75268
75269         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
75270         old glibc regex code mishandles strings longer than 2**31 bytes.
75271         This patch fixes this when the regex code is used in gnulib
75272         (i.e., outside glibc).
75273
75274         This patch should not affect the use of the regex code inside
75275         glibc.  No doubt this problem also needs to be handled for glibc
75276         as well, but the result will be an incompatible change to the
75277         glibc ABI, and the old ABI will have to be supported too.  That
75278         can be the the subject for another patch.
75279
75280         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
75281         governing whether the rest of this patch is active.  By default,
75282         the macro is disabled and the patch has no effect.
75283         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
75284         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
75285         (struct re_pattern_buffer, re_search, re_search_2, re_match):
75286         (re_match_2, re_set_registers): Use the new types.
75287         * lib/regex_internal.h (Idx, re_hashval_t): New types.
75288         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
75289         New macros.
75290         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
75291         (re_string_context_at, bin_tree_t, re_dfastate_t):
75292         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
75293         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
75294         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
75295         (re_string_char_size_at, re_string_wchar_at):
75296         (re_string_elem_size_at):
75297         Use the new types and macros to port to 64-bit hosts.
75298         Use unsigned types for internal values, so that the code
75299         mostly works even for arrays larger than SSIZE_MAX.
75300         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
75301         (search_duplicated_node, calc_eclosure_iter, fetch_number):
75302         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
75303         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
75304         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
75305         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
75306         (calc_inveclosure, parse_dup_op, build_range_exp):
75307         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
75308         (fetch_number, create_token_tree, mark_opt_subexp):
75309         Likewise.
75310         * lib/regex_internal.c (re_string_construct_common,
75311         create_ci_newstate):
75312         (create_cd_newstate, re_string_allocate, re_string_construct):
75313         (re_string_realloc_buffers, build_wcs_upper_buffer):
75314         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
75315         (re_string_reconstruct, re_string_peek_byte_case):
75316         (re_string_fetch_byte_case, re_string_context_at):
75317         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
75318         (re_node_set_init_copy, re_node_set_add_intersect):
75319         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
75320         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
75321         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
75322         (re_acquire_state, re_acquire_state_context, register_state):
75323         Likewise.
75324         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
75325         search_cur_bkref_entry):
75326         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
75327         (re_search_internal, re_search_2_stub, re_search_stub)
75328         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
75329         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
75330         (update_cur_sifted_state, check_dst_limits):
75331         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
75332         (check_subexp_limits, sift_states_bkref, merge_state_array):
75333         (check_subexp_matching_top, get_subexp, get_subexp_sub):
75334         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
75335         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
75336         (expand_bkref_cache, check_node_accept_bytes):
75337         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
75338         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
75339         (acquire_init_state_context, check_halt_node_context):
75340         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
75341         (sift_states_backward, clean_state_log_if_needed):
75342         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
75343         (find_recover_state, transit_state_sb, transit_state_mb):
75344         (transit_state_bkref, build_trtable, match_ctx_clean):
75345         Likewise.
75346         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
75347         to work around an assumption that REG_MISSING is negative.
75348
75349         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
75350         (seek_collating_symbol_entry) [defined _LIBC]:
75351         (lookup_collation_sequence_value) [defined _LIBC]:
75352         (build_range_exp, build_collating_symbol) [defined _LIBC]:
75353         Use prototypes rather than old-style function definitions.
75354         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
75355         (transit_state_sb) [0]:
75356         (find_collation_sequence_value) [defined _LIBC]: Likewise.
75357
75358         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
75359         rm_eo.
75360
75361         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
75362         (optimize_subexps, lower_subexp):
75363         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
75364         since the signed shift might overflow.  Use 1u<<31 instead.
75365         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
75366         Likewise.
75367         * lib/regexec.c (check_dst_limits_calc_pos_1,
75368         check_subexp_matching_top): Likewise.
75369
75370         * lib/regcomp.c (optimize_subexps, lower_subexp):
75371         Use CHAR_BIT rather than 8, for clarity.
75372         * lib/regexec.c (check_dst_limits_calc_pos_1):
75373         (check_subexp_matching_top): Likewise.
75374         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
75375         have to worry about portability issues when shifting it left.
75376         Remove no-longer-needed test for table_size > 0.
75377         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
75378         in a word, as the resulting behavior is undefined.
75379         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
75380         in one case, a <= should have been an <, and in another case the
75381         whole test was missing.
75382         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
75383         the standard name CHAR_BIT.
75384         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
75385         this is not true on one's complement and signed-magnitude hosts.
75386
75387         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
75388         next_last_offset.
75389         (struct re_dfa_t): Remove unused member states_alloc.
75390         * lib/regcomp.c (init_dfa): Don't initialize unused members.
75391
75392 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
75393
75394         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
75395         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
75396         and large-file glibc and in 32-bit large-file Solaris.
75397
75398 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
75399
75400         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
75401         lengths fit in regoff_t; this isn't true if regoff_t is the same
75402         width as size_t.
75403         * lib/regex.c (re_search_internal): 5th arg is LAST_START
75404         (= START + RANGE) instead of RANGE.  This avoids overflow
75405         problems when regoff_t is the same width as size_t.
75406         All callers changed.
75407         (re_search_2_stub): Check for overflow when adding the
75408         sizes of the two strings.
75409         (re_search_stub): Check for overflow when adding START
75410         to RANGE; if it occurs, substitute the extreme value.
75411
75412 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
75413
75414         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
75415
75416 2005-08-31  Jim Meyering  <jim@meyering.net>
75417
75418         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
75419         a pointer-to-const.
75420         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
75421         (register_state): Likewise.
75422         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
75423         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
75424         (group_nodes_into_DFAstates): Likewise.
75425
75426 2005-08-31  Jim Meyering  <jim@meyering.net>
75427
75428         * check-module: Add a FIXME comment.
75429
75430 2005-08-31  Eric Blake  <ebb9@byu.net>
75431
75432         * modules/unistd-safer (Files): Add unistd--.h.
75433         * modules/stdio-safer (Files): Add stdio--.h.
75434
75435 2005-08-31  Derek Price  <derek@ximbiot.com>
75436
75437         * lib/getdelim.c (getdelim): Return EOF on EOF.
75438         Reported by Larry Jones <lawrence.jones@ugs.com>.
75439
75440 2005-08-31  Bruno Haible  <bruno@clisp.org>
75441
75442         Avoid unnecessary diffs in the generated lib/Makefile.am.
75443         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
75444         the generated files.
75445         (func_import): Don't set cmd.
75446
75447 2005-08-31  Bruno Haible  <bruno@clisp.org>
75448
75449         * lib/strstr.c: Include <stddef.h>, for NULL.
75450         * lib/strcasestr.c: Likewise.
75451         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
75452
75453 2005-08-31  Bruno Haible  <bruno@clisp.org>
75454
75455         * gnulib-tool: New option --macro-prefix.
75456         (func_import): Use macro_prefix.
75457         (import): Handle option --macro-prefix.
75458
75459 2005-08-31  Bruno Haible  <bruno@clisp.org>
75460
75461         * gnulib-tool (import): Rename most ac_* variables to cached_*.
75462         Also use new variables cached_lgpl, cached_libtool.
75463
75464 2005-08-31  Bruno Haible  <bruno@clisp.org>
75465
75466         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
75467         always instantiating them.
75468
75469 2005-08-31  Bruno Haible  <bruno@clisp.org>
75470
75471         * gnulib-tool (func_import): Read the previous cached settings
75472         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
75473         earlier added by gnulib but are now dropped. Warn when a gnulib file
75474         overwrites a non-gnulib file.
75475
75476 2005-08-31  Bruno Haible  <bruno@clisp.org>
75477
75478         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
75479         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
75480         projects that don't keep autogenerated files in CVS. Put into
75481         actioncmd only the specified modules, not the transitive closure.
75482
75483 2005-08-31  Bruno Haible  <bruno@clisp.org>
75484
75485         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
75486         Create directories that shall be filled.
75487         (import): Don't look for gl_* macros in configure.ac. Recurse across
75488         all directories containing a gnulib-cache.m4 files, if meaningful.
75489
75490 2005-08-31  Bruno Haible  <bruno@clisp.org>
75491
75492         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
75493         (import): Set seen_libtool when we see gl_LIBTOOL.
75494
75495 2005-08-31  Bruno Haible  <bruno@clisp.org>
75496
75497         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
75498         declaration macro definitions from generated gnulib.m4.
75499
75500 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
75501
75502         * lib/iconvme.h: Add prototype for iconv_alloc.
75503
75504 2005-08-29  Simon Josefsson  <jas@extundo.com>
75505
75506         * lib/iconvme.c: Fix errno.
75507
75508 2005-08-29  Bruno Haible  <bruno@clisp.org>
75509
75510         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
75511         that it works when the directory contains spaces.
75512
75513 2005-08-29  Bruno Haible  <bruno@clisp.org>
75514
75515         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
75516
75517 2005-08-29  Bruno Haible  <bruno@clisp.org>
75518
75519         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
75520         Emit more advice.
75521
75522 2005-08-29  Bruno Haible  <bruno@clisp.org>
75523         and Stepan Kasal  <kasal@ucw.cz>
75524
75525         * check-module: If more parameters are given, check each of them
75526         separately; add more exceptions, as noted by Jim Meyering.
75527         (check_module): New procedure.
75528         (%exempt_header): Now contains all exceptions.
75529
75530 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
75531
75532         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
75533
75534 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
75535
75536         * lib/iconvme.c: Split iconv_string into iconv_alloc.
75537
75538 2005-08-28  Bruno Haible  <bruno@clisp.org>
75539
75540         * m4/gnulib-tool.m4: New file.
75541
75542 2005-08-27  Jim Meyering  <jim@meyering.net>
75543
75544         * modules/unistd-safer (Files): Add pipe-safer.c.
75545         * modules/fcntl-safer (Files): Add creat-safer.c.
75546
75547 2005-08-27  Jim Meyering  <jim@meyering.net>
75548
75549         * m4/stdlib-safer.m4: New file.  From coreutils.
75550         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
75551         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
75552         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
75553         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
75554         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
75555
75556 2005-08-27  Jim Meyering  <jim@meyering.net>
75557
75558         * lib/fopen-safer.c: Merge minor changes from coreutils.
75559         * lib/dup-safer.c: Likewise.
75560         * lib/fd-safer.c: Likewise.
75561
75562         Merge from coreutils.
75563         * lib/stdio--.h: New file.
75564         * lib/stdlib--.h: New file.
75565         * lib/mkstemp-safer.c: New file.
75566
75567         GNU tar needs these.
75568         * lib/pipe-safer.c: New file.
75569         * lib/creat-safer.c: New file.
75570         * lib/fcntl--.h (creat): Define to creat_safer.
75571         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
75572         * lib/unistd--.h (pipe): Define to pipe_safer.
75573         * lib/unistd-safer.h: Declare pipe_safer.
75574
75575 2005-08-26  Simon Josefsson  <jas@extundo.com>
75576
75577         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
75578         Haible <bruno@clisp.org>.
75579
75580 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
75581
75582         * lib/regex_internal.h: Remove all references to
75583         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
75584         or better.
75585         (bitset_not, bitset_merge, bitset_not_merge):
75586         (bitset_mask, re_string_allocate, re_string_construct):
75587         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
75588         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
75589         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
75590         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
75591         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
75592         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
75593         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
75594         (re_acquire_state_context):
75595         Remove unnecessary forward decls.
75596         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
75597         Put __attribute at function definition,
75598         now that the function decl has been removed.
75599         * lib/regex_internal.c (re_string_peek_byte_case):
75600         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
75601         Likewise.
75602
75603 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
75604
75605         * m4/regex.m4: Add AC_PREREQ(2.50).
75606         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
75607
75608 2005-08-25  Simon Josefsson  <jas@extundo.com>
75609
75610         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
75611         __fsetlocking.
75612
75613 2005-08-25  Simon Josefsson  <jas@extundo.com>
75614
75615         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
75616         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
75617         GLIBC specific code.
75618
75619 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
75620
75621         Make regex safe for g++.  This fixes one real bug (an "err"
75622         that should have been "*err").  g++ problem reported by
75623         Sam Steingold.
75624         * lib/regex_internal.h (re_calloc): New macro, consistent with
75625         re_malloc etc.  All callers of calloc changed to use re_calloc.
75626         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
75627         not int.  All callers changed.
75628         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
75629         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
75630         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
75631         (find_recover_state): Change "err" to "*err"; this fixes what
75632         appears to be a real bug.
75633         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
75634         versus int.
75635
75636 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
75637
75638         * modules/regex (Depends-on): Add malloc, since the code
75639         assumes that !malloc(0) means failure.
75640
75641 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
75642
75643         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
75644
75645         alloca modernization/simplification for regex.
75646         * lib/regex.c: Remove portability cruft for alloca.  This no longer
75647         needs to be at the start of the file, and can be moved into
75648         regex_internal.h and simplified.
75649         * lib/regex_internal.h: Include <alloca.h>.
75650         (__libc_use_alloca) [!defined _LIBC]: New macro.
75651         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
75652         now works outside glibc.
75653
75654 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
75655
75656         * config/srclist.txt: Add glibc bugs 1241, 1245.
75657
75658 2005-08-25  Jim Meyering  <jim@meyering.net>
75659
75660         * lib/open-safer.c: Include <config.h>.
75661         Otherwise, we'd lose LARGEFILE support in any file using
75662         e.g. "fcntl--.h"
75663
75664 2005-08-25  Bruno Haible  <bruno@clisp.org>
75665
75666         * m4/minmax.m4: Require autoconf 2.52.
75667         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
75668         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
75669         alternatives of translit over the alphabet.
75670         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
75671
75672 2005-08-24  Simon Josefsson  <jas@extundo.com>
75673
75674         * tests/test-getpass.c: New file.
75675
75676 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
75677
75678         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
75679         for GNU regex features.
75680
75681 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
75682
75683         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
75684         * lib/regex.h (regerror): Likewise.
75685
75686         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
75687         requires this.  (The code never needed it.)
75688
75689         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
75690         All uses of recently-renamed identifiers changed to use the new,
75691         POSIX-compliant names.  The code will build and run just fine
75692         without these changes, but it's better to eat our own dog food
75693         and use the standard-conforming names.
75694
75695         * lib/regex.h: Fix a multitude of POSIX name space violations.
75696         These changes have an effect only for programs that define
75697         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
75698         do not change anything for programs compiled in the normal way.
75699         Also, there is no effect on the ABI.
75700
75701         (_REGEX_SOURCE): New macro.
75702         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
75703         defined and _GNU_SOURCE is not; this fixes a name space violation.
75704
75705         Rename the following macros to obey POSIX requirements.
75706         The old names are still visible as macros if _REGEX_SOURCE is defined.
75707         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
75708         RE_BACKSLASH_ESCAPE_IN_LISTS.
75709         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
75710         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
75711         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
75712         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
75713         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
75714         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
75715         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
75716         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
75717         (REG_INTERVALS): renamed from RE_INTERVALS.
75718         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
75719         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
75720         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
75721         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
75722         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
75723         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
75724         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
75725         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
75726         RE_UNMATCHED_RIGHT_PAREN_ORD.
75727         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
75728         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
75729         (REG_DEBUG): renamed from RE_DEBUG.
75730         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
75731         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
75732         unusual, since we can't clash with the POSIX REG_ICASE.
75733         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
75734         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
75735         (REG_NO_SUB): renamed from RE_NO_SUB.
75736         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
75737         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
75738         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
75739         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
75740         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
75741         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
75742         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
75743         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
75744         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
75745         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
75746         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
75747         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
75748         RE_SYNTAX_POSIX_MINIMAL_BASIC.
75749         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
75750         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
75751         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
75752         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
75753         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
75754         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
75755         (REG_FIXED): Renamed from REGS_FIXED.
75756         (REG_NREGS): Renamed from RE_NREGS.
75757
75758         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
75759         of other REG_* macros, since POSIX says the user is allowed to
75760         #undef these macros selectively.
75761
75762         (reg_errcode_t): Update comment stating what other tables need
75763         to be consistent.
75764
75765         Rename the following enum values to obey POSIX requirements.
75766         The old names are still visible as macros.
75767         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
75768         is not defined, since GNU is supposed to be a superset of POSIX as
75769         much as possible, and since we want reg_errcode_t to be a signed
75770         type for implementation consistency.
75771         (_REG_NOERROR): Renamed from REG_NOERROR.
75772         (_REG_NOMATCH): Renamed from REG_NOMATCH.
75773         (_REG_BADPAT): Renamed from REG_BADPAT.
75774         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
75775         (_REG_ECTYPE): Renamed from REG_ECTYPE.
75776         (_REG_EESCAPE): Renamed from REG_EESCAPE.
75777         (_REG_ESUBREG): Renamed from REG_ESUBREG.
75778         (_REG_EBRACK): Renamed from REG_EBRACK.
75779         (_REG_EPAREN): Renamed from REG_EPAREN.
75780         (_REG_EBRACE): Renamed from REG_EBRACE.
75781         (_REG_BADBR): Renamed from REG_BADBR.
75782         (_REG_ERANGE): Renamed from REG_ERANGE.
75783         (_REG_ESPACE): Renamed from REG_ESPACE.
75784         (_REG_BADRPT): Renamed from REG_BADRPT.
75785         (_REG_EEND): Renamed from REG_EEND.
75786         (_REG_ESIZE): Renamed from REG_ESIZE.
75787         (_REG_ERPAREN): Renamed from REG_ERPAREN.
75788         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
75789         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
75790         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
75791         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
75792
75793         (_REG_RE_NAME, _REG_RM_NAME): New macros.
75794         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
75795         changed.  But support the old name if the new one is not defined
75796         and if _REGEX_SOURCE.
75797
75798         Change the following member names in struct re_pattern_buffer.
75799         The old names are still supported if !_REGEX_SOURCE.
75800         The new names are always supported, regardless of _REGEX_SOURCE.
75801         (re_buffer): Renamed from buffer.
75802         (re_allocated): Renamed from allocated.
75803         (re_used): Renamed from used.
75804         (re_syntax): Renamed from syntax.
75805         (re_fastmap): Renamed from fastmap.
75806         (re_translate): Renamed from translate.
75807         (re_can_be_null): Renamed from can_be_null.
75808         (re_regs_allocated): Renamed from regs_allocated.
75809         (re_fastmap_accurate): Renamed from fastmap_accurate.
75810         (re_no_sub): Renamed from no_sub.
75811         (re_not_bol): Renamed from not_bol.
75812         (re_not_eol): Renamed from not_eol.
75813         (re_newline_anchor): Renamed from newline_anchor.
75814
75815         Change the following member names in struct re_registers.
75816         The old names are still supported if !_REGEX_SOURCE.
75817         The new names are always supported, regardless of _REGEX_SOURCE.
75818         (rm_num_regs): Renamed from num_regs.
75819         (rm_start): Renamed from start.
75820         (rm_end): Renamed from end.
75821
75822         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
75823         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
75824         Prepend __ to parameter names.
75825
75826         Undo yesterday's changes.
75827
75828 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
75829
75830         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
75831         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
75832         lib/regex.c.
75833
75834 2005-08-24  Jim Meyering  <jim@meyering.net>
75835
75836         Sync from coreutils.
75837         * m4/fcntl-safer.m4: New file.
75838
75839         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
75840         and object files for this module.
75841
75842 2005-08-24  Jim Meyering  <jim@meyering.net>
75843
75844         Sync from coreutils.
75845         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
75846
75847 2005-08-24  Jim Meyering  <jim@meyering.net>
75848
75849         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
75850         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
75851
75852 2005-08-24  Jim Meyering  <jim@meyering.net>
75853
75854         * modules/fcntl-safer: New module.
75855         * modules/fts (Depends-on): Add fcntl-safer.
75856         * MODULES.html.sh (File descriptor based Input/Output):
75857         Add fcntl-safer.
75858
75859 2005-08-24  Bruno Haible  <bruno@clisp.org>
75860
75861         Support for unit test modules.
75862         * modules/README: Mention tests modules.
75863         * modules/TEMPLATE-TESTS: New file.
75864         * gnulib-tool: New options --extract-tests-module, --with-tests and
75865         --tests-base (unused for the moment).
75866         (testsbase, inctests): New variables.
75867         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
75868         (func_verify_module): Exclude TEMPLATE-TESTS.
75869         (func_verify_nontests_module, func_verify_tests_module): New functions.
75870         (func_get_dependencies): Add implicit dependency for tests modules.
75871         (func_get_tests_module): New function.
75872         (func_modules_transitive_closure): When --with-tests was specified,
75873         include the unit tests as well, unless explicitly avoided.
75874         (func_emit_lib_Makefile_am): Ignore the tests modules here.
75875         (func_emit_tests_Makefile_am): New function.
75876         (func_create_testdir): When --with-tests was specified, emit a
75877         tests/ directory.
75878         * MODULES.html.sh (Future developments): Update.
75879
75880 2005-08-24  Bruno Haible  <bruno@clisp.org>
75881
75882         * modules/tls-tests: New file.
75883         * tests/test-tls.c: New file, from GNU gettext.
75884
75885 2005-08-24  Bruno Haible  <bruno@clisp.org>
75886
75887         * modules/lock-tests: New file.
75888         * tests/test-lock.c: New file, from GNU gettext.
75889
75890 2005-08-24  Bruno Haible  <bruno@clisp.org>
75891
75892         * lib/lock.h: Add multiple inclusion guard.
75893         * lib/tls.h: Add multiple inclusion guard.
75894
75895 2005-08-24  Bruno Haible  <bruno@clisp.org>
75896
75897         * gnulib-tool: Add support for the --aux-dir option to
75898         --create-testdir, --create-megatestdir, --test, --megatest.
75899         (func_create_testdir, func_create_megatestdir): Optionally emit a
75900         AC_CONFIG_AUX_DIR directive.
75901         (create-testdir, create-megatestdir, test, megatest): Provide a
75902         default value for $auxdir.
75903
75904 2005-08-24  Bruno Haible  <bruno@clisp.org>
75905
75906         * gnulib-tool (import): Use compound statement instead of subshell
75907         where possible.
75908
75909 2005-08-24  Bruno Haible  <bruno@clisp.org>
75910
75911         * gnulib-tool (import): Change --aux-dir default to "build-aux".
75912
75913 2005-08-24  Bruno Haible  <bruno@clisp.org>
75914
75915         * gnulib-tool (func_version): Update.
75916
75917 2005-08-24  Bruno Haible  <bruno@clisp.org>
75918
75919         * gnulib-tool (func_import, func_create_testdir,
75920         func_create_megatestdir): Quote all autoconf macro arguments.
75921
75922 2005-08-24  Bruno Haible  <bruno@clisp.org>
75923
75924         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
75925         option --force, because --force causes the aclocal.m4 of each
75926         subdirectory to be newer than the corresponding config.h.in.
75927
75928 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
75929
75930         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
75931         All contents moved to gl_REGEX.
75932         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
75933         assume that it does.
75934
75935 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
75936
75937         * lib/regex.h (REG_NOSYS)
75938         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
75939         Define, since POSIX requires it as of 2001.
75940         (_REG_ENOSYS)
75941         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
75942         New private symbol, used to keep the enum signed in all cases.
75943         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
75944         Youngman in
75945         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
75946
75947         * lib/regex_internal.c (re_string_skip_chars, register_state):
75948         (calc_state_hash):
75949         Remove forward decls; no longer needed now that we use prototypes.
75950         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
75951         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
75952         (clean_state_log_if_needed): Likewise.
75953
75954 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
75955
75956         * config/srclist.txt: Add glibc bugs 1231-1233.
75957
75958 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
75959
75960         Fix problems reported by Sam Steingold in
75961         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
75962         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
75963         assumed that reg_errcode_t is a signed type, which is not
75964         necessarily true if _XOPEN_SOURCE is not defined.
75965         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
75966         since some compilers warn about it otherwise.
75967
75968 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
75969
75970         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
75971         (init_word_char, create_initial_state, duplicate_node_closure):
75972         (fetch_token, peek_token_bracket, build_range_exp):
75973         (build_collating_symbol): Remove forward decls; no longer needed
75974         now that we use prototypes.
75975
75976         * lib/regcomp.c:
75977         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
75978         (re_compile_fastmap_iter, regcomp, regerror, regfree):
75979         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
75980         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
75981         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
75982         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
75983         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
75984         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
75985         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
75986         (build_range_exp, build_collating_symbol, parse_bracket_exp):
75987         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
75988         (build_charclass, build_charclass_op, fetch_number, create_tree):
75989         (create_token_tree, mark_opt_subexp, duplicate_tree):
75990         Use prototypes rather than old-style definitions.
75991
75992         * lib/regex_internal.c:
75993         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
75994         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
75995         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
75996         (re_string_reconstruct, re_string_peek_byte_case):
75997         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
75998         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
75999         (re_node_set_init_copy, re_node_set_add_intersect):
76000         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
76001         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
76002         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
76003         (re_acquire_state, re_acquire_state_context, register_state):
76004         (create_ci_newstate, create_cd_newstate, free_state):
76005         Likewise.
76006         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
76007         re_search_2):
76008         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
76009         (re_search_internal, prune_impossible_nodes):
76010         (acquire_init_state_context, check_matching, static):
76011         (check_halt_node_context, check_halt_state_context, proceed_next_node):
76012         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
76013         (update_regs, sift_states_backward, build_sifted_states):
76014         (clean_state_log_if_needed, merge_state_array):
76015         (update_cur_sifted_state, add_epsilon_src_nodes):
76016         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
76017         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
76018         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
76019         (find_recover_state, check_subexp_matching_top, transit_state_mb):
76020         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
76021         (check_arrival, check_arrival_add_next_nodes):
76022         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
76023         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
76024         (check_node_accept_bytes, check_node_accept, extend_buffers):
76025         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
76026         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
76027         (sift_ctx_init):
76028         Likewise.
76029
76030         * lib/regex_internal.h:
76031         (re_string_allocate, re_string_construct, re_string_reconstruct):
76032         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
76033         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
76034         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
76035         (re_string_context_at, re_string_peek_byte_case):
76036         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
76037         is defined, since we now use prototypes always.
76038
76039         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
76040         C89 or better.  All uses removed.
76041
76042 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
76043
76044         * config/srclist.txt: Add glibc bugs 1220-1227.
76045
76046 2005-08-20  Jim Meyering  <jim@meyering.net>
76047
76048         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
76049         of unused local, dfa.
76050
76051 2005-08-20  Bruno Haible  <bruno@clisp.org>
76052
76053         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
76054
76055 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
76056
76057         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
76058         (re_node_set_insert_last, re_dfa_add_node):
76059         Rename local variables to avoid GCC shadowing warnings.
76060
76061 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
76062
76063         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
76064         [defined lint]: Suppress bogus uninitialized-variable warnings.
76065
76066         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
76067         and let the caller return REG_ESPACE if out of space.  This
76068         removes an uninitialied-variable warning with GCC 4.0.1, and also
76069         avoids taking the address of a local variable.  All callers
76070         changed.
76071
76072 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
76073
76074         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
76075         $LIBCSRC/posix/regexec.c.
76076         Add glibc bug 1217 for regcomp.c.
76077
76078 2005-08-19  Jim Meyering  <jim@meyering.net>
76079
76080         * lib/regexec.c (proceed_next_node): Redo local variables to
76081         avoid GCC shadowing warnings.
76082
76083 2005-08-18  Bruno Haible  <bruno@clisp.org>
76084
76085         * lib/strstr.c (strstr): Fix return value in multibyte case.
76086         * lib/strcasestr.c (strcasestr): Likewise.
76087
76088 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
76089
76090         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
76091
76092 2005-08-17  Jim Meyering  <jim@meyering.net>
76093
76094         Make the %s format (seconds since the epoch) work for a negative
76095         number and when used with a zero-padded field width, e.g. %015s.
76096
76097         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
76098         label so that it precedes the code to set `digits'.  Otherwise,
76099         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
76100         print `00-22'.  Now, it prints `-0022', as it should.
76101
76102 2005-08-17  Bruno Haible  <bruno@clisp.org>
76103
76104         * modules/strstr (Files): Add m4/mbrtowc.m4.
76105         (Depends-on): Add mbuiter.
76106
76107 2005-08-17  Bruno Haible  <bruno@clisp.org>
76108
76109         * modules/strcasestr: New file.
76110         * MODULES.html.sh (String handling, based on ANSI C 89): Add
76111         strcasestr.
76112
76113 2005-08-17  Bruno Haible  <bruno@clisp.org>
76114
76115         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
76116
76117 2005-08-17  Bruno Haible  <bruno@clisp.org>
76118
76119         * modules/mbuiter: New file.
76120         * MODULES.html.sh (Extended multibyte and wide character utilities):
76121         Add mbuiter.
76122
76123 2005-08-17  Bruno Haible  <bruno@clisp.org>
76124
76125         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
76126         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
76127
76128 2005-08-17  Bruno Haible  <bruno@clisp.org>
76129
76130         * m4/strcasestr.m4: New file.
76131
76132 2005-08-17  Bruno Haible  <bruno@clisp.org>
76133
76134         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
76135         * lib/strstr.c: Completely rewritten, with multibyte locale support.
76136
76137 2005-08-17  Bruno Haible  <bruno@clisp.org>
76138
76139         * lib/strcasestr.h: New file.
76140         * lib/strcasestr.c: New file.
76141
76142 2005-08-17  Bruno Haible  <bruno@clisp.org>
76143
76144         * lib/strcasecmp.c: Use mbuiter.h.
76145
76146 2005-08-17  Bruno Haible  <bruno@clisp.org>
76147
76148         * lib/mbuiter.h: New file.
76149
76150 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
76151
76152         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
76153         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
76154         and gl_GETOPT are both invoked via different paths (as happens
76155         with GNU tar CVS because it uses both argp and getopt), the former
76156         wins.
76157
76158 2005-08-16  Bruno Haible  <bruno@clisp.org>
76159
76160         * modules/tls: New file.
76161         * MODULES.html.sh (Multithreading): Add tls.
76162
76163 2005-08-16  Bruno Haible  <bruno@clisp.org>
76164
76165         * modules/strnlen1: New file.
76166         * MODULES.html.sh (String handling): Add strnlen1.
76167
76168 2005-08-16  Bruno Haible  <bruno@clisp.org>
76169
76170         * modules/strcase (Files): Add m4/mbrtowc.m4.
76171         (Depends-on): Add strnlen1, mbchar.
76172
76173 2005-08-16  Bruno Haible  <bruno@clisp.org>
76174
76175         * modules/mbiter: New file.
76176         * MODULES.html.sh (Extended multibyte and wide character utilities):
76177         Add mbiter.
76178
76179 2005-08-16  Bruno Haible  <bruno@clisp.org>
76180
76181         * modules/mbfile: New file.
76182         * MODULES.html.sh (Extended multibyte and wide character utilities):
76183         Add mbfile.
76184
76185 2005-08-16  Bruno Haible  <bruno@clisp.org>
76186
76187         * modules/mbchar: New file.
76188         * MODULES.html.sh (Extended multibyte and wide character utilities):
76189         New section.
76190
76191 2005-08-16  Bruno Haible  <bruno@clisp.org>
76192
76193         * m4/tls.m4: New file, from GNU gettext.
76194
76195 2005-08-16  Bruno Haible  <bruno@clisp.org>
76196
76197         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
76198         always.
76199         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
76200
76201 2005-08-16  Bruno Haible  <bruno@clisp.org>
76202
76203         * m4/mbiter.m4: New file.
76204
76205 2005-08-16  Bruno Haible  <bruno@clisp.org>
76206
76207         * m4/mbfile.m4: New file.
76208
76209 2005-08-16  Bruno Haible  <bruno@clisp.org>
76210
76211         * m4/mbchar.m4: New file.
76212
76213 2005-08-16  Bruno Haible  <bruno@clisp.org>
76214
76215         * lib/tls.h: New file, from GNU gettext.
76216         * lib/tls.c: New file, from GNU gettext.
76217
76218 2005-08-16  Bruno Haible  <bruno@clisp.org>
76219
76220         * lib/strnlen1.h: New file.
76221         * lib/strnlen1.c: New file.
76222
76223 2005-08-16  Bruno Haible  <bruno@clisp.org>
76224
76225         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
76226         (mbi_init): Update.
76227         (mbi_avail, mbi_advance): Let the iteration end before the terminating
76228         NUL byte, not after it.
76229
76230 2005-08-16  Bruno Haible  <bruno@clisp.org>
76231
76232         * lib/strcase.h (strcasecmp): Add note in comments.
76233         * lib/strncasecmp.c: Use code from strcasecmp.c.
76234         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
76235         (strcasecmp): Work correctly in multibyte locales.
76236
76237 2005-08-16  Bruno Haible  <bruno@clisp.org>
76238
76239         * lib/mbiter.h: New file.
76240
76241 2005-08-16  Bruno Haible  <bruno@clisp.org>
76242
76243         * lib/mbfile.h: New file.
76244
76245 2005-08-16  Bruno Haible  <bruno@clisp.org>
76246
76247         * lib/mbchar.h: New file.
76248         * lib/mbchar.c: New file.
76249
76250 2005-08-16  Bruno Haible  <bruno@clisp.org>
76251
76252         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
76253         the valid ones. Makes the comparison operations transitive:
76254         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
76255         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
76256
76257 2005-08-15  Simon Josefsson  <jas@extundo.com>
76258
76259         * modules/ssize_t (License): Change to 'unlimited'.
76260
76261         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
76262
76263 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
76264
76265         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
76266         Add comments for each pending glibc patch.
76267
76268 2005-08-15  Bruno Haible  <bruno@clisp.org>
76269
76270         * lib/regex.h (__restrict_arr): Don't define to __restrict if
76271         __cplusplus is defined.
76272
76273 2005-08-14  Jim Meyering  <jim@meyering.net>
76274
76275         Sync from coreutils.
76276
76277         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
76278         Use the hash-table-based cycle-detection code not just when
76279         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
76280         Reported by James Youngman in
76281         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
76282         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
76283         FTS_TIGHT_CYCLE_CHECK.
76284         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
76285         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
76286         once again.
76287         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
76288         * lib/fts.c (fd_safer): Remove decl.
76289         Include fcntl--.h rather than unistd-safer.h
76290         (fts_safe_changedir): Don't call fd_safer; no longer needed
76291         now that we include fcntl--.h.
76292
76293 2005-08-12  Simon Josefsson  <jas@extundo.com>
76294
76295         * modules/getndelim2: Use ssize_t module.
76296         * modules/getnline: Likewise.
76297         * modules/safe-read: Likewise.
76298         * modules/xreadlink: Likewise.
76299
76300         * modules/ssize_t: New file.
76301
76302 2005-08-12  Simon Josefsson  <jas@extundo.com>
76303
76304         * m4/readline.m4: Look for termcap, curses or ncurses if required.
76305
76306 2005-08-12  Simon Josefsson  <jas@extundo.com>
76307
76308         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
76309         ssize_t.
76310
76311 2005-08-12  Simon Josefsson  <jas@extundo.com>
76312
76313         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
76314         readline, getdelim and check_version.
76315         (Support for systems lacking ISO C 99: Sizes of integer types):
76316         Add size_max.
76317
76318 2005-08-12  Bruno Haible  <bruno@clisp.org>
76319
76320         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
76321
76322 2005-08-11  Simon Josefsson  <jas@extundo.com>
76323
76324         * modules/readline: New file.
76325
76326         * modules/strnlen (Files): Add strnlen.h.
76327
76328 2005-08-11  Simon Josefsson  <jas@extundo.com>
76329
76330         * m4/readline.m4: New file.
76331
76332 2005-08-11  Simon Josefsson  <jas@extundo.com>
76333
76334         * lib/readline.h, readline.c: New file.
76335
76336 2005-08-11  Simon Josefsson  <jas@extundo.com>
76337
76338         * doc/gnulib.texi (Initial import, Finishing touches): Mention
76339         gl_AVOID.
76340
76341 2005-08-11  Bruno Haible  <bruno@clisp.org>
76342
76343         * lib/strnlen.h (strnlen): Change parameter name to match comment.
76344
76345 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
76346
76347         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
76348
76349 2005-08-10  Simon Josefsson  <jas@extundo.com>
76350
76351         * tests/test-iconvme.c: New file.
76352
76353 2005-08-10  Simon Josefsson  <jas@extundo.com>
76354
76355         * m4/strnlen.m4: New file.
76356
76357         * m4/strndup.m4: Don't check for strnlen declaration, done in
76358         strnlen.m4.
76359
76360 2005-08-10  Simon Josefsson  <jas@extundo.com>
76361
76362         * lib/strndup.c: Use strnlen.h.
76363
76364         * lib/strnlen.h: New file.
76365
76366 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
76367
76368         * README: Typos.
76369
76370 2005-08-02  Simon Josefsson  <jas@extundo.com>
76371
76372         * modules/readline: New file.
76373
76374 2005-08-02  Simon Josefsson  <jas@extundo.com>
76375
76376         * modules/getdelim: New file.
76377
76378         * modules/getline: Rewrite, don't use getndelim2.
76379
76380 2005-08-02  Simon Josefsson  <jas@extundo.com>
76381
76382         * m4/getline.m4: Separate out getdelim stuff into separate module.
76383
76384         * m4/getdelim.m4: New file.
76385
76386 2005-08-02  Simon Josefsson  <jas@extundo.com>
76387
76388         * lib/getline.h, getline.c: Rewrite.
76389
76390         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
76391
76392 2005-07-31  Bruno Haible  <bruno@clisp.org>
76393
76394         * lib/lock.h (gl_lock_initializer): New macro.
76395         (gl_lock_define_initialized): Use it.
76396         (gl_rwlock_initializer): New macro.
76397         (gl_rwlock_define_initialized): Use it.
76398         (gl_recursive_lock_initializer): New macro.
76399         (gl_recursive_lock_define_initialized): Use it.
76400
76401 2005-07-30  Karl Berry  <karl@gnu.org>
76402
76403         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
76404         Report from Ben Pfaff, regarding getopt.
76405
76406 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
76407
76408         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
76409         normal way.
76410         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
76411         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
76412         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
76413         (gl_GETOPT): Use the new macros.  Most of the implementation
76414         is moved to the new macros.  This is for programs like Emacs
76415         that don't want all the functionality of gl_GETOPT.
76416
76417 2005-07-26  Bruno Haible  <bruno@clisp.org>
76418
76419         * m4/lock.m4: Update from GNU gettext.
76420
76421 2005-07-26  Bruno Haible  <bruno@clisp.org>
76422
76423         * lib/lock.h: Update from GNU gettext.
76424         * lib/lock.c: Update from GNU gettext.
76425
76426 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
76427
76428         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
76429         obsolescent AC_TRY_RUN.  Include the default includes files, for
76430         'exit'.
76431
76432 2005-07-24  Bruno Haible  <bruno@clisp.org>
76433
76434         * modules/visibility: New file.
76435         * MODULES.html.sh (Misc): Add visibility.
76436
76437 2005-07-24  Bruno Haible  <bruno@clisp.org>
76438
76439         * m4/visibility.m4: New file.
76440
76441 2005-07-24  Bruno Haible  <bruno@clisp.org>
76442
76443         * doc/visibility.texi: New file.
76444
76445 2005-07-22  Bruno Haible  <bruno@clisp.org>
76446
76447         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
76448         $(ALLOCA_H), redundant through BUILT_SOURCES.
76449         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
76450         redundant through BUILT_SOURCES.
76451         * modules/byteswap (Makefile.am): Remove explicit dependency on
76452         $(BYTESWAP_H), redundant through BUILT_SOURCES.
76453         * modules/fnmatch (Makefile.am): Remove explicit dependency on
76454         $(FNMATCH_H), redundant through BUILT_SOURCES.
76455         * modules/getopt (Makefile.am): Remove explicit dependency on
76456         $(GETOPT_H), redundant through BUILT_SOURCES.
76457         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
76458         redundant through BUILT_SOURCES.
76459         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
76460         redundant through BUILT_SOURCES.
76461         * modules/stdbool (Makefile.am): Remove explicit dependency on
76462         $(STDBOOL_H), redundant through BUILT_SOURCES.
76463         * modules/stdint (Makefile.am): Remove explicit dependency on
76464         $(STDINT_H), redundant through BUILT_SOURCES.
76465         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
76466         Remove explicit dependency on $(SYSEXITS_H).
76467         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
76468
76469 2005-07-18  Simon Josefsson  <jas@extundo.com>
76470
76471         * lib/check-version.c (check_version): Accept identical versions too.
76472
76473 2005-07-18  Bruno Haible  <bruno@clisp.org>
76474
76475         * modules/lock: New file.
76476         * MODULES.html.sh (Multithreading): New section.
76477
76478 2005-07-18  Bruno Haible  <bruno@clisp.org>
76479
76480         * m4/lock.m4: New file, from GNU gettext.
76481
76482 2005-07-18  Bruno Haible  <bruno@clisp.org>
76483
76484         * lib/lock.h: New file, from GNU gettext.
76485         * lib/lock.c: New file, from GNU gettext.
76486
76487 2005-07-18  Bruno Haible  <bruno@clisp.org>
76488
76489         * lib/lock.h (gl_once_t): New type.
76490         (gl_once_define, gl_once): New macros.
76491         * lib/lock.c (fresh_once): New variable.
76492         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
76493         functions.
76494
76495 2005-07-16  Simon Josefsson  <jas@extundo.com>
76496
76497         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
76498         workaround, suggested by Bruno.
76499
76500 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
76501
76502         * modules/xalloc (Depends-on): Add xalloc-die.
76503         * modules/xvasprintf (Depends-on): Add xalloc-die.
76504
76505 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
76506
76507         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
76508         with a minor change.
76509
76510 2005-07-15  Bruno Haible  <bruno@clisp.org>
76511
76512         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
76513         When using lib/poll.c, define poll as rpl_poll.
76514
76515 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
76516
76517         * modules/argp (Depends-on): Remove unlocked-io.
76518
76519 2005-07-14  Derek Price  <derek@ximbiot.com>
76520
76521         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
76522         for glob symlink bug.
76523
76524 2005-07-14  Bruno Haible  <bruno@clisp.org>
76525
76526         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
76527         Instead, test for *_unlocked function declarations directly.
76528
76529 2005-07-11  Simon Josefsson  <jas@extundo.com>
76530
76531         * modules/size_max: New file.
76532
76533         * modules/xsize: Depend on size_max module for size_max.m4.
76534
76535 2005-07-11  Simon Josefsson  <jas@extundo.com>
76536
76537         * lib/size_max.h: New file.
76538
76539 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
76540
76541         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
76542         copyright symbol and the year.
76543         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
76544         (version_etc_va): Use parameterized copyright notice.
76545         Reword to conform to the current GNU coding standards.
76546
76547 2005-07-11  Karl Berry  <karl@gnu.org>
76548
76549         * doc/gnulib.texi (Quoting): new node.
76550         (Initial import): more info, from Patrice.
76551
76552 2005-07-11  Bruno Haible  <bruno@clisp.org>
76553
76554         * gnulib-tool (func_usage): Document option --avoid.
76555         (Command line options): Handle --avoid.
76556         (func_acceptable): New function.
76557         (func_modules_transitive_closure): Use it.
76558
76559 2005-07-11  Bruno Haible  <bruno@clisp.org>
76560
76561         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
76562         Reported by Jim Meyering.
76563
76564 2005-07-10  Bruno Haible  <bruno@clisp.org>
76565
76566         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
76567         Needed when size_t is smaller than 'unsigned int'.
76568         Reported by Paul Eggert.
76569
76570 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
76571
76572         * modules/argp (Depends-on): Add unlocked-io
76573
76574 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
76575
76576         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
76577         block of defines.
76578
76579 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
76580
76581         * config/srclist.txt: Comment out regcomp.c, since we have a porting
76582         fix now.
76583
76584 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
76585         and Paul Eggert  <eggert@cs.ucla.edu>
76586
76587         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
76588         in wint_t, not wchar_t.  Remove now-unnecessary cast.
76589
76590 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
76591
76592         * modules/regex (Files): Add lib/regex_internal.c,
76593         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
76594         (Depends-on): Add extensions.
76595         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
76596
76597 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
76598
76599         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
76600         pathconf.
76601         * m4/same.m4 (gl_SAME): Likewise.
76602         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
76603
76604         * m4/regex.m4: Adjust to new libc regex implementation.
76605         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
76606         all the .c and .h parts of (the new) regex.
76607         Quote the m4 stuff better.
76608         Check for RE_ICASE bug of old gnulib.
76609         Check for REG_STARTEND of recent libc.
76610         Rename local variables from jm_* to gl_*.
76611         Quote operand of "test -f".
76612         Say "recent enough" version of libc, not "version 2".
76613         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
76614         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
76615         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
76616         Remove check for btowc, isascii.
76617         Require AM_LANGINFO_CODESET.
76618
76619 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
76620
76621         * lib/regex.c, regex.h: Sync from libc.
76622         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
76623         * lib/regexec.c:
76624         New files, synced from libc, except that regex_internal.h
76625         currently has a small porting fix.
76626
76627 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
76628
76629         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
76630         regex_internal.c, regexec.c.
76631         Add regex_internal.h too, but as a comment, since the libc version
76632         is currently broken in gnulib mode.
76633
76634 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
76635
76636         Support programs like Emacs that use gnulib but not gettext.
76637         * MODULES.html.sh (Internationalization functions): Add gettext-h.
76638         * modules/gettext-h: New file.
76639         * modules/gettext (Files): Remove lib/gettext.h.
76640         (Depends-on): Add gettext-h.
76641         (Makefile.am): Remove lib_SOURCES.
76642         * modules/argmatch, modules/c-stack, modules/closeout:
76643         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
76644         * modules/execute, modules/file-type, modules/getaddrinfo:
76645         * modules/getopt, modules/human, modules/javacomp:
76646         * modules/javaexec, modules/mkdir-p, modules/obstack:
76647         * modules/openat, modules/pagealign_alloc, modules/pipe:
76648         * modules/quotearg, modules/regex, modules/rpmatch:
76649         * modules/unicodeio, modules/userspec, modules/version-etc:
76650         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
76651         * modules/xsetenv:
76652         Depend on gettext-h, not gettext.
76653
76654 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
76655
76656         * gnulib-tool (func_import): Add support for 'public domain' license.
76657         * modules/alloca, modules/atexit, modules/memmove:
76658         Now public domain, not GPL.
76659         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
76660         * modules/realloc, modules/strerror, modules/strtod:
76661         Now LGPL, not GPL.
76662
76663 2005-07-05  Bruno Haible  <bruno@clisp.org>
76664
76665         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
76666         autoconf CVS. Needed for mingw.
76667
76668 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
76669
76670         Remove the dependency of the strftime module on the tzset module.
76671         * modules/strftime (Depends-on): Remove dependency on tzset.
76672
76673 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
76674
76675         Remove the dependency of the strftime module on the tzset module.
76676         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
76677         gl_FUNC_TZSET_CLOBBER.
76678
76679 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
76680
76681         Remove the dependency of the strftime module on the tzset module.
76682         * lib/strftime.c (my_strftime)
76683         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
76684         Copy the input structure, to work around some of the bug with
76685         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
76686         Solaris releases, you should also use the tzset module, but we won't
76687         require it as a dependency any more since we don't want LGPLed code
76688         to depend on GPLed code.
76689
76690 2005-07-02  Jim Meyering  <jim@meyering.net>
76691
76692         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
76693         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
76694         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
76695         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
76696
76697 2005-07-02  Jim Meyering  <jim@meyering.net>
76698
76699         * lib/backupfile.c (backup_args): Change a `0' to NULL.
76700
76701 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
76702
76703         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
76704         declares only 'struct timespec;' (!).
76705
76706 2005-07-01  Jim Meyering  <jim@meyering.net>
76707
76708         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
76709         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
76710         * lib/save-cwd.c, tempname.c:
76711         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
76712         and don't include <sys/file.h>).
76713
76714 2005-06-29  Jim Meyering  <jim@meyering.net>
76715
76716         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
76717         type name.  Use the variable name instead.
76718         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
76719         Likewise.
76720
76721 2005-06-28  Simon Josefsson  <jas@extundo.com>
76722
76723         * modules/check-version (Files): Add check-version.m4.
76724
76725 2005-06-28  Simon Josefsson  <jas@extundo.com>
76726
76727         * m4/check-version.m4: New file, suggested by Jim Meyering
76728         <jim@meyering.net>.
76729
76730 2005-06-28  Simon Josefsson  <jas@extundo.com>
76731
76732         * lib/check-version.h, lib/check-version.c: New files.
76733
76734 2005-06-28  Simon Josefsson  <jas@extundo.com>
76735
76736         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
76737         collision with global variable.  Better indentation.  Don't
76738         increment buffer pointer beyond buffer end.  Based on comments
76739         from Paul Eggert <eggert@cs.ucla.edu>.
76740
76741         * lib/base64.h: Indent.
76742
76743 2005-06-28  Simon Josefsson  <jas@extundo.com>
76744
76745         * doc/gnulib.texi (Library version handling): New section.
76746
76747 2005-06-28  Jim Meyering  <jim@meyering.net>
76748
76749         * check-module (find_included_lib_files): Hard-code another
76750         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
76751         but modules/fts-lgpl (correctly) does not list those files.
76752
76753         * modules/canonicalize (Files): Add lib/pathmax.h.
76754
76755 2005-06-25  Simon Josefsson  <jas@extundo.com>
76756
76757         * modules/check-version: New file.
76758
76759 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
76760
76761         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
76762         initializer of struct addrinfo, as an indication that we don't
76763         care how many members the structure has.
76764
76765 2005-06-24  Derek Price  <derek@ximbiot.com>
76766         and Bruno Haible  <bruno@clisp.org>
76767
76768         Remove stat module & update lstat.
76769         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
76770         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
76771         * m4/stat.m4: Remove this file.
76772
76773 2005-06-24  Derek Price  <derek@ximbiot.com>
76774         and Bruno Haible  <bruno@clisp.org>
76775
76776         Remove stat module & update lstat.
76777         * lib/stat.c: Remove this file...
76778         (slash_aware_lstat): ...moving this content and its support...
76779         * lib/lstat.c (rpl_lstat): ...into here.
76780         * lib/lstat.h: New file.
76781
76782 2005-06-24  Derek Price  <derek@ximbiot.com>
76783         and Bruno Haible  <bruno@clisp.org>
76784
76785         Remove stat module & update lstat.
76786         * config/srclist.txt (libc sources): Remove stat.
76787
76788 2005-06-24  Derek Price  <derek@ximbiot.com>
76789         and Bruno Haible  <bruno@clisp.org>
76790
76791         Remove stat module & update lstat.
76792         * MODULES.html.sh (stat): Remove.
76793         * MODULES.html: Regenerated.
76794         * modules/lstat (Description): Correct function name.
76795         (Files): Add "lstat.h".
76796         (Depends-on): Remove stat, add xalloc, stat-macros.
76797         * modules/stat: Remove this file.
76798         (Include): Add "lstat.h", remove <sys/stat.h>.
76799
76800 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
76801
76802         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
76803         (ranged_convert): Don't save conversion in a temporary struct.
76804         This causes a warning with GCC 4.0.0, and anyway in the typical
76805         case it's not worth the extra 100 bytes or so of code.
76806         (ranged_convert, __mktime_internal): When calling a function via a
76807         pointer P, use P () rather than (*P) (), as we now assume C89 or
76808         better.
76809
76810 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
76811
76812         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
76813         "who -r" failed to give output.  Problem reported by Tim Waugh.
76814
76815         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
76816         (xcalloc): Use it to avoid needless tests.
76817         Problem reported by Jim Meyering.
76818
76819 2005-06-20  Derek Price  <derek@ximbiot.com>
76820
76821         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
76822         unnecessary for Autoconfs > 2.59c.
76823
76824 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
76825
76826         * lib/argp.h (__option_is_short): Check upper limit of
76827         __key. Isprint() requires its argument to have the value
76828         of an unsigned char or EOF.
76829
76830 2005-06-16  Jim Meyering  <jim@meyering.net>
76831
76832         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
76833         when either N or S is zero.
76834
76835 2005-06-16  Derek Price  <derek@ximbiot.com>
76836
76837         * m4/bison.m4: Declare YACC & YFLAGS precious.
76838
76839 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
76840
76841         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
76842         multibyte string or pattern, fall back on unibyte matching.
76843         Problem reported by James Youngman.
76844
76845 2005-06-08  Bruno Haible  <bruno@clisp.org>
76846
76847         * modules/csharpcomp: New file.
76848         * MODULES.html.sh (C#): Add csharpcomp.
76849
76850 2005-06-08  Bruno Haible  <bruno@clisp.org>
76851
76852         * m4/csharpcomp.m4: New file, from GNU gettext.
76853
76854 2005-06-08  Bruno Haible  <bruno@clisp.org>
76855
76856         * lib/csharpcomp.h: New file, from GNU gettext.
76857         * lib/csharpcomp.c: New file, from GNU gettext.
76858         * lib/csharpcomp.sh.in: New file, from GNU gettext.
76859
76860 2005-06-08  Bruno Haible  <bruno@clisp.org>
76861
76862         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
76863         warning on mingw.
76864
76865 2005-06-07  Derek Price  <derek@ximbiot.com>
76866
76867         Sync from CVS.
76868         * lib/glob_.h: Indent nested #ifdef.
76869
76870 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
76871
76872         Sync from coreutils.
76873         Use "file name" when talking about file names, instead of "filename"
76874         or "path", as per the GNU coding standards.
76875         * lib/mkdir-p.c: Renamed from makepath.c.
76876         (make_dir_parents): Renamed from make_path.  All callers changed.
76877         * lib/mkdir-p.h: Likewise.  All includers changed.
76878         * lib/filenamecat.c: Renamed from path-concat.c.
76879         (file_name_concat): Renamed from path_concat.  All callers changed.
76880         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
76881         * lib/filenamecat.h: Likewise.  All includers changed.
76882         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
76883         in comments or local variable names.
76884         * lib/basename.c: Likewise.
76885         * lib/canonicalize.c, canonicalize.h: Likewise.
76886         * lib/dirname.c, dirname.h: Likewise.
76887         * lib/euidaccess.c: Likewise.
76888         * lib/exclude.c: Likewise
76889         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
76890         * lib/fsusage.c, fsuage.h: Likewise.
76891         * lib/fts.c, fts_.h: Likewise.
76892         * lib/getcwd.c: Likewise.
76893         * lib/getloadavg.c: Likewise.
76894         * lib/mkstemp.c: Likewise.
76895         * lib/mountlist.c, mountlist.h: Likewise.
76896         * lib/openat.c, openat.h: Likewise.
76897         * lib/readlink-stub.c: Likewise.
76898         * lib/readutmp.c, readutmp.h: Likewise.
76899         * lib/rename.c: Likewise.
76900         * lib/rmdir.c: Likewise.
76901         * lib/same.c: Likewise.
76902         * lib/savedir.c: Likewise.
76903         * lib/stripslash.c: Likewise.
76904         * lib/tempname.c: Likewise.
76905         * lib/xreadlink.c: Likewise.
76906         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
76907         All uses changed.
76908         * lib/exclude.h: Likewise.
76909
76910         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
76911         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
76912         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
76913         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
76914         * lib/pathmax.h: Include <limits.h> unconditionally, since other
76915         files have been getting away with it for years (MORE/BSD 4.3
76916         is extinct now).
76917         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
76918         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
76919
76920         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
76921         Define to 256, not 255, as per modern POSIX.
76922
76923 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
76924
76925         Sync from coreutils.
76926         Use "file name" when talking about file names, instead of "filename"
76927         or "path", as per the GNU coding standards.
76928         * MODULES.html.sh: mkdir-p renamed from makepath.
76929         filenamecat renamed from path-concat.
76930         * modules/filenamecat: Renamed from modules/path-concat.
76931         (Files): filenamecat.h and filenamecat.c renamed from
76932         path-concat.h and path-concat.c.
76933         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
76934         (Include): filenamecat.h, not path-concat.h.
76935         * modules/mkdir-p: Renamed from modules/makepath.
76936         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
76937         makepath.c.
76938         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
76939         (Include): mkdir-p.h, not makepath.h.
76940
76941 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
76942
76943         Sync from coreutils.
76944         * m4/mkdir-p.m4: Renamed from makepath.m4.
76945         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
76946         Rename files from makepath.c to mkdir-p.c, and from
76947         makepath.h to mkdir-p.h.
76948         * m4/filenamecat.m4: Renamed from path-concat.m4.
76949         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
76950         Rename files from path-concat.c to filenamecat.c,
76951         and from path-concat.h to filenamecat.h.
76952         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
76953         "file name" in local variables or comments.
76954         * m4/rename.m4: Likewise.
76955
76956 2005-06-01  Bruno Haible  <bruno@clisp.org>
76957
76958         * modules/csharpexec: New file.
76959         * MODULES.html.sh (C#): New section.
76960
76961 2005-06-01  Bruno Haible  <bruno@clisp.org>
76962
76963         * m4/csharp.m4: New file, from GNU gettext.
76964         * m4/csharpexec.m4: New file, from GNU gettext.
76965
76966 2005-06-01  Bruno Haible  <bruno@clisp.org>
76967
76968         * lib/csharpexec.h: New file, from GNU gettext.
76969         * lib/csharpexec.c: New file, from GNU gettext.
76970         * lib/csharpexec.sh.in: New file, from GNU gettext.
76971
76972 2005-05-31  Derek Price  <derek@ximbiot.com>
76973             Paul Eggert  <eggert@cs.ucla.edu>
76974
76975         Sync from cvs.
76976         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
76977
76978 2005-05-31  Derek Price  <derek@ximbiot.com>
76979             Paul Eggert  <eggert@cs.ucla.edu>
76980
76981         Sync from cvs.
76982         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
76983
76984 2005-05-29  Derek Price  <derek@ximbiot.com>
76985
76986         * config/srclist.txt (glob_.h, glob.c): Add these files.
76987
76988 2005-05-29  Derek Price  <derek@ximbiot.com>
76989
76990         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
76991         * modules/glob: New file.
76992         * modules/getlogin_r: Add link to POSIX spec in description.
76993
76994 2005-05-29  Derek Price  <derek@ximbiot.com>
76995             Paul Eggert  <eggert@cs.ucla.edu>
76996
76997         * m4/glob.m4: New file.
76998
76999 2005-05-29  Derek Price  <derek@ximbiot.com>
77000             Paul Eggert  <eggert@cs.ucla.edu>
77001
77002         * lib/glob_.h, lib/glob.c: New files.
77003
77004 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
77005
77006         * modules/fts (Files): Remove m4/inttypes-pri.m4.
77007         * modules/fts-lgpl (Depends-on): Remove gettext.
77008
77009 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
77010
77011         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
77012         and don't require gt_INTTYPES_PRI.
77013
77014 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
77015
77016         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
77017
77018         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
77019         the configuration hassle isn't worth it.
77020         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
77021         (LONGEST_MODIFIER, PRIuMAX): Remove.
77022
77023 2005-05-27  Bruno Haible  <bruno@clisp.org>
77024
77025         * lib/getlogin_r.h: Remove second include of <stddef.h>.
77026
77027 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
77028
77029         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
77030         _POSIX_PTHREAD_SEMANTICS for Solaris.
77031
77032 2005-05-25  Derek Price  <derek@ximbiot.com>
77033
77034         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
77035
77036 2005-05-25  Derek Price  <derek@ximbiot.com>
77037             Paul Eggert  <eggert@cs.ucla.edu>
77038
77039         * modules/getlogin_r, m4/getlogin_r.m4: New files.
77040         * lib/getlogin_r.c, getlogin_r.h: New files.
77041
77042 2005-05-25  Bruno Haible  <bruno@clisp.org>
77043             Derek Price  <derek@ximbiot.com>
77044
77045         * lib/getlogin_r.h: Simplify API documentation.
77046
77047 2005-05-23  Derek Price  <derek@ximbiot.com>
77048
77049         * modules/minmax (Files): Add m4/minmax.m4.
77050         (configure.ac): Add gl_MINMAX.
77051
77052 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
77053
77054         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
77055         so that unistd-safer.h (GPL'ed code) need not be included.
77056
77057 2005-05-22  Bruno Haible  <bruno@clisp.org>
77058
77059         * m4/minmax.m4: New file.
77060         Based on a patch by Derek Price <derek@ximbiot.com>.
77061
77062 2005-05-22  Bruno Haible  <bruno@clisp.org>
77063
77064         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
77065         (INT64_MIN): Fix definition.
77066         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
77067
77068         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
77069         NEED_SIGNED_INT_TYPES.
77070
77071         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
77072         HAVE_SYSTEM_INTTYPES.
77073
77074 2005-05-22  Bruno Haible  <bruno@clisp.org>
77075
77076         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
77077         Also include <sys/param.h> if it defines MIN, MAX.
77078         Based on a patch by Derek Price <derek@ximbiot.com>.
77079
77080 2005-05-21  Jim Meyering  <jim@meyering.net>
77081
77082         * modules/fts (Files): Add m4/inttypes-pri.m4.
77083         (Depends-on): Add lstat and remove gettext.  Alphabetize.
77084
77085 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
77086
77087         New fts module.
77088         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
77089         (setup_dir, free_dir): New functions.
77090         (enter_dir, leave_dir): Define trivial
77091         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
77092         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
77093         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
77094         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
77095         Move to fts-cycle.c.
77096         (fts_open): Use setup_dir.
77097         (fts_close): Use free_dir.
77098         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
77099         This adds a label and some gotos, but the alternatives were messier.
77100         Check for memory allocation failure when entering a dir.
77101         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
77102         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
77103         (FTS): New member fts_cycle, that is a union that contains the
77104         old active_dir_ht and cycle_state.  All uses changed to mention
77105         fts_cycle.ht and fts_cycle.state.
77106         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
77107         fts.c, with the following changes:
77108         (setup_dir, free_dir): New functions.
77109         (enter_dir): Now returns bool.  Return true if successful, false
77110         if memory exhausted.  All callers changed.
77111         Do not bother partly cleaning up on
77112         memory allocation failure; that is free_dir's job.
77113         However, free ad if hash_insert fails, to avoid memory leak.
77114         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
77115         fts->fts_options to see which union member to use.
77116
77117 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
77118
77119         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
77120         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
77121
77122 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
77123
77124         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
77125
77126 2005-05-20  Jim Meyering  <jim@meyering.net>
77127
77128         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
77129         Now a macro, to pacify GCC.
77130
77131 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
77132
77133         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
77134         of -1.
77135
77136 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
77137
77138         * lib/chown.c (rpl_chown): Return -1 on failure.
77139
77140 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
77141
77142         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
77143         Don't check for stddef.h.
77144         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
77145         don't use its results.
77146         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
77147         since we include them unconditionally.  Don't require
77148         AM_STDBOOL_H, since stdbool is a prerequisite.
77149         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
77150         since we assume C89 or better.
77151         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
77152         as we don't use their results.
77153         Don't check for fchdir, memmove, memset, strrchr, as we use
77154         them unconditionally.
77155         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
77156         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
77157
77158 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
77159
77160         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
77161         Include <stddef.h> unconditionally, since we assume C89 now.
77162         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
77163         * lib/fts.c: Include fts_.h first, to check interface.
77164         Do not include intprops.h; no longer needed.
77165         Include cycle-check.h and hash.h, since fts_.h no longer does.
77166         Remove unnecessary casts of closedir to void.
77167         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
77168         decide whether to decrement nlinks.
77169         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
77170         (FTS): Use struct hash_table * instead of Hash_table, so that
77171         we no longer need to include hash.h here.
77172
77173 2005-05-18  Jim Meyering  <jim@meyering.net>
77174
77175         * modules/dirfd (License): Change to LGPL.  Most of the code
77176         is already in the public domain.
77177
77178 2005-05-18  Jim Meyering  <jim@meyering.net>
77179
77180         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
77181         Reported by Yoann Vandoorselaere.
77182
77183 2005-05-17  Jim Meyering  <jim@meyering.net>
77184
77185         * m4/fts.m4: New file, from coreutils.
77186
77187 2005-05-17  Jim Meyering  <jim@meyering.net>
77188
77189         * lib/fts.c, lib/fts_.h: New files, from coreutils.
77190
77191 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
77192
77193         Sync from coreutils.
77194         * m4/unlinkdir.m4: New file.
77195
77196 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
77197
77198         Sync from coreutils.
77199         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
77200         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
77201         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
77202         White space changes only.
77203         * lib/makepath.c (make_path): Port to hosts where leading "//" is
77204         special.
77205         * lib/yesno.c: Include getline.h, not ctype.h.
77206         (yesno): Don't remove leading white space; POSIX doesn't allow it.
77207         Use getline to remove arbitrary restriction on response length.
77208
77209 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
77210
77211         * config/srclist-update: Spell out "Street" in FSF postal
77212         mail address; this is the style the FSF seems to prefer.
77213
77214         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
77215         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
77216         this updates FSF postal mail address.
77217
77218         Sync from coreutils.
77219         * modules/unlinkdir: New file.
77220         * modules/yesno (Depends-on): Add getline.
77221         * MODULES.html.sh (File system functions): Add unlinkdir.
77222
77223 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
77224
77225         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
77226         lib/strsep.h:
77227         Change the initial comment to refer to GPL, not LGPL.
77228         gnulib-tool will change it to LGPL as needed.
77229
77230         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
77231         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
77232         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
77233         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
77234         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
77235         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
77236         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
77237         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
77238         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
77239         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
77240         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
77241         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
77242         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
77243         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
77244         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
77245         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
77246         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
77247         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
77248         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
77249         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
77250         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
77251         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
77252         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
77253         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
77254         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
77255         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
77256         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
77257         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
77258         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
77259         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
77260         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
77261         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
77262         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
77263         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
77264         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
77265         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
77266         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
77267         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
77268         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
77269         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
77270         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
77271         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
77272         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
77273         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
77274         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
77275         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
77276         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
77277         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
77278         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
77279         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
77280         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
77281         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
77282         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
77283         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
77284         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
77285         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
77286         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
77287         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
77288         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
77289         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
77290         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
77291         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
77292         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
77293         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
77294         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
77295         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
77296         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
77297         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
77298         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
77299         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
77300         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
77301         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
77302         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
77303         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
77304         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
77305         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
77306         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
77307         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
77308         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
77309         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
77310         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
77311         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
77312         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
77313         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
77314         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
77315         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
77316         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
77317         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
77318         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
77319         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
77320         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
77321         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
77322         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
77323         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
77324         lib/yesno.c, lib/yesno.h:
77325         Update FSF postal mail address.
77326
77327 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
77328
77329         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
77330         tests/test-memmem.c, tests/test-stpncpy.c:
77331         Update FSF postal mail address.
77332
77333 2005-05-13  Bruno Haible  <bruno@clisp.org>
77334
77335         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
77336         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
77337         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
77338         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
77339         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
77340         Add support for 64-bit integers in the MSVC compiler.
77341
77342 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
77343
77344         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
77345
77346 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
77347
77348         * gnulib-tool (func_import): Sort and uniquify recommended includes.
77349
77350 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
77351
77352         * doc/getdate.texi (General date syntax): Don't say that date
77353         date --iso-8601=ns generates acceptable dates; it doesn't yet.
77354         Problem reported by Nic Ferrier.
77355
77356 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
77357
77358         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
77359         specified in ai_socktype. Fix invalid ai_protocol
77360         check. ai_protocol is usually set to 0 or depending on
77361         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
77362         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
77363         ai_socktype / ai_protocol in the returned addrinfo structure.
77364
77365 2005-05-10  Simon Josefsson  <jas@extundo.com>
77366
77367         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
77368         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
77369
77370 2005-05-10  Karl Berry  <karl@gnu.org>
77371
77372         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
77373         (from http://www.gnu.org/licenses).
77374         * doc/COPYING.LIB: also rename to COPYING.LESSER.
77375         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
77376         fdl.texi suffices.
77377
77378 2005-05-10  Karl Berry  <karl@gnu.org>
77379
77380         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
77381         (COPYING.DOC): remove.
77382
77383         * config/srclist-update: new FSF address.
77384
77385 2005-05-10  Derek Price  <derek@ximbiot.com>
77386
77387         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
77388         possible.
77389
77390 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
77391             Bruno Haible  <bruno@clisp.org>
77392
77393         * modules/inet_ntop: New file.
77394         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
77395         inet_ntop.
77396
77397 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
77398             Bruno Haible  <bruno@clisp.org>
77399
77400         * m4/inet_ntop.m4: New file.
77401
77402 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
77403             Bruno Haible  <bruno@clisp.org>
77404
77405         * lib/inet_ntop.h: New file.
77406         * lib/inet_ntop.c: New file, from glibc with modifications.
77407
77408 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
77409
77410         * modules/time_r (License): Change to LGPL.
77411         * modules/extensions (License): Change to LGPL.  Actually,
77412         the license is more permissive than that, but currently gnulib-tool
77413         doesn't know how to handle more-permissive licenses.
77414
77415         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
77416         Problem reported by Dave Love.
77417
77418 2005-05-08  Jim Meyering  <jim@meyering.net>
77419
77420         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
77421         blank.
77422
77423 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
77424
77425         * modules/argmatch (Depends-on): Add stdbool.
77426         * modules/backupfile (Depends-on): Likewise.
77427         * modules/chdir-long (Depends-on): Likewise.
77428         * modules/closeout (Depends-on): Likewise.
77429         * modules/cycle-check (Depends-on): Likewise.
77430         * modules/dirname (Depends-on): Likewise.
77431         * modules/fnmatch (Depends-on): Likewise.
77432         * modules/fsusage (Depends-on): Likewise.
77433         * modules/fwriteerror (Depends-on): Likewise.
77434         * modules/getcwd (Depends-on): Likewise.
77435         * modules/getloadavg (Depends-on): Likewise.
77436         * modules/hard-locale (Depends-on): Likewise.
77437         * modules/makepath (Depends-on): Likewise.
77438         * modules/mountlist (Depends-on): Likewise.
77439         * modules/nanosleep (Depends-on): Likewise.
77440         * modules/posixtm (Depends-on): Likewise.
77441         * modules/quotearg (Depends-on): Likewise.
77442         * modules/readtokens (Depends-on): Likewise.
77443         * modules/readtokens0 (Depends-on): Likewise.
77444         * modules/readutmp (Depends-on): Likewise.
77445         * modules/save-cwd (Depends-on): Likewise.
77446         * modules/strftime (Depends-on): Likewise.
77447         * modules/userspec (Depends-on): Likewise.
77448         * modules/utimecmp (Depends-on): Likewise.
77449         * modules/xgetcwd (Depends-on): Likewise.
77450         * modules/xnanosleep (Depends-on): Likewise.
77451         * modules/xstrtod (Depends-on): Likewise.
77452         * modules/yesno (Depends-on): Likewise.
77453
77454 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
77455
77456         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
77457         needless checks.
77458
77459 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
77460
77461         Merge from coreutils.  Among other things,
77462         add bulletproofing for cases where stdin, stdout, or stderr are closed.
77463         * lib/fd-safer.c: New file.
77464         * lib/fcntl-safer.h, open-safer.c: Remove.
77465         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
77466         * lib/dup-safer.c: Include unistd-safer.h first.
77467         Don't include errno.h.
77468         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
77469         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
77470         * lib/file-type.c: Rely on file-type.h change.
77471         * lib/getloadavg.c: Include unistd-safer.h.
77472         (getloadavg): Use safer open.
77473         * lib/getusershell.c: Include "stdio-safer.h".
77474         (getusershell): Use safer fopen.
77475         * lib/long-options.c (long_options): Use NULL rather than 0.
77476         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
77477         'free'.
77478         * lib/modechange.c: Likewise.
77479         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
77480         (MODE_DONE): New constant.
77481         (struct mode_change): Remove 'next' member.
77482         (make_node_op_equals): New function; like the old one of the
77483         same name, except it allocates an array.
77484         (mode_compile, mode_create_from_ref): Use it.
77485         (mode_compile): Allocate result as an array, not a linked list.
77486         Parse octal string ourself, so that we catch mistakes like "+0".
77487         (mode_adjust): Arg is an array, not a linked list.
77488         * lib/modechange.c: Include stat-macros.h, xalloc.h.
77489         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
77490         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
77491         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
77492         Remove.  This is now stat-macros.h's job.
77493         (talloc): Remove.  All callers replaced by xalloc, so that
77494         our invokers don't have to worry about reporting memory failures.
77495         (make_node_op_equals): Remove.
77496         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
77497         New constants.
77498         (struct mode_change): Moved here from modechange.h.
77499         (mode_append_entry): Remove.
77500         (mode_compile): Remove MASKED_OPS arg, since it encouraged
77501         apps to have incorrect behavior.  Use simpler algorithm for head
77502         and tail.  Don't futz with umask; that's now the job of mode_adjust.
77503         Detect more invalid usages rather than having somewhat-random behavior.
77504         Don't insert an "a=" action, as that leads to incorrect behavior.
77505         (mode_compile, mode_create_from_ref): Return NULL on error instead
77506         of an enum, since now there's only one way to have an error.  All
77507         callers changed.
77508         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
77509         at the correct time.  Simplify calculation of "+u" and its ilk.
77510         Don't mishandle "+X".
77511         (mode_free): Remove "register" and localize decls.
77512         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
77513         (struct mode_change): Move to modechange.c; callers don't
77514         need to see this stuff.
77515         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
77516         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
77517         (mode_change, mode_adjust): Reflect the new signatures noted above.
77518         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
77519         that might redefine system include files.
77520         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
77521         (my_usleep): Use NULL rather than (void *) 0.
77522         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
77523         Use siginterrupt to specify that system calls should be interrupted.
77524         (rpl_nanosleep): Move initialization of suspended closer to call of
77525         my_usleep.
77526         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
77527         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
77528         (desirable_utmp_entry): New function.
77529         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
77530         using x2nrealloc, to simplify logic.
77531         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
77532         size calculation.  Do not assume utmp file is a regular file.
77533         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
77534         (READ_UTMP_CHECK_PIDS): New constant.
77535         * lib/save-cwd.c: Include unistd-safer.h.
77536         (save_cwd): Use fd_safer.
77537         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
77538         [!_LIBC] Include "stat-macros.h" instead.
77539         * lib/unistd-safer.h (fd_safer): New decl.
77540
77541 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
77542
77543         * modules/getloadavg (Depends-on): Add unistd-safer.
77544         * modules/getusershell (Depends-on): Add stdio-safer.
77545         * modules/lstat (Depends-on): Remove xalloc.
77546         * modules/mkstemp (Depends-on): Add stat-macros.
77547         * modules/modechange (Depends-on): Remove xstrtol.
77548         Add stat-macros, xalloc.
77549         * modules/save-cwd (Depends-on): Add unistd-safer.
77550         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
77551         * modules/unistd-safer (Files): Add lib/fd-safer.c
77552         (Makefile.am): Remove lib_SOURCES.
77553
77554         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
77555         Remove fcntl-safer; unistd-safer supersedes it.
77556
77557 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
77558
77559         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
77560         AC_HEADER_STAT.
77561         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
77562         (gl_PREREQ_CHOWN): Remove.
77563         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
77564         it.  Don't require AC_HEADER_STAT.
77565         (gl_PREREQ_LSTAT): Remove.
77566         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
77567         Don't require AC_HEADER_STAT.
77568         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
77569         (gl_PREREQ_RMDIR): Remove.
77570         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
77571         mention stat-macros.h or AC_HEADER_STAT, since we'll make
77572         the stat-macros module a prerequisite.
77573         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
77574         * m4/filemode.m4 (gl_FILEMODE): Likewise.
77575         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
77576         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
77577         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
77578         variable names.
77579         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
77580         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
77581         variable prefixes.
77582         * m4/fcntl-safer.m4: Remove.
77583         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
77584         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
77585         Invoke gl_PREREQ_FD_SAFER.
77586         (gl_PREREQ_FD_SAFER): New macro.
77587         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
77588         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
77589         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
77590         Remove duplicate call to AC_LIBOBJ(readutmp).
77591         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
77592
77593         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
77594         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
77595
77596 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
77597
77598         * MODULES.html.sh (Misc): Add byteswap.
77599
77600 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
77601
77602         * modules/getcwd (Depends-on): Add extensions.
77603         * modules/openat (Depends-on): Likewise.
77604
77605 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
77606
77607         * modules/byteswap: New file.
77608
77609 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
77610
77611         * m4/byteswap.m4: New file.
77612
77613 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
77614
77615         * lib/byteswap_.h: New file.
77616
77617 2005-04-25  Karl Berry  <karl@gnu.org>
77618
77619         * m4/gettext.m4: Update from GNU gettext 0.14.4.
77620
77621 2005-04-25  Albert Chin  <china@thewrittenword.com>
77622
77623         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
77624         Toolkit C bug.
77625
77626 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
77627
77628         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
77629         (func_ln_if_changed): Remove forcibly for no error message
77630         in case file does not exist.
77631
77632 2005-04-19  Simon Josefsson  <jas@extundo.com>
77633
77634         * gnulib-tool (Options): Make --symlink mean --symbolic.
77635
77636 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
77637
77638         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
77639
77640 2005-04-16  Simon Josefsson  <jas@extundo.com>
77641
77642         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
77643
77644 2005-04-15  Simon Josefsson  <jas@extundo.com>
77645
77646         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
77647
77648 2005-04-15  Simon Josefsson  <jas@extundo.com>
77649
77650         * gnulib-tool: Rename --symlink to --symbolic.
77651
77652 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
77653
77654         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
77655         symbolic links to files instead of copying/moving.  Add --aux-dir,
77656         specifying directory relative --dir where auxiliary build tools
77657         are placed.
77658
77659 2005-04-14  Bruno Haible  <bruno@clisp.org>
77660
77661         * modules/allocsa (License): Change to LGPL.
77662         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
77663
77664 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
77665
77666         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
77667         that "UTC +1 second" continues to work.  Problem reported
77668         by Dmitry V. Levin.
77669         (relunit_snumber): New rule.
77670         (relunit): Use it.
77671
77672 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
77673
77674         * lib/getdate.y (universal_time_zone_table): New constant.
77675         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
77676         universal_time_zone_table.
77677         (lookup_zone): Prefer universal_time_zone_table to
77678         local_time_zone_table, so that "GMT" time stamps are allowed in
77679         London during the summer.  Problem reported by Ian Abbott.
77680
77681 2005-04-12  Jim Meyering  <jim@meyering.net>
77682
77683         * lib/human.c (humblock): Set *options even when returning due to
77684         xstrtoumax conversion failure.  Thanks to a used-uninitialized
77685         warning from gcc-4.
77686
77687 2005-04-09  Jim Meyering  <jim@meyering.net>
77688
77689         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
77690         -Wuninitialized: initialize tm0.tm_year.
77691
77692 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
77693
77694         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
77695         count, since there's no maximum.  All uses changed.
77696         Add member dsts_seen.
77697         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
77698         not being INT_MAX.
77699         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
77700         Use pc_rels_seen to decide whther a date is absolute.
77701
77702         * lib/getdate.y (number): Don't overwrite year.
77703         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
77704         check.
77705
77706 2005-04-02  Simon Josefsson  <jas@extundo.com>
77707
77708         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
77709         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
77710
77711 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
77712
77713         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
77714         where no absolute path name can be longer than PATH_MAX.
77715
77716 2005-03-27  Jim Meyering  <jim@meyering.net>
77717
77718         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
77719
77720 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
77721
77722         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
77723         "one's complement" -> "ones' complement" in comment, as per Knuth.
77724         "value of type" -> "type or expression" in comment.
77725         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
77726
77727 2005-03-26  Jim Meyering  <jim@meyering.net>
77728
77729         Comment nits.
77730         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
77731         Correct typos: s/or/of/.
77732
77733 2005-03-26  Jim Meyering  <jim@meyering.net>
77734
77735         * modules/check-include-files: Move to ../ and rename to...
77736         * check-module: ...this.
77737
77738 2005-03-25  Jim Meyering  <jim@meyering.net>
77739
77740         * modules/xvasprintf (Files): Add xalloc.h.
77741
77742 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
77743
77744         * modules/gettext (Files): config/config.rpath ->
77745         build-aux/config.rpath
77746         * modules/iconv (Files): Likewise.
77747         Problem reported by Oskar Liljeblad.
77748
77749 2005-03-23  Jim Meyering  <jim@meyering.net>
77750
77751         * modules/check-include-files: New script to check for
77752         missing dependencies, multiple includes, etc.
77753
77754         * modules/c-strtold (Depends-on): Add xalloc.
77755         * modules/c-strtod (Depends-on): Add xalloc.
77756         * modules/hash (Depends-on): Add xalloc.
77757         (Files): Remove lib/xalloc.h.
77758
77759         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
77760         * modules/userspec (Files): Add lib/inttostr.h.
77761
77762 2005-03-23  Jim Meyering  <jim@meyering.net>
77763
77764         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
77765
77766 2005-03-22  Jim Meyering  <jim@meyering.net>
77767
77768         * modules/stat-macros: New module.
77769         * modules/canonicalize, modules/euidaccess, modules/file-type,
77770         * modules/filemode, modules/lchown, modules/makepath,
77771         * modules/rmdir, modules/stat: Depend on new stat-macros module
77772         rather than listing lib/stat-macros.h manually.
77773         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
77774
77775 2005-03-22  Jim Meyering  <jim@meyering.net>
77776
77777         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
77778
77779 2005-03-22  Bruno Haible  <bruno@clisp.org>
77780
77781         * config/srclist.txt: Replace target directory 'config' with
77782         'build-aux'.
77783         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
77784         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
77785         ../build-aux/.
77786
77787 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
77788
77789         * modules/chdir-long (Depends-on): Add mempcpy.
77790
77791         * modules/acl, modules/backupfile, modules/c-strtod,
77792         modules/c-strtold, modules/canon-host, modules/canonicalize,
77793         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
77794         modules/exclude, modules/exitfail, modules/file-type,
77795         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
77796         modules/getdate, modules/getline, modules/getpagesize,
77797         modules/getpass, modules/getugroups, modules/group-member,
77798         modules/hard-locale, modules/hash, modules/human, modules/idcache,
77799         modules/inttostr, modules/long-options, modules/makepath,
77800         modules/md5, modules/memcasecmp, modules/memcoll,
77801         modules/modechange, modules/mountlist, modules/path-concat,
77802         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
77803         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
77804         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
77805         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
77806         modules/strftime, modules/strndup, modules/strverscmp,
77807         modules/timespec, modules/unlocked-io, modules/userspec,
77808         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
77809         modules/yesno:
77810         Remove lib_SOURCES line from Makefile.am section, as this is now
77811         done automatically by the corresponding Autoconf macro.
77812
77813 2005-03-21  Jim Meyering  <jim@meyering.net>
77814
77815         Changes imported from coreutils.
77816
77817         * lib/cycle-check.c: Don't include xalloc.h.
77818
77819         * lib/path-concat.c: Don't include assert.h.
77820         (path_concat): Remove assertion that would have triggered
77821         for ABASE starting with more than one slash.
77822         Reported by Andreas Schwab.
77823
77824         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
77825         properly when ABASE is an absolute file name.
77826         Correct the description of this function.
77827         Include <assert.h>.
77828         Add an assertion and a test driver.
77829         This fixes a bug introduced on 2004-07-02.
77830         Andreas Schwab reported the resulting failure of cp --parents:
77831         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
77832
77833 2005-03-21  Jim Meyering  <jim@meyering.net>
77834
77835         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
77836         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
77837
77838 2005-03-21  Jim Meyering  <jim@meyering.net>
77839         and  Paul Eggert  <eggert@cs.ucla.edu>
77840
77841         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
77842         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
77843         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
77844         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
77845         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
77846         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
77847         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
77848         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
77849         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
77850         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
77851         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
77852         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
77853         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
77854         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
77855         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
77856         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
77857         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
77858         for these modules.
77859
77860 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
77861
77862         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
77863         (which shouldn't happen), generate nothing instead of returning 0
77864         immediately, so that nstrftime (NULL, ...) doesn't return 0.
77865
77866 2005-03-16  Bruno Haible  <bruno@clisp.org>
77867
77868         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
77869         HAVE_LONGLONG_64BIT.
77870
77871 2005-03-16  Bruno Haible  <bruno@clisp.org>
77872
77873         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
77874         HAVE_LONGLONG_64BIT.
77875
77876 2005-03-16  Bruno Haible  <bruno@clisp.org>
77877
77878         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
77879         HAVE_LONGLONG_64BIT.
77880
77881 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
77882
77883         * lib/strftime.c (my_strftime): Prepend space to format so that we can
77884         reliably distinguish strftime failure from empty output on POSIX
77885         hosts.
77886
77887 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
77888
77889         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
77890         (iconv_string): Don't guess a size-zero buffer, as that might cause
77891         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
77892         result would be 'too large', where 'too large' is (heuristically)
77893         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
77894         overflow concerns.  This will prevent some unwanted malloc failures
77895         when the inputs are very large.
77896
77897 2005-03-15  Karl Berry  <karl@gnu.org>
77898
77899         * config/srclist.txt (config.rpath): from gettext.
77900         * config/config.rpath: update.
77901
77902 2005-03-15  Bruno Haible  <bruno@clisp.org>
77903
77904         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
77905         to 'negate'.
77906
77907         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
77908         variable.
77909
77910         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
77911         results.
77912
77913 2005-03-14  Simon Josefsson  <jas@extundo.com>
77914
77915         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
77916         <fx@gnu.org>.
77917
77918 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
77919
77920         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
77921         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
77922         intprops.h.
77923         * lib/strtol.c: Likewise.
77924
77925 2005-03-14  Jim Meyering  <jim@meyering.net>
77926
77927         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
77928         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
77929         to be nonzero so that we (and caller) can detect the difference
77930         between a valid zero-length expansion and an error return, even
77931         when the underlying strftime fails before writing anything into
77932         that location.
77933
77934 2005-03-14  Bruno Haible  <bruno@clisp.org>
77935
77936         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
77937         Update from GNU gettext 0.14.3.
77938
77939 2005-03-10  Jim Meyering  <jim@meyering.net>
77940
77941         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
77942
77943 2005-03-10  Jim Meyering  <jim@meyering.net>
77944
77945         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
77946         so that this module works on systems without fchdir.
77947
77948 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
77949
77950         Factor int-properties macros into a single file, except for
77951         glibc-related files.
77952         * lib/intprops.h: New file.
77953         * lib/getloadavg.c: Include it instead of limits.h.
77954         (INT_STRLEN_BOUND): Remove.
77955         * lib/human.c: Include intprops.h.
77956         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
77957         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
77958         302/1000.
77959         * lib/inttostr.h: Include intprops.h instead of limits.h.
77960         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
77961         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
77962         for consistency with intprops.h.
77963         (time_t_is_integer, twos_complement_arithmetic): Use them.
77964         * lib/sig2str.h: Include <signal.h>, intprops.h.
77965         (INT_STRLEN_BOUND): Remove.
77966         * lib/strftime.c (TYPE_SIGNED): Remove.
77967         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
77968         * lib/strtol.c: Adjust comments to match intprops.h.
77969         * lib/userspec.c: Include intprops.h.
77970         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
77971         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
77972         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
77973         instead of rolling our own expressions.
77974         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
77975
77976         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
77977         instead of int.
77978         (my_strftime): Do not mishandle years close to INT_MAX, by doing
77979         the right thing even if adding 1900 would overflow.  Similarly
77980         for tm_mon + 1 and tm_yday + 1.
77981         Make %Y always equivalent to %C%y, and similarly for %G and %g.
77982         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
77983         (DO_SIGNED_NUMBER): New macro.
77984         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
77985
77986 2005-03-07  Bruno Haible  <bruno@clisp.org>
77987
77988         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
77989
77990 2005-03-07  Bruno Haible  <bruno@clisp.org>
77991
77992         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
77993
77994 2005-03-04  Derek R. Price  <derek@ximbiot.com>
77995
77996         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
77997         (func_import): Only replace files via --import when they have actually
77998         changed.
77999
78000 2005-03-03  Derek R. Price  <derek@ximbiot.com>
78001
78002         * m4/mmap-anon.m4: New file.
78003         * m4/pagealign_alloc.m4: New file.
78004
78005 2005-03-03  Derek R. Price  <derek@ximbiot.com>
78006             Bruno Haible  <bruno@clisp.org>
78007
78008         * modules/pagealign_alloc: New file.
78009         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
78010
78011 2005-03-03  Derek R. Price  <derek@ximbiot.com>
78012             Bruno Haible  <bruno@clisp.org>
78013
78014         * lib/pagealign_alloc.h: New file.
78015         * lib/pagealign_alloc.c: New file.
78016
78017 2005-03-03  Bruno Haible  <bruno@clisp.org>
78018
78019         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
78020         Use an all-permissive copyright notice, recommended by RMS.
78021
78022 2005-03-02  Bruno Haible  <bruno@clisp.org>
78023
78024         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
78025         of AIX, the replacement has to be done only after <string.h> is
78026         included, therefore not in config.h. stpncpy.h does the replacement,
78027         and stpncpy.c uses it.
78028
78029 2005-03-02  Bruno Haible  <bruno@clisp.org>
78030
78031         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
78032         stpncpy.c uses it.
78033
78034 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
78035
78036         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
78037         The workaround isn't strictly needed for POSIX conformance, and
78038         it's too much of a pain to configure and maintain.  We'll ask
78039         people to fix their kernels instead.
78040         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
78041         (NANOSLEEP_BUG_WORKAROUND): Remove.
78042         (xnanosleep): Remove the workaround.
78043
78044 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
78045
78046         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
78047         Reported by Derek Price.
78048         (Include): Add "timespec.h".
78049
78050         * modules/xnanosleep (Depends-on): Remove gethrxtime.
78051
78052 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
78053
78054         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
78055         to detect nanosleep bug.
78056
78057 2005-03-01  Bruno Haible  <bruno@clisp.org>
78058
78059         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
78060
78061 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
78062
78063         * modules/gethrxtime: New file.
78064         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
78065         (Depends-on): Add gethrxtime.
78066         (configure.ac): Add gl_XNANOSLEEP.
78067         (Makefile.am): Remove lib_SOURCES line.
78068
78069 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
78070
78071         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
78072         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
78073
78074 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
78075
78076         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
78077         * lib/timespec.h (gettime): Return void, since it always
78078         succeeds now.  All uses changed.
78079         * lib/gettime.c (gettime): Likewise.
78080         [HAVE_NANOTIME]: Prefer nanotime.
78081         Assume gettimeofday succeeds, as POSIX requires.
78082         Assime time () succeeds, since other code already does.
78083         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
78084         (timespec_subtract): Remove.
78085         (NANOSLEEP_BUG_WORKAROUND): New constant.
78086         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
78087         things considerably.  Use it only on GNU/Linux hosts, since the
78088         workaround shouldn't be needed elsewhere.
78089
78090 2005-02-24  Bruno Haible  <bruno@clisp.org>
78091
78092         * modules/gettext (Files): Add m4/glibc2.m4.
78093
78094 2005-02-24  Bruno Haible  <bruno@clisp.org>
78095
78096         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
78097         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
78098         * m4/progtest.m4:
78099         Update from GNU gettext 0.14.2.
78100         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
78101
78102 2005-02-24  Bruno Haible  <bruno@clisp.org>
78103
78104         * lib/localcharset.c: Update from GNU gettext 0.14.2.
78105         * lib/config.charset: Update from GNU gettext 0.14.2.
78106
78107 2005-02-24  Bruno Haible  <bruno@clisp.org>
78108
78109         * lib/gettext.h: Update from GNU gettext 0.14.2.
78110
78111 2005-02-23  Simon Josefsson  <jas@extundo.com>
78112
78113         * m4/iconvme.m4: New file.
78114
78115 2005-02-23  Jim Meyering  <jim@meyering.net>
78116
78117         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
78118         change.
78119         Thanks to Bruno Haible for catching it.
78120
78121 2005-02-22  Simon Josefsson  <jas@extundo.com>
78122
78123         * modules/iconvme: New file.
78124
78125         * MODULES.html.sh: Add iconvme.
78126
78127 2005-02-22  Simon Josefsson  <jas@extundo.com>
78128
78129         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
78130
78131 2005-02-22  Simon Josefsson  <jas@extundo.com>
78132
78133         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
78134
78135 2005-02-22  Jim Meyering  <jim@meyering.net>
78136
78137         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
78138         s/ifndef/ifdef/.
78139
78140 2005-02-20  Neil Conway  <neilc@samurai.com>
78141
78142         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
78143         returned by OSX/Darwin if the specified buffer is not large
78144         enough for the hostname.
78145
78146 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78147
78148         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
78149         pass it to _help, otherwise the latter coredumps trying to
78150         dereference state.root_argp.
78151
78152 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
78153
78154         * modules/chdir-long (Depends-on): Add memrchr.
78155         * modules/memrchr (Files): Add lib/memrchr.h.
78156         (Include): "memrchr.h".
78157
78158 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
78159
78160         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
78161
78162 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
78163
78164         * lib/memrchr.h: New file.
78165         * lib/chdir-long.c: Include it.
78166         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
78167         Don't bother including stddef.h.
78168
78169 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
78170
78171         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
78172         inclusion.
78173         Include <sys/types.h>, for dev_t.
78174         (ME_DUMMY, ME_REMOTE): Move from here....
78175         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
78176         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
78177         Dmitry V. Levin.
78178         Include mountlist.h first, to test the interface.
78179
78180 2005-01-29  Bruno Haible  <bruno@clisp.org>
78181
78182         * lib/progname.c (program_name): Initialize.
78183         Needed when linking statically on MacOS X.
78184
78185 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
78186
78187         Sync from coreutils.
78188         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
78189         (Depends-on): Add c-strtod.
78190         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
78191
78192 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
78193
78194         Sync from coreutils.
78195         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
78196
78197         Remove files that are specific to coreutils.
78198         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
78199
78200 2005-01-28  Bruno Haible  <bruno@clisp.org>
78201
78202         * modules/javacomp: New file.
78203         * MODULES.html.sh (Java): Add javacomp.
78204
78205 2005-01-28  Bruno Haible  <bruno@clisp.org>
78206
78207         * m4/javacomp.m4: New file, from GNU gettext.
78208
78209 2005-01-28  Bruno Haible  <bruno@clisp.org>
78210
78211         * lib/javacomp.sh.in: New file, from GNU gettext.
78212         * lib/javacomp.h: New file, from GNU gettext.
78213         * lib/javacomp.c: New file, from GNU gettext.
78214
78215 2005-01-26  Simon Josefsson  <jas@extundo.com>
78216
78217         * lib/gai_strerror.c: Use GPL in header.
78218
78219 2005-01-26  Bruno Haible  <bruno@clisp.org>
78220
78221         * modules/javaexec: New file.
78222         * MODULES.html.sh (Java): Add javaexec.
78223
78224 2005-01-26  Bruno Haible  <bruno@clisp.org>
78225
78226         * m4/javaexec.m4: New file, from GNU gettext.
78227
78228 2005-01-26  Bruno Haible  <bruno@clisp.org>
78229
78230         * lib/javaexec.sh.in: New file, from GNU gettext.
78231         * lib/javaexec.h: New file, from GNU gettext.
78232         * lib/javaexec.c: New file, from GNU gettext.
78233
78234 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78235
78236         * modules/lchown (Depends-on): Remove lchown.h
78237
78238 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78239
78240         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
78241         must be defined if the header file was not found, in order
78242         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
78243
78244 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78245
78246         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
78247         initializers for struct pentry_state.
78248         (__argp_error): Check return value of __asprintf
78249         (__argp_failure): Translate error message
78250
78251         * lib/argp-parse.c: Removed braces around the expansion of N_()
78252
78253 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
78254
78255         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
78256         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
78257         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
78258         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
78259         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
78260         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
78261         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
78262         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
78263         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
78264         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
78265         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
78266         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
78267         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
78268         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
78269         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
78270         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
78271         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
78272         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
78273         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
78274         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
78275         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
78276         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
78277         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
78278         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
78279         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
78280         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
78281         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
78282         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
78283         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
78284         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
78285         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
78286         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
78287         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
78288         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
78289         xstrtol.m4, xstrtoumax.m4, yesno.m4:
78290         Use an all-permissive copyright notice, recommended by RMS.
78291
78292 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
78293
78294         * modules/chdir-long (Depends-on): Remove mempcpy.
78295
78296 2005-01-21  Jim Meyering  <jim@meyering.net>
78297
78298         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
78299         same value as for Solaris 9.
78300
78301         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
78302         component length.  This included changing the parameter to be
78303         of type `char *' rather than `char const *'.
78304         * lib/chdir-long.h (chdir_long): Update prototype.
78305
78306         * lib/openat.c (fdopendir, fstatat): New functions.
78307         * lib/openat.h: Include headers required for use of DIR and struct
78308         stat.
78309         [AT_SYMLINK_NOFOLLOW]: Define.
78310         (fdopendir, fstatat): Add prototypes.
78311
78312 2005-01-21  Bruno Haible  <bruno@clisp.org>
78313
78314         * modules/classpath: New file.
78315         * MODULES.html.sh (Java): Add classpath.
78316
78317 2005-01-21  Bruno Haible  <bruno@clisp.org>
78318
78319         * lib/classpath.h: New file, from GNU gettext.
78320         * lib/classpath.c: New file, from GNU gettext.
78321
78322 2005-01-20  Simon Josefsson  <jas@extundo.com>
78323
78324         * modules/version-etc-fsf: New file.
78325
78326 2005-01-20  Simon Josefsson  <jas@extundo.com>
78327
78328         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
78329         * lib/version-etc.c: Remove version_etc_copyright.
78330         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
78331         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
78332
78333 2005-01-20  Simon Josefsson  <jas@extundo.com>
78334
78335         * lib/base64.h (isbase64): Add.
78336
78337         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
78338         using a unsigned prototype, don't inline.
78339         (base64_decode): Use it.
78340
78341 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
78342
78343         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
78344         it.
78345
78346 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
78347
78348         * lib/save-cwd.c (save_cwd): Remove code to support the case
78349         where fchdir is missing or flaky.
78350
78351 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
78352
78353         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
78354
78355 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
78356
78357         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
78358         AC_LIBSOURCES now does this.
78359         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
78360         with new ullong_max module.
78361
78362 2005-01-19  Bruno Haible  <bruno@clisp.org>
78363
78364         * modules/sh-quote: New file.
78365         * MODULES.html.sh (Executing programs): Add sh-quote.
78366
78367 2005-01-19  Bruno Haible  <bruno@clisp.org>
78368
78369         * lib/sh-quote.h: New file, from GNU gettext.
78370         * lib/sh-quote.c: New file, from GNU gettext.
78371
78372 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
78373
78374         Merge from coreutils.
78375         * m4/ullong_max.m4: New file.
78376         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
78377         (gl_MACROS): Assume localeconv exists.
78378
78379 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
78380
78381         Merge changes from coreutils, as described below in several
78382         changelogs dated today.
78383
78384         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
78385         (O_DIRECTORY): Remove; not needed here, since "." must be
78386         a directory.  All uses removed.
78387         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
78388         universal on Suns, and we also need to test for IRIX.
78389         Revamp code to use 'if' rather than '#if'.
78390         Avoid unnecessary comparison of cwd->desc to 0.
78391
78392         * lib/utimens.c (futimens): Robustify the previous patch, by checking
78393         for known valid error numbers rather than observed invalid ones.
78394
78395 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
78396
78397         * modules/ullong_max: New file.
78398
78399         * modules/chdir-long, modules/openat: New files.
78400         * modules/save-cwd (Depends-on): Depend on chdir-long.
78401         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
78402
78403 2005-01-18  Jim Meyering  <jim@meyering.net>
78404
78405         Merge from coreutils.
78406         * m4/chdir-long.m4, m4/openat.m4: New files.
78407         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
78408         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
78409         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
78410         is sane and DOES follow symlinks.  Besides, testing 20 different
78411         systems found no broken chown implementations.
78412         Prompted by a change in rsync's copy of this macro.
78413         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
78414
78415         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
78416
78417         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
78418         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
78419         NULL-means-set-to-current-time semantics.
78420         Remove temporary file immediately, rather than waiting
78421         for configure's at-exit trap code to do it.
78422
78423 2005-01-18  Jim Meyering  <jim@meyering.net>
78424
78425         * lib/version-etc.c (version_etc_copyright): Update copyright date.
78426
78427         * lib/utimens.c (futimens): Account for the fact that futimes
78428         can also fail with errno == ENOSYS or errno == ENOENT.
78429         Patch from Dmitry V. Levin.
78430
78431         Change the name of the robust chdir function from chdir to chdir_long.
78432         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
78433         (restore_cwd): Use chdir_long, not chdir.
78434         * lib/chdir-long.c: Renamed from chdir.c.
78435         * lib/chdir-long.h: Renamed from chdir.h.
78436         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
78437         Hurd.
78438
78439 2005-01-18  Bruno Haible  <bruno@clisp.org>
78440
78441         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
78442         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
78443         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
78444         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
78445         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
78446         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
78447         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
78448         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
78449         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
78450         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
78451         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
78452         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
78453         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
78454         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
78455         Use an all-permissive copyright notice, recommended by RMS.
78456
78457 2005-01-18  Bob Proulx  <bob@proulx.com>
78458
78459         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
78460         simplify offsetof() macro construct to avoid compile failure with
78461         native HP-UX 11.0 ANSI C compiler.
78462
78463 2005-01-17  Bruno Haible  <bruno@clisp.org>
78464
78465         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
78466         redundant because stpncpy.m4 takes care of it.
78467
78468 2005-01-17  Bruno Haible  <bruno@clisp.org>
78469
78470         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
78471
78472 2005-01-17  Bruno Haible  <bruno@clisp.org>
78473
78474         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
78475         used.
78476
78477 2005-01-17  Bruno Haible  <bruno@clisp.org>
78478
78479         * lib/fwriteerror.h (fwriteerror): Change specification to include
78480         fclose.
78481         * lib/fwriteerror.c: Include <stdbool.h>.
78482         (fwriteerror): At the end, close the file stream. Record whether
78483         stdout was already closed.
78484
78485 2005-01-17  Bruno Haible  <bruno@clisp.org>
78486
78487         * lib/execute.c (environ): Declare if needed.
78488         * lib/pipe.c (environ): Likewise.
78489         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
78490
78491 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78492
78493         * modules/argp: Depend on vsnprintf
78494
78495 2005-01-10  Jim Meyering  <jim@meyering.net>
78496
78497         * modules/closeout (Depends-on): Add atexit.
78498
78499 2005-01-06  Bruno Haible  <bruno@clisp.org>
78500
78501         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
78502
78503 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
78504
78505         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
78506         definitions to be after all include files, to avoid collisions.
78507         Problem reported by Bob Proulx.
78508
78509 2005-01-04  Jim Meyering  <jim@meyering.net>
78510
78511         Changes imported from coreutils.
78512         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
78513         as the mkstemp template, use a temporary directory and an
78514         8.3-friendly template to avoid trouble on systems like DJGPP.
78515         Reported by Juan M. Guerrero via Stepan Kasal.
78516         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
78517         close. Remove the temporary directory right away, rather than waiting
78518         for configure's at-exit trap code to do it.
78519         Suggestion from Stepan Kasal.
78520
78521 2005-01-01  Simon Josefsson  <jas@extundo.com>
78522
78523         * gnulib-tool: Print #include directives when --import'ing.
78524
78525 2004-12-28  Simon Josefsson  <jas@extundo.com>
78526
78527         * tests/test-base64.c: Include required header files.  Remove
78528         unused variables.
78529
78530 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
78531
78532         * modules/error (Depends-on): Remove gettext.
78533
78534 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
78535
78536         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
78537         not needed.  This removes a dependency on the gettext module.
78538         [defined _LIBC]: Do not include <libintl.h>; not needed.
78539
78540 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
78541
78542         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
78543         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
78544
78545 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
78546
78547         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
78548         HAVE_DECL_STRTOLD.
78549
78550 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
78551
78552         * modules/getdate (Depends-on): Remove alloca-opt.
78553
78554 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
78555
78556         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
78557
78558 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
78559
78560         * lib/argp-parse.c: Include <stddef.h>.
78561         (alignof, alignto): New macros.
78562         (parser_init): Don't assume that void * is aligned sufficiently
78563         for struct option.
78564
78565         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
78566         need to extend the stack.
78567         (YYINITDEPTH): New macro, so that the initial stack isn't overly
78568         large.
78569
78570 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78571
78572         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
78573
78574 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
78575
78576         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
78577         (2004-10-24) change.  Apparently this was a false alarm.
78578
78579         * modules/getdate: Depend on alloca-opt, not alloca.
78580
78581 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
78582
78583         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
78584         Remove now-obsolete comment about AIX.
78585         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
78586         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
78587         (YYMAXDEPTH): New macro.
78588
78589 2004-12-18  Simon Josefsson  <jas@extundo.com>
78590
78591         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
78592
78593 2004-12-18  Bruno Haible  <bruno@clisp.org>
78594
78595         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
78596
78597 2004-12-18  Bruno Haible  <bruno@clisp.org>
78598
78599         * lib/fatal-signal.c (fatal_signals): Make non-const.
78600         (init_fatal_signals): New function.
78601         (uninstall_handlers, install_handlers): Ignore signals that were set to
78602         SIG_IGN.
78603         (at_fatal_signal): Call init_fatal_signals.
78604         (init_fatal_signal_set): Likewise. Ignore signals that were set to
78605         SIG_IGN.
78606         Reported by Paul Eggert.
78607
78608 2004-12-18  Bruno Haible  <bruno@clisp.org>
78609
78610         * doc/alloca.texi: New file.
78611         * doc/alloca-opt.texi: New file.
78612
78613 2004-12-17  Jim Meyering  <jim@meyering.net>
78614
78615         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
78616         Otherwise, install-sh could exit with improper exit status when
78617         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
78618
78619 2004-12-16  Simon Josefsson  <jas@extundo.com>
78620
78621         * tests/test-base64.c: Add license.
78622
78623 2004-12-15  Stepan Kasal  <address@hidden>
78624
78625         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
78626
78627 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
78628
78629         * modules/getcwd (Files): Add m4/d-ino.m4.
78630         Suggested by Mark D. Baushke.
78631
78632 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
78633
78634         * lib/getdate.y (textint): New member "negative".
78635         (time_zone_hhmm): New function.
78636         Expect 14 shift-reduce conflicts, not 13.
78637         (o_colon_minutes): New rule.
78638         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
78639         (yylex): Set the "negative" member of signed numbers.
78640
78641 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
78642
78643         * doc/getdate.texi (Time of day items, Time zone items):
78644         Describe new formats +00:00, UTC+00:00.
78645
78646 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
78647
78648         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
78649         spurious "-l"s.  Problem reported by Stepan Kasal.
78650
78651 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
78652
78653         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
78654         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
78655
78656 2004-12-04  Simon Josefsson  <jas@extundo.com>
78657
78658         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
78659         Vandoorselaere <yoann@prelude-ids.org>.
78660
78661 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
78662
78663         Changes imported from coreutils.
78664         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
78665         exist.
78666         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
78667
78668 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
78669
78670         Changes imported from coreutils.
78671         * lib/hard-locale.c: Assume <locale.h> exists.
78672         Include "strdup.h".
78673         (GLIBC_VERSION): New macro.
78674         (hard_locale): Assume setlocale exists.
78675         Rewrite to avoid #ifdef.
78676         Use strdup rather than malloc + strcpy.
78677         * lib/human.c: Assume <locale.h> exists.
78678         (human_readable): Assume localeconv exists.
78679
78680 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
78681
78682         * modules/hard-locale (Depends-on): Add strdup.
78683
78684 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
78685
78686         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
78687         convert T2, not T.  (Imported from libc.)
78688
78689 2004-11-30  Simon Josefsson  <jas@extundo.com>
78690
78691         * modules/restrict (License): Change to LGPL.
78692
78693 2004-11-30  Simon Josefsson  <jas@extundo.com>
78694
78695         * m4/restrict.m4: Add copyright and copying conditions.
78696
78697 2004-11-30  Simon Josefsson  <jas@extundo.com>
78698
78699         * m4/base64.m4: New file.
78700
78701 2004-11-30  Simon Josefsson  <jas@extundo.com>
78702
78703         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
78704         base64.
78705
78706         * tests/test-base64.c: New file.
78707
78708         * modules/base64: New file.
78709
78710 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
78711
78712         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
78713         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
78714
78715         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
78716
78717 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
78718
78719         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
78720         (__getcwd.c): Don't restore errno; glibc doesn't.
78721         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
78722         first, falling back to our code only if its results look suspicious.
78723         Ensure that the resulting buffer is only as large as necessary.
78724
78725         * lib/readutmp.c: Include readutmp.h first.
78726         Include <errno.h>, since readutmp.h no longer does that.
78727         * lib/readutmp.h: Don't include <errno.h>,
78728         <sys/param.h>, <time.h>; not needed to establish interface.
78729         (errno): Remove decl.
78730         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
78731         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
78732         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
78733
78734 2004-11-28  Simon Josefsson  <jas@extundo.com>
78735
78736         * lib/base64.h, base64.c: New file.
78737
78738 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
78739
78740         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
78741
78742 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
78743
78744         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
78745         (Depends-on): Remove pathmax, same.  Add mempcpy.
78746         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
78747         (Makefile.am): Append getcwd.h to lib_SOURCES.
78748         (Include): Add getcwd.h.
78749         (Maintainer): Change from Jim Meyering to "all, glibc",
78750         since getdate now uses intended-for-glibc code.
78751         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
78752         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
78753
78754 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
78755
78756         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
78757         HP's ANSI C compiler.
78758         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
78759         Declaring int functions causes warnings on some modern systems and
78760         shouldn't be needed to compile on ancient ones.
78761         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
78762         defined.
78763
78764         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
78765         with the following changes.
78766         (__set_errno): Parenthesize properly.
78767         Include <stdbool.h>.
78768         (MIN, MAX, MATCHING_INO): New macros.
78769         (__getcwd): Define with prototype, not K&R form.
78770         Use heuristics to allocate default buffer on stack if possible.
78771         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
78772         behavior, and to avoid the PATH_MAX limit when computing
78773         ../../../../...
78774         Use MATCHING_INO to compare inode number to file.
78775         Check for arithmetic overflow in size calculations.
78776         Fix bug in reallocation of dot array that caused getcwd to fail
78777         on directories nested deeper than 75.
78778         Be more careful about saving errno on error.
78779         Do not use realloc; use only free+malloc, as this is a bit
78780         more flexible and avoids a needless copy operation.
78781         Do not inspect st_dev and st_ino for symbolic links; POSIX
78782         doesn't specify the latter.
78783         Check for closedir errors.
78784         Avoid needless casts.
78785         Use "#ifdef weak_alias" around weak_alias, to be like other
78786         glibc code.
78787         The following changes to getcwd.c have effect only when used in
78788         gnulib; they have no effect inside glibc proper.
78789         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
78790         as alloca isn't used.
78791         (alloca, __alloca): Likewise.
78792         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
78793         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
78794         unconditionally, as gnulib assumes C89 or better.
78795         Do not include <sys/param.h>.
78796         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
78797         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
78798         better.
78799         (NULL) [!defined NULL]: Remove; we assume C89 or better.
78800         Include <dirent.h> in a way that is compatible with modern Autoconf.
78801         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
78802         New macros, if not already defined.
78803         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
78804         Use "_LIBC", not "defined _LIBC", for consistency.
78805         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
78806         a mempcpy module.
78807         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
78808         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
78809         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
78810         credit only to Jim Meyering and adjust the copyright dates.
78811         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
78812         <stdlib.h>, <unistd.h>, "pathmax.h".
78813         Instead, include "xgetcwd.h" (first) and "getcwd.h".
78814         (INITIAL_BUFFER_SIZE): Remove.
78815         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
78816
78817 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
78818
78819         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
78820         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
78821         Use the _ONCE methods, for efficiency.
78822         Check for fcntl.h.  In test program, include <errno.h>
78823         and <fcntl.h> if available.  Remove old K&R cruft from
78824         test program.  Check for common errors in GNU/Linux,
78825         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
78826         don't do AC_LIBOBJ, as that's getcwd.m4's job.
78827         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
78828         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
78829         name accordingly.
78830         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
78831         accommodate new getcwd.c.
78832         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
78833         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
78834         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
78835         that's all we need now.
78836
78837 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78838
78839         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
78840         argp-parse.c depends on getopt internals, that means we should
78841         always use our getopt, to be on the safe side.
78842         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
78843         order not to spoil the result of an eventual previous invocation
78844         of gl_GETOPT_SUBSTITUTE.
78845
78846 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78847
78848         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
78849         redefinition warnings. To avoid them, include the defines
78850         in `#if !defined __need_getopt ... #endif'. The only place
78851         where __getopt_argv_const is used is in definitions
78852         of getopt_long and getopt_long_only below, which are as well
78853         protected by `#ifndef __need_getopt'.
78854         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
78855         __need_getopt after including <stdio.h> and <unistd.h> These
78856         headers might have defined it.
78857
78858 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
78859
78860         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
78861
78862 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
78863
78864         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
78865         (futimens): New function, which uses futimes if available.
78866         (futimens, utimens): Support timespec==NULL, with same semantics
78867         as utime and utimens.
78868         * lib/utimens.h (futimens): New decl.
78869
78870 2004-11-23  Jim Meyering  <jim@meyering.net>
78871
78872         * lib/getopt_.h: Remove trailing blanks.
78873
78874 2004-11-23  Jim Meyering  <jim@meyering.net>
78875
78876         * lib/__fpending.c: Add comment.
78877
78878 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
78879
78880         * modules/canonicalize (Depends-on): Add xreadlink.
78881         Problem reported by James Youngman.
78882
78883 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
78884
78885         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
78886         New macros.
78887         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
78888         optopt): Use them instead of invoking ## directly; otherwise, the
78889         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
78890
78891 2004-11-19  Bruno Haible  <bruno@clisp.org>
78892
78893         * lib/strtok_r.c: Move comments from here...
78894         * lib/strtok_r.h: ... to here.
78895
78896 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
78897
78898         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
78899         implementations that mishandle size_t overflow.
78900
78901 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
78902
78903         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
78904         might fail.  Problem reported by Yoann Vandoorselaere.
78905         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
78906         implementations that mishandle size_t overflow.
78907
78908 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
78909
78910         * modules/canon-host (Depends-on): Add strdup.
78911
78912 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
78913
78914         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
78915
78916 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
78917
78918         * lib/canon-host.c: Include "strdup.h".
78919         (canon_host): Use getaddrinfo if available, so that IPv6 works.
78920         Use strdup instead of malloc/strcpy to duplicate strings.
78921
78922         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
78923         (human_space_before_unit): New constant.
78924         * lib/human.c (human_readable): Support it.
78925
78926         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
78927         (xgetcwd): Set errno correctly when failing.
78928         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
78929         the failure is actually due to a PATH_MAX problem.
78930
78931         Further getopt changes to make it more likely that glibc will
78932         buy the changes back.
78933         * lib/getopt.c (POSIXLY_CORRECT): New constant.
78934         (getopt): Use it, so to preserve glibc semantic
78935         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
78936         when compiling for libc.
78937         * lib/getopt_.h (__getopt_argv_const): Bring it back.
78938         (getopt_long, getopt_long_only): Use it.
78939
78940         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
78941         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
78942         (getopt): Argv is now char * const *, as per standard.
78943         (_getopt_internal_r, _getopt_internal): Argv is now char **,
78944         not char *__getopt_argv_const *.
78945         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
78946         _getopt_long_only_r): Likewise.
78947         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
78948         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
78949         _getopt_long_r, _getopt_long_only_r): Likewise.
78950         * lib/getopt_.h (__getopt_argv_const): Remove.
78951         (getopt): Argv is now char * const *, as per standard.
78952
78953         * lib/getdate.y (tORDINAL): New token.
78954         (day, relunit): Allow it for relative times.
78955         (relative_time_table): Use tORDINAL for ordinals.
78956
78957 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
78958
78959         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
78960         Document that "second" isn't allowed as an ordinal number.
78961
78962 2004-11-16  Jim Meyering  <jim@meyering.net>
78963
78964         * modules/closeout (Depends-on): Add fpending.
78965
78966 2004-11-15  Jim Meyering  <jim@meyering.net>
78967
78968         * lib/closeout.c: Include "__fpending.h" once again.
78969         Include <stdbool.h>.
78970         (close_stdout): Don't fail just because stdout was closed initially,
78971         since some programs don't write to stdout in the normal course of
78972         operation (other than --version and --help), and we don't want this
78973         function to make e.g. `touch file >&-' fail.
78974         But do fail if it was closed and someone has tried to write to it.
78975         E.g., `printf foo >&-' must fail.
78976
78977 2004-11-13  Jim Meyering  <jim@meyering.net>
78978
78979         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
78980
78981 2004-11-12  Simon Josefsson  <jas@extundo.com>
78982
78983         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
78984         small doc fix is still pending.
78985
78986 2004-11-11  Simon Josefsson  <jas@extundo.com>
78987
78988         * modules/strtok_r: New file.
78989
78990         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
78991         strtok_r.
78992
78993 2004-11-11  Simon Josefsson  <jas@extundo.com>
78994
78995         * m4/strtok_r.m4: New file.
78996
78997         * m4/getopt.m4: Replace opterr.
78998
78999 2004-11-11  Simon Josefsson  <jas@extundo.com>
79000
79001         * lib/strtok_r.h, strtok_r.c: New file.
79002
79003 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
79004
79005         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
79006         of replacing opterr, getopt, etc.  This should handle the
79007         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
79008
79009 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
79010
79011         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
79012         we can stop lying to compilers about the constness of argv when we
79013         are compiled outside glibc.
79014         (getopt, getopt_long, getopt_long_only): Use it.
79015         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
79016         _getopt_internal, getopt): Likewise.
79017         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
79018         _getopt_long_only_r): Likewise.
79019         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
79020         _getopt_long_r, _getopt_long_only_r): Likewise.
79021
79022         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
79023         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
79024         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
79025         the other external symbols.
79026         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
79027         declaration, since the above renaming now works around collisions.
79028
79029 2004-11-11  Jim Meyering  <jim@meyering.net>
79030
79031         * lib/linebreak.c: Remove trailing blanks.
79032         * lib/alloca_.h: Likewise.
79033         * lib/acosl.c: Likewise.
79034         * lib/euidaccess.c: Likewise.
79035         * lib/allocsa.h: Likewise.
79036
79037 2004-11-10  Simon Josefsson  <jas@extundo.com>
79038
79039         * m4/getaddrinfo.m4: New file.
79040
79041 2004-11-10  Simon Josefsson  <jas@extundo.com>
79042
79043         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
79044
79045 2004-11-10  Simon Josefsson  <jas@extundo.com>
79046
79047         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
79048         getaddrinfo.
79049
79050         * modules/getaddrinfo: New file.
79051
79052 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
79053
79054         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
79055
79056 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
79057
79058         * lib/mktime.c (SHR): New macro, which is a portable
79059         substitute for >> that should work even on Crays.
79060         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
79061         Problem reported by Mark D. Baushke in
79062         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
79063         * lib/getdate.y (SHR): Likewise.
79064         (tm_diff): Use it.
79065         * lib/strftime.c (SHR): Likewise.
79066         (tm_diff): Use it.
79067         * lib/quotearg.c (struct quoting_options): Use unsigned int for
79068         quote_these_too, so that right shifts are well defined.  All uses
79069         changed.
79070
79071 2004-11-10  Jim Meyering  <jim@meyering.net>
79072
79073         Ensure that no close failure goes unreported.
79074         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
79075         return early when it seems there's nothing to flush.
79076         Don't include __fpending.h.
79077
79078 2004-11-10  Jim Meyering  <jim@meyering.net>
79079
79080         * modules/closeout (Depends-on): Remove fpending.
79081
79082 2004-11-10  Jim Meyering  <jim@meyering.net>
79083
79084         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
79085
79086 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
79087
79088         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
79089         gl_FUNC_STRFTIME.
79090         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
79091         and AC_REQUIRE when possible, to avoid duplicate checks.
79092         Check for <wchar.h>.
79093
79094 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
79095
79096         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
79097
79098 2004-11-09  Bruno Haible  <bruno@clisp.org>
79099
79100         * m4/sockpfaf.m4: New file.
79101
79102 2004-11-05  Bruno Haible  <bruno@clisp.org>
79103
79104         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
79105         Reported by Mark D. Baushke <mdb@cvshome.org>.
79106
79107 2004-11-04  Bruno Haible  <bruno@clisp.org>
79108
79109         2004-09-11  Bruno Haible  <bruno@clisp.org>
79110                 * allocsa.valgrind: New file.
79111         2004-02-06  Bruno Haible  <bruno@clisp.org>
79112                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
79113                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
79114                 Reported by Christopher Seip <chris.seip@hp.com>.
79115
79116 2004-11-04  Bruno Haible  <bruno@clisp.org>
79117
79118         * modules/allocsa (Files): Add lib/allocsa.valgrind.
79119         (Makefile.am): Distribute it.
79120
79121 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
79122
79123         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
79124         with errno == ERANGE if the buffer is too small.
79125         Problem reported by Mark D. Baushke.
79126
79127 2004-11-03  Albert Chin  <china@thewrittenword.com>
79128             Paul Eggert  <eggert@cs.ucla.edu>
79129
79130         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
79131         equivalent, substitute $ac_type for equivalent type rather than
79132         blindly using uint32_t *always* which won't work if uint32_t is not
79133         available.  Define _UINT32_T to work around typedef of uint32_t if
79134         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
79135         2.5.1.
79136
79137 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
79138
79139         * m4/jm-macros.m4: Sync from coreutils.
79140         (gl_MACROS): Check for mbrlen, for pathchk.
79141         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
79142
79143 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
79144
79145         * lib/xreadlink.c (MAXSIZE): New macro.
79146         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
79147         size does not exceed MAXSIZE.  Avoid cast.
79148         As suggested by Mark D. Baushke in
79149         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
79150         if readlink fails with buffer size just under MAXSIZE, try again
79151         with MAXSIZE.
79152
79153 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
79154
79155         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
79156
79157 2004-11-02  Derek R. Price  <derek@ximbiot.com>
79158         and  Paul Eggert  <eggert@cs.ucla.edu>
79159
79160         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
79161         (get_date): Overparenthesize to avoid GCC warning.
79162
79163 2004-11-02  Bruno Haible  <bruno@clisp.org>
79164
79165         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
79166         returns void.
79167
79168 2004-11-02  Bruno Haible  <bruno@clisp.org>
79169
79170         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
79171         function returns void.
79172
79173 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
79174
79175         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
79176         fflush_unlocked, flockfile, funlockfile, funlockfile,
79177         fputs_unlocked, putc_unlocked.
79178
79179 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
79180
79181         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
79182         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
79183         already declared.
79184
79185 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
79186
79187         * modules/getdate (Files): Add doc/getdate.texi.
79188         (Depends-on): Add setenv, xalloc.
79189
79190 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
79191
79192         * lib/getdate.y: Add support for TZ="foo" within a date string.
79193         Fix some bugs near time_t boundaries.  Reject dates with
79194         out-of-range components, e.g., "Sept 31".
79195         Include <stdlib.h>, "setenv.h", "xalloc.h".
79196         (ISDIGIT_LOCALE): Remove; unused.
79197         Note that the TZ and time functions used here are not reentrant.
79198         (mktime_ok, get_tz): New functions.
79199         (TZBUFSIZE): New constant.
79200         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
79201         This requires that we sometimes generate our own TZ="XXX..." setting.
79202
79203 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
79204
79205         * doc/getdate.texi: New file, from coreutils with modifications for
79206         the new TZ parsing.
79207
79208 2004-10-27  Derek R. Price  <derek@ximbiot.com>
79209
79210         * lib/mktime.c (not_equal_tm): Remove redundant check.
79211
79212 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
79213
79214         * modules/regex (lib_SOURCES): Add regex.c.
79215         Reported by James Youngman in
79216         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
79217
79218 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
79219
79220         * lib/getdate.y: Use Bison 1.875 features, and some minor
79221         code cleanups.  This change does not affect semantics.
79222         Don't include <stdlib.h>; no longer needed.
79223         Don't include unlocked-io.h; only the "#if TEST" code uses
79224         stdio, and performance isn't crucial there.
79225         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
79226         Bison 1.875 features as described below.
79227         All uses of "PC." replaced by "pc->".
79228         (YYSTYPE): Add a forward declaration.
79229         (yylex, yyerror): Use full prototypes in forward decls.
79230         Use "%pure-parser" rather than obsolescent "%pure_parser".
79231         Use %parse-param and %lex-param instead of obsolescent
79232         YYPARSE_PARAM and YYLEX_PARAM.
79233         (meridian_table, month_and_day_table, time_units_table,
79234         relative_time_table, time_zone_table, military_table,
79235         lookup_zone, lookup_word, get_date):
79236         Use NULL instead of 0 where appropriate.
79237         (to_hour): Avoid abort (), to avoid a dependency on
79238         stdlib.h.
79239         (yyerror, yylex): Now accepts parser_control * arg.
79240         (main) [TEST]: Use '\0' rather than 0 for char.
79241
79242 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
79243
79244         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
79245
79246 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
79247
79248         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
79249         It's now the caller's responsibility to handle the case where
79250         !HAVE_GETPAGESIZE && !defined getpagesize.
79251
79252         * lib/mktime.c (leapyear): Arg is long int, not int.
79253
79254 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
79255
79256         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
79257
79258 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
79259
79260         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
79261         missing.  Problem reported by James Youngman.
79262
79263 2004-10-16  Simon Josefsson  <jas@extundo.com>
79264
79265         * gnulib-tool: Fix comments.  Fix parse problem.
79266         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
79267
79268 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
79269
79270         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
79271         implementation of getopt_long.  Problem reported by Alexander Taler in:
79272         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
79273
79274 2004-10-15  Bruno Haible  <bruno@clisp.org>
79275
79276         * gnulib-tool: Untabify. Initialize supplied_libname.
79277         (func_usage): More homogenous output.
79278         (func_modules_transitive_closure, func_modules_to_filelist,
79279         func_emit_lib_Makefile_am): New functions.
79280         (func_import): New function, extracted from big case statement. Use
79281         func_get_license, func_modules_transitive_closure,
79282         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
79283         opt_lgpl. Don't use test -a, as it's not portable.
79284         (func_create_testdir): Use func_modules_transitive_closure,
79285         func_modules_to_filelist, func_emit_lib_Makefile_am.
79286
79287 2004-10-15  Bruno Haible  <bruno@clisp.org>
79288
79289         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
79290
79291 2004-10-15  Bruno Haible  <bruno@clisp.org>
79292
79293         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
79294         the portions belonging to each module.
79295         Suggested by Derek Robert Price <derek@ximbiot.com>.
79296
79297 2004-10-12  Simon Josefsson  <jas@extundo.com>
79298
79299         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
79300         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
79301         to real functions.
79302
79303 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
79304
79305         * modules/vsnprintf: New file.
79306
79307 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
79308
79309         * m4/vsnprintf.m4: New file.
79310
79311 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
79312
79313         * lib/vsnprintf.h: New file.
79314         * lib/vsnprintf.c: New file.
79315
79316 2004-10-11  Bruno Haible  <bruno@clisp.org>
79317
79318         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
79319         vsnprintf.
79320
79321 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
79322
79323         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
79324
79325 2004-10-07  Bruno Haible  <bruno@clisp.org>
79326
79327         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
79328         fits into the provided buffer.
79329
79330 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
79331
79332         * lib/diacrit.c, diacrit.h: Add GPL notice.
79333
79334         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
79335         notice.
79336         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
79337         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
79338         This avoids a potential constant-folding bug.
79339
79340 2004-10-05  Bruno Haible  <bruno@clisp.org>
79341
79342         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
79343         for the declaration of strsep.
79344
79345 2004-10-05  Bruno Haible  <bruno@clisp.org>
79346
79347         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
79348
79349 2004-10-04  Simon Josefsson  <jas@extundo.com>
79350
79351         * modules/memmem: New file.
79352         * tests/test-memmem.c: New file.
79353         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
79354
79355 2004-10-04  Simon Josefsson  <jas@extundo.com>
79356
79357         * m4/memmem.m4: New file.
79358
79359 2004-10-04  Simon Josefsson  <jas@extundo.com>
79360
79361         * lib/memmem.h: New file.
79362         * lib/memmem.c: New file, taken from glibc.
79363
79364 2004-10-04  Simon Josefsson  <jas@extundo.com>
79365
79366         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
79367         '#ifdef USE_UNLOCKED_IO'.
79368
79369 2004-10-04  Simon Josefsson  <jas@extundo.com>
79370
79371         * config/srclist.txt: Add memmem from glibc.
79372
79373 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
79374
79375         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
79376
79377         * modules/argmatch, modules/argp, modules/closeout, modules/error,
79378         modules/exclude, modules/getdate, modules/getline,
79379         modules/getndelim2, modules/getpass, modules/getpass-gnu,
79380         modules/getusershell, modules/linebuffer, modules/md5,
79381         modules/mountlist, modules/posixtm, modules/readtokens,
79382         modules/readutmp, modules/regex, modules/sha1,
79383         modules/version-etc, modules/yesno:
79384         Remove dependency on unlocked-io.
79385
79386 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
79387
79388         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
79389
79390         * m4/unlocked-io.m4: Add copyright notice.
79391         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
79392
79393 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
79394
79395         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
79396         * lib/xmalloc.c (xmemdup): Likewise.
79397         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
79398         XFREE): Remove these long-obsolescent macros.
79399         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
79400         * lib/xstrdup.c: Remove.
79401
79402         * lib/regex.c (re_comp): Cast gettext return value to char *,
79403         Problem reported by Martin Neitzel via Mark D. Baushke.
79404
79405 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
79406
79407         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
79408         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
79409         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
79410         regex.c, sha1.c, version-etc.c, yesno.c:
79411         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
79412         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
79413         the includer's responsibility.
79414
79415         Sync from coreutils.
79416
79417         * lib/modechange.c (mode_compile): Don't decrement a pointer that
79418         points to the start of a string, as the C Standard says the
79419         resulting behavior is undefined.
79420
79421         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
79422         simple -> simple_backups, numbered_existing ->
79423         numbered_existing_backups, numbered -> numbered_backups
79424         to avoid shadowing problems.  All uses changed.
79425         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
79426         * lib/backupfile.c (check_extension, numbered_backup):
79427         Rename locals to avoid shadowing 'basename'.
79428         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
79429         once.
79430
79431         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
79432         * lib/.cvsignore: Add getopt.h.
79433
79434 2004-10-04  Bruno Haible  <bruno@clisp.org>
79435
79436         * modules/README: New file.
79437         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
79438         not a module.
79439
79440 2004-10-02  Jim Meyering  <jim@meyering.net>
79441
79442         * lib/dirfd.h, getpagesize.h: Add copyright notice.
79443
79444 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
79445
79446         * modules/strsep: New file.
79447
79448 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
79449
79450         * m4/strsep.m4: New file.
79451
79452 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
79453
79454         * lib/strsep.h: New file.
79455         * lib/strsep.c: New file.
79456
79457 2004-10-01  Simon Josefsson  <jas@extundo.com>
79458
79459         * lib/snprintf.c (snprintf): Handle size==0.
79460
79461 2004-10-01  Simon Josefsson  <jas@extundo.com>
79462             Bruno Haible  <bruno@clisp.org>
79463
79464         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
79465         (snprintf): Declare 'args'.
79466
79467 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
79468
79469         * lib/snprintf.c: Remove comments as to why each header is needed.
79470
79471 2004-10-01  Bruno Haible  <bruno@clisp.org>
79472
79473         * MODULES.html.sh: Add strsep.
79474
79475 2004-09-30  Simon Josefsson  <jas@extundo.com>
79476
79477         * modules/snprintf: New file.
79478
79479 2004-09-30  Simon Josefsson  <jas@extundo.com>
79480
79481         * m4/snprintf.m4: New file.
79482
79483 2004-09-30  Simon Josefsson  <jas@extundo.com>
79484
79485         * lib/snprintf.h, lib/snprintf.c: New files.
79486
79487 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
79488
79489         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
79490         (hol_entry_help): Never translate an empty string.
79491         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
79492         * lib/argp.h (OPTION_NO_TRANS): New option.
79493
79494 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
79495
79496         * modules/argp (Maintainer): Replace Simon Josefsson
79497         by Sergey Poznyakoff.
79498
79499 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
79500
79501         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
79502         changes merged back into glibc.
79503
79504 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
79505
79506         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
79507
79508 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
79509
79510         * lib/xvasprintf.c: Include xalloc.h.
79511         (xvasprintf): Use xalloc_die, not xmalloc_die.
79512
79513 2004-09-29  Bruno Haible  <bruno@clisp.org>
79514
79515         * modules/alloca-opt: New file, derived from modules/alloca.
79516         * modules/allocsa: Depend on alloca-opt instead of alloca.
79517         * modules/setenv: Likewise.
79518         * modules/vasnprintf: Likewise.
79519         * MODULES.html.sh: Add alloca-opt.
79520
79521 2004-09-28  Simon Josefsson  <jas@extundo.com>
79522
79523         * gnulib-tool: New parameter --lgpl, to asseert that modules are
79524         LGPL, and to replace license template from GPL to LGPL.
79525
79526 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
79527
79528         * modules/dummy: Change license to LGPL.
79529
79530 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
79531
79532         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
79533
79534 2004-09-24  Simon Josefsson  <jas@extundo.com>
79535
79536         * modules/minmax (License): Change from GPL to LGPL.
79537
79538 2004-09-23  Simon Josefsson  <jas@extundo.com>
79539
79540         * gnulib-tool (--import): Typo.
79541
79542 2004-09-23  Simon Josefsson  <jas@extundo.com>
79543
79544         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
79545
79546 2004-09-22  Bruno Haible  <bruno@clisp.org>
79547
79548         * modules/*: Add 'License' field.
79549         * gnulib-tool: Accept --extract-license option.
79550         (func_get_license): New function.
79551
79552 2004-09-21  Bruno Haible  <bruno@clisp.org>
79553
79554         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
79555         Reported by Simon Josefsson.
79556
79557 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
79558
79559         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
79560         gl_AC_TYPE_LONG_LONG.
79561
79562 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
79563
79564         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
79565
79566 2004-09-18  Simon Josefsson  <jas@extundo.com>
79567         and  Paul Eggert  <eggert@cs.ucla.edu>
79568
79569         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
79570         calls with autoreconf.  Define GL_LIB.
79571
79572 2004-09-14  Karl Berry  <karl@gnu.org>
79573
79574         * config/srclist.txt: unsync setenv.c, sigh.
79575
79576 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
79577
79578         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
79579         Problem reported by Bruno Haible in:
79580         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
79581
79582 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
79583
79584         * config/srclist.txt: Comment out argp-pvh.c.
79585
79586 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
79587
79588         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
79589         in case some system header has #define'd it.  Problem reported by
79590         Soeren D. Schulze in
79591         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
79592
79593 2004-09-09  Karl Berry  <karl@gnu.org>
79594
79595         * regex.[ch]: delete from the root.  These were supposed to be
79596                 synced with emacs cvs, but this has not happened for about
79597                 a year, and anyway nothing else uses emacs regex.[ch].
79598                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
79599                 lib/regex[.ch] is untouched.
79600
79601 2004-09-09  Bruno Haible  <bruno@clisp.org>
79602
79603         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
79604
79605 2004-09-09  Bruno Haible  <bruno@clisp.org>
79606
79607         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
79608         modifications.
79609         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
79610
79611 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
79612
79613         * modules/xvasprintf: New file.
79614         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
79615
79616 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
79617
79618         * lib/xvasprintf.h: New file.
79619         * lib/xvasprintf.c: New file.
79620         * lib/xasprintf.c: New file.
79621
79622 2004-09-08  Bruno Haible  <bruno@clisp.org>
79623
79624         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
79625
79626 2004-09-08  Bruno Haible  <bruno@clisp.org>
79627
79628         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
79629         length is > INT_MAX.
79630         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
79631         more.
79632
79633 2004-09-08  Bruno Haible  <bruno@clisp.org>
79634
79635         * lib/stdint_.h: New file, taken from GNU clisp.
79636
79637 2004-09-08  Bruno Haible  <bruno@clisp.org>
79638             Oskar Liljeblad  <oskar@osk.mine.nu>
79639
79640         * modules/stdint: New file.
79641         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
79642
79643 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
79644
79645         Import from coreutils.
79646         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
79647         strings on unbounded length.  alloca's performance benefits aren't
79648         that important here.
79649         (V_STRDUP): Remove.
79650         (parse_with_separator): New function, with most of the internals
79651         of the old parse_user_spec.  Allow user to omit both user and group,
79652         for compatibility with FreeBSD.
79653         Clone only the user name, not the entire spec.
79654         Do not set *uid, *gid unless entirely successful.
79655         Avoid memory leak in some failing cases.
79656         Fix regression for USER.GROUP reported by Dmitry V. Levin in
79657         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
79658         (parse_user_spec): Rewrite to use parse_with_separator.
79659
79660 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
79661
79662         * modules/userspec: Don't depend on alloca.
79663
79664 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
79665
79666         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
79667
79668 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
79669
79670         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
79671         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
79672         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
79673
79674 2004-08-16  Simon Josefsson  <jas@extundo.com>
79675
79676         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
79677         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
79678         Add --dry-run for --import.
79679         Let user provided command line parameters override configure.ac
79680         settings.
79681
79682 2004-08-12  Simon Josefsson  <jas@extundo.com>
79683
79684         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
79685         as discussed with Paul Eggert in threads rooted at
79686         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
79687         and
79688         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
79689         Before, the test was empty, and relied on ELIDE_CODE in source
79690         code.)
79691         (gl_PREREQ_GETOPT): New macro.
79692         (gl_GETOPT): Use them.
79693
79694 2004-08-12  Simon Josefsson  <jas@extundo.com>
79695
79696         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
79697         * lib/getopt_.h: Renamed from getopt.h.
79698
79699 2004-08-12  Simon Josefsson  <jas@extundo.com>
79700
79701         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
79702         Change default library name from libfoo to libgnu.
79703         Now, if you have a configure.ac that says:
79704                 gl_SOURCE_BASE(gl)
79705                 gl_M4_BASE(gl/m4)
79706                 gl_MODULES(error getopt etcetera)
79707                 gl_INIT
79708         you can import all you need by running:
79709                 ../gnulib/gnulib-tool --import
79710
79711         * modules/getopt (Files): Rename getopt.h to getopt_.h.
79712         (Makefile.am): Rewrite, use logic from argz.
79713         (Include): Use <getopt.h> instead of "getopt.h".
79714
79715 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
79716
79717         * modules/argp (Files): Add m4/unlocked-io.m4.
79718         (Depends-on): Add extensions.
79719
79720 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
79721
79722         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
79723         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
79724         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
79725         Check for program_invocation_name, program_invocation_short_name,
79726         flockfile, funlockfile, features.h, _getopt_long_only_r.
79727
79728 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
79729
79730         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
79731         its complicated substitute.
79732         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
79733         and program_invocation_name.
79734         (__argp_basename) [!_LIBC]: Remove; the only use was
79735         replaced by its body.
79736         (__argp_short_program_name): Change condition from
79737         !defined __argp_short_program_name to
79738         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
79739         to match argp-namefrob.h.
79740         (__argp_failure): Don't assume strerror_r returns char *.
79741         * lib/argp-parse.c (N_): Define unconditionally.
79742         (argp_default_options): Fill out initializers with 0 to avoid
79743         gcc warnings.
79744
79745 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
79746
79747         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
79748         getopt1.c.
79749
79750 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
79751
79752         Merge from coreutils.
79753
79754         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
79755
79756         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
79757         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
79758
79759 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
79760
79761         Merge from coreutils.
79762
79763         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
79764         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
79765         for Reliant Unix 5.43.
79766
79767         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
79768         (union fooround): Use uintmax_t, not long int.
79769         The rest is a merge from libc:
79770         [defined _LIBC]: Include <shlib-compat.h>.
79771         (_obstack) [defined _LIBC]: Remove after 2.3.4.
79772
79773         * lib/settime.c (settime): Recode to avoid warning with
79774         Sun Forte C 6U2.
79775
79776         * lib/strverscmp.c: Convert to UTF-8.
79777
79778 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
79779
79780         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
79781         m4/uintmax_t.m4.
79782
79783 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
79784
79785         * modules/xalloc-die: New file.
79786         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
79787
79788         * modules/md5 (Files): Add m4/uint32_t.m4.
79789         * modules/sha1: Renamed from modules/sha.
79790         (Files):
79791         Rename lib/sha.h to lib/sha1.h.
79792         Rename lib/sha.c to lib/sha1.c.
79793         Rename m4/sha.m4 to m4/sha1.m4.
79794         (lib_SOURCES): Likewise.
79795         (configure.ac): Rename gl_SHA to gl_SHA1.
79796         (Include): sha.h -> sha1.h.
79797
79798 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
79799
79800         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
79801         * m4/sha1.m4: Renamed from sha.m4.
79802         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
79803
79804 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
79805
79806         * lib/obstack.h (obstack_empty_p):
79807         Don't assume that chunk->contents is suitably aligned.
79808         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
79809         Likewise. Problem reported by Benno in
79810         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
79811
79812         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
79813         readable.  This could be improved further but it'd take some work.
79814
79815 2004-08-08  Simon Josefsson  <jas@extundo.com>
79816
79817         * modules/xgethostname (Depends-on): Remove exit and error (not
79818         used).
79819
79820         * modules/getpass-gnu: Add getpass.h.
79821         (Depends-on): Add stdbool.
79822         * modules/getpass: Add getpass.h.
79823
79824 2004-08-08  Simon Josefsson  <jas@extundo.com>
79825
79826         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
79827         Check getpass declaration.
79828
79829 2004-08-08  Simon Josefsson  <jas@extundo.com>
79830
79831         * lib/xgethostname.c: Don't include error.h (not used).
79832
79833         * lib/getpass.h: Add.
79834         * lib/getpass.c: Include getpass.h first.
79835
79836 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
79837
79838         * lib/xalloc-die.c: New file.
79839         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
79840         All uses removed.
79841         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
79842         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
79843         xalloc-die.c.
79844         (_, N_, xalloc_die): Move to xalloc-die.c.
79845         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
79846         so that we needn't mess with xalloc_msg_memory_exhausted.
79847
79848         * lib/sha1.h: Renamed from sha.h.
79849         (SHA1_H): Renamed from _SHA_H.
79850         (sha1_ctx): Renamed from sha_ctx.
79851         (sha1_init_ctx): Renamed from sha_init_ctx.
79852         (sha1_process_block): Renamed from sha_process_block.
79853         (sha1_process_bytes): Renamed from sha_process_bytes.
79854         (sha1_finish_ctx): Renamed from sha_finish_ctx.
79855         (sha1_read_ctx): Renamed from sha_read_ctx.
79856         (sha1_stream): Renamed from sha_stream.
79857         (sha1_buffer): Renamed from sha_buffer.
79858         * lib/sha1.c: Likewise; renamed from sha.c.
79859         Do not include <sys/types.h>.
79860         Include <stddef.h> rather than <stdlib.h>.
79861
79862 2004-08-08  Bruno Haible  <bruno@clisp.org>
79863
79864         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
79865         FILESYSTEM_PREFIX_LEN.
79866         * lib/progreloc.c: Likewise.
79867         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
79868
79869 2004-08-06  Simon Josefsson  <jas@extundo.com>
79870
79871         * modules/progname (Depends-on): Don't depend on stdbool.
79872
79873 2004-08-06  Simon Josefsson  <jas@extundo.com>
79874
79875         * modules/getsubopt: New file.
79876         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
79877         getsubopt.
79878
79879 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
79880
79881         More merge from coreutils.
79882
79883         * m4/utimens.m4, m4/utimecmp.m4: New files.
79884         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
79885         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
79886         prereq.m4, sha.m4: Import changes from coreutils.
79887
79888 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
79889
79890         More merge from coreutils.
79891         * modules/raise, modules/readtokens0, modules/utimens:
79892         * modules/utimecmp, module/xnanosleep: New files.
79893         * modules/strftime: Add lib/strftime.h.
79894         Change include from <time.h> to "strftime.h".
79895         * modules/yesno: Add lib/yesno.h.
79896         * modules/backupfile: Remove lib/addext.c.
79897         * modules/euidaccess: Add stat-macros.h.
79898         * modules/canonicalize, modules/euidaccess,
79899         modules/filemode, modules/lchown, modules/makepath,
79900         modules/rmdir, modules/stat: Likewise.
79901
79902 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
79903
79904         Merge from tar.
79905         * lib/argp-help.c (make_hol, hol_append): Don't assume that
79906         SIZE_MAX is a valid preprocessor constant.
79907         (__argp_basename): Change from "#ifndef _LIBC"
79908         to "#ifndef __argp_short_program_name", so that
79909         we don't compile these functions for tar.
79910
79911         More merges from coreutils.
79912         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
79913         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
79914         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
79915         * lib/addext.c: Remove; no longer needed.
79916         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
79917         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
79918         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
79919         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
79920         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
79921         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
79922         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
79923         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
79924         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
79925         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
79926         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
79927         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
79928         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
79929         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
79930         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
79931         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
79932         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
79933         Import changes from coreutils.
79934
79935 2004-08-05  Simon Josefsson  <jas@extundo.com>
79936
79937         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
79938
79939 2004-08-05  Simon Josefsson  <jas@extundo.com>
79940
79941         * m4/getsubopt.m4: New file.
79942
79943 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
79944
79945         Merge from coreutils.
79946
79947         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
79948         * m4/getcwd-path-max.m4: New files.
79949
79950         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
79951         FILESYSTEM_PREFIX_LEN ->
79952         FILE_SYSTEM_PREFIX_LEN.
79953         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
79954         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
79955         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
79956         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
79957
79958         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
79959         prerequisite modules now handle the DOS stuff.
79960         Don't check for unistd.h.
79961
79962 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
79963
79964         Merge from coreutils.
79965
79966         * lib/.gdb-history: Remove; this doesn't belong here.
79967
79968         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
79969         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
79970         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
79971         * lib/getcwd.c: New files.
79972
79973         * lib/dirname.h: Include <stdbool.h>.
79974         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
79975         for consistency with POSIX terminology.  All uses changed.
79976         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
79977         (strip_trailing_slashes): Use bool for booleans.
79978         * lib/stripslash.c (strip_trailing_slashes): Likewise.
79979
79980         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
79981         sometimes returns a positive errno value even when it succeeds.
79982         (print_errno_message) [!LIBC]: Fall back on strerror if
79983         __strerror_r fails.
79984
79985         * lib/path-concat.c (mempcpy): Don't define if a system header defines
79986         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
79987         (longest_relative_suffix): New function.
79988         (path_concat): Use it.  Assume first argument is not NULL.
79989         Port to DOS.  Omit redundant separators.
79990         Report an error instead of returning NULL.
79991         Use mempcpy instead of memcpy.
79992         (xpath_concat): Remove: not declared or used.
79993
79994         * lib/same.h: Include <stdbool.h>
79995         (same_name): Return bool, not int.
79996         * lib/same.c (same_name): Likewise.
79997         (errno): Don't declare; we assume C89 or better now.
79998
79999         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
80000         if not already defined.
80001
80002         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
80003         * lib/dup-safer.c (errno): Likewise.
80004
80005 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
80006
80007         Merge from coreutils.
80008         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
80009         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
80010         * modules/path-concat: Don't depend on strdup.
80011
80012 2004-08-03  Simon Josefsson  <jas@extundo.com>
80013
80014         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
80015         * lib/progname.h: Don't include stdbool.h.
80016
80017 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
80018
80019         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
80020         * MODULES.html.sh (func_all_modules): Remove fatal.
80021
80022 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
80023
80024         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
80025
80026 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
80027
80028         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
80029         working.
80030
80031 2004-08-02  Simon Josefsson  <jas@extundo.com>
80032
80033         * lib/getsubopt.h: New file, with comments from Bruno Haible.
80034         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
80035         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
80036
80037 2004-08-01  Simon Josefsson  <jas@extundo.com>
80038
80039         * lib/xgetdomainname.c: Include stdlib.h, for free().
80040
80041 2004-07-19  Bruno Haible  <bruno@clisp.org>
80042
80043         * MODULES.html.sh (func_all_modules): Add dummy.
80044
80045 2004-07-16  Simon Josefsson  <jas@extundo.com>
80046
80047         * modules/dummy: New file.
80048
80049 2004-07-16  Simon Josefsson  <jas@extundo.com>
80050
80051         * lib/dummy.c: New file.
80052
80053 2004-07-16  Bruno Haible  <bruno@clisp.org>
80054
80055         * lib/backupfile.h: Add extern "C" for C++.
80056         * lib/closeout.h: Likewise.
80057         * lib/copy-file.h: Likewise.
80058         * lib/findprog.h: Likewise.
80059         * lib/full-write.h: Likewise.
80060         * lib/pathname.h: Likewise.
80061         * lib/progname.h: Likewise.
80062         * lib/stpcpy.h: Likewise.
80063         * lib/stpncpy.h: Likewise.
80064         * lib/strcase.h: Likewise.
80065         * lib/strstr.h: Likewise.
80066         * lib/xalloc.h: Likewise.
80067
80068         * lib/mbswidth.h: Add extern "C" for C++.
80069         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
80070
80071 2004-07-13  Robert Millan  <robertmh@gnu.org>
80072
80073         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
80074
80075 2004-07-09  Simon Josefsson  <jas@extundo.com>
80076
80077         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
80078         failed without this.)
80079
80080 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
80081
80082         * modules/chown (Files): Add lib/fchown-stub.c, since
80083         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
80084
80085 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
80086
80087         * lib/fchown-stub.c: New file.
80088
80089 2004-06-24  Jim Meyering  <jim@meyering.net>
80090
80091         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
80092
80093 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
80094
80095         * modules/argz: Omit "#include".
80096
80097         * MODULES.html.sh (func_all_modules): Add calloc, to match
80098         2004-06-01 addition of calloc module.
80099
80100 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
80101
80102         * m4/argz.m4: New file, which is autoupdated from libtool.
80103
80104 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
80105
80106         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
80107         libtool.
80108
80109 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
80110
80111         * config/srclist-update: Don't insist on "USA." before the
80112         close-comment, as libtool omits the period and puts the */ on a
80113         separate line.
80114         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
80115         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
80116
80117 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
80118
80119         * modules/argz: New file.
80120         * MODULES.html.sh (func_all_modules): Add argz.
80121
80122 2004-06-12  Jim Meyering  <jim@meyering.net>
80123         and  Paul Eggert  <eggert@cs.ucla.edu>
80124
80125         * modules/hash (Files): Add lib/xalloc.h.
80126         * modules/pipe (Depends-on): Add wait-process.
80127         * modules/stat (Depends-on): Add xalloc.
80128         * modules/userspec (Files): Add lib/userspec.h.
80129         * modules/xstrto
80130
80131         Upgrade from gettext-0.13.
80132         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
80133         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
80134         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
80135
80136 2004-06-10  Jim Meyering  <jim@meyering.net>
80137
80138         * lib/calloc.c: New file.
80139
80140 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
80141
80142         * lib/getdate.y (yylex): Allow space between sign and number.
80143         Problem reported by Dan Jacobson.
80144
80145 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
80146
80147         Merge from coreutils CVS.
80148
80149         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
80150         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
80151         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
80152         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
80153         xstrtol.m4: Fix copyright date and/or serial number.
80154
80155         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
80156         See if we need an fchown replacement.
80157         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
80158         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
80159         and use the replacement function if we detect either defect.
80160
80161         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
80162         gl_UTIMECMP.
80163
80164 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
80165         and  Jim Meyering  <jim@meyering.net>
80166
80167         Merge from coreutils CVS.
80168
80169         * lib/stat-macros.h: New file, with contents from file-type.h
80170         and coreutils' system.h.
80171         * lib/file-type.c: Include "stat-macros.h".
80172         * lib/file-type.h (file_type): Move all macro definitions to new file,
80173         stat-macros.h.
80174
80175         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
80176         Wrap old code with this conditional.
80177         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
80178         function that does not dereference symlinks.
80179         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
80180
80181         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
80182         dependency problems.
80183         (xreadlink): Accept new arg SIZE, for efficiency.
80184         All decls and uses changed.
80185         * lib/xreadlink.h: Include <stddef.h>, for size_t.
80186
80187         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
80188         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
80189
80190         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
80191         sysexits.h.
80192
80193 2004-06-01  Jim Meyering  <jim@meyering.net>
80194
80195         * m4/calloc.m4: New file.
80196
80197 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
80198
80199         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
80200         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
80201         Also, fix a typo in a diagnostic.
80202
80203 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
80204
80205         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
80206         or AC_FUNC_REALLOC.
80207
80208 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
80209
80210         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
80211         macros to be defined.
80212         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
80213         the allocator returns NULL because the requested size is zero.
80214
80215 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
80216
80217         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
80218         var.  Add comment explaining why libc still defines it.  This
80219         merges the following patch from glibc:
80220         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
80221
80222 2004-05-20  Andreas Schwab  <schwab@suse.de>
80223
80224         * m4/free.m4: Replace free if it not known to work, not the other
80225         way round.
80226
80227 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
80228
80229         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
80230         present in glibc since revision 1.1 of this file.
80231         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
80232         obstack_alignment_mask, obstack_alloc, obstack_base,
80233         obstack_blank, obstack_blank_fast, obstack_chunk_size,
80234         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
80235         obstack_grow0, obstack_init, obstack_int_grow,
80236         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
80237         obstack_next_free, obstack_object_size, obstack_ptr_grow,
80238         obstack_ptr_grow_fast, obstack_room): Remove declarations of
80239         nonexistent functions.
80240
80241 2004-05-18  Karl Berry  <karl@gnu.org>
80242
80243         * config/srclist.txt: break link for vasnprintf.c.
80244
80245 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
80246
80247         Port obstack to the AS/400, where pointers are 16 bytes wide and
80248         you cannot cast an integer to a valid pointer.  This patch is
80249         currently waiting to be integrated into glibc; see
80250         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
80251
80252         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
80253         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
80254         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
80255         (struct obstack): temp member is now a union of a pointer and
80256         an integer, instead of an integer.  All integer uses changed.
80257         This does not affect the physical layout of struct obstack,
80258         except on hosts (like the AS/400) where the size or alignment of
80259         void * is greater than that of ptrdiff_t.
80260         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
80261         __STDC__)]: Store temporary in pointer member of union, not
80262         integer member.
80263         * lib/obstack.c: Include <stddef.h>, for offsetof.
80264         (struct fooalign): Remove; it doesn't need a name.
80265         (union fooround): Change double to long double, and add void *.
80266         (DEFAULT_ALIGNMENT): Use offsetof to compute.
80267         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
80268         not a macro.  Hence the values are always int; so remove all
80269         casts-to-int in uses.
80270
80271 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
80272
80273         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
80274         we can get this patch merged into glibc.
80275
80276 2004-05-17  Derek R. Price  <derek@ximbiot.com>
80277             Paul Eggert  <eggert@cs.ucla.edu>
80278
80279         * m4/argp: Depend on alloca.
80280
80281 2004-05-17  Derek R. Price  <derek@ximbiot.com>
80282             Paul Eggert  <eggert@cs.ucla.edu>
80283
80284         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
80285         freecoding.
80286
80287 2004-05-17  Bruno Haible  <bruno@clisp.org>
80288
80289         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
80290         precision that consists of a '.' followed by an empty digit string.
80291         Patch by Tor Lillqvist <tml@iki.fi>.
80292
80293 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
80294
80295         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
80296         for backward compatibility with older code.  We need our own
80297         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
80298         it under some other name, and our alloca.h will define it.
80299
80300 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
80301             Derek Price  <derek@ximbiot.com>
80302
80303         * lib/alloca.c: Include <alloca.h>, to get our interface.
80304         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
80305         include <alloca.h> first.  Use C89 prototype for alloca; this
80306         requires including <stddef.h> for size_t.  Use extern "C" if C++.
80307         Use #elif for simplicity, since we can assume C89 now.
80308         Don't try to source the system alloca.h since it will not be found
80309         and to prevent recursively including its replacement.
80310         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
80311         * lib/regex.c: Likewise.
80312
80313 2004-05-16  Derek Price  <derek@ximbiot.com>
80314             Paul Eggert  <eggert@cs.ucla.edu>
80315
80316         getline cleanup.  This changes the getndelim2 API: both order of
80317         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
80318         no delimiter).
80319
80320         * lib/getline.c: Don't include stddef.h or stdio.h, since our
80321         interface does that.
80322         (getline): Always use getdelim, so that we don't have two
80323         copies of this code.
80324         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
80325         if available.
80326         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
80327         (GETNDELIM2_MAXIMUM): New macro.
80328         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
80329         instead of the old practice of delim2==0.  All callers changed.
80330         Return -1 on overflow, instead of returning junk.
80331         Do not set *linesize unless allocation succeeds.
80332         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
80333         that we include sys/types.h.
80334         * lib/getnline.h: Likewise.
80335         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
80336         (getndelim2): Reorder arguments.
80337         * lib/getnline.c (getnline, getndelim):
80338         Don't discard the NMAX argument.
80339         (getnline): Invoke getndelim, to avoid code duplication.
80340         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
80341         of (size_t) -1 by callers of the getnline family.
80342
80343 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
80344
80345         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
80346         Check for gettimeofday.
80347         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
80348         Check for settimeofday, stime.
80349
80350 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
80351
80352         * lib/nanosleep.c (suspended): Change its type from int to
80353         sig_atomic_t volatile.
80354         (first_call): Make it private to rpl_nanosleep, and have it
80355         be zero initially as that's a bit faster.
80356         (my_usleep): Round up fractional times instead of truncating them,
80357         as this is the usual meaning for 'sleep'.
80358
80359         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
80360         doesn't work.
80361         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
80362         (ENOSYS): Define if not defined.
80363         (settime): Fall back on stime if it exists and settimeofday fails.
80364         But don't bother with fallbacks if a method fails with errno == EPERM.
80365
80366 2004-05-11  Jim Meyering  <jim@meyering.net>
80367
80368         Prior to this change, the save_cwd caller required read access to the
80369         current directory on most systems (ones with the fchdir function).
80370
80371         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
80372         fails, try write-only, and finally, resort to using xgetcwd.
80373
80374 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
80375
80376         * lib/obstack.c, obstack.h: Import changes from libc.
80377
80378 2004-04-28  Bruno Haible  <bruno@clisp.org>
80379
80380         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
80381         also implicitly appends .exe to executables.
80382         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
80383         accepts Windows pathnames.
80384         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
80385         Treat Cygwin like Windows, since it now accepts Windows pathnames.
80386         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
80387         Treat Cygwin like Windows, since it now accepts Windows pathnames.
80388         Reported by Derek Robert Price <derek@ximbiot.com>.
80389
80390 2004-04-21  Karl Berry  <karl@gnu.org>
80391
80392         * config/srclist.txt (localcharset.c): break sync.
80393
80394 2004-04-20  Paul Eggert  <eggert@twinsun.com>
80395
80396         * m4/host-os.m4: Add a copyright notice.
80397
80398 2004-04-20  Jim Meyering  <jim@meyering.net>
80399
80400         Change UTILS_ to gl_ in AC_DEFINE'd names.
80401         Change utils_- and jm_-prefixed variables, too.
80402         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
80403         UTILS_FUNC_MKDIR_TRAILING_SLASH.
80404         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
80405
80406         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
80407         Don't emit trailing blanks.
80408         Also rename jm_-prefixed variables to have gl_ prefix.
80409
80410         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
80411         Also rename jm_-prefixed variables to have gl_ prefix.
80412
80413         * m4/jm-macros.m4: Reflect the renamings.
80414         * m4/prereq.m4: Likewise.
80415
80416 2004-04-20  Jim Meyering  <jim@meyering.net>
80417
80418         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
80419         memory.
80420
80421 2004-04-20  Jim Meyering  <jim@meyering.net>
80422             Bruno Haible  <bruno@clisp.org>
80423
80424         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
80425         memory when realloc fails.
80426
80427 2004-04-19  Jim Meyering  <jim@meyering.net>
80428
80429         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
80430         now that readutmp.c may call `free (0)'.
80431
80432 2004-04-19  Bruno Haible  <bruno@clisp.org>
80433
80434         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
80435         * m4/inttypes_h.m4: Likewise.
80436         * m4/stdint_h.m4: Likewise.
80437         * m4/intmax_t.m4: Likewise.
80438         * m4/uintmax_t.m4: Likewise.
80439
80440 2004-04-18  Jim Meyering  <jim@meyering.net>
80441
80442         * m4/prereq.m4: Don't forbid jm_ prefix.
80443
80444         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
80445         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
80446         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
80447         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
80448         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
80449         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
80450         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
80451         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
80452         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
80453         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
80454         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
80455         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
80456         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
80457         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
80458         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
80459         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
80460         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
80461         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
80462         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
80463
80464 2004-04-18  Jim Meyering  <jim@meyering.net>
80465
80466         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
80467         failure, don't leak memory and do call END_UTMP_ENT.
80468
80469 2004-04-16  Jim Meyering  <jim@meyering.net>
80470
80471         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
80472         coreutils' stat program.
80473         (gl_PREREQ): Don't require jm_PREREQ_STAT.
80474
80475 2004-04-11  Paul Eggert  <eggert@twinsun.com>
80476
80477         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
80478         C89.
80479         (CHAR_BIT): Remove, since we assume C89.
80480         Include <stdint.h> if available, as per current Autoconf CVS advice.
80481
80482 2004-03-31  Jim Meyering  <jim@meyering.net>
80483
80484         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
80485         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
80486         * m4/xalloc.m4: Likewise.
80487
80488 2004-03-30  Paul Eggert  <eggert@twinsun.com>
80489
80490         Merge from coreutils.
80491
80492         * m4/inttostr.m4: New file.
80493         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
80494         Require AM_STDBOOL_H and gl_TIMESPEC instead.
80495         Require gl_CLOCK_TIME.
80496         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
80497
80498 2004-03-30  Paul Eggert  <eggert@twinsun.com>
80499
80500         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
80501         not bool, to be more consistent with Unix conventions.
80502         Suggested by Bruno Haible.
80503
80504         Merge from coreutils.
80505
80506         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
80507         * lib/umaxtostr.c: New files.
80508
80509         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
80510         the usual <time.h> dance.
80511         (get_date): Change signature to support fractional time stamps.
80512         All callers changed.
80513         * lib/getdate.y: Include "getdate.h" first, as we can now
80514         assume C89 and don't need to worry about 'const'.
80515         Similarly, include "unlocked-io.h" near start, not in middle.
80516         Include <limits.h>.
80517         (textint.value): Use long int rather than int.
80518         (textint.digits): Use size_t rather than int.
80519         (BILLION, LOG10_BILLION): New constants.
80520         (parser_control): New member rel_ns.  Members day_ordinal,
80521         time_zone, month, day, hour, minutes, rel_year, rel_month,
80522         rel_day, rel_hour, rel_minutes, rel_seconds
80523         are now long int, not int.  Member seconds is now struct timespec,
80524         not int.  New member timespec_seen.  Members dates_seen, days_seen,
80525         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
80526         not int.
80527         (%union.intval): Now long int, not int.
80528         New member timespec.
80529         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
80530         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
80531         (spec): Now is a timespec or an item list.
80532         (timespec, items): New nonterminals.
80533         (time, rel, relunit, number, get_date):
80534         Add support for fractional seconds.
80535         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
80536         (gmtime, localtime, mktime): Remove decls; not needed with C89.
80537         (to_hour): First arg is now long int, not int.
80538         (to_year): Returns long int, not int.
80539         Don't treat year -70 like 70.
80540         (tm_diff): Returns long int, not int.
80541         (lookup_word): Use bool instead of int when appropriate.
80542         (yylex): Use size_t for count, not int.
80543         Detect overflow when parsing large integer constants.
80544         Add support for fractions.
80545         (get_date): Make pointers 'const' if possible.
80546         Use more-portable code to detect integer overflow.
80547         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
80548         Don't use ctime; it's not reliable if the year has >4 digits.
80549
80550         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
80551         This is for compatibility with BSD.
80552
80553         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
80554         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
80555         From coreutils' system.h.
80556
80557         * lib/userspec.c: Don't include "posixver.h".
80558         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
80559         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
80560         compatible extension.  Simplify code by removing a boolean int
80561         that was always nonzero if a string was nonnull.
80562
80563 2004-03-30  Jim Meyering  <jim@meyering.net>
80564
80565         Merge from coreutils.
80566
80567         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
80568         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
80569         on some systems one must include <grp.h> before it.
80570         Reported by Christian Krackowizer.
80571
80572 2004-03-30  Jim Meyering  <jim@meyering.net>
80573
80574         Merge from coreutils.
80575
80576         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
80577
80578         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
80579         an empty input stream.
80580
80581         * lib/readtokens.c: Include <stdbool.h>.
80582         (readtoken): Use `size_t' rather than int/long.
80583         All callers adjusted.
80584         Use `bool' rather than `int' where appropriate.
80585         Use memset rather than an explicit loop.
80586         Use x2nrealloc rather than xrealloc.
80587         Allow the use of `\0' as a delimiter.
80588         (readtokens): Likewise.
80589         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
80590
80591 2004-03-30  Jim Meyering  <jim@meyering.net>
80592
80593         * m4/realloc.m4: Remove file, since now it does no more than
80594         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
80595         the `configure.ac' section of module/realloc.
80596         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
80597
80598 2004-03-30  Bruno Haible  <bruno@clisp.org>
80599
80600         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
80601         nonnull.
80602
80603 2004-03-29  Paul Eggert  <eggert@twinsun.com>
80604
80605         Merge changes to getloadavg.c from coreutils and Emacs.
80606
80607         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
80608         Define to an expression, not to the empty string.
80609         Include cloexec.h and xalloc.h.
80610         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
80611         Use set_cloexec_flag rather than rolling our own.
80612         * lib/cloexec.c, lib/cloexec.h: New files.
80613
80614 2004-03-29  Paul Eggert  <eggert@twinsun.com>
80615
80616         * m4/cloexec.m4: New file.
80617
80618 2004-03-18  Paul Eggert  <eggert@twinsun.com>
80619
80620         * lib/getopt.h: Sync with libc CVS.
80621
80622 2004-03-18  Paul Eggert  <eggert@twinsun.com>
80623             Bruno Haible  <bruno@clisp.org>
80624
80625         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
80626         mbswidth.
80627
80628 2004-03-18  Paul Eggert  <eggert@twinsun.com>
80629             Bruno Haible  <bruno@clisp.org>
80630
80631         * lib/mbswidth.h: Include <wchar.h> only if
80632         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
80633         <wchar.h>.
80634         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
80635
80636 2004-03-09  Paul Eggert  <eggert@twinsun.com>
80637
80638         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
80639         Sync with libc CVS.
80640         * lib/getopt_int.h: New file, also synced from libc.
80641
80642 2004-03-09  Paul Eggert  <eggert@twinsun.com>
80643
80644         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
80645         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
80646         Bring back getopt.c, getopt.h, getopt1.c.
80647
80648 2004-03-07  Paul Eggert  <eggert@twinsun.com>
80649
80650         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
80651         All uses changed.  Check for sa_sigaction member; this fixes
80652         a bug first reported by Jason Andrade in
80653         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
80654
80655 2004-03-07  Paul Eggert  <eggert@twinsun.com>
80656
80657         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
80658         '#if' expressions.  Unlike the code it replaces, it does not
80659         depend on (defined _SC_PAGESIZE).  However, it does depend on
80660         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
80661         first reported by Jason Andrade in
80662         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
80663
80664 2004-02-25  Simon Josefsson  <jas@extundo.com>
80665
80666         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
80667
80668 2004-02-25  Simon Josefsson  <jas@extundo.com>
80669
80670         * lib/strdup.h: New file.
80671         * lib/strdup.c: Include it.
80672         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
80673         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
80674
80675 2004-02-23  Karl Berry  <karl@gnu.org>
80676
80677         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
80678         (from fencepost.gnu.org:/gd/gnuorg).
80679
80680 2004-02-23  Karl Berry  <karl@gnu.org>
80681
80682         * config/srclistvars.sh (GNUORG) [karl]: redefine.
80683         * config/srclist.txt: add maintain/standards documents.
80684
80685 2004-02-18  Bruno Haible  <bruno@clisp.org>
80686
80687         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
80688         Reported by Derek Robert Price <derek@ximbiot.com>.
80689
80690 2004-02-16  Karl Berry  <karl@gnu.org>
80691
80692         * config/mkinstalldirs, install-sh: update from automake.
80693
80694 2004-02-06  Karl Berry  <karl@gnu.org>
80695
80696         * m4/po.m4: update from gettext 0.14.1.
80697
80698 2004-02-06  Karl Berry  <karl@gnu.org>
80699
80700         * lib/config.charset: update from gettext 0.14.1.
80701
80702 2004-02-05  Paul Eggert  <eggert@twinsun.com>
80703
80704         Add comments and code, prompted by suggestions from Bruno Haible
80705         for sh-quote.
80706         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
80707         describing the enum quoting_style values.
80708         * lib/quotearg.c (quotearg_alloc): New function.
80709         (quotearg_buffer_restyled): Treat lone { and } as special.
80710         Treat = as special.  Work around bug with older shells
80711         that "see" a '\' that is really the 2nd byte of a multibyte char.
80712         Quote empty string with shell_quoting_style.
80713
80714 2004-02-03  Bruno Haible  <bruno@clisp.org>
80715
80716         * m4/pipe.m4: New file, from GNU gettext.
80717
80718 2004-02-03  Bruno Haible  <bruno@clisp.org>
80719
80720         * lib/pipe.h: New file, from GNU gettext.
80721         * lib/pipe.c: New file, from GNU gettext.
80722
80723 2004-01-27  Bruno Haible  <bruno@clisp.org>
80724
80725         * m4/execute.m4: New file, from GNU gettext.
80726
80727 2004-01-27  Bruno Haible  <bruno@clisp.org>
80728
80729         * lib/execute.h: New file, from GNU gettext.
80730         * lib/execute.c: New file, from GNU gettext.
80731         * lib/w32spawn.h: New file, from GNU gettext.
80732
80733 2004-01-24  Paul Eggert  <eggert@twinsun.com>
80734
80735         Merge from diffutils.
80736
80737         * lib/file-type.c (file_type): Add typed memory objects.
80738         * lib/file-type.h (S_TYPEISTMO): New macro.
80739
80740         * lib/c-stack.h (c_stack_action): Remove argv argument.
80741         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
80742         (die): Don't calculate message unless segv_action returns.
80743         (get_stack_location, min_address_from_argv, max_address_from_argv,
80744         volatile stack_base, volatile_stack_size): Remove.
80745         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
80746         that every segmentation violation is a stack overflow.  (Ouch!)
80747         See Debian bug 136249 (still outstanding) for more info about why
80748         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
80749
80750 2004-01-24  Paul Eggert  <eggert@twinsun.com>
80751
80752         Exit-status fix from coreutils.
80753
80754         Use exit_failure consistently in place of EXIT_FAILURE,
80755         so that program exit statuses are consistent on failure.
80756
80757         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
80758         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
80759         * lib/argmatch.h: Comment fix to match the above.
80760         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
80761         Now a macro referring to exit_failure, instead of a separate
80762         variable.  Include "exitfail.h" to get it.
80763         * lib/xstrtol.h: Include "exitfail.h".
80764         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
80765
80766         * lib/long-options.c (parse_long_options): Use prototype
80767         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
80768         for clarity.
80769
80770 2004-01-21  Jim Meyering  <jim@meyering.net>
80771
80772         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
80773         so as not to conflict with a different-sized __mktime_internal
80774         function in GNU libc.
80775         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
80776         Problem building statically-linked `ls' reported by Michael Brunnbauer.
80777
80778 2004-01-20  Karl Berry  <karl@gnu.org>
80779
80780         * config/config.guess: update from config.
80781
80782         * config/srclistvars.sh: GNUWWWLICENSES for karl.
80783
80784 2004-01-20  Bruno Haible  <bruno@clisp.org>
80785
80786         Safer stack allocation.
80787         * lib/setenv.c: Include allocsa.h.
80788         (alloca): Remove fallback definition.
80789         (freea): Remove macro.
80790         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
80791         instead of freea.
80792
80793 2004-01-20  Bruno Haible  <bruno@clisp.org>
80794
80795         * m4/eealloc.m4: New file, from GNU gettext.
80796
80797 2004-01-20  Bruno Haible  <bruno@clisp.org>
80798
80799         * m4/allocsa.m4: New file, from GNU gettext.
80800
80801 2004-01-20  Bruno Haible  <bruno@clisp.org>
80802
80803         * lib/xallocsa.h: New file, from GNU gettext.
80804         * lib/xallocsa.c: New file, from GNU gettext.
80805
80806 2004-01-20  Bruno Haible  <bruno@clisp.org>
80807
80808         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
80809
80810 2004-01-20  Bruno Haible  <bruno@clisp.org>
80811
80812         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
80813         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
80814         specially.
80815
80816 2004-01-20  Bruno Haible  <bruno@clisp.org>
80817
80818         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
80819         patch.
80820
80821 2004-01-20  Bruno Haible  <bruno@clisp.org>
80822
80823         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
80824
80825 2004-01-20  Bruno Haible  <bruno@clisp.org>
80826
80827         * lib/eealloc.h: New file.
80828
80829 2004-01-20  Bruno Haible  <bruno@clisp.org>
80830
80831         * lib/binary-io.h: Avoid warnings on Cygwin.
80832
80833 2004-01-20  Bruno Haible  <bruno@clisp.org>
80834
80835         * lib/allocsa.h: New file, from GNU gettext.
80836         * lib/allocsa.c: New file, from GNU gettext.
80837
80838 2004-01-18  Karl Berry  <karl@gnu.org>
80839
80840         * doc/gpl.texi, doc/lgpl.texi: new files.
80841
80842 2004-01-18  Karl Berry  <karl@gnu.org>
80843
80844         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
80845         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
80846
80847 2004-01-15  Paul Eggert  <eggert@twinsun.com>
80848
80849         Merge from coreutils.
80850
80851         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
80852         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
80853         (gl_DEFAULT_POSIX2_VERSION): Move
80854         the documentation from 'configure' into 'config.hin',
80855         so that 'configure --help' isn't burdened by it and
80856         we don't have to worry about its formatting there.
80857         Reword the documentation so that it's more succinct
80858         and can be run together into a single paragraph.
80859         * m4/same.m4 (gl_SAME): Check for pathconf.
80860
80861 2004-01-15  Paul Eggert  <eggert@twinsun.com>
80862
80863         Merge from coreutils.
80864
80865         * lib/posixver.c: Include posixver.h.
80866
80867         * lib/same.c: Include <stdbool.h>, <limits.h>.
80868         (_POSIX_NAME_MAX): Define if not defined.
80869         (MIN): New macro.
80870         (same_name): If file names are silently truncated, report
80871         that the file names are the same if they are the same after
80872         the silent truncation.
80873
80874         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
80875         conversion function.
80876         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
80877         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
80878         longer needed.
80879
80880 2004-01-15  Jim Meyering  <jim@meyering.net>
80881
80882         Merge from coreutils.
80883
80884         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
80885         if no library is required.
80886         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
80887         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
80888         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
80889         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
80890         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
80891         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
80892         value, $ac_cv_search_crypt, if it's "none required".
80893         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
80894         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
80895         not gl_FUNC_GETLOADAVG.
80896         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
80897         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
80898
80899 2004-01-15  Jim Meyering  <jim@meyering.net>
80900
80901         Merge from coreutils.
80902
80903         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
80904         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
80905         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
80906
80907         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
80908         optional configure-time default.
80909
80910         * lib/version-etc.c (version_etc_copyright): Update copyright date.
80911
80912         * lib/xreadlink.c (xreadlink): Correct outdated comment.
80913
80914 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
80915
80916         Merge from coreutils.
80917
80918         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
80919         value, $ac_cv_search_nanosleep, if it's "none required".
80920
80921 2004-01-14  Paul Eggert  <eggert@twinsun.com>
80922
80923         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
80924         with like-named macro in fnmatch.c.
80925         (EXT): Use an internal constant instead.
80926
80927         Merge fnmatch patches from glibc.
80928         * lib/fnmatch.c (mbsinit): Remove define.
80929         Add libc_hidden_ver (__fnmatch, fnmatch).
80930         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
80931         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
80932
80933 2004-01-14  Karl Berry  <karl@gnu.org>
80934
80935         * config/install-sh: update from automake.
80936
80937 2004-01-13  Karl Berry  <karl@gnu.org>
80938
80939         * config/install-sh: update from automake.
80940
80941 2004-01-09  Karl Berry  <karl@gnu.org>
80942
80943         * config/install-sh: update from automake.
80944
80945 2004-01-05  Karl Berry  <karl@gnu.org>
80946
80947         * config/config.{sub,guess}: update from config.
80948
80949 2003-12-31  Karl Berry  <karl@gnu.org>
80950
80951         * config/depcomp: update from automake.
80952
80953 2003-12-14  Karl Berry  <karl@gnu.org>
80954
80955         * lib/config.charset: update from gettext-runtime.
80956
80957 2003-12-03  Paul Eggert  <eggert@twinsun.com>
80958
80959         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
80960         Bug reported by Alfred M. Szmidt.
80961
80962 2003-12-03  Bruno Haible  <bruno@clisp.org>
80963
80964         * m4/gettext.m4: Upgrade from gettext-0.13.
80965         * m4/po.m4: Upgrade from gettext-0.13.
80966         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
80967         * m4/intmax.m4: New file, from gettext-0.13.
80968         * m4/printf-posix.m4: New file, from gettext-0.13.
80969
80970 2003-11-29  Karl Berry  <karl@gnu.org>
80971
80972         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
80973
80974 2003-11-25  Paul Eggert  <eggert@twinsun.com>
80975             Bruno Haible  <bruno@clisp.org>
80976
80977         * lib/printf-parse.h: Don't include sys/types.h.
80978         (ARG_NONE): New macro.
80979         (char_directive): Change type of *arg_index fields to size_t.
80980         * lib/printf-parse.c: Don't include sys/types.h.
80981         (SSIZE_MAX): Remove macro.
80982         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
80983         Remove unnecessary overflow check.
80984         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
80985         fields.
80986
80987 2003-11-25  Bruno Haible  <bruno@clisp.org>
80988
80989         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
80990
80991 2003-11-25  Bruno Haible  <bruno@clisp.org>
80992
80993         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
80994         gt_TYPE_SSIZE_T.
80995
80996 2003-11-24  Paul Eggert  <eggert@twinsun.com>
80997
80998         * modules/alloca: Remove dependency on xalloc.
80999
81000 2003-11-24  Paul Eggert  <eggert@twinsun.com>
81001
81002         * lib/alloca.c: Remove dependency on xalloc module.
81003         (xalloc_die): Remove.
81004         (memory_full) [!defined emacs]: New macro.
81005         [!defined emacs]: Don't include xalloc.h.
81006         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
81007         address arithmetic overflows.  Change datatypes a bit to avoid
81008         unnecessary casts.
81009
81010 2003-11-22  Jim Meyering  <jim@meyering.net>
81011
81012         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
81013         s/size/size_t/.
81014
81015 2003-11-21  Karl Berry  <karl@gnu.org>
81016
81017         * config/config.{sub,guess}: update from config.
81018
81019 2003-11-18  Karl Berry  <karl@gnu.org>
81020
81021         * config/config.{sub,guess}: update from config.
81022
81023         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
81024
81025 2003-11-17  Paul Eggert  <eggert@twinsun.com>
81026
81027         * README: Mention that S+T cannot overflow if S is the size of
81028         an existing object and T is sufficiently small.
81029
81030 2003-11-17  Jim Meyering  <jim@meyering.net>
81031
81032         On systems without utime and without a utimes function capable of
81033         dealing with a NULL struct utimbuf* argument, this utime replacement
81034         could -- in unusual circumstances -- leak a file descriptor.
81035         * lib/utime.c: Include <unistd.h> and <errno.h>.
81036         (utime_null): Be sure to close `fd' and to preserve errno.
81037         Reported by Geoff Collyer via Arnold Robbins.
81038
81039 2003-11-17  Bruno Haible  <bruno@clisp.org>
81040
81041         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
81042         (Depends-on): Add xsize.
81043
81044 2003-11-17  Bruno Haible  <bruno@clisp.org>
81045
81046         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
81047
81048 2003-11-17  Bruno Haible  <bruno@clisp.org>
81049
81050         * lib/vasnprintf.c (alloca): Remove fallback definition.
81051         (freea): Remove definition.
81052         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
81053         Reported by Paul Eggert.
81054
81055 2003-11-16  Paul Eggert  <eggert@twinsun.com>
81056             Bruno Haible  <bruno@clisp.org>
81057
81058         Protect against address arithmetic overflow.
81059         * lib/printf-args.h: Include stddef.h.
81060         (arguments): Change type of field 'count' to size_t.
81061         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
81062         'unsigned int' where appropriate.
81063         * lib/printf-parse.h: Include sys/types.h.
81064         (char_directive): Change type of *arg_index fields to ssize_t.
81065         (char_directives): Change type of fields 'count', max_*_length to
81066         size_t.
81067         * lib/printf-parse.c: Include sys/types.h and xsize.h.
81068         (SSIZE_MAX): Define fallback value.
81069         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
81070         instead of 'int' where appropriate. Check a_allocated, d_allocated
81071         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
81072         * lib/vasnprintf.c: Include xsize.h.
81073         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
81074         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
81075         overflow. Avoid wraparound when converting a width or precision from
81076         decimal to binary.
81077
81078 2003-11-16  Bruno Haible  <bruno@clisp.org>
81079
81080         Update from GNU gettext.
81081         * lib/printf-parse.c: Generalize to it can be compiled for wide
81082         strings.
81083         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
81084         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
81085         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
81086         SNPRINTF): New macros.
81087         Don't include <alloca.h> if the file is used inside libintl.
81088         (local_wcslen): New function, for Solaris 2.5.1.
81089         (VASNPRINTF): Use it instead of wcslen.
81090
81091 2003-11-16  Bruno Haible  <bruno@clisp.org>
81092
81093         * lib/xsize.h (xmax): New function.
81094         (xsum, xsum3, xsum4): Declare as "pure" functions.
81095
81096 2003-11-12  Paul Eggert  <eggert@twinsun.com>
81097
81098         * modules/xalloc (Files): Undo latest change, since xalloc.h
81099         no longer needs SIZE_MAX or PTRDIFF_MAX.
81100
81101 2003-11-12  Paul Eggert  <eggert@twinsun.com>
81102
81103         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
81104         gl_PTRDIFF_MAX.
81105
81106 2003-11-12  Paul Eggert  <eggert@twinsun.com>
81107
81108         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
81109         "return", to pacify some unknown compiler.  Problem reported
81110         by Joerg Schilling.
81111
81112 2003-11-12  Paul Eggert  <eggert@twinsun.com>
81113
81114         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
81115         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
81116         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
81117         heuristic is just as accurate as far as we know, and it removes a
81118         dependency on size_max.m4 and ptrdiff_max.m4.
81119
81120 2003-11-11  Bruno Haible  <bruno@clisp.org>
81121
81122         * modules/xsize (Files): Add m4/size_max.m4.
81123         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
81124
81125 2003-11-11  Bruno Haible  <bruno@clisp.org>
81126
81127         * m4/size_max.m4: New file.
81128         * m4/ptrdiff_max.m4: New file.
81129         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
81130         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
81131         (gl_XALLOC): Invoke it.
81132
81133 2003-11-11  Bruno Haible  <bruno@clisp.org>
81134
81135         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
81136         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
81137         defined.
81138
81139 2003-11-10  Paul Eggert  <eggert@twinsun.com>
81140
81141         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
81142         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
81143         rejected some allocations of exactly SIZE_MAX - 2 bytes.
81144         From Bruno Haible.
81145         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
81146         not (size_t) -1, since it's defined here.
81147
81148 2003-11-09  Karl Berry  <karl@gnu.org>
81149
81150         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
81151
81152 2003-11-06  Paul Eggert  <eggert@twinsun.com>
81153
81154         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
81155         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
81156         Reject sizes of exactly SIZE_MAX bytes.
81157         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
81158         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
81159
81160 2003-11-05  Bruno Haible  <bruno@clisp.org>
81161
81162         * lib/xsize.h: Include limits.h, to avoid a possible collision with
81163         SIZE_MAX defined in <limits.h> on Solaris.
81164
81165 2003-11-04  Jim Meyering  <jim@meyering.net>
81166
81167         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
81168         variable names, rather than @VAR@.
81169         * modules/poll: Likewise.
81170
81171 2003-11-04  Bruno Haible  <bruno@clisp.org>
81172
81173         * modules/xsize: New file.
81174         * modules/linebreak: Depend on xsize.
81175         * MODULES.html.sh (func_all_modules): Add xsize.
81176
81177 2003-11-04  Bruno Haible  <bruno@clisp.org>
81178
81179         * m4/xsize.m4: New file.
81180
81181 2003-11-04  Bruno Haible  <bruno@clisp.org>
81182
81183         * lib/xsize.h: New file.
81184         * lib/linebreak.c: Include xsize.h.
81185         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
81186         argument for overflow.
81187         Suggested by Paul Eggert.
81188
81189 2003-11-03  Karl Berry  <karl@gnu.org>
81190
81191         * config/config.{guess,sub}: update from config.
81192
81193 2003-11-03  Jim Meyering  <jim@meyering.net>
81194
81195         * modules/userspec (lib_SOURCES): Add userspec.h.
81196         (Include): Add "userspec.h".
81197         Improve description.
81198
81199 2003-11-03  Jim Meyering  <jim@meyering.net>
81200
81201         * lib/userspec.c: Include "userspec.h".
81202         * lib/userspec.h: New file.
81203
81204 2003-11-03  Bruno Haible  <bruno@clisp.org>
81205
81206         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
81207
81208 2003-11-03  Bruno Haible  <bruno@clisp.org>
81209
81210         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
81211         available, to avoid (extremely rare) race condition.
81212         Suggested by Paul Eggert.
81213
81214 2003-11-02  Karl Berry  <karl@gnu.org>
81215
81216         * config/srclist.txt (vasprintf.c): sync broken, sigh.
81217
81218 2003-10-31  Paul Eggert  <eggert@twinsun.com>
81219
81220         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
81221         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
81222         (read_filesystem_list): Set and use me_type_malloced.
81223         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
81224         whatever the type happens to be), for brevity and consistency.
81225         Check for size calculation overflow on Alphas running OSF/1.
81226
81227 2003-10-31  Jim Meyering  <jim@meyering.net>
81228
81229         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
81230
81231         * lib/linebuffer.c: Include <string.h> for declaration of memset.
81232
81233 2003-10-30  Paul Eggert  <eggert@twinsun.com>
81234             Bruno Haible  <bruno@clisp.org>
81235
81236         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
81237         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
81238
81239 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
81240
81241         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
81242         netbsd*-gnu*.  Suggested by Robert Millan.
81243
81244 2003-10-29  Paul Eggert  <eggert@twinsun.com>
81245
81246         * modules/group-member: Depend on stdbool.
81247
81248 2003-10-29  Paul Eggert  <eggert@twinsun.com>
81249
81250         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
81251
81252 2003-10-29  Paul Eggert  <eggert@twinsun.com>
81253
81254         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
81255         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
81256         after the 'gnu' in these cases.  This fixes some bugs in the
81257         previous change, and is based on suggestions by Robert Millan.
81258
81259 2003-10-29  Paul Eggert  <eggert@twinsun.com>
81260
81261         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
81262         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
81263         no longer needed.
81264         * lib/quotearg.c (quotearg_n_options): Use it.
81265         * lib/group-member.c: Include <stdbool.h>.
81266         (free_group_info): Arg is now const *; don't free arg.
81267         (get_group_info): Now returns bool and accepts struct group_info *,
81268         rather than returning a malloc'ed struct group_info *.
81269         All uses changed.  Check for overflow in internal size calculation.
81270
81271         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
81272         rather than xmalloc/xrealloc.
81273         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
81274         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
81275         conformance bug: the old code used a pointer after freeing the
81276         storage that it addressed.
81277         * lib/hash.c (hash_initialize): Simplify the code by using
81278         xalloc_oversized rather than doing it by hand.
81279         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
81280         the buffer preserved.  Use free and xmalloc instead.
81281         * lib/quotearg.c (quotearg_n_options): Likewise.
81282         Use a simpler test for size overflow.  Don't use xalloc_oversized
81283         because unsigned int might be wider than size_t (!); this suggests
81284         that we should switch from unsigned int to size_t for slot numbers.
81285
81286 2003-10-28  Paul Eggert  <eggert@twinsun.com>
81287
81288         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
81289         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
81290         NetBSD kernels.  Requested by Richard Stallman.
81291
81292 2003-10-27  Paul Eggert  <eggert@twinsun.com>
81293
81294         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
81295         to allocate the returned structure.  Do not allocate a subarray,
81296         as x2nrealloc will do that.
81297         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
81298         instead of xnrealloc.
81299         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
81300
81301 2003-10-27  Bruno Haible  <bruno@clisp.org>
81302
81303         * lib/stdbool_.h: Better support for BeOS.
81304
81305 2003-10-26  Paul Eggert  <eggert@twinsun.com>
81306
81307         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
81308         now uses inline.
81309
81310 2003-10-26  Paul Eggert  <eggert@twinsun.com>
81311
81312         * lib/xalloc.h (xalloc_oversized): New static inline function, for
81313         callers that want to do their own size-overflow checking.  Include
81314         <stdbool.h>, since xalloc_oversized returns bool.
81315         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
81316         to use xalloc_oversized.
81317
81318         Add two functions x2realloc, x2nrealloc, for programs that grow
81319         arrays dynamically by doubling their sizes.
81320         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
81321         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
81322         New functions.
81323
81324         Port to C99 semantics for 'inline' of external functions.
81325         Bug reported by Bruno Haible.
81326         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
81327         with the old contents of xnmalloc.
81328         (xnmalloc, xmalloc): Use it.
81329         (xnrealloc_inline): New static inline function,
81330         with the old contents of xnrealloc.
81331         (xnrealloc, xrealloc): Use it.
81332
81333         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
81334         that.
81335
81336 2003-10-26  Karl Berry  <karl@gnu.org>
81337
81338         * config/srclist.txt (COPYING.DOC): no longer available from
81339         /gd/gnuorg; don't know where the ultimate source is.
81340
81341 2003-10-25  Paul Eggert  <eggert@twinsun.com>
81342
81343         Fix several address-calculation bugs in the hash modules,
81344         plus some minor code cleanup.
81345
81346         * lib/hash.h: Include <stdbool.h>, for bool.
81347         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
81348         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
81349         hash_get_n_entries, hash_get_max_bucket_length,
81350         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
81351         hash_rehash): Use size_t rather than unsigned.
81352         * lib/hash.c (struct hash_table, hash_get_n_buckets,
81353         hash_get_n_buckets_used, hash_get_n_entries,
81354         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
81355         hash_get_entries, hash_do_for_each, hash_string, is_prime,
81356         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
81357         Likewise.
81358         (SIZE_MAX): Define if not defined.
81359         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
81360         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
81361         hash_print):
81362         Use const * when possible.
81363         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
81364         (check_tuning): Fix bug: if tuning parameters were very close to
81365         0 or 1, rounding errors could have caused subscript violations.
81366         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
81367         (hash_initialize): Add 'fail:' label
81368         to free table and return NULL, and use it to simplify code.
81369         Use calloc rather than clearing the storage ourself.
81370         (hash_initialize, hash_rehash): Check for arithmetic overflow in
81371         buffer size calculations.
81372         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
81373         Include <stddef.h>, for size_t.
81374         * lib/hash-pjw.c (hash_pjw): Likewise.
81375         Switch to method described by Bruno Haible.
81376         Include <limits.h>, for CHAR_BIT.
81377         (SIZE_BITS): New macro.
81378
81379 2003-10-23  Paul Eggert  <eggert@twinsun.com>
81380
81381         * m4/getline.m4 (AM_FUNC_GETLINE):
81382         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
81383         hosts.  Problem reported by Derek Robert Price in
81384         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
81385         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
81386         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
81387
81388 2003-10-21  Paul Eggert  <eggert@twinsun.com>
81389
81390         * lib/getndelim2.c (getndelim2): When size calculation overflows,
81391         ceiling the allocation at NMAX bytes rather than silently
81392         discarding input bytes before NMAX is reached.  This makes
81393         a difference only if NMAX exceeds SIZE_MAX / 2.
81394
81395         * lib/obstack.c: Merge from glibc.
81396         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
81397         Add libc_hidden_def (_obstack_newchunk).
81398         (_obstack_free) [! defined _LIBC]: Remove.
81399         [defined _LIBC]: Make a strong alias from obstack_free, rather than
81400         a clone of the function body.
81401         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
81402         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
81403
81404         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
81405         glibc.
81406         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
81407         arg to memcpy.
81408
81409         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
81410         (obstack_ptr_grow_fast, obstack_int_grow_fast):
81411         Don't use lvalue casts, as GCC plans to remove support for them
81412         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
81413         was also present in the non-GCC version, indicating that this
81414         code had always been buggy and had never been widely used.
81415         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
81416         Use the fast variant of each macro, rather than copying the
81417         definiens of the fast variant; that way, we'll be more likely to
81418         catch future bugs in the fast variants.
81419
81420 2003-10-20  Bruno Haible  <bruno@clisp.org>
81421
81422         * modules/wait-process: New file.
81423         * MODULES.html.sh (func_all_modules): Add wait-process.
81424
81425 2003-10-20  Bruno Haible  <bruno@clisp.org>
81426
81427         * m4/wait-process.m4: New file.
81428
81429 2003-10-20  Bruno Haible  <bruno@clisp.org>
81430
81431         * lib/wait-process.h: New file, from GNU gettext.
81432         * lib/wait-process.c: New file, from GNU gettext.
81433
81434 2003-10-19  Jim Meyering  <jim@meyering.net>
81435
81436         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
81437         HPUX 10.20.
81438
81439 2003-10-18  Karl Berry  <karl@gnu.org>
81440
81441         * config/config.guess: update from config.
81442
81443 2003-10-16  Paul Eggert  <eggert@twinsun.com>
81444
81445         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
81446         (getgroups): First arg is int, not size_t.
81447         Don't let 'free' mangle errno.
81448
81449 2003-10-16  Paul Eggert  <eggert@twinsun.com>
81450
81451         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
81452
81453 2003-10-16  Karl Berry  <karl@gnu.org>
81454
81455         * config/config.{guess,sub}: update from config.
81456
81457 2003-10-16  Jim Meyering  <jim@meyering.net>
81458
81459         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
81460         memcpy.
81461
81462 2003-10-15  Paul Eggert  <eggert@twinsun.com>
81463
81464         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
81465         (SIZE_MAX): Remove.
81466         (new_exclude, add_exclude_file): Initial size no longer needs to
81467         be a power of 2.
81468         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
81469         our own address arithmetic overflow checking.
81470
81471         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
81472         (fnmatch): Do not alloca more than 2000 wide characters;
81473         instead, use malloc for large buffers.
81474         Check for address arithmetic overflow, and return -1
81475         with errno set to ENOMEM in that case.
81476         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
81477         (NEW_PATTERN): Do not alloca more than 8000 bytes;
81478         instead, return -1.  Check for address arithmetic overflow.
81479
81480 2003-10-14  Paul Eggert  <eggert@twinsun.com>
81481
81482         Handle invalid suffixes and overflow independently, so that
81483         callers can treat them independently as needed.  Fix some bugs in
81484         suffix handling, e.g., "100k@" was not diagnosed as an invalid
81485         suffix for a human-readable blocksize.  The major caller-visible
81486         change is the addition of a new
81487         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
81488         that both overflow and suffix chars were found.
81489
81490         * lib/human.c (humblock): Don't check separately for invalid suffix
81491         char; that is xstrtoumax's job (now that its bug is fixed).
81492         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
81493         INTMAX_MAX]: New macros.
81494         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
81495         TYPE_MAXIMUM): New macros.
81496         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
81497         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
81498         if overflow occurs, as it's what __strtol does and it's more useful
81499         in practice.
81500         (__xstrtol): If __strtol reports some error other than ERANGE,
81501         reflect it to the caller as LONGINT_INVALID.  If it reports
81502         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
81503         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
81504         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
81505         value.
81506         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
81507         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
81508         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
81509         [defined UINTMAX_MAX]: New macros.
81510
81511 2003-10-14  Bruno Haible  <bruno@clisp.org>
81512
81513         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
81514
81515 2003-10-14  Bruno Haible  <bruno@clisp.org>
81516
81517         * m4/sig_atomic_t: New file, from GNU gettext.
81518         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
81519
81520 2003-10-14  Bruno Haible  <bruno@clisp.org>
81521
81522         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
81523         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
81524         Also use volatile where needed.
81525
81526 2003-10-12  Paul Eggert  <eggert@twinsun.com>
81527
81528         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
81529         Change maintainer from Bruno Haible to 'all'.
81530
81531 2003-10-12  Paul Eggert  <eggert@twinsun.com>
81532
81533         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
81534
81535 2003-10-12  Paul Eggert  <eggert@twinsun.com>
81536
81537         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
81538         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
81539         and define in terms of the other primitives.
81540         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
81541         (SIZE_MAX): Define if not already defined.
81542         (array_size_overflow): New function.
81543         (xalloc_die): Abort instead of exiting if 'error' returns.
81544         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
81545         (xmalloc, xrealloc): Use them.
81546         (xcalloc): Check for address arithmetic overflow.
81547         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
81548         a bit faster than strcpy.
81549
81550 2003-10-10  Simon Josefsson  <jas@extundo.com>
81551
81552         * modules/argp (Depends-on): Add restrict and strcase.
81553
81554 2003-10-10  Simon Josefsson  <jas@extundo.com>
81555
81556         * m4/argp.m4: Add AC_C_INLINE.
81557
81558 2003-10-08  Paul Eggert  <eggert@twinsun.com>
81559
81560         Merge getpass from libc, plus a few fixes.
81561
81562         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
81563         Include <stdbool.h>.
81564         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
81565         __fsetlocking to empty.
81566         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
81567         do include <bits/libc-lock.h>.
81568         Do not include <fcntl.h>; not needed.
81569         [_LIBC]: Include <wchar.h>.
81570         (NOTCANCEL_MODE): New macro.
81571         (flockfile, funlockfile) [_LIBC]: New macros.
81572         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
81573         [!_LIBC]: New macros.
81574         (call_fclose): New function.
81575         (getpass): Use it.  Save tty stream separately; this simplifies the
81576         code and makes it more reliable if stdin happens to equal stdout.
81577         Invoke __fsetlocking on tty.
81578         Handle thread cancellation if needed.
81579         Namespace cleanup (use __tcgetattr, __getline).
81580         Use bool for Booleans.
81581         [USE_IN_LIBIO]: Handle wide streams.
81582         [!_LIBC]: Unconditionally do the fseek, since we don't know what
81583         stream might go where.
81584
81585         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
81586         doesn't have to include <stdio.h> before us.
81587         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
81588         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
81589         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
81590         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
81591         if not declared, so that we can use getpass.c code from libc without
81592         rewriting it.
81593         (flockfile, ftrylockfile, funlockfile): New macros.
81594
81595 2003-10-08  Paul Eggert  <eggert@twinsun.com>
81596
81597         * modules/getpass: Depend on stdbool.
81598
81599 2003-10-08  Paul Eggert  <eggert@twinsun.com>
81600
81601         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
81602
81603 2003-10-07  Karl Berry  <karl@gnu.org>
81604
81605         * config/config.{guess,sub}: update from config.
81606
81607 2003-10-06  Jim Meyering  <jim@meyering.net>
81608             Bruno Haible  <bruno@clisp.org>
81609
81610         This lets translators provide better translations for the
81611         "Written by ..." part of --version output.
81612         * lib/version-etc.h: Include stdarg.h.
81613         (version_etc_copyright): Declare as readonly.
81614         (version_etc): Make this function variadic with a NULL-terminated list
81615         of author name strings.
81616         (version_etc_va): New declaration.
81617         * lib/version-etc.c: Include stdarg.h, stdlib.h.
81618         (version_etc_copyright): Declare as readonly.
81619         (version_etc_va): New function. Provide a different translatable string
81620         for each possible number of authors < 10. Abbreviate when there are 10
81621         authors or more.
81622         (version_etc): Make this function variadic. Call version_etc_va.
81623         Suggestion from Gary V. Vaughan.
81624
81625         * lib/long-options.h (parse_long_options): Change prototype: the
81626         authors string is moved to the end and becomes variadic.
81627         * lib/long-options.c: Include stdarg.h.
81628         (parse_long_options): Make this function variadic, too.
81629         Call version_etc_va, not version_etc.
81630
81631 2003-10-06  Bruno Haible  <bruno@clisp.org>
81632
81633         * modules/version-etc-2: Remove file.
81634         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
81635
81636 2003-10-06  Bruno Haible  <bruno@clisp.org>
81637
81638         * modules/fatal-signal: New file.
81639         * MODULES.html.sh (func_all_modules): Add fatal-signal.
81640
81641 2003-10-06  Bruno Haible  <bruno@clisp.org>
81642
81643         * m4/fatal-signal.m4: New file.
81644         * m4/signalblocking.m4: New file, from GNU gettext.
81645
81646 2003-10-06  Bruno Haible  <bruno@clisp.org>
81647
81648         * lib/version-etc-2.h: Remove file.
81649         * lib/version-etc-2.c: Remove file.
81650
81651 2003-10-06  Bruno Haible  <bruno@clisp.org>
81652
81653         * lib/fatal-signal.h: New file, from GNU gettext.
81654         * lib/fatal-signal.c: New file, from GNU gettext.
81655
81656 2003-10-05  Paul Eggert  <eggert@twinsun.com>
81657
81658         * README: Rework advice for preventing empty .o files.
81659         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
81660         not <sys/types.h>.
81661
81662 2003-10-04  Karl Berry  <karl@gnu.org>
81663
81664         * lib/argp*: update from libc.
81665
81666 2003-10-04  Karl Berry  <karl@gnu.org>
81667
81668         * config/config.{guess,sub}: update from config.
81669
81670 2003-10-02  Bruno Haible  <bruno@clisp.org>
81671
81672         * modules/lchown (Include): Add lchown.h.
81673         * modules/time_r (Include): Use "..." syntax.
81674         * modules/xgetdomainname (Include): Add xgetdomainname.h.
81675
81676 2003-10-01  Simon Josefsson  <jas@extundo.com>
81677
81678         * MODULES.html.sh (func_all_modules): Move gethostname from section
81679         'based on' to section 'lacking' POSIX:2001.
81680
81681 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
81682
81683         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
81684         to output mode on the same stream.
81685
81686 2003-09-29  Paul Eggert  <eggert@twinsun.com>
81687
81688         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
81689         Fix arg typo in previous patch.
81690
81691 2003-09-28  Jim Meyering  <jim@meyering.net>
81692
81693         * lib/error.c: Correct cpp indentation.
81694
81695 2003-09-27  Paul Eggert  <eggert@twinsun.com>
81696
81697         * modules/free: New file.
81698
81699 2003-09-27  Paul Eggert  <eggert@twinsun.com>
81700
81701         * m4/free.m4: New file.
81702
81703 2003-09-27  Paul Eggert  <eggert@twinsun.com>
81704
81705         * lib/minmax.h (MIN, MAX)
81706         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
81707         Omit the special code that used __typeof__, since we worry that
81708         it could be more trouble than it's worth.  See:
81709         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
81710         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
81711
81712         * lib/free.c: New file.
81713
81714 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
81715
81716         Trivial fixes to Makefile.am parts of module listings.
81717         * modules/strstr: Append strstr.h to lib_SOURCES.
81718         * modules/strcase: Likewise, for strcase.h.
81719
81720 2003-09-27  Karl Berry  <karl@gnu.org>
81721
81722         * config/mkinstalldirs: update from automake.
81723
81724 2003-09-26  Paul Eggert  <eggert@twinsun.com>
81725
81726         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
81727         (error_tail): Do not loop, reallocating temporary buffer, since
81728         the output cannot contain more wide characters than the input
81729         contains bytes, the size must be big enough already.  This avoids
81730         one potential size overflow calculation.  Check for size overflow
81731         when calculating temporary buffer size.  Free temporary buffer
81732         when done, if it was allocated with malloc; this plugs a memory
81733         leak.  Remove casts from void * to pointers, that are no longer
81734         needed now that we're assuming C89 or better.
81735
81736         Merge error changes from glibc.
81737
81738         * lib/error.c, error.h: Update copyright notice header to match glibc.
81739         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
81740         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
81741         Disable cancellation while printing error.
81742         * lib/error.h: Prepend __ to parameter names.
81743
81744 2003-09-26  Jim Meyering  <jim@meyering.net>
81745
81746         * lib/error.c (error_tail): Move some declarations
81747         into inner scope where the local variables are used.
81748
81749 2003-09-26  Bruno Haible  <bruno@clisp.org>
81750
81751         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
81752         stpncpy().
81753         Don't define stpncpy through config.h; it's now done through stpncpy.h.
81754
81755 2003-09-26  Bruno Haible  <bruno@clisp.org>
81756
81757         * lib/stpncpy.h (gnu_stpncpy): New declaration.
81758         (stpncpy): Define as alias for gnu_stpncpy.
81759         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
81760
81761 2003-09-25  Simon Josefsson  <jas@extundo.com>
81762
81763         * lib/xgetdomainname.h: New file.
81764         * lib/xgetdomainname.c: New file.
81765
81766 2003-09-25  Simon Josefsson  <jas@extundo.com>
81767             Bruno Haible  <bruno@clisp.org>
81768
81769         * modules/getdomainname: New file.
81770         * modules/xgetdomainname: New file.
81771         * MODULES.html.sh (func_all_modules): Add getdomainname,
81772         xgetdomainname.
81773
81774 2003-09-25  Simon Josefsson  <jas@extundo.com>
81775             Bruno Haible  <bruno@clisp.org>
81776
81777         * m4/getdomainname.m4: New file.
81778
81779 2003-09-25  Simon Josefsson  <jas@extundo.com>
81780             Bruno Haible  <bruno@clisp.org>
81781
81782         * lib/getdomainname.h: New file.
81783         * lib/getdomainname.c: New file.
81784
81785 2003-09-25  Karl Berry  <karl@gnu.org>
81786
81787         * lib/argp-fmtstream.c, argp-help.c: update from libc.
81788
81789 2003-09-25  Karl Berry  <karl@gnu.org>
81790
81791         * config/install-sh: update from automake.
81792
81793 2003-09-25  Bruno Haible  <bruno@clisp.org>
81794
81795         * modules/version-etc-2: New file, from modules/version-etc with
81796         modifications.
81797         * MODULES.html.sh (func_all_modules): Add version-etc-2.
81798
81799 2003-09-25  Bruno Haible  <bruno@clisp.org>
81800
81801         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
81802         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
81803
81804 2003-09-24  Simon Josefsson  <jas@extundo.com>
81805
81806         * modules/xgethostname: Add xgethostname.h.
81807
81808 2003-09-24  Paul Eggert  <eggert@twinsun.com>
81809
81810         * lib/linebuffer.c (freebuffer): Don't free the argument, just
81811         the buffer associated with the argument.  Bug reported by
81812         Simon Josefsson.
81813
81814 2003-09-24  Paul Eggert  <eggert@twinsun.com>
81815
81816         * README: Document assumptions that 'int' is at least 32 bits
81817         wide, that integer arithmetic is 2's complement without overflow,
81818         that there are no holes in integer values, that adding sizes of
81819         two nonoverlapping objects can't overflow, and that all-bits-zero
81820         yields scalar zero.  Fix spelling and capitalization typos.
81821
81822 2003-09-19  Karl Berry  <karl@gnu.org>
81823
81824         * lib/argp.h: update from libc.
81825
81826 2003-09-17  Paul Eggert  <eggert@twinsun.com>
81827
81828         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
81829         to avoid spurious warnings like "AC_RUN_IFELSE was called before
81830         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
81831
81832 2003-09-17  Paul Eggert  <eggert@twinsun.com>
81833
81834         * gnulib-tool: Use "test -h", not "test -L", for portability
81835         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
81836         (tags_regexp): Remove, since \| doesn't conform to POSIX.
81837         (sed_extract_prog): Issue s commands one-by-one, rather than
81838         using \| in one s command.
81839
81840 2003-09-16  Paul Eggert  <eggert@twinsun.com>
81841
81842         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
81843         input error, instead of returning NULL the next time we are called
81844         (and therefore losing track of errno).
81845
81846 2003-09-16  Bruno Haible  <bruno@clisp.org>
81847
81848         * gnulib-tool (func_create_testdir): Warn about duplicated
81849         dependencies.
81850
81851 2003-09-15  Paul Eggert  <eggert@twinsun.com>
81852
81853         * modules/argmatch, modules/fatal, modules/obstack,
81854         modules/xalloc, modules/xgethostname: Sort dependencies by
81855         importance, not alphabetically.
81856
81857 2003-09-15  Paul Eggert  <eggert@twinsun.com>
81858
81859         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
81860         fails, so that the caller gets the proper errno.
81861
81862         * lib/readutmp.c (read_utmp): Likewise.
81863         Check for fstat error.  Close stream and free storage
81864         when failing.
81865
81866 2003-09-14  Karl Berry  <karl@gnu.org>
81867
81868         * config/srclist.txt (strdup.c): disable for c89 changes.
81869
81870 2003-09-14  Jim Meyering  <jim@meyering.net>
81871
81872         * lib/getloadavg.c: Correct cpp indentation.
81873         * lib/strdup.c: Likewise.
81874         * lib/vasnprintf.c: Likewise.
81875
81876 2003-09-14  Bruno Haible  <bruno@clisp.org>
81877
81878         * modules/fwriteerror: New file.
81879         * MODULES.html.sh (func_all_modules): Add fwriteerror.
81880
81881 2003-09-14  Bruno Haible  <bruno@clisp.org>
81882
81883         * lib/fwriteerror.h: New file.
81884         * lib/fwriteerror.c: New file.
81885
81886 2003-09-12  Paul Eggert  <eggert@twinsun.com>
81887
81888         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
81889         modules/xgethostname, modules/xalloc: Depend on exit.
81890
81891 2003-09-12  Paul Eggert  <eggert@twinsun.com>
81892
81893         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
81894
81895         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
81896         and AC_MINIX, too, so that their extensions are available.
81897
81898         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
81899         This macro has been superseded by gl_BACKUPFILE.
81900
81901         More patches to assume C89 or better.
81902
81903         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
81904
81905         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
81906         unconditionally.
81907         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
81908         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
81909         Include <string.h>, <stdlib.h> unconditionally.
81910         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
81911         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
81912         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
81913         headers or for string.h.
81914         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
81915         or strtoul.
81916
81917         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
81918         headers.
81919         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
81920         * m4/userspec.m4 (gl_USERSPEC): Likewise.
81921         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
81922         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
81923         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
81924         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
81925         memcpy, memset.
81926         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
81927         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
81928         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
81929         strtol.
81930         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
81931         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
81932         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
81933         strtoul.
81934
81935 2003-09-12  Paul Eggert  <eggert@twinsun.com>
81936
81937         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
81938         * lib/obstack.c [!defined _LIBC]: Likewise.
81939         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
81940         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
81941         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
81942
81943         More changes to assume C89 or better.
81944
81945         * lib/error.c (error_tail): Assume vprintf.
81946
81947         * lib/argmatch.c (getenv): Remove decl.
81948         * lib/progreloc.c (get_full_program_name): Define via prototype.
81949         * lib/setenv.c (clearenv): Likewise.
81950         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
81951         needed.
81952         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
81953         (malloc, memcpy): Remove decls.
81954         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
81955         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
81956         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
81957         (memcpy): Remove macro.
81958         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
81959         (__P): Remove.  All uses removed.
81960         (PTR): Remove.  All uses changed to void *.
81961         (CHAR_BIT, NULL): Remove.
81962         (spaces, zeros, memset_space, memset_zero)
81963         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
81964         Remove.
81965         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
81966         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
81967         Define with prototype.
81968         Remove now-unnecessary prototype decl.
81969         (extra_args_spec): Assume ANSI C.  All uses changed.
81970         (extra_args_spec_iso): Remove.
81971         (my_strftime, emacs_strftimeu): Define via prototype.
81972         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
81973         unconditionally.
81974         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
81975         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
81976         (strtoul, strtol): Remove decls.
81977         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
81978         LONG_MAX): Remove.
81979         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
81980         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
81981         (LOCALE_PARAM_PROTO): New macro.
81982         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
81983         (INTERNAL (strtol), strtol): Define with a prototype.
81984         (PARAMS): Remove.  All uses removed.
81985         * lib/tempname.c: Include <string.h> unconditionally.
81986         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
81987         * lib/xgethostname.c (main): Define with a prototype.
81988         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
81989         Include <stdlib.h> unconditionally.
81990         (calloc, malloc, realloc, free): Remove decls.
81991         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
81992         Include <stdlib.h> unconditionally.  Sort include file names.
81993         (strtod): Remove.
81994         (xstrtod): Define with a prototype.
81995         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
81996         (strtol, strtoul): Remove decls.
81997
81998 2003-09-11  Paul Eggert  <eggert@twinsun.com>
81999
82000         More patches to assume C89 or better.
82001         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
82002         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
82003         string.h, memchr, STDC_HEADERS.
82004
82005 2003-09-11  Paul Eggert  <eggert@twinsun.com>
82006
82007         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
82008         Include <stdlib.h>, <string.h> unconditionally.
82009         Remove now-unnecessary cast to char *.
82010         * lib/strnlen.c: Include <string.h> unconditionally.
82011         * lib/yesno.c (yesno): Define with a prototype.
82012
82013 2003-09-11  Bruno Haible  <bruno@clisp.org>
82014
82015         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
82016
82017 2003-09-10  Jim Meyering  <jim@meyering.net>
82018
82019         * lib/error.c: Correct indentation of cpp directives.
82020
82021 2003-09-10  Bruno Haible  <bruno@clisp.org>
82022
82023         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
82024         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
82025         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
82026         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
82027         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
82028         <stdlib.h> and <string.h> checks.
82029         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
82030         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
82031
82032 2003-09-10  Bruno Haible  <bruno@clisp.org>
82033
82034         * lib/strcspn.c: Include <string.h> unconditionally.
82035         * lib/strpbrk.c: Include <string.h> unconditionally.
82036         * lib/strstr.c: Include <string.h> unconditionally.
82037         * lib/unicodeio.c: Include <string.h> unconditionally.
82038         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
82039         * lib/unsetenv.c: Likewise.
82040         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
82041         * lib/yesno.c: Include <stdlib.h> unconditionally.
82042         (rpmatch): Add prototype.
82043
82044 2003-09-09  Paul Eggert  <eggert@twinsun.com>
82045
82046         More patches to assume C89 or better.
82047         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
82048         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
82049         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
82050         or for string.h.
82051         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
82052         stdlib.h.
82053         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
82054         C headers.
82055         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
82056         string.h.
82057         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
82058         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
82059         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
82060         or for string.h.
82061         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
82062         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
82063         C headers.
82064         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
82065         memcpy.
82066         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
82067         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
82068         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
82069         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
82070         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
82071         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
82072         string.h, free.
82073         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
82074         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
82075         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
82076         C headers, or for string.h.
82077         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
82078         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
82079         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
82080         headers, memory.h, stdlib.h, string.h, strings.h.
82081         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
82082         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
82083         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
82084         strchr.
82085         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
82086         headers, memory.h, string.h.
82087         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
82088         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
82089         free.
82090         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
82091         headers.
82092         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
82093         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
82094         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
82095         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
82096         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
82097
82098 2003-09-09  Paul Eggert  <eggert@twinsun.com>
82099
82100         More K&R removal.
82101
82102         * lib/acosl.c (main): Use a prototype.
82103         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
82104         tanl.c: Likewise.
82105
82106         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
82107
82108         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
82109         (getopt, etopt_long, getopt_long_only, _getopt_internal)
82110         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
82111         with a prototype.
82112         * lib/getopt.c (const): Remove macro.
82113         Include <string.h> unconditionally.
82114         (my_index): Remove; all uses changed to strchr.
82115         (strlen): Remove decl.
82116         (exchange): Remove forward decl; no longer needed.
82117         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
82118         Define with prototype.
82119         * lib/getopt1.c (const): Remove macro.
82120         (getopt_long, getopt_long_only, main): Define with prototype.
82121
82122         * lib/getugroups.c: Include <string.h> unconditionally.
82123
82124         * lib/getusershell.c: Include <stdlib.h> unconditionally.
82125         (getusershell, setusershell, endusershell, readname, main):
82126         Define with prototypes.
82127
82128         * lib/group-member.c: Include group-member.h first.
82129         Include <stdlib.h> unconditionally.
82130
82131         * lib/hard-locale.c: Include hard-locale.h first.
82132         Include <stdlib.h>, <string.h> unconditionally.
82133
82134         * lib/hash.c (free, malloc): Remove decls.
82135         Include <stdlib.h> unconditionally.
82136
82137         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
82138         (getenv): Do not declare.
82139
82140         * lib/idcache.c: Include <string.h> unconditionally.
82141
82142         * lib/long-options.c: Include long-options.h first, to test interface.
82143         Include <stdlib.h> unconditionally.
82144
82145         * lib/makepath.c: Include makepath.h first, to test interface.
82146         Include <stdlib.h> and <string.h> unconditionally.
82147
82148         * lib/linebuffer.c: Include <stdlib.h>.
82149         (free): Remove decl.
82150
82151         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
82152         stddef.h. rpl_malloc returns void *, not char *.
82153         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
82154         prototype.
82155
82156         * lib/md5.h: Include <limits.h> unconditionally.
82157         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
82158         (__P): Remove; all uses removed.
82159         * lib/md5.c: Include "md5.h" first.
82160         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
82161         md5_buffer, md5_process_bytes, md5_process_block):
82162         Define with prototypes.
82163         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
82164         * lib/sha.c: Include "sha.h" first.
82165         Include <stdlib.h>, <string.h> unconditionally.
82166
82167         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
82168         * lib/memcmp.c (__ptr_t): Likewise.
82169         * lib/memrchr.c (__ptr_t): Likewise.
82170         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
82171         Include <string.h> unconditionally.
82172         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
82173         * lib/memchr.c: Include <stdlib.h> unconditionally.
82174         * lib/memchr.c (LONG_MAX): Remove.
82175         * lib/memrchr.c (LONG_MAX): Likewise.
82176         * lib/memchr.c (__memchr): Define via a prototype.
82177         * lib/memrchr.c (__memrchr): Likewise.
82178         * lib/memcmp.c (__P): Remove, and remove all uses.
82179         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
82180         Remove forward decls; no longer needed.
82181         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
82182         Use types required by C89 in prototype.
82183
82184         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
82185         * lib/savedir.c: Likewise.
82186         * lib/mkdir.c (free): Remove decl.
82187         * lib/rmdir.c (rmdir): Define with a prototype.
82188         * lib/savedir.c: Include savedir.h first, to test interface.
82189
82190         * lib/mktime.c (STDC_HEADERS): Remove.
82191         Include <stdlib.h>, <string.h> unconditionally.
82192
82193         * lib/modechange.c: Include <stdlib.h> unconditionally.
82194         (malloc): Remove decl.
82195
82196         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
82197         (free): Remove decl.
82198
82199         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
82200         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
82201         (This type really should be intptr_t, but that's a C99ism.)
82202         (_obstack_memcpy): Remove: all uses changed to memcpy.
82203         Include <string.h> unconditionally.
82204         (struct obstack): Assume __STDC__ for types of members
82205         chunkfun, freefun, extra_arg.
82206         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
82207         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
82208         obstack_begin, obstack_specify_allocation,
82209         obstack_specify_allocation_with_arg, obstack_chunkfun,
82210         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
82211         Remove unprototyped decls and the macros that use them.
82212         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
82213         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
82214         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
82215         (defined __STDC__ && __STDC__)]:
82216         Remove nonprototyped code.
82217         Include <stdlib.h> unconditionally.
82218         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
82219         _obstack_allocated_p, _obstack_free, obstack_free,
82220         _obstack_memory_used, print_and_abort):
82221         Define using prototypes.
82222         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
82223         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
82224         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
82225         obstack_next_free, obstack_object_size, obstack_room) [0]:
82226         Remove unused, unprototyped code.
82227
82228         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
82229
82230         * lib/physmem.c (physmem_total, physmem_available, main): Define
82231         with prototypes.
82232
82233         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
82234         (main): Define with a prototype.
82235
82236         * lib/posixver.c (getenv): Remove decl.
82237
82238         * lib/putenv.c (malloc): Returns void *, not char *.
82239         Include <string.h> unconditionally.
82240         (strchr, memcpy, NULL): Do not define.
82241
82242         * lib/readtokens.c: Include readtokens.h first, to test interface.
82243         Include <stdlib.h>, <string.h> unconditionally.
82244         (init_tokenbuffer): Define with a prototype.
82245
82246         * lib/regex.c (PARAMS): Remove.  All uses removed.
82247         All uses of _RE_ARGS removed, too.
82248         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
82249         unconditionally.
82250         (bzero): Assume memset exists.
82251         (memcmp, memcpy, NULL): Remove.
82252         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
82253         char, or assignments to local vars of type signed char.
82254         (init_syntax_once, PREFIX(extract_number_and_incr),
82255         PREFIX(print_partial_compiled_pattern),
82256         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
82257         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
82258         PREFIX(regex_grow_registers), PREFIX(regex_compile),
82259         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
82260         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
82261         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
82262         wcs_compile_range, byte_compile_range, truncate_wchar,
82263         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
82264         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
82265         count_mbs_length, wcs_re_match_2_internal,
82266         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
82267         PREFIX(alt_match_null_string_p),
82268         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
82269         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
82270         regfree, PREFIX(extract_number)): Define with prototype.  Remove
82271         now-unnecessary declaration, if any.
82272         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
82273         regcomp, regexec):
82274         Remove now-unnecessary casts among pointer types.
82275         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
82276
82277         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
82278         (free): Remove decl.
82279
82280         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
82281
82282         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
82283         (free): Remove decl.
82284
82285         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
82286         * lib/xgetcwd.c: Likewise.
82287
82288         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
82289         (free): Remove decl.
82290
82291         * lib/strchrnul.c (strchrnul): Define with a prototype.
82292         Fix bug: c_in was not converted to char before searching.
82293
82294         The following changes are not K&R related:
82295
82296         * lib/group-member.h: Include <sys/types.h>, so that this file is
82297         self-contained.
82298         * lib/makepath.h: Likewise.
82299
82300         * lib/getusershell.c (readname, default_index, line_size, readname):
82301         Use size_t, not int, for sizes.
82302         (readname): If the size overflows, report an error instead of
82303         looping forever.
82304
82305 2003-09-09  Paul Eggert  <eggert@twinsun.com>
82306
82307         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
82308         libc.
82309
82310 2003-09-09  Paul Eggert  <eggert@twinsun.com>
82311
82312         * README: New section: portability guidelines.
82313
82314 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
82315
82316         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
82317         C89 spec.
82318
82319 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
82320
82321         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
82322
82323 2003-09-08  Paul Eggert  <eggert@twinsun.com>
82324
82325         Assume C89 or better; remove K&R cruft.
82326         A few of these changes were first proposed by Derek Robert Price
82327         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
82328
82329         * lib/addext.c: Include <string.h> unconditionally.
82330         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
82331         Don't declare getenv or malloc.
82332
82333         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
82334         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
82335         (NULL): Remove.
82336         (find_stack_direction, alloca): Use prototypes.
82337
82338         * lib/atexit.c (atexit): Define using a prototype.
82339
82340         * lib/basename.c, dirname.c, stripslash.c:
82341         Include <string.h> unconditionally.
82342
82343         * lib/bcopy.c: Include <stddef.h>.
82344         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
82345
82346         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
82347
82348         * lib/error.h (error, error_at_line, error_print_progname)
82349         [! (defined (__STDC__) && __STDC__)]: Remove decls.
82350         * lib/error.c: Include error.h first, to check interface.
82351         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
82352         (VA_START): Remove; all uses changeed to va_start.
82353         (exit, strerror): Remove decls.
82354         (error_print_progname): Prototype uncondionally.
82355         Don't include <errno.h>; no longer needed.
82356         (private_strerror): Remove.
82357         (error_tail): Always define.
82358         (error, error_at_line): Assume C89 or better; always use prototypes.
82359         * lib/fatal.c: Include "fatal.h" first, to test interface.
82360         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
82361         (VA_START): Remove; all uses changed to va_start.
82362         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
82363         this case.
82364         (exit): Remove decl.
82365         (fatal): Prototype unconditionally.  Assume va_start works.
82366         Abort at end, to pacify gcc.
82367
82368         * lib/euidaccess.c (main): Define with a prototype.
82369
82370         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
82371
82372         * lib/exitfail.c: Include <stdlib.h> unconditionally.
82373
82374         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
82375         prototypes.
82376         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
82377         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
82378         (getenv): Remove decl.
82379         (fnmatch): Define using a prototype.
82380         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
82381         (FCT): Define using a prototype.
82382
82383         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
82384
82385         * lib/gethostname.c: Include <stddef.h>.
82386         (gethostname): Define with prototype.  Length is size_t, not int.
82387
82388 2003-09-08  Paul Eggert  <eggert@twinsun.com>
82389
82390         Assume C89 or better; remove K&R cruft.
82391         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
82392         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
82393         string.h, getenv, malloc.
82394         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
82395         headers.
82396         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
82397         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
82398         do not check for strerror.
82399         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
82400         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
82401         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
82402         do not check for doprnt or vprintf.
82403         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
82404         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
82405
82406 2003-09-08  Paul Eggert  <eggert@twinsun.com>
82407
82408         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
82409         getversion.c should have been removed then, but was accidentally
82410         preserved.
82411
82412         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
82413         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
82414
82415 2003-09-08  Karl Berry  <karl@gnu.org>
82416
82417         * config/config.sub, config.guess, srclistvars.sh: update from savannah
82418                 config, forget about prep.
82419
82420         * config/depcomp, missing: update from automake.
82421
82422 2003-09-07  Paul Eggert  <eggert@twinsun.com>
82423
82424         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
82425         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
82426
82427 2003-09-07  Paul Eggert  <eggert@twinsun.com>
82428
82429         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
82430         copy_tm_result.  Bug reported by Simon Josefsson in
82431         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
82432
82433 2003-09-06  Paul Eggert  <eggert@twinsun.com>
82434
82435         * m4/time_r.m4: New file.
82436         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
82437         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
82438         is. Check for timegm declaration.
82439         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
82440         Do not check for gmtime_r.
82441         Replace mktime if __mktime_internal does not exist and if mktime
82442         hasn't been replaced already.
82443
82444 2003-09-06  Paul Eggert  <eggert@twinsun.com>
82445
82446         * lib/time_r.c, lib/time_r.h: New files.
82447
82448         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
82449         __localtime_r.
82450         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
82451         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
82452
82453         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
82454         __gmtime_r.
82455         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
82456         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
82457         Include <time_r.h>.
82458
82459         * lib/timegm.c: Switch to glibc implementation, with the following
82460         changes:
82461         [defined HAVE_CONFIG_H]: Include <config.h>.
82462         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
82463         (__mktime_internal) [!defined _LIBC]: New decl.
82464         (__gmtime_r) [!defined _LIBC]: New macro and function.
82465         (timegm): Use a prototype, since gnulib assumes C89.
82466         Do not bother declaring tmp to be const, as it's not really usefu.
82467         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
82468         (timegm): Declare only if HAVE_DECL_TIMEGM.
82469
82470 2003-09-06  Paul Eggert  <eggert@twinsun.com>
82471
82472         * MODULES.html.sh (func_all_modules): Add time_r.
82473         * modules/time_r: New file.
82474         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
82475         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
82476
82477 2003-09-03  Paul Eggert  <eggert@twinsun.com>
82478
82479         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
82480         Bug reported by Lute Kamstra in
82481         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
82482
82483         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
82484         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
82485         course with correspondingly smaller numbers for tomorrow and
82486         yesterday.  From Tadayoshi Funaba.  Originally installed into
82487         sh-utils on 1999-08-07, but the patch got lost (I guess during the
82488         coreutils merge?).
82489
82490 2003-08-31  Simon Josefsson  <jas@extundo.com>
82491
82492         * modules/timegm: New file.
82493         * MODULES.html.sh (func_all_modules): Add timegm.
82494
82495 2003-08-31  Simon Josefsson  <jas@extundo.com>
82496
82497         * m4/timegm.m4: New file.
82498
82499 2003-08-31  Simon Josefsson  <jas@extundo.com>
82500
82501         * lib/timegm.h: New file.
82502         * lib/timegm.c: New file.  Based on
82503         wget-1.8.2/src/http.c:mktime_from_utc.
82504
82505 2003-08-31  Karl Berry  <karl@gnu.org>
82506
82507         * lib/argp.h: update from libc.
82508
82509 2003-08-28  Bruno Haible  <bruno@clisp.org>
82510
82511         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
82512         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
82513         followed by '#define fnmatch fnmatch_posix' gives an error.
82514
82515 2003-08-28  Bruno Haible  <bruno@clisp.org>
82516
82517         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
82518         warning on QNX, which defines O_BINARY to 000000.
82519
82520 2003-08-27  Jim Meyering  <jim@meyering.net>
82521
82522         * m4/mkstemp.m4: Require that the system mkstemp be able to create
82523         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
82524         would fail after 32.  Reported by Danny Levinson.  Details here:
82525         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
82526
82527 2003-08-24  Bruno Haible  <bruno@clisp.org>
82528
82529         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
82530         MSVC7 <stdio.h> is included later.
82531
82532 2003-08-22  Simon Josefsson  <jas@extundo.com>
82533
82534         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
82535
82536 2003-08-20  Karl Berry  <karl@gnu.org>
82537
82538         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
82539
82540 2003-08-20  Bruno Haible  <bruno@clisp.org>
82541
82542         * modules/progname: New file.
82543         * MODULES.html.sh (func_all_modules): Add progname.
82544
82545 2003-08-20  Bruno Haible  <bruno@clisp.org>
82546
82547         * lib/progname.h: New file, from GNU gettext.
82548         * lib/progname.c: New file, from GNU gettext.
82549         * lib/progreloc.c: New file, from GNU gettext.
82550
82551 2003-08-19  Jim Meyering  <jim@meyering.net>
82552
82553         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
82554         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
82555
82556 2003-08-19  Bruno Haible  <bruno@clisp.org>
82557
82558         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
82559         more.
82560
82561 2003-08-19  Bruno Haible  <bruno@clisp.org>
82562
82563         * lib/xstrdup.c: Assume <string.h> exists.
82564
82565 2003-08-18  Paul Eggert  <eggert@twinsun.com>
82566
82567         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
82568         in makefile rules.
82569
82570 2003-08-18  Jim Meyering  <jim@meyering.net>
82571
82572         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
82573         * m4/lib-ld.m4: Likewise.
82574
82575 2003-08-18  Jim Meyering  <jim@meyering.net>
82576
82577         * lib/setenv.h: Indent nested cpp directive.
82578         * lib/vasnprintf.c: Remove trailing blanks.
82579
82580 2003-08-17  Simon Josefsson  <jas@extundo.com>
82581
82582         * modules/xstrndup: New file.
82583         * MODULES.html.sh (func_all_modules): Add xstrndup.
82584
82585 2003-08-17  Simon Josefsson  <jas@extundo.com>
82586
82587         * modules/argp: Fix autoconf macro name. Add more dependencies.
82588
82589 2003-08-17  Simon Josefsson  <jas@extundo.com>
82590
82591         * m4/xstrndup.m4: New file.
82592
82593 2003-08-17  Simon Josefsson  <jas@extundo.com>
82594
82595         * m4/argp.m4: New file.
82596
82597 2003-08-17  Simon Josefsson  <jas@extundo.com>
82598             Bruno Haible  <bruno@clisp.org>
82599
82600         * lib/xstrndup.h: New file.
82601         * lib/xstrndup.c: New file.
82602
82603 2003-08-17  Bruno Haible  <bruno@clisp.org>
82604
82605         * modules/strndup (Files, Include): Add lib/strndup.h.
82606
82607 2003-08-17  Bruno Haible  <bruno@clisp.org>
82608
82609         * modules/euidaccess (Files): Add lib/euidaccess.h.
82610
82611 2003-08-17  Bruno Haible  <bruno@clisp.org>
82612
82613         * lib/strndup.h: New file.
82614
82615 2003-08-17  Bruno Haible  <bruno@clisp.org>
82616
82617         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
82618         like AC_GNU_SOURCE.
82619         * modules/extensions (configure.ac): Comment out the invocation of
82620         gl_USE_SYSTEM_EXTENSIONS.
82621
82622 2003-08-16  Paul Eggert  <eggert@twinsun.com>
82623
82624         Merges from coreutils, etc.
82625         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
82626         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
82627         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
82628         fixing a typo.
82629         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
82630         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
82631
82632 2003-08-16  Paul Eggert  <eggert@twinsun.com>
82633
82634         Document merge from coreutils.
82635         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
82636         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
82637         * modules/utime: Add m4/utimes-null.m4.
82638
82639 2003-08-16  Paul Eggert  <eggert@twinsun.com>
82640
82641         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
82642         space, undoing this 2003-08-12 change:
82643         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
82644
82645 2003-08-16  Paul Eggert  <eggert@twinsun.com>
82646
82647         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
82648         strtoul.c from libc, undoing this 2003-08-12 change:
82649         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
82650
82651 2003-08-16  Jim Meyering  <jim@meyering.net>
82652
82653         Merges from coreutils.
82654         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
82655         prefix.  Adjust cache variables similarly.  Create 500 rather than
82656         just 300 files, to exercise bug on Darwin6.5, too.
82657         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
82658         $missing_dir.
82659         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
82660         AM_SYS_POSIX_TERMIOS.
82661         Reported by mkc@mathdogs.com.
82662         Also change use of $am_cv_sys_posix_termios
82663         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
82664         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
82665         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
82666         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
82667         in /proc/mounts until it finds one with matching device number.  This
82668         is unnecessary when the FILE argument *is* a mount point.  No stat call
82669         is necessary in that case.  So, disable the statvfs-testing code on
82670         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
82671         as RedHat bug# 84846.
82672         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
82673         to 1MB, so as not to render systems with no stack size limit (e.g.,
82674         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
82675         Include <unistd.h>.  On some systems,
82676         it is required for the definition of _SC_PAGESIZE.
82677
82678 2003-08-16  Jim Meyering  <jim@meyering.net>
82679
82680         Merge from coreutils.
82681         * lib/xstrtoimax.c: #else #if -> #elif.
82682         * lib/xstrtoumax.c: Likewise.
82683
82684 2003-08-16  Jim Meyering  <jim@meyering.net>
82685
82686         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
82687         * m4/utimes.m4: Removed.
82688         * m4/utimes-null.m4: Renamed from utimes.m4.
82689
82690         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
82691         to 1MB, so as not to render systems with no stack size limit (e.g.,
82692         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
82693         Include <unistd.h>.  On some systems,
82694         it is required for the definition of _SC_PAGESIZE.
82695
82696 2003-08-16  Jim Meyering  <jim@meyering.net>
82697         and Paul Eggert  <eggert@cs.ucla.edu>
82698
82699         Merges from coreutils, etc.
82700
82701         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
82702         using the latest version from cvs.  This avoids problems with #line
82703         directives using a vendor (Sun) compiler.
82704         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
82705         Don't set GETGROUPS_LIB here; now it's
82706         done via getgroups.m4's wrapper function.
82707         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
82708         rather than just in sh-util/configure.in, so that the
82709         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
82710         same.
82711         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
82712         AC_FUNC_GETLOADAVG where to find getloadavg.c.
82713         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
82714         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
82715         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
82716         Remove code that is now done by the newly-required macros.
82717         Append $(EXEEXT) to DF_PROG.
82718         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
82719         Do not invoke or require the following here,
82720         since prereq.m4 or some gnulib .m4 now does this for us:
82721         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
82722         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
82723         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
82724         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
82725         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
82726         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
82727         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
82728         AC_FUNC_OBSTACK.
82729         Do not replace the following functions, as this is now the job
82730         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
82731         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
82732         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
82733         atexit getpass, strdup, getpagesize.
82734         Replace 'raise'.
82735         Do not check for the following functions, as this is now the job
82736         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
82737         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
82738         setregid.
82739         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
82740         Check for sys/sysctl.h.
82741         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
82742         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
82743         of checking for ssize_t ourselves.
82744
82745         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
82746         Require every macro that gnulib/modules/* suggests for us.
82747         (jm_PREREQ_ADDEXT): New macro.
82748         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
82749         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
82750
82751         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
82752         (gl_PHYSMEM): Use it.
82753         Also check for `table' function.
82754         Check for new headers and functions.
82755         Add check for sys/sysmp.h.
82756         With suggestions from Kaveh Ghazi.
82757         Ignore headers that are present but cannot be compiled.  This
82758         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
82759         C 5.4.
82760
82761 2003-08-15  Paul Eggert  <eggert@twinsun.com>
82762
82763         Document merge from coreutils.
82764         * modules/userspec: Depend on posixver.
82765         * modules/strftime: Depend on tzset.
82766
82767 2003-08-15  Paul Eggert  <eggert@twinsun.com>
82768
82769         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
82770         rather than tab, after '#' in shell-script copyright notices.
82771         Suggested by Bruno Haible.
82772
82773 2003-08-15  Paul Eggert  <eggert@twinsun.com>
82774
82775         * config/srclist-update: Use three spaces, rather than tab, after '#'
82776         in shell-script copyright notices.  Suggested by Bruno Haible.
82777         Remove unnecessary parenthesization in regular expression.
82778
82779 2003-08-15  Jim Meyering  <jim@meyering.net>
82780
82781         Merge from coreutils.
82782         * lib/xgethostname.c: Include <stdlib.h>.
82783         (xghostname): Don't exit for anything other than memory-related
82784         failure; just return NULL.
82785         * lib/userspec.c: Include "posixver.h".
82786         (parse_user_spec): Accept `.' as a separator only
82787         in pre-POSIX-200112 mode.
82788         * lib/strtoimax.c: Use #elif rather than #else #if.
82789         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
82790         Remove function, now that we can rely on a working tzset function.
82791         [!_LIBC]: Ensure that the required autoconf test has been run.
82792         [!defined _NL_CURRENT && HAVE_STRFTIME]:
82793         Use underlying_strftime for %r.
82794         * lib/sha.c: Merge in some clean-up and optimization changes from
82795         glibc.
82796         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
82797         Ensure that it is a multiple of 64.
82798         Rearrange loop exit tests so as to avoid performing an
82799         additional fread after encountering an error or EOF.
82800         * lib/realloc.c: Update copyright date.
82801
82802 2003-08-15  Jim Meyering  <jim@meyering.net>
82803         and Paul Eggert  <eggert@twinsun.com>
82804
82805         Merge from coreutils.
82806         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
82807         member but strut utmpx does not.  Needed for AIX 4.3.3.
82808         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
82809
82810 2003-08-15  Jim Meyering  <jim@meyering.net>
82811         and Paul Eggert  <eggert@cs.ucla.edu>
82812
82813         Merges from coreutils, etc.
82814         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
82815         Require gl_FUNC_TZSET_CLOBBER.
82816         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
82817         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
82818         members.
82819
82820 2003-08-14  Paul Eggert  <eggert@twinsun.com>
82821
82822         Help the merge from coreutils.
82823         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
82824         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
82825         * m4/tzset.m4: Use it too.
82826
82827 2003-08-14  Paul Eggert  <eggert@twinsun.com>
82828
82829         * modules/tzset: New file.
82830
82831 2003-08-14  Jim Meyering  <jim@meyering.net>
82832
82833         Merges from coreutils.
82834         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
82835         variable names, rather than @FNMATCH_H@.
82836         * modules/alloca: Likewise for $(ALLOCA_H).
82837
82838         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
82839         the three copies of the literal target, `fnmatch.h'.
82840         * modules/alloca (alloca.h): Likewise.
82841
82842 2003-08-14  Jim Meyering  <jim@meyering.net>
82843
82844         Merge from coreutils.
82845         * m4/tzset.m4: New file.
82846         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
82847         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
82848         otherwise, AIX 5.1 systems would end up using the latter.
82849         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
82850         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
82851         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
82852         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
82853
82854 2003-08-14  Jim Meyering  <jim@meyering.net>
82855
82856         Merge from coreutils.
82857         * lib/obstack.h: Whitespace changes.
82858         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
82859         and xcalloc return values.
82860         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
82861         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
82862         hang on OSF/1 5.1 for DIR on both local and remote file systems.
82863         Reported by (and fix confirmed by) Nelson H. F. Beebe.
82864         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
82865         error from mntctl.
82866         Use mntctl's return value to drive the entry-processing loop, since
82867         we can't rely on the value of the vmt_length member in the last
82868         entry.  On some systems doing so could result in exhausting
82869         virtual memory.  Based in part on a patch from Mike Jetzer.
82870
82871 2003-08-14  Jim Meyering  <jim@meyering.net>
82872         and Paul Eggert  <eggert@twinsun.com>
82873
82874         Merges from coreutils, plus other fixes.
82875         * lib/physmem.c: Merge in portability changes from gcc/libiberty
82876         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
82877         for credits and details.  Thanks to Kaveh Ghazi for helping
82878         to keep these files in sync.
82879         (ARRAY_SIZE): Define it.
82880         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
82881         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
82882         (memcasecmp): Don't assume size_t fits in unsigned int.
82883         Remove casts and duplicate code.
82884         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
82885         (memcpy): Remove definition.
82886         Merge in some clean-up and optimization changes from glibc.
82887         [BLOCKSIZE]: Move definition to top of file.
82888         Ensure that it is a multiple of 64.
82889         Rearrange loop exit tests so as to avoid performing an
82890         additional fread after encountering an error or EOF.
82891         * lib/md5.h (md5_uintptr): Define.
82892         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
82893         return to the initial working directory.  Preserve errno
82894         for caller.
82895         * lib/idcache.c: Include "xalloc.h".
82896         (xmalloc, xrealloc): Remove decls.
82897         (getuser): Remove casts no longer required in C89.
82898         * lib/human.c: Include stdio.h, for sprintf.
82899         * lib/group-member.c: Include "xalloc.h".
82900         (xmalloc, xrealloc): Remove decls.
82901         (get_group_info): Remove casts no longer required in C89.
82902         * lib/getusershell.c (readname): Remove casts no longer required in
82903         C89.
82904         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
82905         * lib/getline.c: Whitespace fix, from coreutils.
82906
82907 2003-08-13  Paul Eggert  <eggert@twinsun.com>
82908
82909         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
82910         Check for isascii.
82911
82912         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
82913         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
82914         Undo previous (whitespace-only) change.
82915
82916 2003-08-13  Paul Eggert  <eggert@twinsun.com>
82917
82918         * lib/exclude.c: Include <ctype.h>
82919         (IN_CTYPE_DOMAIN): New macro.
82920         (is_space): New fn.
82921         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
82922         and empty lines.
82923
82924         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
82925         Undo previous (whitespace-only) change.
82926
82927 2003-08-13  Paul Eggert  <eggert@twinsun.com>
82928
82929         * config/srclist-update: Change update back to the old behavior,
82930         leaving whitespace alone.  Use one 'sed' command rather than a
82931         pipeline.
82932         (fixlicense): Now a variable, not a function.
82933         (remove_trailing_blanks): Remove.
82934         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
82935         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
82936         Undo previous (whitespace-only) change.
82937
82938 2003-08-12  Paul Eggert  <eggert@twinsun.com>
82939
82940         Merge from coreutils.
82941         * modules/euidaccess: Add lib_SOURCES, include for new
82942         file euidaccess.h
82943
82944 2003-08-12  Paul Eggert  <eggert@twinsun.com>
82945
82946         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
82947         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
82948         Normalize leading white space and remove trailing white space.
82949
82950         Merge from coreutils
82951         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
82952
82953         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
82954         0.12.1.  These files are now being upgraded automatically by
82955         ../config/srclist-update.
82956
82957 2003-08-12  Paul Eggert  <eggert@twinsun.com>
82958
82959         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
82960         Normalize leading white space and remove trailing white space.
82961         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
82962         notice, as per ../config/srclist-update.
82963
82964         Merge from coreutils.
82965         * lib/euidaccess.h: New file.
82966         * lib/euidaccess.c: Include it.
82967         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
82968         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
82969         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
82970
82971 2003-08-12  Paul Eggert  <eggert@twinsun.com>
82972
82973         * config/srclist-update: Add copyright notice.
82974         (remove_id_lines, remove_trailing_blanks): New constants.
82975         (fixfile): Use them to normalize spacing a bit in copied files.
82976         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
82977         Normalize leading white space and remove trailing white space.
82978
82979         * config/texinfo.tex: Sync with texinfo.
82980
82981         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
82982         strtoul.c from libc, to merge coreutils whitespace changes.
82983
82984         * config/srclist.txt: Get the following m4 files from gettext:
82985         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
82986         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
82987         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
82988         wint_t.m4.
82989
82990 2003-08-12  Karl Berry  <karl@gnu.org>
82991
82992         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
82993         been made.
82994
82995 2003-08-11  Paul Eggert  <eggert@twinsun.com>
82996
82997         * modules/gnu-source, m4/gnu-source.m4:
82998         Remove; we're assuming Autoconf 2.54 or later now.
82999         Suggested by Bruno Haible.
83000         * MODULES.html.sh (func_all_modules): Remove gnu-source.
83001
83002 2003-08-11  Bruno Haible  <bruno@clisp.org>
83003
83004         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
83005
83006 2003-08-11  Bruno Haible  <bruno@clisp.org>
83007
83008         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
83009         (vasnprintf): Use it instead of wcslen.
83010
83011 2003-08-11  Bruno Haible  <bruno@clisp.org>
83012
83013         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
83014         value to ensure that _Bool promotes to int. Use #define for _Bool when
83015         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
83016
83017 2003-08-10  Karl Berry  <karl@gnu.org>
83018
83019         * lib/regex.h: update from libc (whitespace fix).
83020
83021 2003-08-09  Paul Eggert  <eggert@twinsun.com>
83022
83023         Merge some files from coreutils.  These changes were
83024         originally made by Jim Meyering.
83025         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
83026         many older Unixes require this.
83027         * lib/alloca.c (alloca): Remove cast to argument of free;
83028         no longer needed in C89.
83029         * lib/alloca_.h, regex.h: Fix white space to match
83030         what GNU indent does.
83031
83032 2003-08-09  Paul Eggert  <eggert@twinsun.com>
83033
83034         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
83035         apparently Emacs's Unicode mode got confused before my 2003-08-05
83036         checkin.
83037
83038 2003-08-08  Paul Eggert  <eggert@twinsun.com>
83039
83040         * m4/extensions.m4: New file.
83041         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
83042         Require gl_USE_SYSTEM_EXTENSIONS.
83043         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
83044         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
83045
83046 2003-08-08  Paul Eggert  <eggert@twinsun.com>
83047
83048         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
83049         * modules/extensions, modules/gnu-source: New files.
83050         * modules/timespec, modules/unlocked-io: Depend on extensions.
83051
83052 2003-08-07  Paul Eggert  <eggert@twinsun.com>
83053
83054         * modules/restrict: New file.
83055         * MODULES.html.sh (func_all_modules): Add restrict.
83056         * modules/regex: Depend on restrict.
83057
83058 2003-08-07  Paul Eggert  <eggert@twinsun.com>
83059
83060         * m4/restrict.m4: New file.
83061         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
83062
83063 2003-08-07  Bruno Haible  <bruno@clisp.org>
83064
83065         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
83066         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
83067
83068 2003-08-07  Bruno Haible  <bruno@clisp.org>
83069
83070         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
83071         makes the module 'getndelim2' compatible with the module 'getline'.
83072
83073 2003-08-05  Paul Eggert  <eggert@twinsun.com>
83074
83075         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
83076         byte with "\201" to avoid glitches when editing that source file
83077         with multi-gnome-terminal.
83078
83079 2003-08-05  Paul Eggert  <eggert@twinsun.com>
83080
83081         * lib/bumpalloc.h: Remove.
83082
83083 2003-08-05  Paul Eggert  <eggert@twinsun.com>
83084
83085         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
83086         * modules/bumpalloc: Remove.
83087
83088 2003-08-04  Paul Eggert  <eggert@twinsun.com>
83089
83090         * lib/getloadavg.c: Change copyright notice and spacing to conform to
83091         GNU coding style.
83092
83093         Merge from coreutils.
83094         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
83095         1. From glibc.
83096         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
83097         from Karl Berry, implemented by Jim Meyering.
83098         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
83099         from Dmitry V. Levin.
83100         Remove anachronistic cast of xrealloc.
83101         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
83102         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
83103         type. Otherwise, it wouldn't compile with at least /bin/cc on
83104         ymp-cray-unicos9.0.2.X.
83105         Combine two mostly-identical uses of alloca into one.
83106         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
83107
83108 2003-08-04  Dave Love  <d.love@dl.ac.uk>
83109
83110         [From Emacs.]
83111
83112         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
83113         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
83114         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
83115         obsolete NLIST_NAME_UNION.
83116         [__GNU__]: Undef BSD and FSCALE.
83117         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
83118
83119 2003-08-03  Paul Eggert  <eggert@twinsun.com>
83120
83121         * lib/stdbool_.h (_Bool): Make it signed char, instead of
83122         an enum type, so that it's guaranteed to promote to int.  See:
83123         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
83124
83125 2003-08-03  Karl Berry  <karl@gnu.org>
83126
83127         * config/depcomp: update from automake.
83128
83129 2003-07-31  Paul Eggert  <eggert@twinsun.com>
83130
83131         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
83132         (strerror): Don't assume that a printable int fits in 14 bytes.
83133
83134 2003-07-31  Bruno Haible  <bruno@clisp.org>
83135
83136         * modules/getpass-gnu: New file.
83137         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
83138
83139 2003-07-31  Bruno Haible  <bruno@clisp.org>
83140
83141         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
83142
83143 2003-07-24  Karl Berry  <karl@gnu.org>
83144
83145         * config/missing: update from automake.
83146
83147 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
83148             Bruno Haible  <bruno@clisp.org>
83149
83150         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
83151         * lib/getline.c (getline, getdelim): Likewise.
83152         Remove _GNU_SOURCE define; now it's defined in config.h through
83153         m4/getline.m4.
83154
83155 2003-07-23  Karl Berry  <karl@gnu.org>
83156
83157         * config/config.sub: update from prep.
83158
83159 2003-07-22  Paul Eggert  <eggert@twinsun.com>
83160
83161         * modules/xalloc (Depends-on): Add exitfail.
83162         * modules/xmemcoll: Likewise.
83163
83164 2003-07-22  Paul Eggert  <eggert@twinsun.com>
83165
83166         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
83167         over-parenthesization in macros.
83168
83169         Sync with coreutils.
83170
83171         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
83172         required by C99.
83173
83174         Use `exit_failure' for xalloc and xmemcoll instead of their own
83175         private exit-failure variables.
83176         * lib/xalloc.h (xalloc_exit_failure): Remove.
83177         * lib/xmalloc.c: Likewise.  Include exitfail.h.
83178         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
83179         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
83180         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
83181         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
83182
83183 2003-07-20  Jim Meyering  <jim@meyering.net>
83184
83185         * modules/closeout (Depends-on): Add exitfail.
83186         Suggestion from Bruno Haible.
83187
83188 2003-07-19  Karl Berry  <karl@gnu.org>
83189
83190         * config/config.sub: update from prep.
83191
83192 2003-07-18  Paul Eggert  <eggert@twinsun.com>
83193
83194         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
83195         Remove.
83196         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
83197         to test that it can stand by itself.  Include "exitfail.h".
83198         Clients should set exit_failure instead.
83199         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
83200
83201 2003-07-18  Bruno Haible  <bruno@clisp.org>
83202
83203         * modules/getndelim2: New file.
83204         * modules/getline: Share files with module getndelim2.
83205         * modules/getnline: Depend on getndelim2 instead of sharing files with
83206         it. Add getnline.c to lib_SOURCES.
83207         * MODULES.html.sh (func_all_modules): Add getndelim2.
83208
83209 2003-07-18  Bruno Haible  <bruno@clisp.org>
83210
83211         * m4/getndelim2.m4: New file.
83212         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
83213         invoke gl_PREREQ_GETNDELIM2.
83214         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
83215         gl_PREREQ_GETNDELIM2.
83216         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
83217         gl_GETNDELIM2.
83218
83219 2003-07-18  Bruno Haible  <bruno@clisp.org>
83220
83221         * lib/getndelim2.h: New file.
83222         * lib/getndelim2.c: Make into a module of its own. Include config.h,
83223         getndelim2.h.
83224         (getndelim2): Make non-static. Change return type to ssize_t.
83225         * lib/getline.h: Change argument names.
83226         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
83227         * lib/getnline.c: Include getndelim2.h.
83228
83229 2003-07-18  Andreas Schwab  <schwab@suse.de>
83230
83231         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
83232
83233 2003-07-17  Karl Berry  <karl@gnu.org>
83234
83235         * config/config.sub: update from prep.
83236
83237 2003-07-17  Bruno Haible  <bruno@clisp.org>
83238
83239         * modules/getnline: New file.
83240         * modules/getline: Add lib/getndelim2.c to source file list.
83241         * MODULES.html.sh (func_all_modules): Add getnline.
83242
83243 2003-07-17  Bruno Haible  <bruno@clisp.org>
83244
83245         * m4/getnline.m4: New file.
83246
83247 2003-07-17  Bruno Haible  <bruno@clisp.org>
83248
83249         * m4/Makefile.am.in: Remove file.
83250         * m4/Makefile.am: Remove file.
83251         * m4/Makefile.in: Remove file.
83252
83253 2003-07-17  Bruno Haible  <bruno@clisp.org>
83254
83255         * lib/getnline.h: New file.
83256         * lib/getnline.c: New file.
83257         * lib/getndelim2.c: New file, extracted from getline.c.
83258         (getndelim2): Renamed from getdelim2, with added nmax argument.
83259         * lib/getline.c: Include getndelim2.c.
83260         (getdelim2): Moved out to getndelim2.c.
83261         (getline, getdelim): Update.
83262
83263 2003-07-17  Bruno Haible  <bruno@clisp.org>
83264
83265         * lib/Makefile.am: Remove file.
83266         * lib/Makefile.in: Remove file.
83267
83268 2003-07-17  Bruno Haible  <bruno@clisp.org>
83269
83270         * configure.in: Remove file.
83271         * Makefile.in: Remove file.
83272
83273 2003-07-17  Bruno Haible  <bruno@clisp.org>
83274
83275         * MODULES.html.sh: Put the </BODY> right before </HTML>.
83276
83277 2003-07-16  Karl Berry  <karl@gnu.org>
83278
83279         * config/srclist-update: was running fixlicense twice, which caused
83280                 texinfo.tex to be nullified for some reason.  Simplify,
83281                 $gplsrc is no longer needed as far as I can see?
83282
83283 2003-07-16  Jim Meyering  <jim@meyering.net>
83284
83285         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
83286
83287 2003-07-15  Paul Eggert  <eggert@twinsun.com>
83288
83289         * config/srclist.txt: Get the following files from gettext-runtime/intl
83290         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
83291         ref-del.sin.  From Bruno Haible.
83292         * config/srclist-update (fixfile): Change grep pattern again, since the
83293         previous fix didn't work (there was another trailing $).  Use
83294         '[$]' to escape the $s.
83295
83296 2003-07-15  Karl Berry  <karl@gnu.org>
83297
83298         * lib/vasnprintf.c: update from gettext.
83299
83300 2003-07-15  Karl Berry  <karl@gnu.org>
83301
83302         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
83303         gets expanded when surrounded by '$'.
83304
83305 2003-07-15  Jim Meyering  <jim@meyering.net>
83306
83307         * modules/save-cwd: Don't depend on error.  From Derek Price.
83308
83309 2003-07-15  Jim Meyering  <jim@meyering.net>
83310
83311         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
83312
83313 2003-07-14  Simon Josefsson  <jas@extundo.com>
83314
83315         * modules/mempcpy: New file.
83316         * MODULES.html.sh (func_all_modules): Add mempcpy.
83317
83318 2003-07-14  Simon Josefsson  <jas@extundo.com>
83319
83320         * m4/mempcpy.m4: New file.
83321
83322 2003-07-14  Simon Josefsson  <jas@extundo.com>
83323
83324         * lib/mempcpy.h: New file.
83325         * lib/mempcpy.c: New file.
83326
83327 2003-07-14  Paul Eggert  <eggert@twinsun.com>
83328
83329         * modules/getdate, modules/posixtm: Depend on mktime.
83330
83331 2003-07-14  Paul Eggert  <eggert@twinsun.com>
83332
83333         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
83334         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
83335         unicodeio.c, unicodeio.h, unlocked-io.h:
83336         Switch from LGPL to GPL.
83337
83338 2003-07-14  Paul Eggert  <eggert@twinsun.com>
83339
83340         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
83341         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
83342         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
83343         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
83344         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
83345         updated automatically by ../config/srclist-update.  This changes
83346         their license from LPGL to GPL.
83347
83348 2003-07-14  Paul Eggert  <eggert@twinsun.com>
83349
83350         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
83351         assumed to refer to the root of the most recent stable gettext version.
83352         * config/srclistvars.sh: Add defaults for eggert.
83353         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
83354         Match "This program" as well as "The program".  This is needed
83355         for gettext.
83356
83357 2003-07-14  Jim Meyering  <jim@meyering.net>
83358
83359         Don't emit diagnostics.  Let callers do that.
83360         * lib/save-cwd.c: Don't include "error.h".
83361         (save_cwd): Don't call error.  Ensure that errno is valid
83362         when returning nonzero.
83363
83364         * lib/save-cwd.h (restore_cwd): Update prototype.
83365         * lib/save-cwd.c (restore_cwd): Remove two parameters.
83366         Simplify.  Don't call error upon failure.  Let callers do that.
83367         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
83368         when auditing is enabled.  But don't bother updating the #if.
83369
83370 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
83371
83372         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
83373         it breaks C++ compilation.
83374         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
83375
83376 2003-07-10  Simon Josefsson  <jas@extundo.com>
83377
83378         * modules/strchrnul (Makefile.am): Add strchrnul.h.
83379
83380 2003-07-10  Jim Meyering  <jim@meyering.net>
83381
83382         * m4/clock_time.m4: Remove trailing blank.
83383         * m4/intmax_t.m4: Likewise.
83384
83385 2003-07-10  Jim Meyering  <jim@meyering.net>
83386
83387         * lib/vasnprintf.c: Remove trailing blanks.
83388         Make cpp indentation consistent.
83389
83390 2003-07-09  Paul Eggert  <eggert@twinsun.com>
83391
83392         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
83393         posixver.c, strftime.c, strnlen.c, strverscmp.c:
83394         Switch from LGPL to GPL.
83395
83396 2003-07-09  Paul Eggert  <eggert@twinsun.com>
83397
83398         * config/srclist.txt: Sort sublists.  Add
83399         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
83400         that differ from gnulib for one reason or another; we'd like this list
83401         to be smaller but for now let's document what we have.
83402
83403 2003-07-08  Paul Eggert  <eggert@twinsun.com>
83404
83405         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
83406         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
83407         and sweeter "eval x=$x".
83408         * config/srclist.txt: Get lib/argp* from glibc.
83409
83410 2003-07-07  Paul Eggert  <eggert@twinsun.com>
83411
83412         * lib/mktime.c: Fix some boundary cases and remove need for floating
83413         point.
83414
83415         Issue a compile-time diagnostic if time_t is floating point, or if
83416         two's complement arithmetic is not in effect, or if arithmetic
83417         right shift does not propagate the sign.  These assumptions were
83418         all in the original code but they weren't checked.
83419
83420         (TIME_T_MIDPOINT, verify): New macros.
83421         (__isleap): Remove; it has integer overflow problems.
83422         (leapyear): New function, without those problems.
83423         (ydhms_tm_diff): Remove; splitting into two parts.
83424         (ydhms_diff): New function, containing the arithmetic part of
83425         the old ydhms_tm_diff function.  Issue a compile-time
83426         diagnostic if we are not using C99 integer division.
83427         Avoid casts when possible.
83428         (guess_time_tm): New function, containing the checking part of
83429         the old ydhms_tm_diff function.  Return the new value, rather than
83430         the difference between it and the old.  Accept a new argument T
83431         so that *T specifies the old value.  Check for overflow in the result.
83432
83433         (__mktime_internal): Use a time_t offset, not a long int offset.
83434         This undoes the 2003-06-04 change, which is no longer needed now
83435         that we have better overflow checking.
83436         (localtime_offset): Likewise.
83437
83438         (__mktime_internal): Avoid harmful overflow on hosts where time_t
83439         and long are 64-bit but int is only 32-bit.
83440         (ydhms_diff): Use long int to store year1 and yday1.
83441         Issue a compile-time diagnostic if long int is not wide enough.
83442
83443         (__mktime_internal): Use long int to store adjusted year and yday.
83444         Use plain C rather than preprocessor commands, if that doesn't
83445         affect efficiency.
83446         Check for overflow (and try to repair) after each probe
83447         rather than checking only at the very end.  This avoids some bugs
83448         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
83449         does not equal GMT offset at maximum time).
83450         Use integer to check for overflow rather than floating point; this
83451         is more portable to non-IEEE hosts, and is a tad faster.
83452         When we detect that we are oscillating between two values,
83453         don't check whether tm_isdst has the requested value, since
83454         we already know the answer.  When tm_isdst has the wrong value,
83455         use a different heuristic to find the right one, based on the
83456         extreme values actually observed in practice in tz2003a,
83457         rather than the (overly optimistic) "previous 3 calendar quarters".
83458
83459         (not_equal_tm, print_tm, check_result): Use "const T" rather than
83460         "T const" to accommodate glibc style.
83461         (check_result): Use less-confusing report format.  "long" -> "long int.
83462         (main): Likewise.
83463         Don't loop if the iteration overflows time_t.
83464         Allow a negative step in the iteration.
83465
83466 2003-07-06  Karl Berry  <karl@gnu.org>
83467
83468         * config/depcomp: update from automake.
83469         * config/config.sub: update from prep.
83470
83471 2003-07-03  Karl Berry  <karl@gnu.org>
83472
83473         * config/config.guess: update from prep.
83474
83475 2003-07-01  Paul Eggert  <eggert@twinsun.com>
83476
83477         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
83478         xreadlink.c now includes it unconditionally.
83479
83480 2003-07-01  Paul Eggert  <eggert@twinsun.com>
83481
83482         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
83483         having it depend on HAVE_SYS_TYPES_H.
83484
83485 2003-07-01  Bruno Haible  <bruno@clisp.org>
83486
83487         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
83488         <sys/types.h> should be sufficient.
83489         Reported by Paul Eggert.
83490
83491 2003-06-26  Karl Berry  <karl@gnu.org>
83492
83493         * config/depcomp: update from automake.
83494
83495 2003-06-26  Bruno Haible  <bruno@clisp.org>
83496
83497         * modules/human: Depend on module stdbool.
83498
83499 2003-06-25  Bruno Haible  <bruno@clisp.org>
83500
83501         * modules/readlink: New file.
83502         * modules/xreadlink: Depend on it.
83503         * MODULES.html.sh (func_all_modules): Add readlink.
83504
83505 2003-06-25  Bruno Haible  <bruno@clisp.org>
83506
83507         * m4/readlink.m4: New file.
83508
83509 2003-06-25  Bruno Haible  <bruno@clisp.org>
83510
83511         * lib/readlink.c: New file.
83512
83513 2003-06-22  Karl Berry  <karl@gnu.org>
83514
83515         * config/srclist.txt: update mkinstalldirs from automake.
83516         * config/mkinstalldirs: update.
83517
83518 2003-06-22  Bruno Haible  <bruno@clisp.org>
83519
83520         Portability to mingw32.
83521         * m4/ssize_t.m4: New file, from GNU gettext.
83522         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
83523         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
83524
83525 2003-06-22  Bruno Haible  <bruno@clisp.org>
83526
83527         * modules/safe-read: Add m4/ssize_t.m4.
83528         * modules/xreadlink: Add m4/ssize_t.m4.
83529
83530 2003-06-20  Bruno Haible  <bruno@clisp.org>
83531
83532         Assume C89, so PARAMS isn't needed.
83533         * lib/unicodeio.h (PARAMS): Remove.
83534         * lib/unicodeio.c: Don't use PARAMS.
83535
83536 2003-06-18  Karl Berry  <karl@gnu.org>
83537
83538         * config/config.{guess,sub}: update from prep.
83539
83540 2003-06-18  Jim Meyering  <jim@meyering.net>
83541
83542         Merge changes from coreutils.
83543         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
83544         Remove explicit declarations of xmalloc and realloc.
83545         Include xalloc.h.
83546         (read_utmp): Remove anachronistic cast of xmalloc.
83547
83548 2003-06-17  Paul Eggert  <eggert@twinsun.com>
83549
83550         Assume C89, so PARAMS isn't needed.
83551         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
83552         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
83553         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
83554         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
83555         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
83556         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
83557         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
83558         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
83559         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
83560         lib/xstrtod.h, lib/xstrtol.h: Likewise.
83561         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
83562         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
83563         no longer needed. Anyway, config.h should always be included before any
83564         other file.
83565
83566 2003-06-11  Simon Josefsson  <jas@extundo.com>
83567
83568         * modules/sysexits: New file.
83569         * MODULES.html.sh (func_all_modules): Add sysexits.
83570
83571 2003-06-11  Simon Josefsson  <jas@extundo.com>
83572
83573         * lib/sysexit_.h: New file.
83574
83575 2003-06-11  Derek Price  <derek@ximbiot.com>
83576
83577         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
83578         necessary.
83579
83580 2003-06-11  Bruno Haible  <bruno@clisp.org>
83581
83582         * m4/sysexits.m4: New file.
83583
83584 2003-06-10  Simon Josefsson  <jas@extundo.com>
83585
83586         * lib/argp.h: New file, from glibc.
83587         * lib/argp-ba.c: New file, from glibc.
83588         * lib/argp-eexst.c: New file, from glibc.
83589         * lib/argp-fmtstream.c: New file, from glibc.
83590         * lib/argp-fmtstream.h: New file, from glibc.
83591         * lib/argp-fs-xinl.c: New file, from glibc.
83592         * lib/argp-help.c: New file, from glibc.
83593         * lib/argp-namefrob.h: New file, from glibc.
83594         * lib/argp-parse.c: New file, from glibc.
83595         * lib/argp-pv.c: New file, from glibc.
83596         * lib/argp-pvh.c: New file, from glibc.
83597         * lib/argp-xinl.c: New file, from glibc.
83598
83599 2003-06-10  Simon Josefsson  <jas@extundo.com>
83600
83601         * modules/strchrnul: New file.
83602
83603 2003-06-10  Simon Josefsson  <jas@extundo.com>
83604
83605         * modules/argp: New file.
83606
83607 2003-06-10  Simon Josefsson  <jas@extundo.com>
83608
83609         * m4/strchrnul.m4: New file.
83610
83611 2003-06-10  Simon Josefsson  <jas@extundo.com>
83612
83613         * lib/strchrnul.h: New file.
83614         * lib/strchrnul.c: New file.
83615
83616 2003-06-10  Bruno Haible  <bruno@clisp.org>
83617
83618         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
83619
83620 2003-06-07  Karl Berry  <karl@gnu.org>
83621
83622         * config/config.{guess,sub}: update from prep.
83623
83624 2003-06-07  Jim Meyering  <jim@meyering.net>
83625
83626         * modules/strtod: Use $(...) notation, not @...@ for
83627         AC_REPLACE'd variables.
83628         * modules/localcharset: Likewise.
83629
83630 2003-06-07  Jim Meyering  <jim@meyering.net>
83631
83632         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
83633         in place of my name in the copyright comment.
83634         Remove definition and uses of __P.
83635
83636         From coreutils.
83637         * lib/stat.c: Don't declare xmalloc explicitly.
83638         Instead, include "xalloc.h".
83639         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
83640         xrealloc, and xcalloc return values.
83641         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
83642         Improve comment.
83643         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
83644
83645 2003-06-07  Bruno Haible  <bruno@clisp.org>
83646
83647         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
83648         avoid AC_CONFIG_LINKS.
83649         * modules/fnmatch (Makefile.am): Use explicit creation rule for
83650         fnmatch.h, to avoid AC_CONFIG_LINKS.
83651         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
83652
83653 2003-06-07  Bruno Haible  <bruno@clisp.org>
83654
83655         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
83656         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
83657         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
83658         directory.
83659         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
83660         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
83661         directory.
83662
83663 2003-06-06  Jim Meyering  <jim@meyering.net>
83664
83665         Merge from coreutils.
83666         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
83667         Consolidate declarations and initializations of *_base* locals.
83668
83669         Merge from coreutils.
83670         This avoids a core dump on systems without GNU putenv,
83671         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
83672         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
83673         (unsetenv): New static function, from GNU libc.
83674         (rpl_putenv): Use it.
83675
83676         * lib/modechange.c: Remove trailing blanks.
83677
83678         Merge from coreutils.
83679         * lib/fsusage.c: Remove declaration of statfs.
83680         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
83681
83682         * lib/posixtm.c: Include <stdbool.h> unconditionally.
83683
83684 2003-06-06  Jim Meyering  <jim@meyering.net>
83685
83686         * lib/stdbool_.h: Renamed from stdbool.h.in.
83687
83688 2003-06-06  Jim Meyering  <jim@meyering.net>
83689             Bruno Haible  <bruno@clisp.org>
83690
83691         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
83692         Adjust Makefile.am snippet not to redirect directly to target.
83693         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
83694
83695 2003-06-05  Paul Eggert  <eggert@twinsun.com>
83696
83697         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
83698         mismatch, look in future quarters as well as past.  This fixes a
83699         bug when processing fall-backwards gaps immediately after a long
83700         period of daylight-saving time.
83701
83702         * lib/mktime.c: Assume freestanding C89 or better.
83703         (HAVE_LIMITS_H): Remove.  Assume it's 1.
83704         (__P): Remove; not used.
83705         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
83706         (mktime, not_equal_tm, print_tm, check_result,
83707         main): Use prototypes.  Use const * where appropriate.
83708         (main): Fix typo in testing code that uncovered by above changes.
83709         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
83710
83711 2003-06-04  Paul Eggert  <eggert@twinsun.com>
83712
83713         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
83714         locale.h, localeconv.  This merges changes from coreutils.
83715
83716         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
83717         It can be removed after the next Autoconf is released.
83718         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
83719         needed.
83720
83721 2003-06-04  Paul Eggert  <eggert@twinsun.com>
83722
83723         * lib/mktime.c: Fix Debian bug 177940
83724         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
83725         (localtime_offset): Now long int, not time_t, because we want it
83726         to be guaranteed to be signed.  All uses changed.
83727         (__mktime_internal): If overflow would occur when adding offset,
83728         don't add it.
83729
83730         Merge 'human' changes from coreutils.  Rewrite to support
83731         locale-specific notations like thousands separators.
83732         * lib/human.c: Simplify authorship notice.
83733         Include human.h immediately after config.h.
83734         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
83735         <limits.h>: Do not include, since human.h does.
83736         (SIZE_MAX, UINTMAX_MAX): New macros.
83737         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
83738         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
83739         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
83740         (power_letter): Renamed from suffixes.
83741         (generate_suffix_backwards): Remove.
83742         (adjust_value): Now takes int style (because of human.h changes)
83743         and long double value (for greater precision on some platforms).
83744         (group_number): New function.
83745         (human_readable): Use it.  Use integer options, not enum.
83746         Put the options before the sizes in the arg list.
83747         Support all the new options.
83748         The old human_readable function has been removed;
83749         use inttostr.h instead.
83750         (human_readable, default_block_size, humblock):
83751         Use uintmax_t, not int, for block sizes.
83752         (human_readable_inexact, block_size_types): Remove.
83753         (block_size_opts): New constant.
83754         (human_options): Renamed from human_block_size, with new signature
83755         that allows block sizes up to UINTMAX_MAX.  All callers changed.
83756         * lib/human.h: Add copyright and authorship notice.
83757         Include <limits.h> and <stdbool.h> unconditionally.
83758         (PARAMS): Remove.  All uses removed.
83759         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
83760         (enum human_inexact_style): Remove tag; now a nameless enum.
83761         (human_floor, human_ceiling, human_round_to_even): Now have
83762         values 2, 0, 1 rather than -1, 1, 0.
83763         (human_group_digits, human_suppress_point_zero, human_autoscale,
83764         human_base_1024, human_SI, human_B): New constants.
83765         (human_readable_inexact, human_block_size): Remove.
83766         (human_readable): Size args are now uintmax_t, not int.
83767         (human_options): New decl.
83768
83769         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
83770         unnecessary now that we assume C89 or better.  This change
83771         imported from coreutils.
83772
83773         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
83774         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
83775         in the 2003-05-30 sync from glibc.
83776
83777         .h files should stand alone, but we shouldn't include <sys/types.h>
83778         if we can get away with just <stddef.h>.
83779
83780         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
83781         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
83782         rather than <sys/types.h>, as we merely need size_t.
83783         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
83784         to get size_t.
83785         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
83786         Include <stdio.h>, to get FILE.
83787         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
83788         memcasecmp.h has included <stddef.h> and all we need is size_t.
83789         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
83790         our interface, instead of including <sys/types.h>
83791
83792 2003-06-04  Paul Eggert  <eggert@twinsun.com>
83793
83794         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
83795         now, as glibc mktime is buggy on non-glibc systems.
83796
83797 2003-06-03  Karl Berry  <karl@gnu.org>
83798
83799         * config/config.sub: update from prep.
83800
83801 2003-06-02  Paul Eggert  <eggert@twinsun.com>
83802
83803         [from coreutils]
83804         Fix some minor time-related bugs with POSIX time arguments.
83805         Some valid time stamps were being rejected (notably -1, and
83806         time stamps before 1900 on 64-bit hosts).  And some invalid
83807         time stamps were being accepted, e.g. September 31.
83808
83809         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
83810         that we can return (time_t) -1 successfully.
83811         * lib/posixtm.c: Likewise.
83812         [HAVE_STDBOOL_H]: Include <stdbool.h>.
83813         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
83814         (t): Remove static var.
83815         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
83816         of static var.  All uses changed.
83817         (year): Do not reject years before 1900; they can occur with
83818         64-bit time_t.
83819         (posix_time_parse): Do not check for out-of-range components;
83820         that is now the caller's responsibility, since our checks were
83821         only approximations.
83822         (posixtime): Use mktime to check for out-of-range components,
83823         since it knows them exactly.
83824         If mktime returns (time_t) -1, check whether an error actually occurred
83825         by invoking localtime on -1.
83826         (main) [TEST_POSIXTIME]: Check for input data errors, and report
83827         posixtime failures better.
83828         Improve the test data (in comments only).
83829
83830 2003-06-02  Karl Berry  <karl@gnu.org>
83831
83832         * config/mkinstalldirs (version): new variable.
83833         (--version): new option.
83834         (usage): improve message.
83835
83836 2003-05-30  Karl Berry  <karl@gnu.org>
83837
83838         * lib/mktime.c: update from libc.
83839
83840 2003-05-30  Bruno Haible  <bruno@clisp.org>
83841
83842         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
83843         * config/config.rpath: Upgrade to gettext-0.12.1.
83844
83845 2003-05-30  Bruno Haible  <bruno@clisp.org>
83846
83847         * m4/gettext.m4: Upgrade to gettext-0.12.1.
83848         * m4/nls.m4: New file, from gettext-0.12.1.
83849         * m4/po.m4: New file, from gettext-0.12.1.
83850         * m4/progtest.m4: Upgrade to gettext-0.12.1.
83851
83852 2003-05-30  Bruno Haible  <bruno@clisp.org>
83853
83854         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
83855         * lib/localcharset.h: Likewise.
83856         * lib/localcharset.c: Likewise.
83857
83858 2003-05-29  Karl Berry  <karl@gnu.org>
83859
83860         * config/config.rpath: update from gettext.
83861
83862 2003-05-28  Paul Eggert  <eggert@twinsun.com>
83863
83864         Assume the headers required for C89 freestanding compilers.
83865         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
83866         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
83867         * m4/human.m4 (gl_HUMAN): Likewise.
83868         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
83869         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
83870         * m4/userspec.m4 (gl_USERSPEC): Likewise.
83871         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
83872         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
83873         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
83874
83875 2003-05-28  Paul Eggert  <eggert@twinsun.com>
83876
83877         Assume the headers required for C89 freestanding compilers.
83878         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
83879         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
83880         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
83881         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
83882         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
83883         define, since <limits.h> is guaranteed to do that.
83884         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
83885         * lib/exclude.c: Include <stdbool.h> unconditionally.
83886         * lib/tempname.c: Include <stddef.h> unconditionally.
83887         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
83888         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
83889         <stddef.h> does that.
83890         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
83891         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
83892         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
83893         needed.
83894         * lib/xstrtol.c: Likewise.
83895         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
83896         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
83897
83898         * lib/addext.c (addext): Use assignment rather than cast, to avoid
83899         warnings on some platforms.
83900
83901         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
83902         arbitrarily.
83903
83904 2003-05-26  Jim Meyering  <jim@meyering.net>
83905
83906         Merge in a change from coreutils:
83907         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
83908         that is guaranteed to be `no'.  Use `no_such_member' to indicate
83909         that condition, rather than `-1' which is slightly misleading.
83910         Change the name of the cache variable to have the gl_ prefix.
83911         Prompted by a patch from Richard Dawe for DJGPP.
83912
83913 2003-05-24  Karl Berry  <karl@gnu.org>
83914
83915         * config/config.guess: update from prep.
83916
83917 2003-05-22  Karl Berry  <karl@gnu.org>
83918
83919         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
83920
83921 2003-05-20  Karl Berry  <karl@gnu.org>
83922
83923         * config/config.guess: update from prep.
83924
83925 2003-05-18  Karl Berry  <karl@gnu.org>
83926
83927         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
83928         might actually be set by the user.
83929
83930         * config/depcomp, install-sh, mdate-sh: update from automake.
83931
83932 2003-05-17  Bruno Haible  <bruno@clisp.org>
83933
83934         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
83935         invalid expansion for AC_EGREP_CPP.
83936         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
83937         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
83938         Suggested by Akim Demaille <akim@epita.fr> in
83939         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
83940
83941 2003-05-12  Jim Meyering  <jim@meyering.net>
83942
83943         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
83944         the space-padded-by-default conversion specifiers, %e, %k, %l.
83945
83946 2003-05-12  Bruno Haible  <bruno@clisp.org>
83947
83948         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
83949         the string is longer than 4 KB.
83950
83951 2003-05-11  Karl Berry  <karl@gnu.org>
83952
83953         * config/config.{guess,sub}: update from prep.
83954
83955 2003-05-09  Bruno Haible  <bruno@clisp.org>
83956
83957         * modules/error: Add m4/strerror_r.m4 to file list.
83958
83959 2003-05-03  Bruno Haible  <bruno@clisp.org>
83960
83961         Upgrade to Unicode-4.0.
83962         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
83963         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
83964         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
83965         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
83966         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
83967         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
83968         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
83969         Change width of U+E0100..U+E01EF from 1 to 0.
83970
83971 2003-04-25  Jim Meyering  <jim@meyering.net>
83972
83973         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
83974         of type size_t, not int.
83975
83976 2003-04-25  Bruno Haible  <bruno@clisp.org>
83977
83978         * lib/copy-file.c: Include <stddef.h>, for size_t.
83979
83980 2003-04-21  Paul Eggert  <eggert@twinsun.com>
83981
83982         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
83983         code which expansion is under static control.  Patch imported from
83984         Akim Demaille's patch to Bison; see
83985         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
83986
83987 2003-04-14  Bruno Haible  <bruno@clisp.org>
83988
83989         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
83990
83991 2003-04-11  Jim Meyering  <jim@meyering.net>
83992
83993         Merge changes from Coreutils.
83994
83995         2003-03-22  Jim Meyering  <jim@meyering.net>
83996
83997         * lib/strftime.c (widen): Cast alloca return value to proper type.
83998
83999         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
84000
84001         From GNU libc.
84002         * lib/strftime.c (my_strftime): Handle very large width
84003         specifications for numeric values correctly.  Improve checks for
84004         overflow.
84005
84006         2003-01-19  Jim Meyering  <jim@meyering.net>
84007
84008         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
84009         definitions.
84010         (nl_get_alt_digit) [! defined my_strftime]: Define.
84011         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
84012         _nl_get_alt_digit and _nl_get_walt_digit.
84013
84014         * lib/strftime.c (my_strftime): Merge in locale-related changes from
84015         libc. These changes have no effect outside of _LIBC.
84016
84017 2003-04-10  Bruno Haible  <bruno@clisp.org>
84018
84019         * modules/findprog: New file.
84020         * MODULES.html.sh (func_all_modules): Add it.
84021
84022 2003-04-10  Bruno Haible  <bruno@clisp.org>
84023
84024         * m4/findprog.m4: New file.
84025         * m4/eaccess.m4: New file.
84026
84027 2003-04-10  Bruno Haible  <bruno@clisp.org>
84028
84029         * lib/findprog.h: New file, from GNU gettext.
84030         * lib/findprog.c: New file, from GNU gettext.
84031
84032 2003-04-05  Jim Meyering  <jim@meyering.net>
84033
84034         Merge changes from Coreutils.
84035
84036         * lib/exclude.h (PARAMS): Remove definition and uses.
84037         * lib/exclude.c: Remove uses of `PARAMS'.
84038
84039         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
84040         Add test-cases for DOS filenames. Declare program_name.
84041         (main): Set up program_name.  Patch by Rich Dawe.
84042
84043         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
84044         error from mntctl.
84045         Use mntctl's return value to drive the entry-processing loop, since
84046         we can't rely on the value of the vmt_length member in the last
84047         entry.  On some systems doing so could result in exhausting
84048         virtual memory.  Based in part on a patch from Mike Jetzer.
84049
84050 2003-04-04  Bruno Haible  <bruno@clisp.org>
84051
84052         * modules/linebreak: New file.
84053         * MODULES.html.sh (func_all_modules): Add it.
84054
84055 2003-04-04  Bruno Haible  <bruno@clisp.org>
84056
84057         * m4/linebreak.m4: New file.
84058
84059 2003-04-04  Bruno Haible  <bruno@clisp.org>
84060
84061         * lib/linebreak.h: New file, from GNU gettext.
84062         * lib/linebreak.c: New file, from GNU gettext with slight
84063         modifications.
84064         * lib/lbrkprop.h: New file, from GNU gettext.
84065
84066 2003-04-03  Bruno Haible  <bruno@clisp.org>
84067
84068         * modules/utf8-ucs4: New file.
84069         * modules/utf16-ucs4: New file.
84070         * modules/ucs4-utf8: New file.
84071         * modules/ucs4-utf16: New file.
84072         * MODULES.html.sh (func_all_modules): Add them.
84073
84074 2003-04-03  Bruno Haible  <bruno@clisp.org>
84075
84076         * m4/utf-ucs4.m4: New file.
84077         * m4/ucs4-utf.m4: New file.
84078
84079 2003-04-03  Bruno Haible  <bruno@clisp.org>
84080
84081         * lib/utf8-ucs4.h: New file, from GNU gettext.
84082         * lib/utf16-ucs4.h: New file, from GNU gettext.
84083         * lib/ucs4-utf8.h: New file, from GNU gettext.
84084         * lib/ucs4-utf16.h: New file, from GNU gettext.
84085
84086 2003-04-02  Bruno Haible  <bruno@clisp.org>
84087
84088         * modules/binary-io: New file.
84089         * MODULES.html.sh (func_all_modules): Add it.
84090
84091 2003-04-02  Bruno Haible  <bruno@clisp.org>
84092
84093         * lib/binary-io.h: New file, from GNU gettext.
84094
84095 2003-04-01  Bruno Haible  <bruno@clisp.org>
84096
84097         * modules/pathname: New file.
84098         * MODULES.html.sh (func_all_modules): Add it.
84099
84100 2003-04-01  Bruno Haible  <bruno@clisp.org>
84101
84102         * lib/pathname.h: New file, from GNU gettext.
84103         * lib/concatpath.c: New file, from GNU gettext.
84104
84105 2003-03-30  Bruno Haible  <bruno@clisp.org>
84106
84107         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
84108
84109 2003-03-30  Bruno Haible  <bruno@clisp.org>
84110
84111         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
84112         function chown() doesn't exist.
84113
84114 2003-03-28  Bruno Haible  <bruno@clisp.org>
84115
84116         * modules/copy-file: New file.
84117         * MODULES.html.sh (func_all_modules): Add it.
84118
84119 2003-03-28  Bruno Haible  <bruno@clisp.org>
84120
84121         * m4/copy-file.m4: New file.
84122
84123 2003-03-28  Bruno Haible  <bruno@clisp.org>
84124
84125         * lib/copy-file.h: New file, from GNU gettext.
84126         * lib/copy-file.c: New file, from GNU gettext.
84127
84128 2003-03-18  Jim Meyering  <jim@meyering.net>
84129
84130         * lib/quote.c (quote_n): Fix typo in comment.
84131
84132 2003-03-18  Bruno Haible  <bruno@clisp.org>
84133
84134         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
84135         checking.
84136         * m4/onceonly_2_57.m4: Likewise.
84137
84138 2003-03-17  Bruno Haible  <bruno@clisp.org>
84139
84140         * m4/onceonly.m4: Require autoconf 2.54 or newer.
84141         (m4_quote): Remove macro.
84142         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
84143
84144 2003-03-14  Jim Meyering  <jim@meyering.net>
84145
84146         Merge changes from Coreutils.
84147         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
84148         to be const, in order to avoid warnings.
84149         (obstack_room): Likewise.
84150         (obstack_empty_p): Likewise.
84151
84152 2003-03-14  Bruno Haible  <bruno@clisp.org>
84153
84154         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
84155         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
84156
84157 2003-03-13  Paul Eggert  <eggert@twinsun.com>
84158
84159         Merge changes from Bison.
84160         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
84161         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
84162         when compiling Bison 1.875's `bitset bset = obstack_alloc
84163         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
84164         * lib/hash.c: Include <stdbool.h> unconditionally.
84165
84166 2003-03-13  Paul Eggert  <eggert@twinsun.com>
84167
84168         * m4/onceonly.m4 (m4_quote): New macro.
84169         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
84170         Quote AC_FOREACH variable-expansions properly.
84171
84172 2003-03-13  Paul Eggert  <eggert@twinsun.com>
84173
84174         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
84175
84176 2003-03-09  Paul Eggert  <eggert@twinsun.com>
84177
84178         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
84179         Reported by Bruce Becker; see:
84180         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
84181
84182 2003-03-03  Paul Eggert  <eggert@twinsun.com>
84183             Bruno Haible  <bruno@clisp.org>
84184
84185         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
84186         Reported by John Hughes, see
84187         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
84188
84189 2003-02-20  Bruno Haible  <bruno@clisp.org>
84190
84191         * MODULES.html.sh (func_all_modules): Add poll.
84192
84193 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
84194
84195         * modules/poll: New file.
84196
84197 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
84198
84199         * lib/poll_.h: New file.
84200         * lib/poll.c: New file.
84201
84202 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
84203
84204         * m4/poll.m4: New file.
84205
84206 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
84207
84208         * modules/mathl: New file.
84209
84210 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
84211
84212         * lib/mathl.h: New file.
84213         * lib/acosl.c: New file.
84214         * lib/asinl.c: New file.
84215         * lib/atanl.c: New file.
84216         * lib/ceill.c: New file.
84217         * lib/cosl.c: New file.
84218         * lib/expl.c: New file.
84219         * lib/floorl.c: New file.
84220         * lib/frexpl.c: New file.
84221         * lib/ldexpl.c: New file.
84222         * lib/logl.c: New file.
84223         * lib/sincosl.c: New file.
84224         * lib/sinl.c: New file.
84225         * lib/sqrtl.c: New file.
84226         * lib/tanl.c: New file.
84227         * lib/trigl.c: New file.
84228         * lib/trigl.h: New file.
84229
84230 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
84231
84232         * m4/mathl.m4: New file.
84233
84234 2003-02-18  Bruno Haible  <bruno@clisp.org>
84235
84236         * MODULES.html.sh (func_all_modules): Add mathl.
84237
84238 2003-02-17  Bruno Haible  <bruno@clisp.org>
84239
84240         * modules/mkdtemp: New module.
84241         * MODULES.html.sh (func_all_modules): Add it.
84242
84243 2003-02-17  Bruno Haible  <bruno@clisp.org>
84244
84245         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
84246
84247 2003-02-17  Bruno Haible  <bruno@clisp.org>
84248
84249         * lib/mkdtemp.h: New file, from GNU gettext.
84250         * lib/mkdtemp.c: New file, from GNU gettext.
84251
84252 2003-02-02  Jim Meyering  <jim@meyering.net>
84253
84254         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
84255         e.g. glibc-2.2.93.
84256
84257 2003-01-31  Bruno Haible  <bruno@clisp.org>
84258
84259         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
84260         'rpl_rename'.
84261         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
84262         'rpl_strnlen'.
84263         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
84264         'rpl_strtod'.
84265         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
84266         'rpl_utime'.
84267
84268 2003-01-31  Bruno Haible  <bruno@clisp.org>
84269
84270         * lib/rename.c: #undef rename before defining rpl_rename.
84271         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
84272
84273 2003-01-30  Bruno Haible  <bruno@clisp.org>
84274
84275         * modules/vasnprintf, modules/vasprintf: New modules.
84276         * MODULES.html.sh (func_all_modules): Add them.
84277
84278 2003-01-30  Bruno Haible  <bruno@clisp.org>
84279
84280         * m4/signed.m4: New file, from GNU gettext.
84281         * m4/longdouble.m4: New file, from GNU gettext.
84282         * m4/wchar_t.m4: New file, from GNU gettext.
84283         * m4/wint_t.m4: New file, from GNU gettext.
84284         * m4/vasnprintf.m4: New file.
84285         * m4/vasprintf.m4: New file.
84286
84287 2003-01-30  Bruno Haible  <bruno@clisp.org>
84288
84289         * lib/printf-args.h: New file, from GNU gettext.
84290         * lib/printf-args.c: New file, from GNU gettext.
84291         * lib/printf-parse.h: New file, from GNU gettext.
84292         * lib/printf-parse.c: New file, from GNU gettext.
84293         * lib/vasnprintf.h: New file, from GNU gettext.
84294         * lib/vasnprintf.c: New file, from GNU gettext.
84295         * lib/asnprintf.c: New file, from GNU gettext.
84296         * lib/vasprintf.h: New file, from GNU gettext with modifications.
84297         * lib/vasprintf.c: New file, from GNU gettext.
84298         * lib/asprintf.c: New file, from GNU gettext.
84299
84300 2003-01-29  Bruno Haible  <bruno@clisp.org>
84301
84302         * modules/stpncpy: New module.
84303         * MODULES.html.sh (func_all_modules): Add it.
84304
84305 2003-01-29  Bruno Haible  <bruno@clisp.org>
84306
84307         * m4/stpncpy.m4: New file.
84308
84309 2003-01-29  Bruno Haible  <bruno@clisp.org>
84310
84311         * lib/stpncpy.h: New file, from GNU gettext with modifications.
84312         * lib/stpncpy.c: New file, from GNU gettext with modifications.
84313
84314 2003-01-28  Bruno Haible  <bruno@clisp.org>
84315
84316         * modules/c-ctype: New module.
84317         * MODULES.html.sh (func_all_modules): Add it.
84318
84319 2003-01-28  Bruno Haible  <bruno@clisp.org>
84320
84321         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
84322         Paul Eggert.
84323         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
84324         Paul Eggert.
84325
84326 2003-01-27  Bruno Haible  <bruno@clisp.org>
84327
84328         * modules/xsetenv: New module.
84329         * MODULES.html.sh (func_all_modules): Add it.
84330
84331 2003-01-27  Bruno Haible  <bruno@clisp.org>
84332
84333         * lib/xsetenv.h: New file, from GNU gettext.
84334         * lib/xsetenv.c: New file, from GNU gettext.
84335
84336 2003-01-23  Jim Meyering  <jim@meyering.net>
84337
84338         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
84339         from working on systems without dirfd (at least Irix and OSF1/Tru64).
84340
84341 2003-01-23  Bruno Haible  <bruno@clisp.org>
84342
84343         * modules/minmax: New module.
84344         * MODULES.html.sh (func_all_modules): Add it.
84345
84346 2003-01-23  Bruno Haible  <bruno@clisp.org>
84347
84348         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
84349         Eggert.
84350
84351 2003-01-22  Bruno Haible  <bruno@clisp.org>
84352
84353         * modules/exit: New module.
84354         * MODULES.html.sh (func_all_modules): Add it.
84355
84356 2003-01-22  Bruno Haible  <bruno@clisp.org>
84357
84358         * lib/exit.h: New file, from GNU gettext.
84359
84360 2003-01-19  Bruno Haible  <bruno@clisp.org>
84361
84362         * gnulib-tool: Recognize option --extract-maintainer.
84363         (func_get_maintainer): New function.
84364         * modules/*: Add Maintainer entry.
84365
84366 2003-01-16  Jim Meyering  <jim@meyering.net>
84367
84368         * m4/regex.m4: The `regex' struct is both input and output.
84369         Initialize it before each use.  Patch by Tim Waugh.
84370
84371 2003-01-16  Bruno Haible  <bruno@clisp.org>
84372
84373         * MODULES.html.sh: Add a table of contents. Add the module name as
84374         leftmost column. Add hyperlinks.
84375
84376 2003-01-15  Bruno Haible  <bruno@clisp.org>
84377
84378         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
84379
84380 2003-01-15  Bruno Haible  <bruno@clisp.org>
84381
84382         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
84383         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
84384         suffix.
84385
84386 2003-01-15  Bruno Haible  <bruno@clisp.org>
84387
84388         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
84389
84390 2003-01-15  Bruno Haible  <bruno@clisp.org>
84391
84392         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
84393         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
84394
84395 2003-01-14  Jim Meyering  <jim@meyering.net>
84396
84397         * lib/same.c (same_name): Tweak a comment.
84398
84399 2003-01-14  Bruno Haible  <bruno@clisp.org>
84400
84401         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
84402         when a string comparison is sufficient.
84403
84404 2003-01-14  Bruno Haible  <bruno@clisp.org>
84405
84406         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
84407         'unsigned int'.
84408
84409 2003-01-14  Bruno Haible  <bruno@clisp.org>
84410
84411         * lib/hash-pjw.c: Add comment about low quality of this function.
84412
84413 2003-01-13  Bruno Haible  <bruno@clisp.org>
84414
84415         * modules/stpcpy: Distribute lib/stpcpy.h.
84416         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
84417
84418 2003-01-13  Bruno Haible  <bruno@clisp.org>
84419
84420         * modules/*: Add a description.
84421         * modules/strpbrk: Fix Makefile.am snippet.
84422         * modules/strtoimax: Fix dependencies.
84423         * modules/strtoumax: Likewise.
84424
84425 2003-01-13  Bruno Haible  <bruno@clisp.org>
84426
84427         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
84428         * modules/alloca (Makefile.am): All object files depend on alloca.h.
84429         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
84430
84431 2003-01-13  Bruno Haible  <bruno@clisp.org>
84432
84433         * gnulib-tool (func_create_testdir): Store config/* files in the main
84434         directory.
84435         * config.rpath: Move to ...
84436         * config/config.rpath: ... here.
84437         * modules/gettext: Contains config/config.rpath, not config.rpath.
84438         * modules/iconv: Likewise.
84439
84440 2003-01-12  Paul Eggert  <eggert@twinsun.com>
84441
84442         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
84443         to avoid collisions with libcurses and libreadline.
84444
84445         * m4/getstr.m4: Remove.
84446         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
84447
84448 2003-01-12  Paul Eggert  <eggert@twinsun.com>
84449
84450         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
84451         to avoid collisions with libcurses and libreadline.
84452
84453         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
84454         * lib/getstr.h, getstr.c: Remove.
84455         * lib/getline.c: Include "getline.h", to check interface.
84456         Move body of old getstr.c here: this defines MIN_CHUNK and
84457         declares getdelim2, which is renamed from getstr.
84458         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
84459
84460         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
84461         All uses changed.
84462         * lib/linebuffer.h: Likewise.
84463         (readline): Remove backward-compatibility macro.
84464
84465 2003-01-12  Paul Eggert  <eggert@twinsun.com>
84466
84467         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
84468         to avoid collisions with libcurses and libreadline.
84469         * getstr: Remove.
84470         * MODULES.html.sh: Remove getstr.
84471         * modules/getline: Depend on unlocked-io, not getstr.
84472
84473 2003-01-12  Jim Meyering  <jim@meyering.net>
84474
84475         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
84476
84477 2003-01-10  Bruno Haible  <bruno@clisp.org>
84478
84479         * modules/alloca: Change Makefile.am requirements. Simplify Include
84480         requirements. Add lib/alloca_.h to file list.
84481
84482 2003-01-10  Bruno Haible  <bruno@clisp.org>
84483
84484         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
84485
84486 2003-01-10  Bruno Haible  <bruno@clisp.org>
84487
84488         * lib/alloca_.h: New file.
84489         * lib/getdate.y: Unconditionally include alloca.h.
84490         * lib/makepath.c: Likewise.
84491         * lib/setenv.c: Likewise.
84492         * lib/userspec.c: Likewise.
84493
84494 2003-01-09  Karl Berry  <karl@gnu.org>
84495
84496         * MODULES.html.sh: include `dirname $0` in PATH, to find
84497         gnulib-tool.
84498
84499 2003-01-09  Bruno Haible  <bruno@clisp.org>
84500
84501         * modules/stdbool: Change configure.ac, Makefile.am requirements.
84502         Simplify Include requirements. Add lib/stdbool.h.in to file list.
84503
84504 2003-01-09  Bruno Haible  <bruno@clisp.org>
84505
84506         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
84507
84508 2003-01-09  Bruno Haible  <bruno@clisp.org>
84509
84510         * lib/stdbool.h.in: New file.
84511
84512 2003-01-09  Bruno Haible  <bruno@clisp.org>
84513
84514         * gnulib-tool (func_all_modules): Ignore files ending in ~.
84515         * MODULES.html.sh: Likewise.
84516
84517 2003-01-08  Jim Meyering  <jim@meyering.net>
84518
84519         * lib/full-write.c: Undefine and define-away `const' after inclusion
84520         of errno.h, not before.  Suggestion from Bruno Haible.
84521
84522 2003-01-08  Bruno Haible  <bruno@clisp.org>
84523
84524         * modules/full-read: Depend on full-write.
84525
84526 2003-01-08  Bruno Haible  <bruno@clisp.org>
84527
84528         * lib/safe-read.c: Include specification header first, to ensure its
84529         selfcontainedness.
84530         * lib/full-write.c: Likewise.
84531
84532 2003-01-07  Jim Meyering  <jim@meyering.net>
84533
84534         * lib/full-write.c: Rework so that it may serve to define full_read,
84535         too.
84536         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
84537
84538 2003-01-07  Bruno Haible  <bruno@clisp.org>
84539
84540         * lib/strtoimax.c: Include <stdint.h> as an alternative to
84541         <inttypes.h>.
84542         * lib/xstrtol.h: Likewise.
84543         * lib/xstrtoimax.c: Likewise.
84544         * lib/xstrtoumax.c: Likewise.
84545         * lib/human.h: Likewise.
84546
84547         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
84548         on systems that have <inttypes.h> but not <stdint.h>.
84549
84550 2003-01-07  Bruno Haible  <bruno@clisp.org>
84551
84552         * MODULES.html.sh: Add copyright notice.
84553         (missed_files): Omit CVS directory entries.
84554         (func_module): Make it work with sed-3.02.
84555         * MODULES.txt: Remove file.
84556
84557 2003-01-06  Jim Meyering  <jim@meyering.net>
84558
84559         * lib/version-etc.c: Update year in translatable copyright string.
84560
84561 2003-01-03  Karl Berry  <karl@gnu.org>
84562
84563         * config/config.{guess,sub}: update from prep.
84564
84565 2003-01-02  Karl Berry  <karl@gnu.org>
84566
84567         * doc/COPYING.DOC: belatedly updated to 1.2.
84568
84569 2003-01-01  Karl Berry  <karl@gnu.org>
84570
84571         * gnulib-tool (func_verify_module): report module name $module in
84572         error message, not $1.
84573         * gnulib-tool (create-testdir): don't complain if destdir couldn't
84574         be created, only if it doesn't exist.
84575         * gnulib-tool (last_checkin_date): don't expand the $Date here.
84576
84577 2002-12-31  Paul Eggert  <eggert@twinsun.com>
84578
84579         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
84580
84581 2002-12-31  Paul Eggert  <eggert@twinsun.com>
84582
84583         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
84584         memcmp if strcoll doesn't work.
84585
84586 2002-12-31  Bruno Haible  <bruno@clisp.org>
84587
84588         * lib/utime.c (utime_null): No need to call ftruncate if the file was
84589         nonempty.
84590
84591 2002-12-31  Bruno Haible  <bruno@clisp.org>
84592
84593         * lib/memcoll.c (STRCOLL): New macro.
84594         (memcoll): Use it.
84595
84596 2002-12-31  Bruno Haible  <bruno@clisp.org>
84597
84598         * lib/localcharset.h: New file.
84599         * lib/localcharset.c: Include it.
84600         * lib/unicodeio.c: Likewise.
84601
84602 2002-12-31  Bruno Haible  <bruno@clisp.org>
84603
84604         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
84605         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
84606
84607 2002-12-31  Bruno Haible  <bruno@clisp.org>
84608
84609         * lib/getline.h: Include <stddef.h>, for size_t.
84610
84611         * lib/unicodeio.h: Include <stddef.h>, for size_t.
84612         * lib/unicodeio.c: Don't include <stddef.h>.
84613
84614 2002-12-31  Bruno Haible  <bruno@clisp.org>
84615
84616         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
84617         HAVE_TM_ZONE.
84618
84619 2002-12-24  Karl Berry  <karl@gnu.org>
84620
84621         * config/config.guess: update from prep.
84622
84623 2002-12-24  Bruno Haible  <bruno@clisp.org>
84624
84625         General infrasructure.
84626         * m4/README: Rewritten.
84627         * m4/onceonly.m4: New file.
84628         * m4/onceonly_2_57.m4: New file.
84629
84630         Module atexit.
84631         * m4/atexit.m4: New file.
84632
84633         Module strtod.
84634         * m4/strtod.m4: New file.
84635
84636         Module strtol.
84637         * m4/strtol.m4: New file.
84638
84639         Module strtoul.
84640         * m4/strtoul.m4: New file.
84641
84642         Module memchr.
84643         * m4/memchr.m4: New file.
84644
84645         Module memcmp.
84646         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
84647         (jm_FUNC_MEMCMP): Invoke it.
84648
84649         Module memcpy.
84650         * m4/memcpy.m4: New file.
84651
84652         Module memmove.
84653         * m4/memmove.m4: New file.
84654
84655         Module memset.
84656         * m4/memset.m4: New file.
84657
84658         Module strcspn.
84659         * m4/strcspn.m4: New file.
84660
84661         Module strpbrk.
84662         * m4/strpbrk.m4: New file.
84663
84664         Module strstr.
84665         * m4/strstr.m4: New file.
84666
84667         Module strerror.
84668         * m4/strerror.m4: New file.
84669
84670         Module mktime.
84671         * m4/mktime.m4: Renamed from jm-mktime.m4.
84672         (gl_PREREQ_MKTIME): New macro.
84673         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
84674
84675         Module malloc.
84676         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
84677         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
84678         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
84679
84680         Module realloc.
84681         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
84682         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
84683         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
84684
84685         Module strftime.
84686         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
84687         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
84688         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
84689         gl_TM_GMTOFF.
84690         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
84691
84692         Module xalloc.
84693         * m4/xalloc.m4: New file.
84694
84695         Module alloca.
84696         * m4/alloca.m4: New file.
84697
84698         Module putenv.
84699         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
84700         (jm_FUNC_PUTENV): Invoke it.
84701
84702         Module setenv.
84703         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
84704         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
84705         when invoked twice.
84706         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
84707         gt_FUNC_SETENV.
84708
84709         Module memrchr.
84710         * m4/memrchr.m4: New file.
84711
84712         Module stpcpy.
84713         * m4/stpcpy.m4: New file.
84714
84715         Module strcase.
84716         * m4/strcase.m4: New file.
84717
84718         Module strdup.
84719         * m4/strdup.m4: New file.
84720
84721         Module strnlen.
84722         * m4/strnlen.m4: New file.
84723
84724         Module strndup.
84725         * m4/strndup.m4: New file.
84726
84727         Module xstrtod.
84728         * m4/xstrtod.m4: New file.
84729
84730         Module xstrtol.
84731         * m4/xstrtol.m4: New file.
84732
84733         Module getdate.
84734         * m4/getdate.m4: New file.
84735
84736         Module unlocked-io.
84737         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
84738         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
84739         * m4/jm-glibc-io.m4n: Remove file.
84740
84741         Module long-options.
84742         * m4/long-options.m4: New file.
84743
84744         Module md5.
84745         * m4/md5.m4: New file.
84746
84747         Module sha.
84748         * m4/sha.m4: New file.
84749
84750         Module getstr.
84751         * m4/getstr.m4: New file.
84752
84753         Module getline.
84754         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
84755         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
84756         <sys/types.h>, for size_t. Use the function name gnu_getline, not
84757         simply getline. Infoke gl_PREREQ_GETLINE.
84758
84759         Module obstack.
84760         * m4/obstack.m4: New file.
84761
84762         Module hash.
84763         * m4/hash.m4: New file.
84764
84765         Module readtokens.
84766         * m4/readtokens.m4: New file.
84767
84768         Module strverscmp.
84769         * m4/strverscmp.m4: New file.
84770
84771         Module stdbool.
84772         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
84773         OSF/1.
84774
84775         Module strtoll.
84776         * m4/strtoll.m4: New file.
84777
84778         Module strtoull.
84779         * m4/strtoull.m4: New file.
84780
84781         Module strtoimax.
84782         * m4/strtoimax.m4: New file.
84783
84784         Module strtoumax.
84785         * m4/strtoumax.m4: New file.
84786
84787         Module xstrtoimax.
84788         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
84789         jm_AC_PREREQ_XSTRTOIMAX.
84790         Moved the strtol prerequisites to strtol.m4.
84791         Moved the strtoll prerequisites to strtoll.m4.
84792         Moved the strtoimax prerequisites to strtoimax.m4.
84793
84794         Module xstrtoumax.
84795         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
84796         jm_AC_PREREQ_XSTRTOUMAX.
84797         Moved the strtoul prerequisites to strtoul.m4.
84798         Moved the strtoull prerequisites to strtoull.m4.
84799         Moved the strtoumax prerequisites to strtoumax.m4.
84800
84801         Module chown.
84802         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
84803         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
84804
84805         Module dup2.
84806         * m4/dup2.m4: New file.
84807
84808         Module ftruncate.
84809         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
84810         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
84811
84812         Module getgroups.
84813         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
84814         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
84815
84816         Module gettimeofday.
84817         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
84818         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
84819         gl_PREREQ_GETTIMEOFDAY.
84820
84821         Module mkdir.
84822         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
84823         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
84824
84825         Module mkstemp.
84826         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
84827         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
84828         jm_AC_TYPE_UINTMAX_T.
84829         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
84830
84831         Module stat.
84832         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
84833         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
84834
84835         Module lstat.
84836         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
84837         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
84838
84839         Module timespec.
84840         * m4/timespec.m4 (gl_TIMESPEC): New macro.
84841         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
84842         * m4/st_mtim.m4: Indentation.
84843
84844         Module nanosleep.
84845         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
84846         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
84847         gl_PREREQ_NANOSLEEP.
84848
84849         Module regex.
84850         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
84851         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
84852         (gl_REGEX): New macro.
84853
84854         Module rename.
84855         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
84856         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
84857
84858         Module rmdir.
84859         * m4/rmdir.m4: New file.
84860
84861         Module utime.
84862         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
84863         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
84864         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
84865
84866         Module dirname.
84867         * m4/dirname.m4: New file.
84868
84869         Module getopt.
84870         * m4/getopt.m4: New file.
84871
84872         Module unistd-safer.
84873         * m4/unistd-safer.m4: New file.
84874
84875         Module fnmatch.
84876         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
84877         declaration.
84878         (gl_PREREQ_FNMATCH_EXTRA): New macro.
84879         (gl_FUNC_FNMATCH_POSIX): New macro.
84880         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
84881         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
84882         simply fnmatch.
84883
84884         Module exclude.
84885         * m4/exclude.m4: New file.
84886
84887         Module human.
84888         * m4/human.m4: New file.
84889
84890         Module acl.
84891         * m4/acl.m4: Nop.
84892
84893         Module backupfile.
84894         * m4/backupfile.m4: New file.
84895         * m4/d-ino.m4: Indentation.
84896
84897         Module fsusage.
84898         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
84899         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
84900         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
84901
84902         Module dirfd.
84903         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
84904         requirements.
84905
84906         Module euidaccess.
84907         * m4/euidaccess.m4: New file.
84908
84909         Module file-type.
84910         * m4/file-type.m4: New file.
84911
84912         Module fileblocks.
84913         * m4/fileblocks.m4: New file.
84914
84915         Module filemode.
84916         * m4/filemode.m4: New file.
84917
84918         Module isdir.
84919         * m4/isdir.m4: New file.
84920
84921         Module lchown.
84922         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
84923         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
84924
84925         Module makepath.
84926         * m4/makepath.m4: New file.
84927
84928         Module modechange.
84929         * m4/modechange.m4: New file.
84930
84931         Module mountlist.
84932         * m4/mountlist.m4: New file.
84933         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
84934         Indentation.
84935
84936         Module path-concat.
84937         * m4/path-concat.m4: New file.
84938
84939         Module pathmax.
84940         * m4/pathmax.m4: New file.
84941
84942         Module same.
84943         * m4/same.m4: New file.
84944
84945         Module save-cwd.
84946         * m4/save-cwd.m4: New file.
84947
84948         Module savedir.
84949         * m4/savedir.m4: New file.
84950
84951         Module xgetcwd.
84952         * m4/xgetcwd.m4: New file.
84953         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
84954
84955         Module xreadlink.
84956         * m4/xreadlink.m4: New file.
84957
84958         Module safe-read.
84959         * m4/safe-read.m4: New file.
84960
84961         Module safe-write.
84962         * m4/safe-write.m4: New file.
84963
84964         Module closeout.
84965         * m4/closeout.m4: New file.
84966
84967         Module stdio-safer.
84968         * m4/stdio-safer.m4: New file.
84969
84970         Module getpass.
84971         * m4/getpass.m4: New file.
84972
84973         Module getugroups.
84974         * m4/getugroups.m4: New file.
84975
84976         Module group-member.
84977         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
84978         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
84979
84980         Module idcache.
84981         * m4/idcache.m4: New file.
84982
84983         Module userspec.
84984         * m4/userspec.m4: New file.
84985
84986         Module gettime.
84987         * m4/clock_time.m4: New file.
84988         * m4/gettime.m4: New file.
84989
84990         Module settime.
84991         * m4/settime.m4: New file.
84992
84993         Module posixtm.
84994         * m4/posixtm.m4: New file.
84995
84996         Module gethostname.
84997         * m4/gethostname.m4: New file.
84998
84999         Module canon-host.
85000         * m4/canon-host.m4: New file.
85001
85002         Module gettext.
85003         * m4/codeset.m4: New file, from gettext-0.11.5.
85004         * m4/gettext.m4: New file, from gettext-0.11.5.
85005         * m4/glibc21.m4: New file, from gettext-0.11.5.
85006         * m4/iconv.m4: New file, from gettext-0.11.5.
85007         * m4/intdiv0.m4: New file, from gettext-0.11.5.
85008         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
85009         * m4/inttypes.m4: New file, from gettext-0.11.5.
85010         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
85011         * m4/isc-posix.m4: New file, from gettext-0.11.5.
85012         * m4/lcmessage.m4: New file, from gettext-0.11.5.
85013         * m4/lib-ld.m4: New file, from gettext-0.11.5.
85014         * m4/lib-link.m4: New file, from gettext-0.11.5.
85015         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
85016         * m4/progtest.m4: New file, from gettext-0.11.5.
85017         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
85018         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
85019         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
85020
85021         Module localcharset.
85022         * m4/localcharset.m4: New file.
85023
85024         Module hard-locale.
85025         * m4/hard-locale.m4: New file.
85026
85027         Module mbswidth.
85028         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
85029         onceonly macros.
85030         * m4/mbrtowc.m4: Add comment.
85031
85032         Module memcasecmp.
85033         * m4/memcasecmp.m4: New file.
85034
85035         Module memcoll.
85036         * m4/memcoll.m4: New file.
85037
85038         Module unicodeio.
85039         * m4/unicodeio.m4: New file.
85040
85041         Module rpmatch.
85042         * m4/rpmatch.m4: New file.
85043
85044         Module yesno.
85045         * m4/yesno.m4: New file.
85046
85047         Module exitfail.
85048         * m4/exitfail.m4: New file.
85049
85050         Module c-stack.
85051         * m4/c-stack.m4 (gl_C_STACK): New macro.
85052         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
85053
85054         Module error.
85055         * m4/error.m4 (gl_ERROR): New macro.
85056         (jm_PREREQ_ERROR): Use onceonly macros.
85057
85058         Module fatal.
85059         * m4/fatal.m4: New file.
85060
85061         Module getloadavg.
85062         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
85063         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
85064
85065         Module getpagesize.
85066         * m4/getpagesize.m4: New file.
85067
85068         Module getusershell.
85069         * m4/getusershell.m4: New file.
85070
85071         Module physmem.
85072         * m4/physmem.m4: New file.
85073
85074         Module posixver.
85075         * m4/posixver.m4: New file.
85076
85077         Module quotearg.
85078         * m4/quotearg.m4: New file.
85079
85080         Module quote.
85081         * m4/quote.m4: New file.
85082
85083         Module readutmp.
85084         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
85085
85086         Module sig2str.
85087         * m4/sig2str.m4: New file.
85088
85089         Other.
85090         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
85091         ulonglong.m4.
85092         * m4/intmax_t.m4: New file.
85093         * m4/d-type.m4: Indentation.
85094         * m4/jm-macros.m4: Update.
85095         * m4/prereq.m4 (jm_PREREQ): Update.
85096         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
85097         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
85098         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
85099         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
85100         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
85101         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
85102         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
85103         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
85104         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
85105         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
85106         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
85107         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
85108         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
85109         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
85110         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
85111         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
85112         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
85113         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
85114         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
85115
85116 2002-12-24  Bruno Haible  <bruno@clisp.org>
85117
85118         * MODULES.txt: Update according to m4/ changes.
85119
85120         Module gettext.
85121         * config.rpath: New file, from gettext-0.11.5.
85122
85123         * modules/*: New module descriptions.
85124         * gnulib-tool: New file.
85125         * MODULES.html.sh: New file.
85126
85127 2002-12-21  Karl Berry  <karl@gnu.org>
85128
85129         * doc/fdl.texi: update to version 1.2.
85130
85131 2002-12-19  Karl Berry  <karl@gnu.org>
85132
85133         * config/config.guess: update from prep.
85134
85135 2002-12-18  Bruno Haible  <bruno@clisp.org>
85136
85137         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
85138         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
85139
85140 2002-12-17  Bruno Haible  <bruno@clisp.org>
85141
85142         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
85143         stdlib.h, string.h.
85144
85145 2002-12-17  Bruno Haible  <bruno@clisp.org>
85146
85147         * lib/canon-host.c (strdup): Remove unused declaration.
85148
85149         * lib/fsusage.c: Include full_read.h.
85150         (get_fs_usage): Use full_read instead of safe_read.
85151
85152         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
85153
85154 2002-12-12  Karl Berry  <karl@gnu.org>
85155
85156         * config/config.guess: update from prep.
85157
85158 2002-12-11  Bruno Haible  <bruno@clisp.org>
85159
85160         * m4/setenv.m4: New file, from gettext-0.11.5.
85161
85162 2002-12-11  Bruno Haible  <bruno@clisp.org>
85163
85164         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
85165         not unsetenv().
85166         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
85167         modifications:
85168
85169         2002-12-11  Bruno Haible  <bruno@clisp.org>
85170
85171                 * setenv.c (alloca): Fall back to malloc.
85172                 (freea): New macro.
85173                 (setenv): Use freea() to free memory allocated with alloca().
85174
85175         2002-11-13  Bruno Haible  <bruno@clisp.org>
85176
85177                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
85178                 function declarations.
85179                 * unsetenv.c (unsetenv): Likewise.
85180
85181         2002-03-04  Bruno Haible  <bruno@clisp.org>
85182
85183                 Portability to AIX 4.3.3.
85184                 * unsetenv.c: New file, extracted from setenv.c.
85185                 * setenv.c: Move the unsetenv() function to unsetenv.c.
85186
85187         2001-12-20  Bruno Haible  <bruno@clisp.org>
85188
85189                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
85190                 use malloc instead. For SunOS 4.
85191
85192         2001-12-11  Bruno Haible  <bruno@clisp.org>
85193
85194                 * setenv.c: Declare alloca.
85195                 (compar_fn_t): New typedef.
85196                 (KNOWN_VALUE, STORE_VALUE): Use it.
85197
85198         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
85199         setenv.h.
85200
85201 2002-12-10  Paul Eggert  <eggert@twinsun.com>
85202
85203         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
85204         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
85205         Choose values that are less likely to collide with system fnmatch
85206         options.
85207         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
85208         defined (e.g., a pure POSIX system).
85209         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
85210         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
85211
85212 2002-12-06  Paul Eggert  <eggert@twinsun.com>
85213
85214         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
85215         a pain in practice to deal with generated m4 files.  This change
85216         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
85217
85218         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
85219         and jm-glibc-io.m4, as they are no longer a special case.
85220         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
85221         kludge and the auto-generation stuff.  Check only whether the
85222         functions are declared, not whether they exist, since older hosts
85223         that don't declare the functions can't use the optimization anyway.
85224
85225 2002-12-06  Jim Meyering  <jim@meyering.net>
85226
85227         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
85228
85229         Merge in changes from libc's misc/error.c, in preparation
85230         for the merge of gnulib's changes back into libc.
85231
85232         * lib/error.c (_): Define only if not already defined.
85233         Move definition to follow all #include directives.
85234         Include unlocked-io.h only if !_LIBC.
85235         [_LIBC]: Include <libio/libioP.h>.
85236         [USE_IN_LIBIO]: Include <libio/iolibio.h>
85237         (fflush): Tweak definition to use INTUSE.
85238         (putc): Define.
85239
85240 2002-12-05  Paul Eggert  <eggert@twinsun.com>
85241
85242         * lib/alloca.c [defined emacs]: Include "lisp.h".
85243         (xalloc_die) [defined emacs]: New macro.
85244         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
85245         [! defined emacs]: Include <xalloc.h>.
85246         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
85247         (pointer): Typedef to POINTER_TYPE *.
85248         (malloc): Remove decl; we now always use xmalloc.
85249         (alloca): Use old-style definition, since Emacs needs this.
85250         Check for arithmetic overflow when computing combined size.
85251
85252 2002-12-04  Paul Eggert  <eggert@twinsun.com>
85253
85254         Do not generate unlocked-io.h automatically, since it's easier to
85255         maintain it by hand.
85256
85257         * lib/unlocked-io.h: New file, from GNU diffutils,
85258         but with proper copyright notice and attribution.
85259         * lib/gen-uio: Remove.
85260         * lib/Makefile.am: Add copyright notice.
85261         (libfetish_a_SOURCES): Add unlocked-io.h.
85262         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
85263         (DISTCLEANFILES, io_functions): Remove macros.
85264         (EXTRA_DIST): Remove gen_uio.
85265         (unlocked-io.h): Remove rule.
85266
85267 2002-12-04  Jim Meyering  <jim@meyering.net>
85268
85269         Reflect the fact that stat.c and lstat.c are no longer generated.
85270         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
85271         (DISTCLEANFILES): Likewise.
85272         (EXTRA_DIST): Likewise.
85273         (all_local): Don't depend on stat.c or lstat.c.
85274         (stat.c, lstat.c): Remove rules.
85275         (EXTRA_DIST): Remove xstat.in.
85276
85277         * lib/xstat.in: Remove file.  Contents moved into stat.c.
85278         * lib/stat.c: New file.  Contents mostly from xstat.in.
85279         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
85280         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
85281
85282         * lib/safe-read.c: Rework so that it may serve to define safe_write,
85283         too.
85284         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
85285
85286 2002-12-03  Jim Meyering  <jim@meyering.net>
85287
85288         * lib/safe-read.c, safe-write.c: Change variable names and comments,
85289         but not semantics, to minimize the differences between these two files.
85290         (safe_read): Change comment to mention SAFE_READ_ERROR.
85291
85292         * lib/safe-read.c (IS_EINTR): Define.
85293         (safe_read): Use IS_EINTR in place of in-function cpp directives.
85294
85295 2002-12-02  Jim Meyering  <jim@meyering.net>
85296
85297         * lib/safe-read.c (EINTR): Define.
85298         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
85299         (INT_MAX): Provide fallback.
85300         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
85301
85302         * lib/safe-read.h (SAFE_READ_ERROR): Define.
85303
85304 2002-12-02  Bruno Haible  <bruno@clisp.org>
85305
85306         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
85307         Define, taken from safe-read.c.
85308         (INT_MAX): Provide fallback.
85309         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
85310         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
85311
85312         * lib/safe-read.c (EINTR): Remove definition.
85313         (safe_read): Don't use EINTR if it is absent.
85314
85315 2002-12-01  Jim Meyering  <jim@meyering.net>
85316
85317         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
85318         zero.
85319         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
85320
85321 2002-11-27  Paul Eggert  <eggert@twinsun.com>
85322
85323         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
85324         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
85325         with `if (! (value < limit)) abort ();', for readability.
85326
85327 2002-11-26  Karl Berry  <karl@gnu.org>
85328
85329         * lib/strdup.c: copy from libc again, with jim's ok.
85330         * lib/.cppi-disable: re-add strdup.c
85331
85332 2002-11-25  Karl Berry  <karl@gnu.org>
85333
85334         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
85335         instead of "strtol.c".
85336
85337 2002-11-25  Karl Berry  <karl@gnu.org>
85338
85339         * config/install-sh: update from automake for variable quoting, $0 in
85340         error msgs, etc.
85341
85342         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
85343         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
85344         entry.
85345
85346 2002-11-25  Jim Meyering  <jim@meyering.net>
85347
85348         * lib/mktime.c: Sync from libc, now that it has the latest fix.
85349
85350 2002-11-24  Karl Berry  <karl@gnu.org>
85351
85352         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
85353         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
85354
85355 2002-11-24  Jim Meyering  <jim@meyering.net>
85356
85357         Update from coreutils:
85358
85359         * lib/mktime.c: Merge in changes from libc.
85360
85361         Avoid a link-time failure on some Linux systems.
85362         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
85363         (otherwise).
85364         (__mon_yday): Declare with the STATIC attribute.
85365         (__mktime_internal): Likewise.
85366         Based on a report from Greg Schafer.
85367
85368 2002-11-23  Jim Meyering  <jim@meyering.net>
85369
85370         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
85371         Use `unsigned', not `int', as type of index.
85372
85373         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
85374
85375         * lib/fsusage.c: Remove unneeded parentheses around operands of
85376         `defined'.
85377
85378 2002-11-22  Paul Eggert  <eggert@twinsun.com>
85379
85380         * lib/quotearg.h: Allow multiple inclusion by surrounding with
85381         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
85382         so that we can be included first.
85383         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
85384         * lib/quotearg.c: Include quotearg.h immediately after config.h.
85385         No need to include stddef.h or sys/types.h any more.
85386         Surround local include files with "", not "<>".
85387         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
85388         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
85389         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
85390         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
85391         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
85392         (ISPRINT): Remove; no longer needed now that we assume C89.
85393
85394         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
85395         Preserve errno.
85396
85397         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
85398         quotearg_char): Use SIZE_MAX rather than
85399         (size_t) -1 when we are talking about "infinity".
85400
85401         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
85402
85403 2002-11-22  Paul Eggert  <eggert@twinsun.com>
85404
85405         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
85406         hint that one should use `if (! x) abort ();' rather than `assert
85407         (x);', and anyway it's one less thing to worry about configuring.
85408         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
85409         hash_rehash, hash_insert): Use abort rather than assert.
85410
85411 2002-11-22  Bruno Haible  <bruno@clisp.org>
85412
85413         * lib/safe-read.h: Assume C89. Add comments.
85414         (safe_read): Change return type to size_t.
85415         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
85416         byte counts > SSIZE_MAX correctly.
85417         * lib/safe-write.h: New file.
85418         * lib/safe-write.c: New file.
85419         * lib/full-read.h: New file.
85420         * lib/full-read.c: New file.
85421         * lib/full-write.h: Assume C89. Add comments.
85422         * lib/full-write.c: Include safe-write.h.
85423         (full_write): Rewritten to use safe_write.
85424         Suggested by Jim Meyering and Paul Eggert.
85425
85426 2002-11-21  Jim Meyering  <jim@meyering.net>
85427
85428         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
85429
85430         Merge in changes from the coreutils.
85431
85432         2002-09-25  Paul Eggert  <eggert@twinsun.com>
85433         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
85434         <stdint.h>.
85435         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
85436         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
85437         int.  Work more efficiently if X is the same width as uintmax_t.
85438         Do not compare X to -1, to avoid bogus compiler warning.
85439         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
85440         Don't assume that f_frsize and f_bsize are the same type.
85441
85442         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
85443         warning on FreeBSD.
85444
85445         * lib/makepath.c (make_path): Restore umask *before* creating the final
85446         component.
85447         (make_path): Minor reformatting.
85448
85449         * lib/xmalloc.c: Adjust to work with new autoconf macros,
85450         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
85451         HAVE_MALLOC/HAVE_REALLOC.
85452
85453         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
85454         dummy ones.  At least on GNU/Linux systems, `auto' means something
85455         else.
85456         From Michael Stone.
85457
85458 2002-11-21  Bruno Haible  <bruno@clisp.org>
85459
85460         Remove case insensitive option matching.
85461         * lib/argmatch.h (argcasematch): Remove declaration.
85462         (ARGCASEMATCH): Remove macro.
85463         (__xargmatch_internal): Remove case_sensitive argument.
85464         (XARGMATCH): Update.
85465         (XARGCASEMATCH): Remove macro.
85466         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
85467         case_sensitive argument.
85468         (argcasematch): Remove function.
85469         (__xargmatch_internal): Remove case_sensitive argument.
85470         (main): Use XARGMATCH instead of XARGCASEMATCH.
85471
85472         * lib/xmalloc.c: Change compile-time error message. Add comment about
85473         required autoconf version.
85474
85475 2002-11-20  Paul Eggert  <eggert@twinsun.com>
85476
85477         Merge argmatch cleanups from Bison.  Assume C89.
85478
85479         * lib/argmatch.c: Include config.h here, not in argmatch.h.
85480         Include stdlib.h, for EXIT_FAILURE.
85481         Always include <string.h>, since we assume C89.
85482         (EXIT_FAILURE): Remove pre-C89 bug workaround.
85483         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
85484         Include <stddef.h> instead, since it's all we need for size_t.
85485         (PARAMS): Remove.  All uses removed.
85486         (ARRAY_CARDINALITY): Do not bother to #undef.
85487         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
85488         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
85489         Remove unnecessary parentheses.
85490         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
85491         Insert necessary parentheses.
85492         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
85493         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
85494
85495 2002-11-19  Bruno Haible  <bruno@clisp.org>
85496
85497         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
85498         * lib/mbswidth.h: Include <stddef.h>, for size_t.
85499
85500         * lib/mbswidth.h (PARAMS): Remove macro.
85501         (mbswidth, mbsnwidth): Use ANSI C function declarations.
85502         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
85503
85504         * lib/gcd.h (PARAMS): Remove macro.
85505         (gcd): Use ANSI C function declarations.
85506         * lib/gcd.c (gcd): Likewise.
85507
85508 2002-11-15  Bruno Haible  <bruno@clisp.org>
85509
85510         * lib/strcspn.c: Include <stddef.h>.
85511         (strcspn): Use ANSI C function declaration. Change return type to
85512         size_t. Use NULL.
85513         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
85514         (strpbrk): Use NULL.
85515         * lib/strpbrk.h (PARAMS): Remove macro.
85516         (strpbrk): Use ANSI C function declaration.
85517         * lib/strstr.c: Don't include <sys/types.h>.
85518         * lib/strstr.h (PARAMS): Remove macro.
85519         (strstr): Use ANSI C function declarations.
85520
85521 2002-11-14  Karl Berry  <karl@gnu.org>
85522
85523         * config/mkinstalldirs: `do' on separate line, instead of
85524         `for var; do'.
85525
85526 2002-11-06  Bruno Haible  <bruno@clisp.org>
85527
85528         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
85529         * lib/gcd.c (gcd): Likewise.
85530
85531 2002-11-05  Bruno Haible  <bruno@clisp.org>
85532
85533         * lib/gcd.h: New file, from gettext-0.11.5.
85534         * lib/gcd.c: New file, from gettext-0.11.5.
85535
85536 2002-11-05  Bruno Haible  <bruno@clisp.org>
85537
85538         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
85539         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
85540         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
85541         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
85542
85543         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
85544         <libintl.h>.
85545         * lib/makepath.c: Include gettext.h instead of <locale.h> and
85546         <libintl.h>.
85547
85548         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
85549         * lib/human.c: Include gettext.h instead of <libintl.h>.
85550         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
85551         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
85552         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
85553         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
85554         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
85555         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
85556         (textdomain): Remove definition.
85557         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
85558
85559         * lib/long-options.c: Remove include of <libintl.h> and definition of
85560         _.
85561         * lib/same.c: Remove include of <libintl.h> and definition of _.
85562
85563 2002-11-04  Owen Taylor  <otaylor@redhat.com>
85564
85565         * lib/config.charset: A few additions for Solaris.
85566
85567 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
85568
85569         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
85570         * lib/localcharset.c (locale_charset): Declare as extern "C".
85571
85572 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
85573
85574         * lib/config.charset: msdos in uk_UA uses CP1125.
85575
85576 2002-11-04  Bruno Haible  <bruno@clisp.org>
85577
85578         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
85579         * lib/strcase.h: New file, from GNU gettext-0.11.5.
85580         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
85581         * lib/strstr.h: New file, from GNU gettext-0.11.5.
85582         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
85583
85584 2002-11-04  Bruno Haible  <bruno@clisp.org>
85585
85586         * lib/localcharset.c (locale_charset): Don't return an empty string.
85587
85588 2002-11-04  Bruno Haible  <bruno@clisp.org>
85589
85590         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
85591         aliases.
85592
85593 2002-11-04  Bruno Haible  <bruno@clisp.org>
85594
85595         * lib/config.charset: Update for newest glibc. Add canonical names
85596         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
85597
85598 2002-11-04  Bruno Haible  <bruno@clisp.org>
85599
85600         * lib/config.charset: Add support for NetBSD.
85601
85602 2002-11-04  Bruno Haible  <bruno@clisp.org>
85603
85604         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
85605
85606 2002-11-01  Bruno Haible  <bruno@clisp.org>
85607
85608         * configure.in: Add AC_CONFIG_AUX_DIR call.
85609         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
85610         test/Makefile.
85611         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
85612
85613 2002-09-28  Karl Berry  <karl@gnu.org>
85614
85615         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
85616         installed automake until the next release, since changes have been
85617         made.
85618
85619 2002-09-25  Karl Berry  <karl@gnu.org>
85620
85621         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
85622         * lib/getopt*: copy from libc/posix.
85623         * lib/gettext.h: copy from gettext.
85624         * lib/.cppi-disable: add strdup.c, gettext.h.
85625
85626 2002-09-25  Karl Berry  <karl@gnu.org>
85627
85628         * config/srclist.txt: enable gettext.h check.
85629         * config/config.{guess,sub}: update from prep.
85630         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
85631                 from automake 1.6.3.
85632         See srclist*.
85633
85634 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
85635
85636         * regex.c (PATFETCH): Remove the translating fetch.
85637         (PATFETCH_RAW): Rename to PATFETCH.
85638         (set_image_of_range): New fun.
85639         (SET_RANGE_TABLE_WORK_AREA): Use it.
85640         (regex_compile): Don't translate the pattern chars so eagerly.
85641         Only do it when inserting an `exactn' bytecode or when handling
85642         a char-range.
85643         (mutually_exclusive_p): Avoid empty statement.
85644
85645 2002-07-06  Jim Meyering  <meyering@lucent.com>
85646
85647         * m4/README: Don't mention Makefile.am.in.
85648         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
85649
85650 2002-07-01  Jim Meyering  <meyering@lucent.com>
85651
85652         * lib/c-stack.c: Include sys/time.h.
85653         From Volker Borchert.
85654
85655 2002-06-26  Paul Eggert  <eggert@twinsun.com>
85656
85657         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
85658
85659 2002-06-26  Paul Eggert  <eggert@twinsun.com>
85660
85661         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
85662         New macro.  Use it uniformly instead of
85663         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
85664         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
85665         reported by Vin Shelton.
85666
85667 2002-06-22  Paul Eggert  <eggert@twinsun.com>
85668
85669         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
85670         Do not assume SA_SIGINFO behavior.
85671         Bug reported by Jim Meyering on NetBSD 1.5.2.
85672
85673 2002-06-22  Jim Meyering  <meyering@lucent.com>
85674
85675         * m4/c-stack.m4: New file, from diffutils-2.8.2.
85676         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
85677
85678         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
85679         now that configure.ac uses AC_GNU_SOURCE.
85680         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
85681         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
85682
85683         Update to latest tools.  Suggestions from Paul Eggert.
85684         * m4/stdbool.m4: New file, from diffutils-2.8.2.
85685         * m4/gnu-source.m4: Update from diffutils-2.8.2.
85686         * m4/fnmatch.m4: Likewise.
85687         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
85688         to AC_HEADER_STDBOOL
85689
85690 2002-06-22  Jim Meyering  <meyering@lucent.com>
85691
85692         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
85693         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
85694
85695 2002-06-22  Jim Meyering  <meyering@lucent.com>
85696
85697         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
85698
85699         * lib/exitfail.c, exitfail.h: Likewise.
85700         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
85701
85702         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
85703         of fnmatch.h.
85704         (EXTRA_DIST): Add fnmatch_loop.c.
85705         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
85706
85707         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
85708         * lib/fnmatch.c: Update from diffutils-2.8.2.
85709         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
85710         * lib/fnmatch.h: Remove file.
85711
85712 2002-06-21  Jim Meyering  <meyering@lucent.com>
85713
85714         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
85715         * m4/mbrtowc.m4: Likewise.
85716
85717         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
85718         * m4/mbswidth.m4: Reflect name change:
85719         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
85720         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
85721
85722         * m4/lib-link.m4: Update from gettext-0.11.2.
85723         * m4/gettext.m4: Likewise.
85724
85725         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
85726         From Alfred M. Szmidt.
85727
85728 2002-06-18  Paul Eggert  <eggert@twinsun.com>
85729
85730         * lib/file-type.h: Report an error if neither S_ISREG nor
85731         S_IFREG is defined, instead of using a test specific to glibc
85732         2.2.  This should be safe, since POSIX requires S_ISREG and
85733         Unix Version 7 had S_IFREG.  We don't need to check for
85734         <sys/types.h> since we don't use any symbols that it defines.
85735
85736 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
85737
85738         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
85739         $@-t, so that each temporary file name is unique and valid in the first
85740         8 characters, for operation under DOS.
85741
85742 2002-06-15  Paul Eggert  <eggert@twinsun.com>
85743
85744         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
85745
85746 2002-06-15  Jim Meyering  <meyering@lucent.com>
85747
85748         Work even with DJGPP 2.03, which lacks support for symlinks.
85749         From Richard Dawe.
85750         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
85751         is defined.
85752         * lib/lchown.c (S_ISLNK): Likewise.
85753
85754 2002-06-15  Jim Meyering  <meyering@lucent.com>
85755
85756         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
85757         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
85758         have been included before this file.
85759
85760 2002-06-14  Jim Meyering  <meyering@lucent.com>
85761
85762         * lib/file-type.h: Use the version from diffutils-2.8.2.
85763         * lib/file-type.c: Likewise.
85764
85765 2002-06-07  Jim Meyering  <meyering@lucent.com>
85766
85767         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
85768         They're needed at least for NetBSD 1.5.2.
85769         ($statxfs_includes): Include those same headers.
85770         ($statxfs_includes): Include sys/vfs.h if available.
85771         ($statxfs_includes): Likewise for sys/statvfs.h.
85772         Check for the following members in both structs statfs and statvfs:
85773         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
85774
85775 2002-06-01  Jim Meyering  <meyering@lucent.com>
85776
85777         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
85778         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
85779
85780 2002-05-28  Jim Meyering  <meyering@lucent.com>
85781
85782         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
85783         Reported by Volker Borchert.
85784
85785 2002-05-27  Jim Meyering  <meyering@lucent.com>
85786
85787         Fix a problem seen only on nonconforming systems whereby ls.c's
85788         use of localtime, and then of gettimeofday would cause trouble:
85789         the localtime call used to initialize rpl_gettimeofday's save
85790         mechanism would clobber ls's current local time information so
85791         that in any long listing the first file would always be listed
85792         with date 1970-01-01.  Analysis by Volker Borchert.
85793
85794         * lib/gettimeofday.c (localtime): Undefine.
85795         (rpl_localtime): New function.
85796
85797 2002-05-27  Jim Meyering  <meyering@lucent.com>
85798
85799         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
85800         localtime.
85801
85802         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
85803         use the replacement function; it wouldn't resolve at link time.
85804         Reported by Volker Borchert.
85805
85806 2002-05-22  Jim Meyering  <meyering@lucent.com>
85807
85808         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
85809         file-type.h.
85810         * lib/file-type.h: New file.
85811         * lib/file-type.c (file_type): New file/function.  Extracted from
85812         diffutils.
85813
85814 2002-04-30  Jim Meyering  <meyering@lucent.com>
85815
85816         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
85817
85818 2002-04-29  Paul Eggert  <eggert@twinsun.com>
85819
85820         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
85821
85822 2002-04-29  Paul Eggert  <eggert@twinsun.com>
85823
85824         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
85825         Do not check for alloca.h (no longer used) or stdbool.h (was never
85826         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
85827
85828 2002-04-29  Paul Eggert  <eggert@twinsun.com>
85829
85830         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
85831
85832 2002-04-29  Jim Meyering  <meyering@lucent.com>
85833
85834         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
85835         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
85836         Use AC_FUNC_STRNLEN here instead.
85837
85838         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
85839         With autoconf-2.53a, it's part of AC_PROG_CC.
85840
85841 2002-04-28  Paul Eggert  <eggert@twinsun.com>
85842
85843         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
85844         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
85845
85846 2002-04-28  Paul Eggert  <eggert@twinsun.com>
85847
85848         * lib/sig2str.h, lib/sig2str.c: New files.
85849         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
85850
85851 2002-04-28  Paul Eggert  <eggert@twinsun.com>
85852
85853         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
85854         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
85855         of 127, since 64 is the largest conceivable number for ancient
85856         nonstandard hosts.
85857         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
85858
85859 2002-04-28  Jim Meyering  <meyering@lucent.com>
85860
85861         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
85862
85863 2002-04-24  Jim Meyering  <meyering@lucent.com>
85864
85865         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
85866         (jm_PREREQ): Use it.
85867
85868         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
85869         mach/mach.h fcntl.h.
85870         Check for this function: setlocale.
85871
85872 2002-04-24  Jim Meyering  <meyering@lucent.com>
85873
85874         * lib/gettext.h: New file, from Gettext.
85875         * lib/Makefile.am (INCLUDES): Remove -I../intl.
85876         (libfetish_a_SOURCES): Add gettext.h.
85877
85878 2002-04-16  Jim Meyering  <meyering@lucent.com>
85879
85880         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
85881         ut_pid, ut_id, ut_exit.
85882
85883 2002-04-16  Jim Meyering  <meyering@lucent.com>
85884
85885         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
85886         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
85887         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
85888
85889 2002-04-12  Jim Meyering  <meyering@lucent.com>
85890
85891         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
85892         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
85893         existence of the getmntinfo function.  Needed for Darwin 5.3.
85894
85895         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
85896         This is necessary at least on Darwin 5.3.
85897
85898         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
85899         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
85900         strnlen.o in the library, and that makes some versions of ranlib
85901         object.
85902
85903 2002-04-12  Jim Meyering  <meyering@lucent.com>
85904
85905         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
85906
85907 2002-04-09  Jim Meyering  <meyering@lucent.com>
85908
85909         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
85910         to be more precise.  Rather than saying we're checking whether the
85911         function `works', say what we're testing.
85912         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
85913         Reported by Bruno Haible.
85914
85915 2002-03-10  Jim Meyering  <meyering@lucent.com>
85916
85917         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
85918         Suggestion from Santiago Vila.
85919
85920 2002-03-08  Jim Meyering  <meyering@lucent.com>
85921
85922         * lib/rename.c: Mention that this wrapper is needed also on
85923         mips-dec-ultrix4.4 systems.
85924
85925 2002-03-02  Jim Meyering  <meyering@lucent.com>
85926
85927         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
85928         not HAVE_CLOCK_SETTIME.
85929
85930 2002-02-27  Paul Eggert  <eggert@twinsun.com>
85931
85932         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
85933         Check for clock_settime.
85934
85935 2002-02-27  Paul Eggert  <eggert@twinsun.com>
85936
85937         * lib/nanosleep.h: Rename to....
85938         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
85939
85940         * lib/gettime.c: New file.
85941         * lib/settime.c: New file.
85942         * lib/stime.c: Remove.
85943
85944         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
85945         timespec.h.  Remove nanosleep.h.
85946
85947 2002-02-25  Paul Eggert  <eggert@twinsun.com>
85948
85949         * m4/acl.m4: New file.
85950         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
85951         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
85952
85953 2002-02-25  Paul Eggert  <eggert@twinsun.com>
85954
85955         * lib/acl.c, lib/acl.h: New files.
85956         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
85957
85958 2002-02-24  Jim Meyering  <meyering@lucent.com>
85959
85960         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
85961         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
85962         cause trouble.  Reported by Nelson Beebe.
85963
85964 2002-02-23  Paul Eggert  <eggert@twinsun.com>
85965
85966         * lib/path-concat.c (xpath_concat): Reorder code to pacify
85967         compilers that don't know that xalloc_die never returns.
85968
85969 2002-02-20  Jim Meyering  <meyering@lucent.com>
85970
85971         * lib/getdate.c: Regenerate using bison-1.33.
85972
85973 2002-02-17  Jim Meyering  <meyering@lucent.com>
85974
85975         * config/config.guess (main): Don't use `head -1'; it's no longer
85976         portable. Use `sed 1q' instead.
85977
85978 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
85979
85980         * m4/codeset.m4: Upgrade to gettext-0.11.
85981         * m4/gettext.m4: Upgrade to gettext-0.11.
85982         * m4/glibc21.m4: Upgrade to gettext-0.11.
85983         * m4/iconv.m4: Upgrade to gettext-0.11.
85984         * m4/isc-posix.m4: Upgrade to gettext-0.11.
85985         * m4/lcmessage.m4: Upgrade to gettext-0.11.
85986         * m4/lib-ld.m4: New file, from gettext-0.11.
85987         * m4/lib-link.m4: New file, from gettext-0.11.
85988         * m4/lib-prefix.m4: New file, from gettext-0.11.
85989         * m4/progtest.m4: Upgrade to gettext-0.11.
85990
85991 2002-02-15  Paul Eggert  <eggert@twinsun.com>
85992
85993         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
85994         (jm_PREREQ): Use it.
85995
85996 2002-02-15  Paul Eggert  <eggert@twinsun.com>
85997
85998         * lib/posixver.c, lib/posixver.h: New files.
85999         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
86000
86001 2002-02-02  Paul Eggert  <eggert@twinsun.com>
86002             Bruno Haible  <bruno@clisp.org>
86003
86004         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
86005         (fwrite_success_callback): New declaration.
86006         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
86007         print_unicode_char. Call failure callback instead of error.
86008         (fwrite_success_callback): New function.
86009         (exit_failure_callback): New function.
86010         (fallback_failure_callback): New function.
86011         (print_unicode_char): Call unicode_to_mb.
86012
86013 2002-01-26  Jim Meyering  <meyering@lucent.com>
86014
86015         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
86016         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
86017
86018 2002-01-26  Jim Meyering  <meyering@lucent.com>
86019
86020         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
86021
86022 2002-01-22  Paul Eggert  <eggert@twinsun.com>
86023
86024         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
86025
86026 2002-01-22  Jim Meyering  <meyering@lucent.com>
86027
86028         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
86029         Otherwise, some versions of automake would omit the rule that makes
86030         Makefile from Makefile.in.
86031
86032 2002-01-21  Paul Eggert  <eggert@twinsun.com>
86033
86034         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
86035         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
86036         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
86037         (memcoll): Set errno to zero if there is no error.
86038
86039         * lib/quotearg.c (quotearg_buffer_restyled):
86040         Fix bug with quoting buffers containing NUL when backslashing escapes.
86041         This bug was exposed by the other changes in this patch.
86042         (quotearg_n_options): New arg ARGSIZE.
86043         All callers changed.
86044         (quoting_options_from_style): New function.
86045         (quotearg_n_style): Use it.
86046         (quotearg_n_style_mem): New function.
86047
86048         * lib/quotearg.h (quotearg_n_style_mem): New function.
86049
86050 2002-01-19  Jim Meyering  <meyering@lucent.com>
86051
86052         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
86053         Remove useless quotes: DF_PROG="df".
86054         * m4/strnlen.m4: New file.
86055
86056 2002-01-16  Paul Eggert  <eggert@twinsun.com>
86057
86058         * lib/backupfile.c (ISDIGIT): Comment fix.
86059         * lib/getdate.y (ISDIGIT): Likewise.
86060         * lib/posixtm.c (ISDIGIT, year): Likewise.
86061         * lib/strverscmp.c (ISDIGIT): Likewise.
86062         * lib/userspec.c (ISDIGIT): Likewise.
86063
86064 2002-01-16  Jim Meyering  <meyering@lucent.com>
86065
86066         * lib/getdate.y: Add three semicolons, each just before a closing
86067         brace. Bison (as of version 1.31) no longer papers over that mistake.
86068
86069 2002-01-05  Jim Meyering  <meyering@lucent.com>
86070
86071         * lib/version-etc.c (version_etc_copyright): Update copyright year.
86072
86073 2001-12-19  Paul Eggert  <eggert@twinsun.com>
86074
86075         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
86076         not silently exit merely because the output buffer happens to
86077         have nothing pending.
86078
86079 2001-12-18  Paul Eggert  <eggert@twinsun.com>
86080
86081         See the big note in ../ChangeLog.
86082         * lib/human.c (suffixes): Prefer K to k for 1024.
86083         (generate_suffix_backwards): New function.
86084         (human_readable_inexact): Use it.
86085         * lib/xstrtol.c (__xstrtol): If there is no number but there
86086         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
86087         Accept 'K' as well as 'k'.
86088
86089 2001-12-15  Jim Meyering  <meyering@lucent.com>
86090
86091         * lib/regex.h (__restrict_arr): Update from libc.
86092
86093         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
86094         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
86095         (STREQ): Define.
86096
86097 2001-12-14  Jim Meyering  <meyering@lucent.com>
86098
86099         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
86100         Suggestion from Bruno Haible.
86101
86102 2001-12-10  Jim Meyering  <meyering@lucent.com>
86103
86104         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
86105         xrealloc, Instead, include "xalloc.h".
86106         (initbuffer): Don't cast xmalloc return value to char*.
86107         (readline): Reword comment.
86108         Don't cast xrealloc return value to char*
86109         Return NULL, not 0.
86110
86111 2001-12-09  Jim Meyering  <meyering@lucent.com>
86112
86113         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
86114         about `signed and unsigned type in conditional expression'.
86115         * lib/posixtm.c (posix_time_parse): Likewise.
86116
86117         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
86118
86119         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
86120         to avoid a pedantic warning.
86121
86122         * lib/getstr.c: Don't include assert.h.
86123         (getstr): Remove warning-evoking assertions.
86124         Return -1 if offset parameter is out of bounds.
86125         Change the type of a local from int to size_t.
86126
86127         * lib/strftime.c (my_strftime_localtime_r): Include this function
86128         definition in the `#if ! HAVE_TM_GMTOFF' block.
86129
86130         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
86131         Include xalloc.h instead.
86132
86133 2001-12-02  Jim Meyering  <meyering@lucent.com>
86134
86135         * lib/tempname.c: Don't declare getenv, thus reverting the change of
86136         2001-11-18.  It's no longer necessary, now that stdlib.h is always
86137         included.
86138
86139         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
86140         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
86141
86142 2001-11-30  Akim Demaille  <akim@epita.fr>
86143
86144         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
86145         before being defined.
86146
86147 2001-11-27  Paul Eggert  <eggert@twinsun.com>
86148
86149         * lib/quotearg.h (quotearg_n, quotearg_n_style):
86150         First arg is int, not unsigned.
86151         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
86152         (SIZE_MAX, UINT_MAX): New macros.
86153         (quotearg_n_options): Abort if N is negative.
86154         Avoid overflow check on hosts where size_t is 64 bits and int
86155         is 32 bits, as overflow is impossible there.
86156         Fix off-by-one typo that caused unnecessary reallocation.
86157
86158 2001-11-27  Jim Meyering  <meyering@lucent.com>
86159
86160         * lib/tempname.c: Merge with version from libc.
86161         * lib/regex.c: Likewise.
86162
86163         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
86164         systems for which STDC_HEADERS is 0, it was not included, resulting in
86165         a warning about an integer-to-pointer conversion problem with getenv.
86166         Reported by Volker Borchert.
86167
86168 2001-11-26  Jim Meyering  <meyering@lucent.com>
86169
86170         * lib/gtod.h: Remove file.
86171         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
86172         * lib/gettimeofday.c: Don't include gtod.h.
86173         (GTOD_init): Remove function.
86174         (rpl_gettimeofday): Do its job here instead, rather than aborting.
86175         Suggestion from Volker Borchert.
86176
86177 2001-11-23  Jim Meyering  <meyering@lucent.com>
86178
86179         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
86180         it.
86181         * lib/hash.c (struct hash_table): Define it here instead.
86182
86183 2001-11-22  Jim Meyering  <meyering@lucent.com>
86184
86185         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
86186
86187 2001-11-20  Jim Meyering  <meyering@lucent.com>
86188
86189         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
86190         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
86191
86192 2001-11-19  Jim Meyering  <meyering@lucent.com>
86193
86194         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
86195         directory.  Use "conftestXXXXXX" as the template.
86196         Suggestion from Paul Eggert.
86197
86198         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
86199         immediately, so the test doesn't mistakenly hit the max-open-files
86200         limit.
86201
86202 2001-11-18  Paul Eggert  <eggert@twinsun.com>
86203
86204         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
86205         (TEMPORARIES): New macro.
86206         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
86207         removes an artificial limitation (e.g. HP-UX 10.20, where
86208         TMP_MAX is 17576).
86209
86210 2001-11-18  Jim Meyering  <meyering@lucent.com>
86211
86212         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
86213
86214 2001-11-18  Jim Meyering  <meyering@lucent.com>
86215
86216         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
86217         on SunOS 4.
86218
86219         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
86220         files will be created before anything else.
86221
86222 2001-11-17  Paul Eggert  <eggert@twinsun.com>
86223
86224         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
86225         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
86226
86227 2001-11-17  Jim Meyering  <meyering@lucent.com>
86228
86229         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
86230         Prompted by a report from Bob Proulx.
86231
86232         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
86233         Instead, require UTILS_FUNC_MKSTEMP.
86234
86235 2001-11-17  Jim Meyering  <meyering@lucent.com>
86236
86237         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
86238         Now, that's done as part of AC_FUNC_STRTOD.
86239
86240 2001-11-17  Jim Meyering  <meyering@lucent.com>
86241
86242         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
86243         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
86244         rather than group writable.  Patch by Juan F. Codagnone.
86245
86246         * lib/readtokens.c: Remove explicit declarations of xmalloc and
86247         xrealloc, Instead, include "xalloc.h".
86248
86249         * lib/mountlist.c: Include unlocked-io.h after all system headers.
86250         Remove explicit declarations of xmalloc, xrealloc,
86251         and xstrdup.  Instead, include "xalloc.h".
86252
86253         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
86254         unlocked-io.h.
86255         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
86256         Likewise.
86257         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
86258
86259         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
86260         Reported by Padraig Brady.
86261
86262         * lib/mkstemp.c: #undef mkstemp.
86263         Include config.h.
86264         (rpl_mkstemp): Rename from mkstemp.
86265         Protoize.
86266
86267 2001-11-16  Jim Meyering  <meyering@lucent.com>
86268
86269         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
86270         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
86271         determine the amount of total physical memory, use pstat_getstatic.
86272         HPUX-11 doesn't define _SC_PHYS_PAGES.
86273         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
86274         If sysconf couldn't be used to determine the amount of available
86275         physical memory, use both pstat_getstatic and pstat_getdynamic.
86276         Based on a patch from Bob Proulx.
86277
86278 2001-11-10  Jim Meyering  <meyering@lucent.com>
86279
86280         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
86281         (jm_PREREQ): Use it.
86282
86283 2001-11-09  Jim Meyering  <meyering@lucent.com>
86284
86285         * m4/jm-macros.m4: Require autoconf-2.52f.
86286         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
86287         Use these AC_-prefixed names, not the AM_-prefixed ones.
86288
86289         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
86290
86291 2001-11-05  Jim Meyering  <meyering@lucent.com>
86292
86293         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
86294
86295 2001-11-04  Jim Meyering  <meyering@lucent.com>
86296
86297         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
86298         $DEFS.
86299
86300 2001-11-03  Jim Meyering  <meyering@lucent.com>
86301
86302         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
86303         of AC_DEFUN.
86304
86305         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
86306         know the name of the variable in the macro definition.
86307
86308 2001-11-03  Jim Meyering  <meyering@lucent.com>
86309
86310         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
86311         in argmatch_to_argument call.
86312
86313         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
86314         argument.
86315
86316         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
86317         e.g., a fault due to an attempt to free a NULL pointer.
86318
86319 2001-11-01  Jim Meyering  <meyering@lucent.com>
86320
86321         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
86322         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
86323
86324 2001-11-01  Jim Meyering  <meyering@lucent.com>
86325
86326         * lib/dirfd.c, lib/dirfd.h: New files.
86327         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
86328
86329         * lib/hash.c (hash_print) [TESTING]: Clean up.
86330
86331 2001-10-22  Paul Eggert  <eggert@twinsun.com>
86332
86333         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
86334         to avoid a warning if -Wall.
86335
86336 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
86337
86338         * README: New file
86339         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
86340         (per RMS's instructions, this is now the canonical source)
86341         * lgpl/, gpl/: New directories.
86342
86343 2001-10-21  Paul Eggert  <eggert@twinsun.com>
86344
86345         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
86346
86347 2001-10-21  Jim Meyering  <meyering@lucent.com>
86348
86349         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
86350         this code would end up calling gettext even in packages built
86351         with --disable-nls.
86352         * lib/getopt.c (_): Likewise.
86353         * lib/regex.c (_): Likewise.
86354
86355 2001-10-20  Paul Eggert  <eggert@twinsun.com>
86356
86357         * m4/error.m4 (jm_PREREQ_ERROR):
86358         Do not invoke AC_CHECK_FUNCS with strerror_r, as
86359         AC_FUNC_STRERROR_R does that.
86360         Check for strerror declaration.
86361
86362         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
86363         are supposed to have them these days.
86364         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
86365         Merge changes from latest Autoconf CVS.
86366         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
86367         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
86368         POSIX decided to standardize on the int flavor of strerror_r.
86369
86370 2001-10-20  Paul Eggert  <eggert@twinsun.com>
86371
86372         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
86373         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
86374         Use strerror_r that is only a macro, even if it is not a function.
86375         (strerror): Check for HAVE_DECL_STRERROR before declaring.
86376         (private_strerror): Use prototypes, not old-style function definition.
86377         (print_errno_message): New function.
86378         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
86379         char*-flavored one.
86380         (error_tail, error, error_at_line): Use it.
86381
86382 2001-10-11  Jim Meyering  <meyering@lucent.com>
86383
86384         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
86385         and quote_n (1, ... to avoid clobbering a buffer.
86386
86387 2001-10-05  Jim Meyering  <meyering@lucent.com>
86388
86389         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
86390         hash-pjw.h.
86391         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
86392         * lib/hash-pjw.h: New file.
86393
86394 2001-09-30  Jim Meyering  <meyering@lucent.com>
86395
86396         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
86397         `struct fsstat' has the `f_fstypename' member.
86398         Use that to define FS_TYPE, which is now used to make
86399         the getfsstat link test tighter.
86400
86401 2001-09-30  Jim Meyering  <meyering@lucent.com>
86402
86403         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
86404         Include <sys/ucred.h>, for Apple Darwin.
86405         Include sys/mount.h and sys/fs_types.h only if available.
86406         (FS_TYPE): Define.
86407         (read_filesystem_list): Use FS_TYPE.
86408
86409 2001-09-29  Paul Eggert  <eggert@twinsun.com>
86410
86411         * lib/exclude.c (excluded_filename): 0 -> false, since it's
86412         a boolean context.
86413
86414 2001-09-29  Jim Meyering  <meyering@lucent.com>
86415
86416         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
86417         [one-argument getmntent function]): Include stdio.h before mntent.h.
86418         SunOS 4.1.x needs it for the declaration of `FILE'.
86419         Patch by Volker Borchert.
86420
86421         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
86422         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
86423         sys/fs_types.h, and make the link-test for getfsstat guard #include
86424         directives with appropriate #if HAVE_*_H tests so that we can
86425         detect getfsstat on Apple Darwin1.3.7 systems.
86426         Reported by Nelson Beebe.
86427         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
86428
86429 2001-09-28  Paul Eggert  <eggert@twinsun.com>
86430
86431         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
86432         #defines strtoimax.  Also treat the other strto* functions
86433         like strtoimax.
86434
86435         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
86436         Check for strtoul and strtoumax,
86437         as those declarations are made even in the signed case.
86438         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
86439         Likewise, for strtol and strtoimax.
86440
86441 2001-09-28  Paul Eggert  <eggert@twinsun.com>
86442
86443         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
86444         #defines strtoimax.  Also treat the other strto* functions
86445         like strtoimax.
86446
86447         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
86448         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
86449         (strtoimax, strtoumax): Do not declare if already defined as a macro.
86450
86451 2001-09-26  Jim Meyering  <meyering@lucent.com>
86452
86453         Most macros in unlocked-io.h had the wrong number of arguments.
86454         * lib/gen-uio: New script.
86455         (USE_UNLOCKED_IO): Define to 1 if not already defined.
86456         * lib/unlocked-io.hin: Remove file.
86457         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
86458         rather than trying to embed it here.
86459         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
86460         Reported by Padraig Brady.
86461
86462 2001-09-25  Volker Borchert  <bt@teknon.de>
86463
86464         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
86465         `result'.
86466
86467 2001-09-24  Jim Meyering  <meyering@lucent.com>
86468
86469         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
86470
86471 2001-09-23  Jim Meyering  <meyering@lucent.com>
86472
86473         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
86474         instead of the mere test for existence of mntent.h.  The latter
86475         would get a false-positive on AIX 3.4 systems.
86476         In the outer getmntent if-block, don't die if neither of the getmntent
86477         tests succeeds.  Instead, just fall through and continue with the
86478         remaining tests.
86479
86480 2001-09-23  Jim Meyering  <meyering@lucent.com>
86481
86482         * lib/mountlist.c: Remove useless parentheses in #if directives.
86483         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
86484         the deprecated MOUNTED symbol is no longer defined in mntent.h.
86485
86486 2001-09-22  Jim Meyering  <meyering@lucent.com>
86487
86488         * m4/gettext.m4: New file.  From gettext.
86489         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
86490         * m4/progtest.m4: Likewise
86491         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
86492         * m4/glibc21.m4: Likewise.
86493
86494         * m4/libintl.m4: Remove.  No longer used.
86495
86496 2001-09-22  Jim Meyering  <meyering@lucent.com>
86497
86498         * lib/localcharset.c: Update from latest gettext.
86499         * lib/config.charset: Likewise.
86500
86501 2001-09-20  Jim Meyering  <meyering@lucent.com>
86502
86503         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
86504         strtoimax.
86505         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
86506         strtoumax.
86507
86508 2001-09-20  Jim Meyering  <meyering@lucent.com>
86509
86510         * lib/xstrtol.c (strtoimax): Guard declaration with
86511         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
86512         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
86513         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
86514         (strtoumax): Likewise, for completeness (it wasn't necessary).
86515
86516 2001-09-17  Paul Eggert  <eggert@twinsun.com>
86517
86518         * lib/strtoimax.c (HAVE_LONG_LONG):
86519         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
86520         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
86521         to work around bug in IBM C compiler.
86522
86523 2001-09-17  Jim Meyering  <meyering@lucent.com>
86524
86525         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
86526         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
86527         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
86528         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
86529         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
86530         whenever the right hand side need not be expanded by the shell.
86531
86532 2001-09-16  Paul Eggert  <eggert@twinsun.com>
86533
86534         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
86535         library.  It's not correct, as some older glibcs are buggy.
86536         fnmatch wasn't fixed until glibc 2.2.
86537
86538         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
86539         special shell magic here.
86540
86541 2001-09-16  Jim Meyering  <meyering@lucent.com>
86542
86543         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
86544         * m4/jm-macros.m4: Require it.
86545
86546 2001-09-16  Jim Meyering  <meyering@lucent.com>
86547
86548         * lib/mkdir.c: New file.
86549
86550 2001-09-15  Jim Meyering  <meyering@lucent.com>
86551
86552         * m4/jm-macros.m4: Check for help2man.
86553
86554 2001-09-11  Jim Meyering  <meyering@lucent.com>
86555
86556         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
86557         The body, by Paul Eggert, was moved here from configure.in.
86558         * m4/jm-macros.m4: Require UTILS_HOST_OS.
86559
86560 2001-09-04  Paul Eggert  <eggert@twinsun.com>
86561
86562         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
86563         (jm_PREREQ): Use it.
86564
86565 2001-09-04  Paul Eggert  <eggert@twinsun.com>
86566
86567         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
86568         Use ssize_t, not int, to store result of readlink.
86569         Check for ssize_t overflow as well as size_t overflow,
86570         as POSIX says the result of readlink is implementation-defined
86571         when ssize_t overflows.
86572         Remove unnecessary cast to char*.
86573         Use free+malloc instead of realloc, as the storage doesn't need
86574         to be preserved and it's clearer and can be more efficient that way.
86575         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
86576         * lib/xreadlink.h (xreadlink): Update prototype.
86577
86578 2001-09-04  Paul Eggert  <eggert@twinsun.com>
86579
86580         * lib/xgetcwd.c: Revert some of the previous change; intead,
86581         fix the HAVE_GETCWD_NULL code to behave more like the
86582         !HAVE_GETCWD_NULL code used to.
86583
86584         Include "xalloc.h".
86585         (xgetcwd): Do not return NULL when memory is exhausted; instead,
86586         invoke xalloc_die.
86587
86588 2001-09-03  Paul Eggert  <eggert@twinsun.com>
86589
86590         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
86591         sys/param.h, as pathmax.h includes them.
86592
86593 2001-09-03  Paul Eggert  <eggert@twinsun.com>
86594
86595         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
86596         (jm_PREREQ_XGETCWD): New macro.
86597
86598         * m4/getcwd.m4: New file.
86599
86600 2001-09-03  Paul Eggert  <eggert@twinsun.com>
86601
86602         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
86603         like the HAVE_GETCWD_NULL code.
86604         Include pathmax.h if not HAVE_GETCWD.
86605         Do not include xalloc.h.
86606         (INITIAL_BUFFER_SIZE): New symbol.
86607         Do not use xmalloc / xrealloc, since the caller is responsible for
86608         handling errors.  Preserve errno around `free' during failure.
86609         Do not overrun buffer when using getwd.
86610
86611 2001-09-03  Paul Eggert  <eggert@twinsun.com>
86612
86613         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
86614         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
86615         getcwd (NULL, 0).
86616
86617 2001-09-03  Paul Eggert  <eggert@twinsun.com>
86618
86619         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
86620         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
86621         spotted by Jim Meyering.
86622
86623 2001-09-03  Jim Meyering  <meyering@lucent.com>
86624
86625         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
86626         failure.
86627
86628 2001-09-02  Jim Meyering  <meyering@lucent.com>
86629
86630         * lib/error.c: Update from GNU libc.
86631
86632 2001-09-01  Jim Meyering  <meyering@lucent.com>
86633
86634         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
86635         Used by df.
86636
86637 2001-09-01  Jim Meyering  <meyering@lucent.com>
86638
86639         * lib/xreadlink.c: New file.
86640         * lib/xreadlink.h: New file.
86641         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
86642         xreadlink.h.
86643
86644         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
86645         doesn't conflict with sparc Solaris 7's definition in
86646         /usr/include/sys/int_types.h.
86647
86648         * lib/exclude.c: Use `""', not `<>' to #include non-system header
86649         files.
86650         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
86651         and strncasecmp as r-values.  Unixware didn't have declarations.
86652
86653 2001-08-31  Paul Eggert  <eggert@twinsun.com>
86654
86655         * lib/xstrtol.h: Add copyright notice.
86656         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
86657         LONGINT_INVALID_SUFFIX_CHAR.
86658
86659 2001-08-31  Paul Eggert  <eggert@twinsun.com>
86660
86661         * lib/xstrtol.c (strtoimax): New decl.
86662
86663 2001-08-31  Paul Eggert  <eggert@twinsun.com>
86664
86665         * lib/xgetcwd.c: Don't include pathmax.h.
86666         Include stdlib.h and unistd.h if available.
86667         Include xalloc.h.
86668         (xmalloc, xstrdup, free): Remove decls.
86669         (xgetcwd): Don't assume sizes fit in unsigned.
86670         Check for overflow when computing sizes.
86671         Simplify reallocation code.
86672
86673 2001-08-31  Paul Eggert  <eggert@twinsun.com>
86674
86675         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
86676         a directory's st_size can have an arbitrary value, so the old
86677         usage could waste an arbitrary amount of memory.  All uses
86678         changed.
86679         * lib/savedir.h: Update prototype.
86680
86681 2001-08-31  Paul Eggert  <eggert@twinsun.com>
86682
86683         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
86684
86685         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
86686         old strtoimax.c.
86687
86688         Also, make the following further changes to make this file's
86689         configuration more similar to that of strtol.c:
86690         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
86691         (strtoumax, uintmax_t, strtoull, strtol): Remove.
86692         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
86693         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
86694         changed to signed values.
86695
86696         And make the following changes as well:
86697         Fix copyright notice, as 1999 was missing.
86698         (verify): New macro.
86699         (strtoimax): Check sizes at compile-time, not run-time.
86700         Prefer strtol to strtoll if both work.
86701         (main): Remove; it was not that useful and was a pain to maintain.
86702
86703         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
86704
86705 2001-08-31  Jim Meyering  <meyering@lucent.com>
86706
86707         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
86708         Use an initial, malloc'd, buffer of length 128 rather than
86709         a statically allocated one of length 1024.
86710
86711 2001-08-30  Paul Eggert  <eggert@twinsun.com>
86712
86713         Simplify code, partly by assuming autoconf 2.52 semantics.
86714
86715         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
86716
86717         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
86718         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
86719         All uses removed.
86720         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
86721         Move AC_REQUIRE to next-to-top level, to avoid confusion.
86722         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
86723         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
86724         jm_AC_HEADER_INTTYPES_H.
86725         * m4/jm-macros.m4 (jm_MACROS): Likewise.
86726
86727         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
86728
86729         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
86730         Quote first arg of AC_DEFUN.
86731         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
86732         since they are needed to parse the include file even if we need
86733         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
86734         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
86735         but with opposite signedness.
86736
86737 2001-08-30  Paul Eggert  <eggert@twinsun.com>
86738
86739         Merge 'exclude' changes from tar 1.13.22.
86740         This fixes one or two unlikely storage allocation overflow bugs,
86741         but doesn't change user-visible behavior otherwise.
86742
86743 2001-08-30  Paul Eggert  <eggert@twinsun.com>
86744
86745         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
86746         (jm_PREREQ_EXCLUDE): New macro.
86747
86748 2001-08-30  Paul Eggert  <eggert@twinsun.com>
86749
86750         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
86751         tm to be declared.
86752
86753 2001-08-30  Paul Eggert  <eggert@twinsun.com>
86754
86755         * lib/hash.c: Remove '2001' from copyright notice.
86756
86757 2001-08-30  Paul Eggert  <eggert@twinsun.com>
86758
86759         * lib/full-write.h: New file.
86760         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
86761         * lib/full-write.c: Correct credits, as cccp.c no longer
86762         exists and anyway it was so heavily changed from the old cccp
86763         code as to be unrecognizable.  Include full-write.h.
86764         (full_write): Return size_t, with short writes meaning failure.
86765         All callers changed.  This fixes a bug with large buffers
86766         on 64-bit hosts.
86767         * lib/utime.c: Include full-write.h.
86768
86769 2001-08-30  Paul Eggert  <eggert@twinsun.com>
86770
86771         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
86772         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
86773         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
86774         Include if available.
86775         (<xalloc.h>): Include
86776         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
86777         (verify): New macro.  Use it to verify that EXCLUDE macros do not
86778         collide with FNM macros.
86779         (struct patopts): New struct.
86780         (struct exclude): Use it, as exclude patterns now come with options.
86781         (new_exclude): Support above changes.
86782         (new_exclude, add_exclude_file):
86783         Initial size must now be a power of two to simplify overflow checking.
86784         (free_exclude, fnmatch_no_wildcards): New function.
86785         (excluded_filename): No longer requires options arg, as the options
86786         are determined by add_exclude.  Now returns bool, not int.
86787         (excluded_filename, add_exclude):
86788         Add support for the fancy new exclusion options.
86789         (add_exclude, add_exclude_file): Now takes int options arg.
86790         Check for arithmetic overflow when computing sizes.
86791         (add_exclude_file): xrealloc might modify errno, so don't
86792         realloc until after errno might be used.
86793
86794         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
86795         New macros.
86796         (free_exclude): New decl.
86797         (add_exclude, add_exclude_file): Now takes int options arg.
86798         (excluded_filename): No longer requires options arg, as the options
86799         are determined by add_exclude.  Now returns bool, not int.
86800
86801 2001-08-30  Paul Eggert  <eggert@twinsun.com>
86802
86803         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
86804
86805 2001-08-27  Jim Meyering  <meyering@lucent.com>
86806
86807         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
86808
86809         * lib/version-etc.c (N_): Remove definition.
86810         Revert most of last change.
86811         Instead, simply don't mark the `Copyright...' string for translation.
86812         Based on advice from Paul Eggert.
86813
86814         * lib/strtoxmax.c: Tweak comment.
86815
86816 2001-08-26  Jim Meyering  <meyering@lucent.com>
86817
86818         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
86819
86820         * m4/xstrtoimax.m4: New file.
86821         * m4/xstrtoumax.m4: Add comments explaining why we
86822         AC_REPLACE_FUNCS(strtol).
86823
86824 2001-08-26  Jim Meyering  <meyering@lucent.com>
86825
86826         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
86827         of copyright with `%s' so translators don't get an untranslated
86828         message in 2002.
86829         (COPYRIGHT_YEAR): Define.
86830         (version_etc): Use fprintf rather than fputs.
86831         Suggestion from Ulrich Drepper.
86832
86833         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
86834
86835         * lib/strtoll.c: New file, from GNU libc.
86836         * lib/xstrtoimax.c: New file.
86837
86838         * lib/xstrtol.h: Add xstrtoimax.
86839         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
86840         * lib/strtoimax.c: New file.  Likewise, but first define
86841         STRTOUXMAX_SIGNED.
86842
86843         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
86844         ...
86845         * lib/strtoxmax.c: ... then renamed to this.
86846
86847 2001-08-18  Paul Eggert  <eggert@twinsun.com>
86848
86849         * m4/inttypes.m4: Add AC_PREREQ(2.13).
86850         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
86851         (jm_AC_TYPE_INTMAX_T): New macro.
86852         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
86853
86854         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
86855
86856         * m4/longlong.m4: Renamed from ulonglong.m4.
86857         * m4/inttypes.m4: Renamed from inttypes_h.m4.
86858         * m4/uintmax_t.m4: Removed.
86859
86860 2001-08-13  Paul Eggert  <eggert@twinsun.com>
86861
86862         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
86863         Port to Solaris 8, where 'sed' requires a space after the 'r'
86864         command, and where sh dislikes "$/".  Clean up the spacing a bit.
86865         Redirect output to $tmp just once.
86866
86867 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
86868
86869         * lib/addext.c (<errno.h>): Include.
86870         (errno): Declare if not defined.
86871         (addext): Work correctly when pathconf returns -1 and leaves
86872         errno alone because there is no limit.  Also, work even if
86873         pathconf returns a value greater than SIZE_MAX.
86874
86875 2001-08-12  Jim Meyering  <meyering@lucent.com>
86876
86877         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
86878         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
86879         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
86880         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
86881         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
86882         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
86883         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
86884         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
86885         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
86886         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
86887         utime.m4, utimes.m4, xstrtoumax.m4:
86888         Quote the first argument in each use of AC_DEFUN.
86889
86890 2001-08-12  Jim Meyering  <meyering@lucent.com>
86891
86892         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
86893         Simply `return getcwd (NULL, 0);'.
86894         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
86895         Use 1300 as initial value for length, not PATH_MAX.
86896
86897         * lib/pathmax.h: Clean up cpp syntax.
86898
86899 2001-08-12  Jim Meyering  <meyering@lucent.com>
86900
86901         * lib/gettimeofday.c: New file.
86902         * lib/gtod.h: New file.
86903         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
86904
86905 2001-08-05  Jim Meyering  <meyering@lucent.com>
86906
86907         * m4/jm-macros.m4: Require autoconf-2.52.
86908
86909 2001-08-04  Jim Meyering  <meyering@lucent.com>
86910
86911         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
86912         stmt, to get in sync with glibc.
86913
86914 2001-08-03  Paul Eggert  <eggert@twinsun.com>
86915
86916         The following changes are from gettext 0.10.39 as maintained by
86917         Bruno Haible.
86918
86919         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
86920         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
86921         with inverted sense.  All uses changed.
86922
86923         * lib/mbswidth.c: Don't include <limits.h>.
86924         Include <stdlib.h> and <string.h> unconditionally.
86925         (iswcntrl, mbsinit, ISCNTRL): New macros.
86926         (mbsnwidth): Use K&R style function declarations.
86927         Don't bother checking for MB_LEN_MAX == 1, since the compiler
86928         can optimize it when MB_CUR_MAX == 1.
86929         The width of control characters is zero, not 1.
86930
86931 2001-08-03  Paul Eggert  <eggert@twinsun.com>
86932
86933         The following changes are from gettext 0.10.39 as maintained by
86934         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
86935
86936         * m4/codeset.m4: Upgrade to serial AM1.
86937         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
86938         all uses changed.  Quote first arg of AC_DEFUN.
86939         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
86940
86941         * m4/iconv.m4: Upgrade to serial AM2.
86942         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
86943         Add --with-libconv-prefix.
86944         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
86945         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
86946         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
86947         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
86948         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
86949
86950         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
86951         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
86952         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
86953         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
86954         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
86955         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
86956         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
86957         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
86958         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
86959
86960         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
86961         string.h any more.
86962
86963         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
86964         not the default value.
86965
86966         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
86967         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
86968         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
86969         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
86970         Also check for iswcntrl, used for wcwidth fallback.
86971         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
86972         to Autoconf 2.13.
86973
86974 2001-08-03  Jim Meyering  <meyering@lucent.com>
86975
86976         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
86977         as it was in the original.  Reported by Paul Eggert.
86978
86979 2001-07-16  Jim Meyering  <meyering@lucent.com>
86980
86981         * m4/gettimeofday.m4: New file.
86982         Prompted by a report from Bernhard Baehr.
86983
86984 2001-07-15  Jim Meyering  <meyering@lucent.com>
86985
86986         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
86987         stuff. Now it's in ../Makefile.cfg.
86988
86989 2001-07-15  Jim Meyering  <meyering@lucent.com>
86990
86991         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
86992         (BUILT_SOURCES): Add unlocked-io.h.
86993         (io_functions): Define.
86994         (unlocked-io.h): New rule.
86995         (DISTCLEANFILES): Add unlocked-io.h.
86996         (all-local): Depend on unlocked-io.h, to ensure it is created.
86997
86998         * lib/unlocked-io.hin: New file
86999
87000         * lib/regex.c: Update from glibc.
87001
87002 2001-07-05  Jim Meyering  <meyering@lucent.com>
87003
87004         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
87005         recommendation.
87006         (libfetish_a_SOURCES): Put all .h files here instead.
87007         Remove a thus-exposed (better checks in automake) duplicate and
87008         two unnecessary .h files.
87009
87010 2001-07-04  Jim Meyering  <meyering@lucent.com>
87011
87012         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
87013         that generates jm-glibc-io.m4 so that it doesn't trigger any make
87014         distcheck failure.
87015
87016 2001-07-02  Jim Meyering  <meyering@lucent.com>
87017
87018         The following changes were prompted by suggestions from Bruno Haible.
87019
87020         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
87021         is now generated.
87022         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
87023         definition of EXTRA_DIST.
87024         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
87025         ensure that the generated file is created/updated whenever the list
87026         of $(unlocked_functions) is changed.
87027         (jm-glibc-io.m4): New rule.
87028         (unlocked-io.h): New rule -- currently unused.
87029
87030 2001-06-24  Jim Meyering  <meyering@lucent.com>
87031
87032         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
87033         unmatched right bracket, rather than kludging it with an extra,
87034         falsely-matching quote in a comment.  Patch by Akim Demaille.
87035
87036 2001-06-11  Jim Meyering  <meyering@lucent.com>
87037
87038         * lib/regex.c: Update from GNU libc.
87039
87040 2001-05-27  Jim Meyering  <meyering@lucent.com>
87041
87042         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
87043         Check for ut_type in struct utmp.
87044
87045 2001-05-27  Jim Meyering  <meyering@lucent.com>
87046
87047         * lib/readutmp.h (UT_TYPE): Define.
87048
87049 2001-05-24  Jim Meyering  <meyering@lucent.com>
87050
87051         * lib/argmatch.c: Include "quote.h".
87052         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
87053         quote function.  Reported by Göran Uddeborg.
87054
87055 2001-05-22  Jim Meyering  <meyering@lucent.com>
87056
87057         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
87058         now that we use the package-supplied version unconditionally.
87059         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
87060
87061 2001-05-21  Jim Meyering  <meyering@lucent.com>
87062
87063         * m4/regex.m4: Change a couple backticks to single quotes to avoid
87064         shell syntax errors.
87065
87066 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
87067
87068         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
87069
87070 2001-05-20  Paul Eggert  <eggert@twinsun.com>
87071
87072         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
87073         Don't bother to check library strftime, since
87074         we'll be using our own my_strftime function anyway.
87075         Define my_strftime instead of strftime.
87076
87077 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
87078
87079         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
87080         which is not yet declared.
87081
87082 2001-05-15  Jim Meyering  <meyering@lucent.com>
87083
87084         * m4/regex.m4: Use proper quoting so brackets appear in the test
87085         program.
87086         Reported by, and with help from, Bruno Haible.
87087
87088 2001-05-13  Jim Meyering  <meyering@lucent.com>
87089
87090         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
87091         undefined.
87092
87093 2001-05-11  Paul Eggert  <eggert@twinsun.com>
87094
87095         dirname code cleanup.  base_name now behaves more compatibly
87096         with POSIX basename when given file names that have trailing
87097         slashes, and similarly for dir_name.  Add new primitives
87098         base_len and dir_len.  Put the directory-name-related decls
87099         into dirname.h.
87100
87101         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
87102         * lib/backupfile.c (base_name): Likewise.
87103         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
87104         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
87105         * lib/makepath.c (strip_trailing_slashes): Likewise.
87106         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
87107         ISSLASH): Likewise.
87108         * lib/rename.c (strip_trailing_slashes): Likewise.
87109         * lib/same.c (base_name): Likewise.
87110         * lib/stripslash.c (ISSLASH): Likewise.
87111
87112         * lib/addext.c: Include <dirname.h> after size_t is defined.
87113         * lib/backupfile.c: Likewise.
87114
87115         * lib/addext.c (addext): Use base_len to trim redundant
87116         trailing slashes instead of doing it ourselves.
87117         But do not trim the last slash if it is not redundant.
87118
87119         * lib/backupfile.c (find_backup_file_name,
87120         max_backup_version): Use base_len instead of rolling it ourselves.
87121         Handle the case of "" and (on DOS) "C:" correctly.
87122
87123         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
87124         needed. Include <string.h>, <dirname.h>.
87125         (base_name): Allow file names ending in slashes, other than names
87126         that are all slashes.  In this case, return the basename followed
87127         by the slashes.  This is more general, and can be used in places
87128         where the original base_name purposely had an assertion failure.
87129         (base_len): New function.
87130
87131         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
87132         Do not include <assert.h>; no longer needed.
87133         Include xalloc.h.
87134         (memrchr): Remove decl.
87135         (dir_name_r): Remove.
87136         (dir_len): Renamed from dirlen.  All callers changed.
87137         Rewrite in terms of base_name, for simplicity and consistency.
87138         (dir_name): Never return NULL.  All callers changed.
87139         Do not include <stdlib.h> in test program; no longer needed.
87140         return 0; is fine for test program.
87141
87142         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
87143         New macros.
87144         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
87145
87146         * lib/path-concat.c (path_concat): Use base_len to compute
87147         base length, not strlen; this means we cannot rely on memcpy
87148         to null-terminate.
87149
87150         * lib/same.c (STREQ): Remove.
87151         (same_name): Handle the case where the basename ends in trailing '/'.
87152
87153         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
87154         a slash was stripped.  Do not strip the last slash after a
87155         file system prefix.
87156
87157 2001-05-11  Paul Eggert  <eggert@twinsun.com>
87158
87159         * lib/Makefile.am (libfetish_a_SOURCES):
87160         Add strftime.c, since we now compile it on all hosts.
87161
87162         * lib/strftime.c (my_strftime):
87163         Define to nstrftime if emacs, but only if my_strftime is not defined.
87164         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
87165         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
87166         Add one more extra argument: a nanoseconds value.
87167         All uses changed.
87168         (ns): New macro.
87169         (my_strftime function): Add %N format.
87170         (emacs_strftimeu): Renamed from emacs_strftime,
87171         with extra ut argument.
87172
87173 2001-05-09  Paul Eggert  <eggert@twinsun.com>
87174
87175         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
87176
87177 2001-04-21  Jim Meyering  <meyering@lucent.com>
87178
87179         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
87180         doesn't interfere.
87181
87182 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
87183
87184         * m4/ftruncate.m4: Check for chsize.
87185         Link with ftruncate.o unconditionally if ftruncate is missing.
87186         This was required when cross-compiling to i586-mingw32msvc.
87187
87188 2001-04-08  Jim Meyering  <meyering@lucent.com>
87189
87190         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
87191         recomputed; that's necessary when the offset spans a DST transition.
87192         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
87193
87194 2001-04-02  Jim Meyering  <meyering@lucent.com>
87195
87196         * lib/regex.h, regex.c: Update from GNU libc.
87197
87198 2001-03-24  Jim Meyering  <meyering@lucent.com>
87199
87200         * m4/jm-macros.m4: Require autoconf-2.49d.
87201
87202 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
87203
87204         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
87205
87206 2001-03-19  Paul Eggert  <eggert@twinsun.com>
87207
87208         * lib/version-etc.c (version_etc_copyright): Update to 2001.
87209
87210 2001-03-17  Jim Meyering  <meyering@lucent.com>
87211
87212         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
87213         now that the version in autoconf is equivalent.
87214         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
87215
87216         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
87217         Suggestion from Akim Demaille.
87218
87219         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
87220         (jm_PREREQ_TEMPNAME): New function.
87221
87222 2001-03-16  Paul Eggert  <eggert@twinsun.com>
87223
87224         * lib/tempname.c (uint64_t): Define to uintmax_t if
87225         not defined, and if UINT64_MAX is not defined.
87226         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
87227         Reported by John David Anglin.
87228
87229 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
87230
87231         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
87232         resolve alias if codeset is empty.
87233         * lib/config.charset (BeOS): Use wildcard syntax.
87234
87235 2001-03-13  Jim Meyering  <meyering@lucent.com>
87236
87237         * lib/path-concat.c (path_concat)
87238         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
87239         concatenating e.g., `C:' and `foo'.
87240         From Bruno Haible.
87241
87242 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
87243
87244         * lib/localcharset.c (locale_charset): Don't use
87245         setlocale(LC_CTYPE,NULL). Don't return NULL.
87246         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
87247
87248 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
87249
87250         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
87251         support for DOS/DJGPP.
87252
87253 2001-03-01  Paul Eggert  <eggert@twinsun.com>
87254
87255         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
87256         lacks mkstemp.  Compile our own tempname.c if we compile our own
87257         mkstemp.c, as mkstemp relies on tempname.
87258
87259 2001-03-01  Jim Meyering  <meyering@lucent.com>
87260
87261         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
87262         AH_VERBATIM really does output its argument verbatim.
87263
87264 2001-02-28  Paul Eggert  <eggert@twinsun.com>
87265
87266         * lib/Makefile.am (libfetish_a_SOURCES):
87267         Add dup-safer.c, fopen-safer.c.
87268         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
87269
87270         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
87271         * lib/unistd-safer.h: New files.
87272
87273 2001-02-25  Paul Eggert  <eggert@twinsun.com>
87274
87275         The mkstemp replacement is taken from glibc 2.2.2, with some
87276         portability fixes for use outside glibc, as follows:
87277
87278         * lib/tempname.c (struct_stat64): New macro.
87279         (direxists, __gen_tempname): Use it.
87280         This avoids a portability problem with Solaris 8.
87281
87282         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
87283         (<stddef.h>, <stdint.h>, <string.h>):
87284         Include only if STDC_HEADERS || _LIBC.
87285         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
87286         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
87287         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
87288         (__set_errno): Define this macro if <errno.h> doesn't.
87289         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
87290         Define these macros if <stdio.h> doesn't.
87291         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
87292         Define these macros if <sys/stat.h>
87293         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
87294         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
87295         __xstat64): Define if not _LIBC.
87296         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
87297         (__gen_tempname): Invoke gettimeofday only if
87298         HAVE_GETTIMEOFDAY || _LIBC;
87299         otherwise, fall back on plain "time".
87300         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
87301
87302         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
87303
87304         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
87305
87306 2001-02-18  Paul Eggert  <eggert@twinsun.com>
87307
87308         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
87309
87310 2001-02-17  Paul Eggert  <eggert@twinsun.com>
87311
87312         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
87313         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
87314         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
87315         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
87316
87317 2001-02-17  Paul Eggert  <eggert@twinsun.com>
87318
87319         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
87320         Remove workaround macros for hosts that have mbrtowc but not
87321         mbstate_t, as we now insist on proper declarations for both
87322         before using mbrtowc.
87323
87324 2001-02-17  Jim Meyering  <meyering@lucent.com>
87325
87326         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
87327         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
87328         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
87329         UnixWare 7.1.1.
87330
87331         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
87332         rather than AC_CACHE_VAL.
87333
87334 2001-02-17  Jim Meyering  <meyering@lucent.com>
87335
87336         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
87337         around included file name.
87338
87339         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
87340
87341         * lib/strftime.c: Update from GNU libc (the only changes were to
87342         comments).
87343
87344 2001-02-17  Jim Meyering  <meyering@lucent.com>
87345
87346         * lib/regex.c: Update from libc.
87347
87348 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
87349
87350         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
87351         clash.
87352
87353 2001-02-16  Paul Eggert  <eggert@twinsun.com>
87354
87355         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
87356         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
87357         Reported by Mark Hounschell via Paul Eggert.
87358
87359 2001-02-07  Jim Meyering  <meyering@lucent.com>
87360
87361         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
87362
87363 2001-02-05  Jim Meyering  <meyering@lucent.com>
87364
87365         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
87366         it includes the patch required for `large file' support with at least
87367         HP-UX's 10.20 /bin/cc.
87368
87369 2001-02-03  Jim Meyering  <meyering@lucent.com>
87370
87371         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
87372         AS_IF, now that it works once again (mysteriously).
87373         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
87374
87375 2001-01-30  Jim Meyering  <meyering@lucent.com>
87376
87377         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
87378         * m4/chown.m4: Rename conftestchown to conftest.chown.
87379         * m4/rename.m4: s/conftestdir/conftest.d1/ and
87380         s/conftestdir2/conftest.d2/.
87381         * m4/utimes.m4: s/conftestdata/conftest.data/
87382         Inspired by Pavel Roskin's change in autoconf.
87383
87384 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
87385
87386         * lib/config.charset: Update for FreeBSD 4.2.
87387
87388 2001-01-27  Jim Meyering  <meyering@lucent.com>
87389
87390         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
87391         a use of AS_IF.
87392         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
87393
87394 2001-01-26  Jim Meyering  <meyering@lucent.com>
87395
87396         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
87397         quotearg.c includes it.
87398
87399 2001-01-26  Jim Meyering  <meyering@lucent.com>
87400
87401         * lib/quotearg.c: Include stddef.h.
87402         * lib/quote.c: Include stddef.h.
87403         Reported by Axel Kittenberger.
87404
87405         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
87406         line in double quotes so that it evokes a better diagnostic.
87407         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
87408         Reported by Axel Kittenberger.
87409
87410 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
87411
87412         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
87413         as if it was a `charset'.
87414
87415 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
87416
87417         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
87418         has const.
87419
87420 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
87421
87422         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
87423         to avoid a warning.  Add back 'const' to inptr.
87424
87425 2001-01-20  Jim Meyering  <meyering@lucent.com>
87426
87427         Be sure that headers are checked before used in code compiled
87428         for the type checks.
87429         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
87430         In place of that, invoke jm_CHECK_ALL_TYPES.
87431         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
87432         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
87433         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
87434         The check for ssize_t was mistakenly run before the test for unistd.h.
87435
87436         The configure-time check for stdbool.h was missing.
87437         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
87438         (jm_PREREQ_HASH): New function.
87439
87440 2001-01-17  Jim Meyering  <meyering@lucent.com>
87441
87442         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
87443         for autoconf-2.49c.
87444         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
87445
87446 2001-01-16  Jim Meyering  <meyering@lucent.com>
87447
87448         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
87449         From Bruno Haible.
87450
87451 2001-01-14  Jim Meyering  <meyering@lucent.com>
87452
87453         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
87454         foo and bar.  Create conftestdir/ in the script, not in the C code.
87455         Remove directories in the script, not in the C code.
87456         Remove conftestdir{,2} before trying to create the directory.
87457         Make the entire configure script fail if the mkdir fails.
87458
87459 2001-01-14  Jim Meyering  <meyering@lucent.com>
87460
87461         * lib/rename.c: New file.  From Volker Borchert.
87462         Include stdlib.h, string.h or strings.h, and xalloc.h.
87463         Use strip_trailing_slashes rather than open-coding it.
87464
87465 2001-01-03  Paul Eggert  <eggert@twinsun.com>
87466
87467         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
87468
87469 2001-01-03  Jim Meyering  <meyering@lucent.com>
87470
87471         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
87472         of local `inptr' to avoid warning with some system declarations of
87473         iconv.
87474
87475 2001-01-02  Volker Borchert  <bt@teknon.de>
87476
87477         * m4/rename.m4: New file.
87478         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
87479
87480 2001-01-01  Jim Meyering  <meyering@lucent.com>
87481
87482         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
87483         even on systems with utmpx.h.  It's necessary for the declaration of
87484         utmp's ut_user member.  Reported by Andreas Jaeger.
87485
87486         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
87487         available. They are required for the declarations of getgrgid and
87488         getpwuid resp.
87489         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
87490         Reported by Andreas Jaeger.
87491
87492 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
87493
87494         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
87495         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
87496         so `make install' also works in VPATH builds.
87497
87498 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
87499
87500         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
87501         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
87502         can be used in subdirectories.
87503
87504 2000-12-29  Paul Eggert  <eggert@twinsun.com>
87505
87506         * lib/modechange.c: Do not assume that mode_t uses the
87507         traditional octal encoding.  E.g. "chmod 1 FOO" should set
87508         the other-execute bit of FOO even if S_IXOTH != 1.
87509
87510         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
87511         WOTH, XOTH, ALLM): New macros.
87512         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
87513          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
87514         Use them.
87515         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
87516         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
87517         (mode_compile):
87518         No need to use uintmax_t; unsigned long is long enough.
87519         Don't bother to get suffix since we don't use it.
87520
87521 2000-12-26  Jim Meyering  <meyering@lucent.com>
87522
87523         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
87524         better with autoheader.
87525
87526 2000-12-24  Jim Meyering  <meyering@lucent.com>
87527
87528         * lib/hash.c (is_prime): Return explicit boolean values.
87529         (hash_get_first): Return NULL to appease Irix5.6's 89.
87530         Reported by Nelson Beebe.
87531
87532 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
87533
87534         * lib/localcharset.c (locale_charset): Add support for Win32.
87535
87536 2000-12-18  Paul Eggert  <eggert@twinsun.com>
87537
87538         * lib/physmem.h, lib/physmem.c: New files.
87539
87540         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
87541         (noinst_HEADERS): Add physmem.h.
87542
87543         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
87544         't' for compatibility with Solaris 8 sort.
87545
87546 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
87547
87548         * lib/config.charset: Add support for BeOS.
87549
87550 2000-12-17  Jim Meyering  <meyering@lucent.com>
87551
87552         * m4/dos.m4 (jm_AC_DOS): New file and macro.
87553         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
87554
87555 2000-12-16  Jim Meyering  <meyering@lucent.com>
87556
87557         This bug had a serious impact on chown: `chown N:M FILE' (for integer
87558         N and M) would have treated it like `chown N:N FILE'.
87559
87560         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
87561
87562 2000-12-16  Jim Meyering  <meyering@lucent.com>
87563
87564         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
87565         SHELLS_FILE to a file name that's useful on djgpp systems.
87566         Include stdlib.h.
87567         (ADDITIONAL_DEFAULT_SHELLS): Define.
87568         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
87569         Based mostly on a patch from Prashant TR.
87570
87571 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
87572
87573         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
87574         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
87575         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
87576
87577 2000-12-08  Andreas Schwab  <schwab@suse.de>
87578
87579         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
87580         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
87581
87582 2000-12-07  Jim Meyering  <meyering@lucent.com>
87583
87584         * lib/stripslash.c (ISSLASH): Define.
87585         (strip_trailing_slashes): Use ISSLASH rather than comparing against
87586         `/'.
87587         From Prashant TR.
87588
87589         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
87590         (dir_name_r): Declare this function as static.
87591         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
87592         manifest itself on a name containing a mix of slashes and
87593         backslashes.
87594         Make this function work with names starting with a DOS-style
87595         drive letter and colon prefix.
87596         (dir_name): Append `.' if necessary.
87597         Based mostly on patches from Prashant TR and Eli Zaretskii.
87598
87599         * lib/dirname.h (dir_name_r): Remove prototype.
87600
87601 2000-12-06  Paul Eggert  <eggert@twinsun.com>
87602
87603         * m4/off_t-format.m4: Remove this file.
87604         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
87605
87606 2000-12-06  Jim Meyering  <meyering@lucent.com>
87607
87608         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
87609         replacement strtoull, we may well need the replacement strtoul, too.
87610         Check for declarations of strtoul and strtoull.
87611         Check for strtol.  Mainly as a cue to cause automake to include
87612         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
87613         Check for limits.h -- strtol.c needs it.
87614
87615 2000-12-05  Jim Meyering  <meyering@lucent.com>
87616
87617         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
87618
87619 2000-12-04  Jim Meyering  <meyering@lucent.com>
87620
87621         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
87622         Also include memory.h, stdlib.h, unistd.h if appropriate.
87623         Reported by Andreas Jaeger (conflicting declaration of malloc).
87624
87625 2000-12-02  Jim Meyering  <meyering@lucent.com>
87626
87627         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
87628         * m4/jm-macros.m4 (jm_MACROS): require it.
87629
87630 2000-12-02  Jim Meyering  <meyering@lucent.com>
87631
87632         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
87633
87634 2000-12-01  Paul Eggert  <eggert@twinsun.com>
87635
87636         * lib/memrchr.c: Include <config.h> before any system include file.
87637
87638 2000-11-30  Jim Meyering  <meyering@lucent.com>
87639
87640         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
87641
87642 2000-11-30  Jim Meyering  <meyering@lucent.com>
87643
87644         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
87645
87646 2000-11-29  Paul Eggert  <eggert@twinsun.com>
87647
87648         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
87649
87650 2000-11-26  Jim Meyering  <meyering@lucent.com>
87651
87652         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
87653
87654 2000-11-22  Paul Eggert  <eggert@twinsun.com>
87655
87656         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
87657         size of (size_t) -1; it's not portable.
87658
87659 2000-11-17  Jim Meyering  <meyering@lucent.com>
87660
87661         * lib/strstr.c: Update from GNU libc.
87662
87663 2000-11-17  Akim Demaille  <akim@epita.fr>
87664
87665         * lib/obstack.h: Formatting changes.
87666         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
87667         prevent type checking.
87668         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
87669         cast the value to (void *): assigning a `foo *' to a `void *'
87670         variable is valid.
87671         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
87672
87673 2000-11-16  Jim Meyering  <meyering@lucent.com>
87674
87675         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
87676
87677 2000-11-11  Jim Meyering  <meyering@lucent.com>
87678
87679         * lib/error.c: Add a couple #includes, merging from GNU libc version.
87680
87681 2000-11-10  Jim Meyering  <meyering@lucent.com>
87682
87683         * lib/obstack.h: Update from GNU libc.
87684         * lib/obstack.c: Likewise.
87685
87686 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
87687
87688         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
87689
87690 2000-11-06  Paul Eggert  <eggert@twinsun.com>
87691
87692         * lib/getusershell.c (setusershell): Use rewind rather than
87693         fseek/fseeko, to avoid configuration hassles with fseeko.
87694         Don't bother opening SHELLS_FILE if shellstream is NULL;
87695         it's not necessary.
87696
87697 2000-11-05  Jim Meyering  <meyering@lucent.com>
87698
87699         * lib/makepath.h (make_dir): Declare.
87700         * lib/makepath.c (make_dir): Remove `static' attribute.
87701         Tweak a comment.
87702
87703 2000-11-04  Jim Meyering  <meyering@lucent.com>
87704
87705         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
87706
87707 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
87708
87709         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
87710         last one in a bucket, advance to the next bucket.
87711
87712 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
87713
87714         * lib/fnmatch.c: Do not comment out all the code if we are using
87715         the GNU C library, because in some cases we are replacing buggy
87716         code in the GNU C library itself.
87717
87718 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
87719
87720         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
87721         (regex_compile): Catch bogus \(\1\).
87722
87723 2000-10-30  Paul Eggert  <eggert@twinsun.com>
87724
87725         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
87726         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
87727         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
87728
87729 2000-10-30  Paul Eggert  <eggert@twinsun.com>
87730
87731         * lib/error.h, getline.h, modechange.h:
87732         Remove "2000" from Copyright line, as the file hasn't been
87733         changed this year other than in the copyright notice.
87734
87735         * lib/xalloc.h: Add "2000" to Copyright line, as this file
87736         was changed this year.
87737
87738 2000-10-29  Jim Meyering  <meyering@lucent.com>
87739
87740         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
87741         renaming.
87742         * m4/ls-mntd-fs.m4: Likewise
87743
87744 2000-10-29  Jim Meyering  <meyering@lucent.com>
87745
87746         * lib/xstat.in: Fix grammar in comment.
87747
87748 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
87749
87750         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
87751         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
87752         doesn't define __restrict_arr.
87753
87754 2000-10-28  Jim Meyering  <meyering@lucent.com>
87755
87756         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
87757         (jm_PREREQ_MEMCHR): New function.
87758
87759 2000-10-28  Jim Meyering  <meyering@lucent.com>
87760
87761         * lib/memchr.c: Update from libc.
87762         Adjust for portability:
87763         [HAVE_STDLIB_H]: Include stdlib.h.
87764         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
87765         Undef __memchr, too.
87766         [!weak_alias]: Define __memchr to memchr.
87767
87768         * lib/regex.c: Update from libc.
87769         * lib/regex.h: Likewise.
87770         * lib/getopt1.c: Likewise.
87771         * lib/memcmp.c: Likewise.
87772
87773         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
87774         Avoid using fseek, when possible -- it's broken by design.
87775         Patch by Ulrich Drepper.
87776
87777 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
87778
87779         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
87780         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
87781         Giving in to popular pressure to shut up the compiler with casts.
87782
87783 2000-10-26  Jim Meyering  <meyering@lucent.com>
87784
87785         * lib/strftime.c: Update from libc.
87786
87787 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
87788
87789         * regex.c: More `unsigned char' -> `re_char' changes.
87790         Also change several `int' into `re_wchar_t'.
87791         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
87792         (PUSH_FAILURE_POINTER): Don't cast any more.
87793         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
87794         We want GCC to complain, since this piece of code makes
87795         re_match non-reentrant, which *should* be fixed.
87796         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
87797         (EXTEND_BUFFER): Use RETALLOC.
87798         (SET_LIST_BIT): Don't cast.
87799         (re_wchar_t): New type.
87800         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
87801         that those two functions will always properly return.
87802         (IMMEDIATE_QUIT_CHECK): Cast to void.
87803         (analyse_first): Use recursion rather than an explicit stack.
87804         (re_compile_fastmap): Can't fail anymore.
87805         (re_search_2): Don't check re_compile_fastmap for failure.
87806         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
87807         Now also sets the new value (passed in a new argument).
87808         (re_match_2_internal): Use it.
87809         Also, use a new var `reg' of type size_t when looping through regs
87810         rather than reuse the inappropriate `mcnt'.
87811
87812 2000-10-25  Jim Meyering  <meyering@lucent.com>
87813
87814         * lib/obstack.c: Update from libc.
87815
87816 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
87817
87818         * regex.c (regex_compile): Change the way of handling a range from
87819         a char less than 256 to a char not less than 256.
87820
87821 2000-10-24  Andrew Innes  <andrewi@gnu.org>
87822
87823         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
87824         NT-Emacs only.
87825         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
87826         so that re_search functions only quit when callers expect them to.
87827
87828 2000-10-23  Jim Meyering  <meyering@lucent.com>
87829
87830         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
87831         wrong.  That set_locale call must not have any side effects.
87832         From Paul Eggert.
87833
87834 2000-10-22  Jim Meyering  <meyering@lucent.com>
87835
87836         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
87837         [CYCLIC]: Remove now-unused definition.
87838
87839         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
87840         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
87841         Suggestion from Ulrich Drepper.
87842
87843 2000-10-21  Jim Meyering  <meyering@lucent.com>
87844
87845         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
87846         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
87847         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
87848
87849 2000-10-21  Jim Meyering  <meyering@lucent.com>
87850
87851         * lib/dirname.c (memrchr): Declare if necessary.
87852         (dir_name): Remove the restriction that there be no
87853         trailing slashes.  Now, this code skips past them, effectively
87854         ignoring them.
87855         [TEST_DIRNAME] (main): New unit tests.
87856
87857         * lib/memrchr.c: New file from GNU libc.
87858         Undef __memrchr, too.
87859         [!weak_alias]: Define __memrchr to memrchr.
87860         Guard weak_alias use with `#ifdef weak_alias'.
87861
87862 2000-10-21  Jim Meyering  <meyering@lucent.com>
87863
87864         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
87865         (dir_name): Use dir_name_r.
87866         * lib/dirname.h (dir_name_r): Declare it.
87867
87868 2000-10-17  Jim Meyering  <meyering@lucent.com>
87869
87870         * lib/quote.h (PARAMS): Define and use.
87871         Reported by Akim Demaille.
87872
87873         * lib/getopt.c: Update from libc.
87874
87875 2000-10-16  Jim Meyering  <meyering@lucent.com>
87876
87877         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
87878         setlocale.
87879         From Jan Fedak.
87880
87881 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
87882
87883         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
87884
87885 2000-09-25  Jim Meyering  <meyering@lucent.com>
87886
87887         * lib/md5.h (rol): Define (from GnuPG).
87888
87889         * lib/sha.c: Give credit (GnuPG) where due.
87890         (M): Use rol rather than open-coding it.
87891         Add a FIXME comment.
87892
87893 2000-09-21  Jim Meyering  <meyering@lucent.com>
87894
87895         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
87896         Reported by Michael Stone.
87897
87898 2000-09-20  Jim Meyering  <meyering@lucent.com>
87899
87900         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
87901         (noinst_HEADERS): Add sha.h.
87902         Based on code from Scott G. Miller and from GnuPG.
87903
87904 2000-09-18  Jim Meyering  <meyering@lucent.com>
87905
87906         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
87907         LIBS. Otherwise, everyone ends up linking with -lelf for some
87908         configurations.
87909         Reported by Mike Stone.
87910
87911 2000-09-15  Jim Meyering  <meyering@lucent.com>
87912
87913         * lib/regex.c: Update from libc.
87914
87915 2000-09-10  Jim Meyering  <meyering@lucent.com>
87916
87917         * lib/getopt.c (_getopt_internal): Update from glibc.
87918
87919 2000-09-09  Jim Meyering  <meyering@lucent.com>
87920
87921         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
87922         think it should be used as a general replacement for isascii.
87923         * lib/fnmatch.c: Likewise.
87924         * lib/mbswidth.c: Likewise
87925         * lib/regex.c: Likewise.
87926
87927         Don't use atoi.
87928         * lib/userspec.c: Include sys/param.h and limits.h.
87929         Include xstrtol.h.
87930         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
87931         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
87932         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
87933         UID, GID.  Check range.
87934
87935 2000-09-06  Jim Meyering  <meyering@lucent.com>
87936
87937         * lib/getopt.c (_getopt_internal): Update from glibc.
87938
87939 2000-08-30  Jim Meyering  <meyering@lucent.com>
87940
87941         * lib/strftime.c: Merge in changes from GNU libc.
87942
87943 2000-08-26  Jim Meyering  <meyering@lucent.com>
87944
87945         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
87946         * m4/fpending.m4: New file.
87947
87948 2000-08-26  Jim Meyering  <meyering@lucent.com>
87949
87950         * lib/closeout.c: Include "__fpending.h".
87951         (close_stdout_status): Return right away if there's nothing to flush.
87952
87953         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
87954         * lib/__fpending.c: New file.
87955         * lib/__fpending.h: New file.
87956
87957 2000-08-20  Jim Meyering  <meyering@lucent.com>
87958
87959         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
87960         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
87961         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
87962
87963 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
87964
87965         Improve fileutils installation on systems where running
87966         programs (like install) can't be unlinked.
87967         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
87968         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
87969
87970 2000-08-07  Paul Eggert  <eggert@twinsun.com>
87971
87972         Standardize on "memory exhausted" instead of "Memory exhausted"
87973         or "virtual memory exhausted".
87974         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
87975         "virtual memory exhausted".
87976         * lib/same.c (same_name): Invoke xalloc_die instead of printing
87977         our own message.
87978         * lib/userspec.c (parse_user_spec): Likewise.
87979         * lib/bumpalloc.h: comment fix
87980         * lib/same.c, userspec.c: Include xalloc.h.
87981
87982         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
87983         not char *const and pointing to a constant array.
87984         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
87985         (xrealloc): Comment fix.
87986
87987         * lib/userspec.c (parse_user_spec):
87988         Don't translate a message until just before returning,
87989         to avoid unnecessary translation.
87990
87991 2000-08-07  Jim Meyering  <meyering@lucent.com>
87992
87993         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
87994         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
87995         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
87996         getgroups.c, gethostname.c, getopt.h, group-member.c,
87997         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
87998         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
87999         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
88000         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
88001         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
88002         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
88003         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
88004         yesno.c: Back out Copyright date changes for each file with no change
88005         this year.  This eases coordination with other programs using the same
88006         source code modules.  From Paul Eggert.
88007
88008 2000-08-06  Paul Eggert  <eggert@twinsun.com>
88009
88010         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
88011         not char, for compatibility with glibc 2.1.3 strftime.c.
88012
88013 2000-08-03  Greg McGary  <greg@mcgary.org>
88014
88015         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
88016         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
88017         (EXTEND_BUFFER): Use them.
88018
88019 2000-08-01  Jim Meyering  <meyering@lucent.com>
88020
88021         * lib/dirname.c (ISSLASH): Define.
88022         (BACKSLASH_IS_PATH_SEPARATOR): Define.
88023         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
88024         both `\' and `/' may be use as path separators.
88025         Based on a patch from Prashant TR.
88026
88027 2000-07-31  Paul Eggert  <eggert@twinsun.com>
88028
88029         * lib/quotearg.c (quotearg_n_options): Don't make the initial
88030         slot vector a constant, since it might get modified.
88031
88032 2000-07-31  Jim Meyering  <meyering@lucent.com>
88033
88034         * lib/xmalloc.c: Use `virtual memory exhausted', not
88035         `Memory exhausted'.
88036         * lib/obstack.c (print_and_abort): Likewise.
88037
88038 2000-07-30  Paul Eggert  <eggert@twinsun.com>
88039
88040         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
88041         buffer, so that the caller can always quote one small
88042         component of a "memory exhausted" message in slot 0.
88043         From a suggestion by Jim Meyering.
88044
88045 2000-07-30  Jim Meyering  <meyering@lucent.com>
88046
88047         * lib/makepath.c (make_path): Quote the other instance, too.
88048
88049         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
88050         (STATIC_BUF_SIZE): Define.
88051         (quotearg_n_options): Use only statically allocated storage when
88052         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
88053         than STATIC_BUF_SIZE.
88054
88055 2000-07-29  Jim Meyering  <meyering@lucent.com>
88056
88057         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
88058         * lib/dirname.c (dir_name): Likewise.
88059
88060         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
88061         `/'.
88062
88063         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
88064         (dir_name): Assert that there are no trailing slashes.
88065
88066 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
88067
88068         * lib/mbswidth.h (mbswidth): Add a flags argument.
88069         (mbswidth): New declaration.
88070         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
88071         * lib/mbswidth.c (mbswidth): Add a flags argument.
88072         (mbsnwidth): New function.
88073
88074 2000-07-24  Jim Meyering  <meyering@lucent.com>
88075
88076         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
88077
88078 2000-07-23  Paul Eggert  <eggert@twinsun.com>
88079
88080         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
88081
88082 2000-07-23  Paul Eggert  <eggert@twinsun.com>
88083
88084         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
88085         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
88086         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
88087         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
88088         invoke multibyte primitives.
88089
88090 2000-07-23  Paul Eggert  <eggert@twinsun.com>
88091
88092         * lib/quotearg.c:
88093         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
88094         so that mbstate_t is always defined.
88095
88096         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
88097         be 1 in at least one GCC installation, and this configuration
88098         error is likely to be common.  Ignoring MB_LEN_MAX hurts
88099         performance on hosts that have mbrtowc but have only unibyte
88100         locales, but I assume these hosts are rare.
88101
88102 2000-07-23  Paul Eggert  <eggert@twinsun.com>
88103
88104         * lib/mbswidth.c (_XOPEN_SOURCE):
88105         Don't define; this causes problems on Solaris 7.
88106         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
88107
88108 2000-07-23  Jim Meyering  <meyering@lucent.com>
88109
88110         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
88111         too: getgrgid, getpwuid, getuid.
88112
88113 2000-07-23  Jim Meyering  <meyering@lucent.com>
88114
88115         * lib/basename.c (base_name): Add an assertion.
88116
88117 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
88118
88119         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
88120         shadow its mbsinit function.
88121
88122 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
88123
88124         * lib/mbswidth.h: New file.
88125         * lib/mbswidth.c: New file.
88126         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
88127         (noinst_HEADERS): Add mbswidth.h.
88128
88129 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
88130
88131         * lib/config.charset: Add support for FreeBSD. Improve support for
88132         HP-UX and IRIX 6.
88133
88134 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
88135
88136         * m4/mbswidth.m4: New file.
88137         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
88138
88139 2000-07-15  Jim Meyering  <meyering@lucent.com>
88140
88141         * lib/makepath.c: Include quote.h.
88142         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
88143         corresponding argument in a `quote (...)' call.
88144         Give better diagnostics.
88145
88146         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
88147         (noinst_HEADERS): Add quote.h.
88148
88149         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
88150         from tar's src/misc.c.
88151         * lib/quote.h: New file.  Prototypes for same.
88152
88153 2000-07-14  Paul Eggert  <eggert@twinsun.com>
88154
88155         From a suggestion by Bruno Haible.
88156         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
88157         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
88158         to decide whether to define the BeOS workaround macro;
88159         this adjusts to the change to AC_MBSTATE_T.
88160
88161 2000-07-14  Jim Meyering  <meyering@lucent.com>
88162
88163         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
88164         jm_AC_TYPE_UINTMAX_T.
88165
88166 2000-07-13  Paul Eggert  <eggert@twinsun.com>
88167
88168         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
88169
88170         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
88171         quotearg_buffer_restyled): Add support for
88172         clocale_quoting_style.  Undo previous change to
88173         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
88174         and "{RIGHT QUOTATION MARK}" msgids.
88175
88176 2000-07-10  Paul Eggert  <eggert@twinsun.com>
88177
88178         From a suggestion by Bruno Haible.
88179         * m4/mbstate_t.m4 (AC_MBSTATE_T):
88180         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
88181         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
88182         and mbstate_t, to a single-part test that simply defines mbstate_t.
88183         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
88184         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
88185
88186 2000-07-10  Jim Meyering  <meyering@lucent.com>
88187
88188         * m4/strerror_r.m4: Mirror the correction made in autoconf.
88189
88190         * m4/gnu-source.m4: Output to confdefs.h directly.
88191         Suggestion from Akim Demaille.
88192
88193 2000-07-09  Paul Eggert  <eggert@twinsun.com>
88194
88195         The old behavior of quoting `like this' doesn't look good with
88196         newer, ISO-style fonts.  See:
88197         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
88198
88199         Instead, quote "like this" by default.  Let the translator
88200         tailor the locale-specific quoting behavior by providing
88201         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
88202
88203         * lib/quotearg.c (N_): New macro.
88204         (gettext_default): New function.
88205         (quotearg_buffer_restyled): Use
88206         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
88207         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
88208
88209 2000-07-09  Jim Meyering  <meyering@lucent.com>
88210
88211         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
88212         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
88213
88214         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
88215         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
88216
88217 2000-07-09  Jim Meyering  <meyering@lucent.com>
88218
88219         * lib/Most files: Update copyright dates to include 2000.
88220
88221 2000-07-08  Jim Meyering  <meyering@lucent.com>
88222
88223         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
88224         if not defined.
88225         (xgethostname): Remove now-unnecessary #ifdef.
88226         Move declaration of `err' into loop where it's used.
88227
88228 2000-07-05  Paul Eggert  <eggert@twinsun.com>
88229         and Bruno Haible  <haible@clisp.cons.org>
88230
88231         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
88232         only if the test for an object-type mbstate_t fails.  This
88233         prevents us from mistakenly reporting that mbstate_t is a
88234         system object type after we "#define mbstate_t int" to work
88235         around its lack.
88236
88237 2000-07-05  Paul Eggert  <eggert@twinsun.com>
88238         and Bruno Haible  <haible@clisp.cons.org>
88239
88240         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
88241
88242 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
88243
88244         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
88245         to strerror_r.
88246         Include <ctype.h> for use of isalpha.
88247
88248 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
88249
88250         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
88251         by allocating a larger buffer. Test the gethostname return value for
88252         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
88253         returns an error and ENAMETOOLONG isn't defined.
88254
88255 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
88256
88257         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
88258         dimension.
88259
88260 2000-07-04  Jim Meyering  <meyering@lucent.com>
88261
88262         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
88263         of the deprecated AC_CHECKING.
88264
88265 2000-07-04  Jim Meyering  <meyering@lucent.com>
88266
88267         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
88268         Reported by Bruno Haible.
88269
88270 2000-07-04  Jim Meyering  <meyering@lucent.com>
88271
88272         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
88273         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
88274         lacks mbrtowc.
88275
88276 2000-07-03  Paul Eggert  <eggert@twinsun.com>
88277
88278         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
88279         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
88280
88281 2000-07-03  Paul Eggert  <eggert@twinsun.com>
88282         and Bruno Haible  <haible@clisp.cons.org>
88283
88284         * lib/quotearg.c (mbrtowc):
88285         Assign to *pwc, and return 1 only if result is nonzero.
88286         (iswprint): Use ISPRINT when substituting our own mbrtowc.
88287
88288 2000-07-03  Jim Meyering  <meyering@lucent.com>
88289
88290         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
88291
88292 2000-07-03  Jim Meyering  <meyering@lucent.com>
88293
88294         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
88295         This is necessary to get a definition of e.g., UTMP_FILE on
88296         HP-UX 10.20.
88297         From Bob Proulx.
88298
88299 2000-07-02  Jim Meyering  <meyering@lucent.com>
88300
88301         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
88302
88303         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
88304         AC_LIBOBJ(function_name).
88305         * m4/chown.m4: Likewise.
88306         * m4/fnmatch.m4: Likewise.
88307         * m4/ftruncate.m4: Likewise.
88308         * m4/getgroups.m4: Likewise.
88309         * m4/getline.m4: Likewise.
88310         * m4/group-member.m4: Likewise.
88311         * m4/jm-macros.m4: Likewise.
88312         * m4/lstat.m4: Likewise.
88313         * m4/malloc.m4: Likewise.
88314         * m4/memcmp.m4: Likewise.
88315         * m4/nanosleep.m4: Likewise.
88316         * m4/putenv.m4: Likewise.
88317         * m4/realloc.m4: Likewise.
88318         * m4/regex.m4: Likewise.
88319         * m4/stat.m4: Likewise.
88320         * m4/strftime.m4: Likewise.
88321
88322 2000-07-02  Jim Meyering  <meyering@lucent.com>
88323
88324         * lib/quotearg.c (mbstate_t): Don't define here.
88325
88326 2000-07-02  Jim Meyering  <meyering@lucent.com>
88327
88328         * lib/nanosleep.c (SIGCONT): Define if not already defined.
88329
88330 2000-07-01  Jim Meyering  <meyering@lucent.com>
88331
88332         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
88333
88334 2000-07-01  Jim Meyering  <meyering@lucent.com>
88335
88336         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
88337         problem.
88338
88339 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
88340
88341         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
88342         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
88343
88344 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
88345
88346         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
88347         per change in ../m4/ls-mntd-fs.m4.
88348         (read_filesystem_list): Ignore symbolic links.
88349
88350 2000-06-29  Jim Meyering  <meyering@lucent.com>
88351
88352         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
88353         for declaration of strcmp.
88354
88355         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
88356
88357         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
88358         Avoid warning by casting result to `char *' to remove `const'.
88359
88360 2000-06-28  Jim Meyering  <meyering@lucent.com>
88361
88362         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
88363         included by quotearg.c, for which we perform this test.  From
88364         Bruno Haible.
88365
88366 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
88367
88368         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
88369         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
88370         <utmpx.h> exists, put readutmp.o into LIBOBJS.
88371
88372 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
88373
88374         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
88375
88376 2000-06-26  Paul Eggert  <eggert@twinsun.com>
88377
88378         savedir now sets errno on failure and invokes xmalloc to get memory.
88379         Fix a couple of other minor bugs while we're at it.
88380
88381         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
88382         (NAMLEN): Remove macro.
88383         (malloc, realloc): Remove decls.
88384         (stpcpy): Likewise.
88385         ("xalloc.h"): Include.
88386         (NAME_SIZE_DEFAULT): New macro.
88387         (savedir): Use xmalloc / xrealloc to allocate memory.
88388         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
88389         Skip "" directory entries.
88390         Use strlen to calculate directory entry length, since the old method
88391         is rarely used these days and isn't worth supporting.
88392         Don't use a pointer after freeing it.
88393         Check for integer overflow when calculating allocation size.
88394         Use memcpy to copy entries, instead of stpcpy.
88395         Set errno properly when returning NULL.
88396         Check for readdir error.
88397
88398 2000-06-26  Jim Meyering  <meyering@lucent.com>
88399
88400         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
88401
88402 2000-06-25  Jim Meyering  <meyering@lucent.com>
88403
88404         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
88405         Linux header bug when _XOPEN_SOURCE is defined to 500.
88406
88407 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
88408
88409         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
88410         deficiency.
88411
88412 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
88413
88414         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
88415         Include xalloc.h.
88416         Don't include <stdlib.h>.  Don't declare malloc, realloc.
88417
88418 2000-06-24  Jim Meyering  <meyering@lucent.com>
88419
88420         * m4/strerror_r.m4: Revive this file -- to try out an experimental
88421         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
88422         for which strerror does return char*, but which lacks a conveniently
88423         accessible declaration of the function.  If the compile-test says
88424         strerror_r doesn't work, then resort to a `run'-test that works on
88425         BeOS and segfaults on DEC Unix.
88426
88427 2000-06-24  Jim Meyering  <meyering@lucent.com>
88428
88429         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
88430
88431 2000-06-23  Paul Eggert  <eggert@twinsun.com>
88432
88433         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
88434         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
88435
88436 2000-06-23  Paul Eggert  <eggert@twinsun.com>
88437
88438         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
88439         (mbrtowc, mbstate_t): Define substitutes if
88440         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
88441         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
88442         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
88443
88444 2000-06-23  Jim Meyering  <meyering@lucent.com>
88445
88446         * m4/afs.m4: Add missing AC_MSG_RESULT.
88447         Reported by Bruno Haible.
88448
88449         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
88450         Suggestion from Bruno Haible.
88451
88452 2000-06-23  Jim Meyering  <meyering@lucent.com>
88453
88454         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
88455
88456 2000-06-21  Jim Meyering  <meyering@lucent.com>
88457
88458         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
88459
88460 2000-06-21  Jim Meyering  <meyering@lucent.com>
88461
88462         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
88463         (noinst_HEADERS): Add getstr.h.
88464
88465         * lib/getline.c (getstr): Move into a separate file.
88466         * lib/getstr.c (getstr): New file, extracted from getline.c, with
88467         the following changes: new parameter, delim2; both delim[12]
88468         parameters have type `int', not `char'.  The latter would lose
88469         with 8-bit delimiters.
88470         * lib/getstr.h: New file.
88471
88472 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
88473
88474         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
88475         than 1024, return a memory chunk of least possible size, instead
88476         of size PATH_MAX + 2. In the loop, increment the size proportionally.
88477         Use free/xmalloc instead of xrealloc to avoid copying for very long
88478         paths.
88479
88480 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
88481
88482         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
88483         the empty string.
88484
88485 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
88486
88487         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
88488         address, not strdup.  Include <stdlib.h> and don't declare free().
88489
88490 2000-06-19  Jim Meyering  <meyering@lucent.com>
88491
88492         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
88493
88494 2000-06-18  Jim Meyering  <meyering@lucent.com>
88495
88496         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
88497
88498         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
88499         `checking whether...' message to be consistent with that of the
88500         lstat test.
88501
88502 2000-06-18  Jim Meyering  <meyering@lucent.com>
88503
88504         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
88505         Besides, these days every porting target provides a mkdir function.
88506
88507         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
88508         needed. (this snippet comes from src/system.h).
88509
88510 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
88511
88512         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
88513
88514 2000-06-15  Paul Eggert  <eggert@twinsun.com>
88515
88516         * lib/human.c (adjust_value): New function.
88517         (human_readable_inexact): Apply rounding style even when
88518         printing approximate values.
88519
88520 2000-06-14  Paul Eggert  <eggert@twinsun.com>
88521
88522         * lib/human.c (human_readable_inexact): Allow an input block
88523         size that is not a multiple of the output block size, and vice versa.
88524         Reported by Piergiorgio Sartor.
88525
88526 2000-06-14  Paul Eggert  <eggert@twinsun.com>
88527
88528         * lib/getdate.y (get_date): Apply relative times after time
88529         zone indicator, not before.  Reported by Todd A. Jacobs.
88530
88531 2000-06-13  Jim Meyering  <meyering@lucent.com>
88532
88533         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
88534
88535         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
88536
88537 2000-06-12  Paul Eggert  <eggert@twinsun.com>
88538
88539         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
88540
88541 2000-06-12  Jim Meyering  <meyering@lucent.com>
88542
88543         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
88544         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
88545         optional argument.
88546         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
88547         the optional argument, `lib'.
88548
88549 2000-06-08  Jim Meyering  <meyering@lucent.com>
88550
88551         * m4/largefile.m4: Remove file (now that it's part of autoconf).
88552
88553 2000-06-04  Paul Eggert  <eggert@twinsun.com>
88554
88555         Rewrite largefile configuration so that we don't need to run
88556         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
88557         AC_CANONICAL_HOST in configure.in -- jmm]
88558
88559         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
88560         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
88561         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
88562         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
88563         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
88564         All uses changed.
88565         Instead of inspecting the output of getconf, try to compile the
88566         test program without and with the macro definition.
88567         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
88568         for getconf.  Instead, check for the needed flags by compiling
88569         test programs.
88570
88571 2000-06-04  Paul Eggert  <eggert@twinsun.com>
88572
88573         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
88574
88575 2000-06-04  Jim Meyering  <meyering@lucent.com>
88576
88577         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
88578         SunOS 4.1.4 for which gid_t is an unsigned type.
88579
88580 2000-06-03  Jim Meyering  <meyering@lucent.com>
88581
88582         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
88583         now that autoconf requires that.
88584
88585         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
88586         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
88587         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
88588
88589 2000-06-03  Jim Meyering  <meyering@lucent.com>
88590
88591         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
88592
88593 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
88594
88595         * m4/glibc21.m4: New file.
88596         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
88597
88598 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
88599
88600         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
88601         newer, don't install charset.alias.
88602         * lib/config.charset: Change the Linux/glibc rules so they become empty
88603         on glibc-2.1 or newer.
88604
88605 2000-06-02  Jim Meyering  <meyering@lucent.com>
88606
88607         * lib/mountlist.c: Back out last change.  Instead, do this...
88608         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
88609         me_dummy member using the same `ignore'-testing code.
88610         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
88611         fs_type strings.
88612         From Mark D. Roth.
88613
88614 2000-05-29  Jim Meyering  <meyering@lucent.com>
88615
88616         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
88617         mounts with the `ignore' attribute.  Based on a patch from
88618         Mark D. Roth.
88619
88620 2000-05-28  Jim Meyering  <meyering@lucent.com>
88621
88622         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
88623         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
88624         * m4/stat.m4: Likewise.
88625         * m4/lstat.m4: Likewise.
88626         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
88627
88628         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
88629         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
88630
88631 2000-05-26  Jim Meyering  <meyering@lucent.com>
88632
88633         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
88634
88635 2000-05-24  Jim Meyering  <meyering@lucent.com>
88636
88637         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
88638         autoconf requires that.
88639         * m4/lib-check.m4: Likewise.
88640         * m4/jm-macros.m4: Likewise.
88641         * m4/strftime.m4: Likewise.
88642
88643         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
88644         AC_CHECK_DECLS, now that autoconf requires that.
88645
88646 2000-05-22  Jim Meyering  <meyering@lucent.com>
88647
88648         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
88649         * m4/lstat.m4: Likewise.
88650
88651 2000-05-22  Jim Meyering  <meyering@lucent.com>
88652
88653         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
88654
88655 2000-05-20  Jim Meyering  <meyering@lucent.com>
88656
88657         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
88658         (jm_PREREQ): Use it.
88659
88660 2000-05-18  Jim Meyering  <meyering@lucent.com>
88661
88662         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
88663         back, too, since it may have been modified by allocate_entry.
88664         (hash_delete): Rewrite to use neither the assignment operator
88665         nor the comma operator in an if-expression.
88666
88667 2000-05-15  Paul Eggert  <eggert@twinsun.com>
88668
88669         * lib/closeout.c:
88670         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
88671         Remove; no longer needed.
88672         "quotearg.h": Add include.
88673         (file_name): Do not bother to explicitly initialize to NULL; it's less
88674         efficient on some hosts.
88675         (close_stdout_status): Remove test as to whether stdout was already
88676         closed; it breaks for the case "echo x | sort >&-".
88677         Quote file name colons.
88678         Do not assume that _("write error") lacks format strings.
88679
88680 2000-05-15  Jim Meyering  <meyering@lucent.com>
88681
88682         * lib/version-etc.c (version_etc_copyright): Update the copyright
88683         string used in all --version output.
88684
88685 2000-05-14  Jim Meyering  <meyering@lucent.com>
88686
88687         * lib/closeout.c (close_stdout_set_file_name): New function.
88688         (close_stdout_status): Use new file-scoped global.
88689         Return right away if fstat says the stdout file descriptor is invalid.
88690         * lib/closeout.h (close_stdout_set_file_name): Declare.
88691
88692 2000-05-10  Jim Meyering  <meyering@lucent.com>
88693
88694         * lib/closeout.c [default_exit_status]: New file-scoped variable.
88695         (close_stdout_set_status): New function.
88696         * lib/closeout.h (close_stdout_set_status): Declare.
88697
88698 2000-05-09  Jim Meyering  <meyering@lucent.com>
88699
88700         * m4/gettext.m4: Rename this...
88701         * m4/libintl.m4: ...to this.
88702
88703 2000-05-08  Jim Meyering  <meyering@lucent.com>
88704
88705         * lib/long-options.c: Don't include closeout.h.
88706         (parse_long_options): Don't call close_stdout for --version.
88707
88708 2000-05-06  Paul Eggert  <eggert@twinsun.com>
88709
88710         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
88711         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
88712         2.1.3 bug.  This avoids a clash when files like regex.c define
88713         _GNU_SOURCE.
88714
88715 2000-05-06  Jim Meyering  <meyering@lucent.com>
88716
88717         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
88718         (AC_REPLACE_FUNCS): Add strnlen.
88719
88720         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
88721         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
88722
88723         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
88724         AC_SEARCH_LIBS call for nanosleep.
88725         (LIB_NANOSLEEP): Set and AC_SUBST.
88726
88727 2000-05-06  Jim Meyering  <meyering@lucent.com>
88728
88729         * lib/strnlen.c: Undefine __strnlen and strnlen.
88730         [!weak_alias]: Define __strnlen to strnlen.
88731
88732         * lib/atexit.c: New file, from libiberty.
88733
88734 2000-05-06  Jim Meyering  <meyering@lucent.com>
88735
88736         * lib/closeout.c (close_stdout_status): Also check for errors on the
88737         stderr stream.
88738
88739 2000-05-05  Jim Meyering  <meyering@lucent.com>
88740
88741         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
88742         AC_SEARCH_LIBS call for clock_gettime.
88743         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
88744
88745         * m4/search-libs.m4: Update from autoconf.
88746
88747         su doesn't work on Solaris 2.6.
88748         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
88749         <shadow.h>.  Reported by Dragos Harabor.
88750
88751 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
88752
88753         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
88754         memcpy instead of xmalloc, xrealloc, path_concat.
88755         (locale_charset): Treat empty environment variables as absent.
88756         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
88757
88758 2000-05-04  Jim Meyering  <meyering@lucent.com>
88759
88760         * lib/getopt.c: Update from glibc.
88761         * lib/obstack.c: Likewise.
88762         * lib/obstack.h: Likewise.
88763         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
88764         file
88765
88766         * lib/regex.h: Likewise.
88767         * lib/strndup.c: Likewise.
88768         * lib/strnlen.c: New file, from glibc.
88769
88770 2000-05-03  Jim Meyering  <meyering@lucent.com>
88771
88772         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
88773
88774 2000-05-02  Paul Eggert  <eggert@twinsun.com>
88775
88776         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
88777         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
88778         compile-time test, rather than inspecting host and OS, to
88779         decide whether to define _LARGEFILE_SOURCE.
88780
88781 2000-05-01  Jim Meyering  <meyering@lucent.com>
88782
88783         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
88784
88785         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
88786         Based on a patch from Bruno Haible.
88787
88788 2000-05-01  Jim Meyering  <meyering@lucent.com>
88789
88790         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
88791
88792 2000-04-29  Jim Meyering  <meyering@lucent.com>
88793
88794         * lib/path-concat.c: Declare strdup only if it's not defined.
88795         * lib/canon-host.c: Likewise.
88796
88797 2000-04-28  Jim Meyering  <meyering@lucent.com>
88798
88799         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
88800         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
88801         is included first, then limits.h is included by locale.h by libintl.h.
88802         From John David Anglin.
88803
88804 2000-04-25  Jim Meyering  <meyering@lucent.com>
88805
88806         * lib/makepath.c (S_IRWXUGO): Define.
88807         (make_path): Always perform explicit chmod if MODE specifies any
88808         of the `special' permission bits.  Prompted by a bug report against
88809         install from Mate Wierdl and Joost van Baal.
88810
88811 2000-04-18  Jim Meyering  <meyering@lucent.com>
88812
88813         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
88814         (jm_PREREQ): Use it.
88815
88816 2000-04-18  Jim Meyering  <meyering@lucent.com>
88817
88818         * lib/README: New file.
88819
88820         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
88821         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
88822
88823 2000-04-17  Jim Meyering  <meyering@lucent.com>
88824
88825         Get it right :-)
88826         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
88827         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
88828         Suggestion from Akim Demaille.
88829
88830 2000-04-17  Jim Meyering  <meyering@lucent.com>
88831
88832         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
88833         the definition of it to rpl_strftime also defined-away the system's
88834         declaration.
88835
88836 2000-04-15  Jim Meyering  <meyering@lucent.com>
88837
88838         Use `C' to denote so-called `contiguous' files, the same way
88839         that tar does.
88840         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
88841         (ftypelet): Use S_ISCTG.
88842         From Michael Deutschmann.
88843
88844 2000-04-14  Jim Meyering  <meyering@lucent.com>
88845
88846         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
88847         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
88848         clobbered.
88849
88850 2000-04-14  Jim Meyering  <meyering@lucent.com>
88851
88852         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
88853
88854 2000-04-13  Jim Meyering  <meyering@lucent.com>
88855
88856         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
88857         AH_VERBATIM to insert required #ifndef into config.h.in.
88858         Suggestion from Akim Demaille.
88859
88860 2000-04-12  Jim Meyering  <meyering@lucent.com>
88861
88862         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
88863         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
88864         Christian Krackowizer.
88865
88866         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
88867         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
88868         (AC_SYS_LARGEFILE): Require.
88869         (AM_C_PROTOTYPES): Require.
88870
88871 2000-04-08  Jim Meyering  <meyering@lucent.com>
88872
88873         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
88874         names don't conflict.  Reported by Eli Zaretskii.
88875
88876 2000-04-07  Jim Meyering  <meyering@lucent.com>
88877
88878         * lib/putenv.c: Move inclusion of errno.h so it follows that of
88879         sys/types.h, to work around system header problems on AIX 3.2.5.
88880         From Bruno Haible.
88881
88882 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
88883
88884         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
88885         bug.  Deal with the different error behavior of Irix iconv.
88886
88887 2000-04-05  Paul Eggert  <eggert@twinsun.com>
88888
88889         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
88890         IRIX if the installer said otherwise.
88891
88892 2000-04-05  Jim Meyering  <meyering@lucent.com>
88893
88894         Portability tweaks required for ultrix4.3.
88895         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
88896         (jm_CHECK_DECLS): Add getutent to the list of functions.
88897         (_jm_DECL_HEADERS): Add utmpx.h.
88898         From John David Anglin.
88899
88900         * m4/strftime.m4: Back out the 2000-04-02 change.
88901         Instead of that change, simply undefine putenv in the test program.
88902
88903 2000-04-05  Jim Meyering  <meyering@lucent.com>
88904
88905         Portability tweaks required for ultrix4.3.
88906         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
88907         getutent.
88908         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
88909         * lib/canon-host.c: Declare strdup.
88910         * lib/path-concat.c: Likewise.
88911         From John David Anglin.
88912
88913 2000-04-04  Jim Meyering  <meyering@lucent.com>
88914
88915         Be more DOS 8.3-friendly.
88916         * lib/ref-add.sin: Renamed from ref-add.sed.in.
88917         * lib/ref-del.sin: Renamed from ref-del.sed.in.
88918         * lib/Makefile.am: Reflect renaming.
88919         Reported by Eli Zaretskii.
88920
88921         Use a temporary file name that won't clash with `charset.alias'
88922         in the DOS 8.3 name space.
88923         * lib/Makefile.am (charset_tmp): Define.
88924         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
88925         (uninstall-local): Likewise.
88926         Reported by Eli Zaretskii.
88927
88928 2000-04-03  Jim Meyering  <meyering@lucent.com>
88929
88930         * m4/gettext.m4: Fix typo in comment.
88931
88932         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
88933         textutils/configure.in).  Suggestion from Paul Eggert.
88934         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
88935
88936 2000-04-02  Paul Eggert  <eggert@twinsun.com>
88937
88938         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
88939         variable in the shell rather than using putenv, which isn't
88940         portable.  This avoids the configure-time inter-test dependency
88941         on the potentially-renamed putenv function.
88942
88943 2000-03-30  Paul Eggert  <eggert@twinsun.com>
88944
88945         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
88946         before checking struct stat.st_blksize, so that
88947         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
88948
88949 2000-03-29  Paul Eggert  <eggert@twinsun.com>
88950
88951         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
88952         since strftime.c uses HAVE_STRFTIME to decide whether to use
88953         the underlying strftime.
88954
88955 2000-03-29  Paul Eggert  <eggert@twinsun.com>
88956
88957         * lib/time/strftime.c (my_strftime): Make sure we call the system
88958         strftime, not ourselves, when invoking the underlying strftime.
88959
88960 2000-03-24  Jim Meyering  <meyering@lucent.com>
88961
88962         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
88963         (charset_alias): Define.
88964         (install-exec-local): Factor out common code.
88965         (uninstall-local): Split lines longer than 80.
88966         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
88967         (SUFFIXES): Define.
88968         (.sed.in.sed): New rule.  Don't redirect directly to $@.
88969         (CLEANFILES): Add ref-add.sed and ref-del.sed.
88970
88971 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
88972
88973         * lib/config.charset: Output a line containing "Packages using this
88974         file".
88975         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
88976         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
88977         ref-del.sed): New rules.
88978
88979 2000-03-17  Jim Meyering  <meyering@lucent.com>
88980
88981         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
88982         Otherwise, include <strings.h>
88983
88984 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
88985
88986         * lib/unicodeio.c (utf8_wctomb): New function.
88987         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
88988         format instead of in UCS-4 with platform dependent endianness.
88989
88990 2000-03-10  Jim Meyering  <meyering@lucent.com>
88991
88992         * m4/lib-check.m4: Look for getspnam in -lgen, too.
88993         From Marco Franzen.
88994
88995 2000-03-07  Paul Eggert  <eggert@twinsun.com>
88996
88997         * lib/savedir.c (savedir): Work even if directory size is
88998         negative; this can happen with some screwy NFS configurations.
88999
89000 2000-03-06  Jim Meyering  <meyering@lucent.com>
89001
89002         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
89003         if it's NULL (because we ran out of memory).  From Bruno Haible.
89004
89005 2000-03-05  Jim Meyering  <meyering@lucent.com>
89006
89007         * lib/localcharset.c ("path-concat.h"): Include.
89008         (get_charset_aliases): Use path_concat instead of ANSI string
89009         concatenation.
89010
89011         * lib/unicodeio.h (PARAMS): Define.
89012         Use it to guard prototype.
89013
89014 2000-03-04  Jim Meyering  <meyering@lucent.com>
89015
89016         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
89017         for lib/localcharset.c.
89018
89019 2000-03-04  Jim Meyering  <meyering@lucent.com>
89020
89021         * lib/Makefile.am (install-exec-local): Create $(libdir) before
89022         installing into it.
89023         (uninstall-local): Uncomment this rule so `make distcheck' works
89024         once again.
89025
89026         * lib/unicodeio.c (<errno.h>): Include it.
89027         (errno): Declare if not defined.
89028
89029         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
89030
89031         * lib/config.charset: New version, incorporating remarks from a linux
89032         i18n mailing list.  From Bruno Haible.
89033
89034 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
89035
89036         * m4/codeset.m4: New file.
89037         * m4/iconv.m4: New file.
89038         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
89039
89040 2000-03-03  Jim Meyering  <meyering@lucent.com>
89041
89042         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
89043
89044 2000-03-02  Jim Meyering  <meyering@lucent.com>
89045
89046         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
89047         the messages come out on separate lines.
89048
89049         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
89050         rather than jm_CHECK_DECLARATIONS.
89051         * m4/decl.m4: Remove now-unused file.
89052
89053         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
89054         geteuid.
89055
89056 2000-03-02  Jim Meyering  <meyering@lucent.com>
89057
89058         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
89059
89060 2000-03-01  Jim Meyering  <meyering@lucent.com>
89061
89062         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
89063         * lib/unicodeio.c: Likewise.
89064
89065 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
89066
89067         * lib/config.charset: New file.
89068         * lib/localcharset.c: New file.
89069         * lib/unicodeio.h, lib/unicodeio.c: New files.
89070         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
89071         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
89072         (noinst_HEADERS): Add unicodeio.h.
89073         (all-local, install-exec-local, charset.alias): New targets.
89074
89075 2000-02-28  Paul Eggert  <eggert@twinsun.com>
89076
89077         * lib/quotearg.c (ALERT_CHAR): New macro.
89078         (quotearg_buffer_restyled): Use it.
89079
89080 2000-02-27  Jim Meyering  <meyering@lucent.com>
89081
89082         * m4/check-decl.m4: Add getenv to the list.
89083
89084 2000-02-27  Jim Meyering  <meyering@lucent.com>
89085
89086         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
89087         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
89088
89089         * lib/backupfile.c: Guard inclusion of stdlib.h with
89090         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
89091         Declare malloc if needed.
89092
89093         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
89094         `#ifndef HAVE_DECL..'
89095         now that autoconf always defines the HAVE_DECL_ symbols.
89096         * lib/human.c: Likewise.
89097         * lib/same.c: Likewise.
89098         * lib/strtoumax.c: Likewise.
89099
89100         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
89101         declaration check was not run.
89102         * lib/hash.c: Likewise.
89103         * lib/human.c: Likewise.
89104         * lib/same.c: Likewise.
89105         * lib/strtoumax.c: Likewise.
89106
89107         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
89108         `.', then first look up the entire `.'-containing string as a login
89109         name.
89110
89111 2000-02-23  Jim Meyering  <meyering@lucent.com>
89112
89113         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
89114         in place of my hack.
89115
89116 2000-02-18  Paul Eggert  <eggert@twinsun.com>
89117
89118         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
89119         (textint): New typedef.
89120         (parser_control): Member year changed from int to textint.
89121         All uses changed.
89122         (YYSTYPE): Removed; replaced by %union with int and textint members.
89123         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
89124         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
89125         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
89126         (tSNUMBER, tUNUMBER): Now of type <textintval>.
89127         (date, number, to_year): Use width of number in digits, not its value,
89128         to determine whether it's a 2-digit year, or a 2-digit time.
89129         (yylex): Store number of digits of numeric tokens.
89130         Reported by John Kendall.
89131
89132         (parser_control): Changed from struct parser_control to typedef (for
89133         consistency).  All uses changed.
89134
89135         (tID): Removed; not used.
89136         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
89137
89138 2000-02-14  Paul Eggert  <eggert@twinsun.com>
89139
89140         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
89141         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
89142
89143 2000-02-12  Jim Meyering  <meyering@lucent.com>
89144
89145         * lib/userspec.c (ISDIGIT): Define it.
89146         (isdigit): Remove definition.
89147         (is_number): Use ISDIGIT, not isdigit.
89148         <libintl.h>: Include.
89149         (_ and N_): Define.
89150         (parse_user_spec): Mark translatable strings.
89151
89152 2000-02-10  Jim Meyering  <meyering@lucent.com>
89153
89154         With these changes, nanosleep.[ch] are finally enough like the other
89155         lib/* replacement files to compile on a few more losing systems.
89156
89157         * lib/nanosleep.h: Don't include config.h.
89158         Remove prototype from declaration of nanosleep.
89159         (PARAMS): Remove now-unneeded definition.
89160         * lib/nanosleep.c: #undef nanosleep.
89161         (rpl_nanosleep): Rename from nanosleep.
89162
89163 2000-02-10  Jim Meyering  <meyering@lucent.com>
89164
89165         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
89166         gnu_nanosleep to rpl_nanosleep.
89167
89168 2000-02-09  Jim Meyering  <meyering@lucent.com>
89169
89170         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
89171         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
89172
89173 2000-02-08  Akim Demaille  <akim@epita.fr>
89174
89175         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
89176         `[' and `]' and remove uses of `changequote'.
89177         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
89178         (AC_SYS_LARGEFILE): Likewise.
89179         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
89180         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
89181         of changequote.
89182         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
89183         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
89184         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
89185         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
89186
89187 2000-02-05  Jim Meyering  <meyering@lucent.com>
89188
89189         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
89190         Remove explicit use of AC_HEADER_TIME.  It is required by
89191         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
89192         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
89193         in autoconf whereby the expansion of the latter ended up preceding
89194         the expansion of its prerequisite, AC_HEADER_TIME.
89195         Reported by Volker Borchert.
89196
89197 2000-02-03  Jim Meyering  <meyering@lucent.com>
89198
89199         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
89200
89201 2000-02-03  Jim Meyering  <meyering@lucent.com>
89202
89203         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
89204         rather than with `#if HAVE_UTMPNAME'.
89205
89206 2000-02-02  Jim Meyering  <meyering@lucent.com>
89207
89208         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
89209         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
89210         Reported by Eli Zaretskii.
89211
89212 2000-02-01  Jim Meyering  <meyering@lucent.com>
89213
89214         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
89215
89216 2000-01-31  Jim Meyering  <meyering@lucent.com>
89217
89218         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
89219         functions.  Add the time.h and sys/time.h headers along with the
89220         AC_REQUIRE'ment of AC_HEADER_TIME.
89221
89222 2000-01-31  Jim Meyering  <meyering@lucent.com>
89223
89224         * lib/nanosleep.h (nanosleep): Guard declaration with
89225         `#if ! HAVE_DECL_NANOSLEEP'.
89226         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
89227         the declaration in that vendor's sys/timers.h.
89228         Reported by Christian Krackowizer.
89229
89230         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
89231         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
89232         (ISPRINT): Likewise.
89233         Reported by Tom Tromey.
89234
89235 2000-01-30  Jim Meyering  <meyering@lucent.com>
89236
89237         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
89238
89239         * m4/prereq.m4 (utmp_includes): Define.
89240         Check for ut_user and ut_name members in both struct utmpx
89241         and struct utmp.
89242
89243 2000-01-30  Jim Meyering  <meyering@lucent.com>
89244
89245         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
89246         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
89247         header files where only utmpx.ut_user is declared.
89248
89249         * lib/readutmp.h (UT_USER): Define.
89250
89251 2000-01-29  Jim Meyering  <meyering@lucent.com>
89252
89253         * m4/lib-check.m4: New file containing library-related checks from
89254         fileutils and sh-utils (textutils had none).
89255
89256 2000-01-28  Jim Meyering  <meyering@lucent.com>
89257
89258         * m4/perl.m4: Change format of warning message to look more like that
89259         from the missing script.  Suggestion from François Pinard.
89260
89261 2000-01-25  Jim Meyering  <meyering@lucent.com>
89262
89263         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
89264         well as time.h in the compile check.
89265         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
89266         Fix typo in cross-compiling case: s/yes/no/.
89267
89268 2000-01-23  Jim Meyering  <meyering@lucent.com>
89269
89270         * m4/jm-macros.m4: Move df-related tests here from
89271         fileutils/configure.in
89272
89273         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
89274         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
89275
89276         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
89277         s/space/ac_fsusage_space/.
89278         (jm_FILE_SYSTEM_USAGE): Take two parameters.
89279
89280         * m4/ftruncate.m4: New file (derived from part of
89281         fileutils/configure.in).
89282         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
89283         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
89284
89285         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
89286         AC_SUBST these here, rather than just in sh-util/configure.in, so
89287         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
89288         all the same.
89289         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
89290         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
89291         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
89292         (AC_SUBST(POW_LIBM)): Likewise.
89293         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
89294
89295 2000-01-23  Jim Meyering  <meyering@lucent.com>
89296
89297         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
89298         obstack.c.
89299
89300 2000-01-22  Jim Meyering  <meyering@lucent.com>
89301
89302         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
89303
89304         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
89305
89306         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
89307         configure.in
89308         (AC_CHECK_HEADERS): Likewise for sh-utils.
89309         (AC_CHECK_HEADERS): Likewise for textutils.
89310         Merge the three lists of headers.
89311
89312         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
89313         from fileutils' configure.in.
89314
89315         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
89316         code. Moved tests into their own function (_jm_DECL_HEADERS) in
89317         check-decl.m4.
89318
89319         * m4/check-decl.m4: Use #if rather than #ifdef.
89320         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
89321         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
89322         (_jm_DECL_HEADERS): Define new function.
89323         (jm_CHECK_DECLARATIONS): Require it.
89324
89325 2000-01-22  Jim Meyering  <meyering@lucent.com>
89326
89327         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
89328         [! HAVE_DECL_STRTOULL]: Declare strtoull.
89329         Required for some AIX systems.  Reported by Christian Krackowizer.
89330         [TESTING] (main): New function.
89331
89332         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
89333         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
89334         letters.
89335
89336         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
89337         iswprint.
89338
89339         * lib/strverscmp.c (ISDIGIT): Define.
89340         (strverscmp): Use ISDIGIT, not isdigit.
89341
89342 2000-01-19  Jim Meyering  <meyering@lucent.com>
89343
89344         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
89345         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
89346         defines `struct timespec' in <sys/time.h>
89347
89348         * m4/c-bs-a.m4: Remove uses of changequote altogether.
89349         Thanks to Akim for explaining.
89350
89351 2000-01-17  Paul Eggert  <eggert@twinsun.com>
89352
89353         * lib/nanosleep.c (nanosleep):
89354         Don't use SA_INTERRUPT to decide whether to call sigaction, as
89355         POSIX.1 doesn't require SA_INTERRUPT and some systems
89356         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
89357         it's been part of POSIX.1 since day 1 (in 1988).
89358
89359 2000-01-17  Jim Meyering  <meyering@lucent.com>
89360
89361         * lib/interlock: Remove unused file.  Reported by François Pinard.
89362
89363 2000-01-16  Paul Eggert  <eggert@twinsun.com>
89364
89365         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
89366         alert, backslash, formfeed, and vertical tab unnecessarily in
89367         shell quoting style.
89368
89369 2000-01-16  Jim Meyering  <meyering@lucent.com>
89370
89371         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
89372         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
89373         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
89374         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
89375
89376 2000-01-16  Jim Meyering  <meyering@lucent.com>
89377
89378         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
89379         because the latter didn't work.
89380
89381 2000-01-15  Jim Meyering  <meyering@lucent.com>
89382
89383         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
89384         (AC_REPLACE_FUNCS): Add memcpy and memset.
89385         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
89386         Add strpbrk.
89387         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
89388
89389 2000-01-12  Jim Meyering  <meyering@lucent.com>
89390
89391         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
89392         (jm_PREREQ): Use it.
89393         (jm_PREREQ_READUTMP): New macro.
89394         (jm_PREREQ): Use it.
89395
89396 2000-01-11  Paul Eggert  <eggert@twinsun.com>
89397
89398         Quote multibyte characters correctly.
89399         * m4/c-bs-a.m4: New file.
89400         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
89401         (jm_PREREQ): Use it.
89402
89403 2000-01-11  Paul Eggert  <eggert@twinsun.com>
89404
89405         * m4/uintmax_t.m4: Port to autoconf 2.13.
89406
89407 2000-01-08  Jim Meyering  <meyering@ascend.com>
89408
89409         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
89410         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
89411
89412 2000-01-04  Jim Meyering  <meyering@ascend.com>
89413
89414         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
89415         jm_STRUCT_DIRENT_D_TYPE.
89416         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
89417         jm_STRUCT_DIRENT_D_INO.
89418         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
89419         jm_STRUCT_UTIMBUF.
89420         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
89421         renamings.
89422         * m4/utime.m4: Likewise.
89423
89424         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
89425         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
89426
89427 2000-01-03  Paul Eggert  <eggert@twinsun.com>
89428
89429         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
89430         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
89431
89432 2000-01-02  Jim Meyering  <meyering@ascend.com>
89433
89434         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
89435         remember if this is necessary.
89436
89437 1999-12-26  Jim Meyering  <meyering@ascend.com>
89438
89439         * m4/jm-macros.m4: Use it here.
89440         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
89441
89442 1999-12-23  Jim Meyering  <meyering@ascend.com>
89443
89444         * m4/jm-macros.m4: Check for clock_gettime (moved from
89445         fileutils/configure.in)
89446         Check for gettimeofday.
89447
89448 1999-12-20  Jim Meyering  <meyering@ascend.com>
89449
89450         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
89451         autoconf-2.14a-1999-12-20.
89452
89453 1999-12-19  Jim Meyering  <meyering@ascend.com>
89454
89455         * m4/lstat-slash.m4: New file.
89456         * m4/jm-macros.m4: Use the new macro:
89457         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
89458
89459 1999-12-07  Jim Meyering  <meyering@ascend.com>
89460
89461         * m4/perl.m4: Require that File::Compare be available, too.
89462         Too many systems seem to lack it.
89463
89464         * m4/strftime.m4: Add checks for most of the cpp macros tested in
89465         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
89466
89467 1999-11-18  Paul Eggert  <eggert@twinsun.com>
89468
89469         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
89470         problem with the QNX 4.25 shell, which doesn't propagate exit
89471         status of failed commands inside shell assignments.
89472
89473 1999-11-17  Jim Meyering  <meyering@ascend.com>
89474
89475         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
89476
89477 1999-11-07  Jim Meyering  <meyering@ascend.com>
89478
89479         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
89480
89481 1999-11-06  Jim Meyering  <meyering@ascend.com>
89482
89483         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
89484         * m4/jm-macros.m4 (jm_MACROS): Use it here.
89485
89486 1999-11-05  Jim Meyering  <meyering@ascend.com>
89487
89488         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
89489         configure.in of textutils, fileutils, and sh-utils into this one
89490         (shared between those packages) file.
89491         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
89492         AC_STRUCT_ST_BLKSIZE.
89493
89494 1999-11-03  Jim Meyering  <meyering@ascend.com>
89495
89496         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
89497         of AC_CHECK_TYPE checks includes unistd.h.
89498         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
89499         Suggestion from Akim Demaille.
89500
89501 1999-10-30  Jim Meyering  <meyering@ascend.com>
89502
89503         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
89504         m4-quoted string.
89505         * m4/ls-mntd-fs.m4: Likewise.
89506         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
89507         * m4/jm-winsz1.m4: Likewise.
89508
89509         * m4/const.m4: Remove file, since the fix made it into the experimental
89510         version of autoconf.
89511         * m4/mktime.m4: Likewise.
89512
89513         * m4/check-type.m4: Remove file, now that the latest version of
89514         AC_CHECK_TYPE takes a third arg to specify additional #includes.
89515
89516         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
89517         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
89518         AC_CHECK_TYPE.
89519
89520 1999-10-04  Jim Meyering  <meyering@ascend.com>
89521
89522         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
89523
89524 1999-09-22  Paul Eggert  <eggert@twinsun.com>
89525
89526         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
89527         2.95.1 bug with HP-UX 10.20.
89528
89529 1999-09-17  Jim Meyering  <meyering@ascend.com>
89530
89531         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
89532         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
89533         due to missing strdup (against sh-utils-2.0).
89534
89535 1999-08-29  Jim Meyering  <meyering@ascend.com>
89536
89537         * m4/jm-macros.m4: Require jm_BISON.
89538         * m4/bison.m4: New file.
89539
89540 1999-08-17  Paul Eggert  <eggert@twinsun.com>
89541
89542         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
89543         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
89544
89545 1999-08-05  Jim Meyering  <meyering@ascend.com>
89546
89547         * m4/getline.m4: Rename test file from conftestdata to conftest.data
89548         to avoid conflicts with `conftest' on 8+3 filesystems.
89549         Suggestion from Eli Zaretskii.
89550
89551 1999-08-04  Jim Meyering  <meyering@ascend.com>
89552
89553         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
89554         fileutils and sh-utils (textutils's getline test was inadequate).
89555         (AM_FUNC_GETLINE): Run this test.
89556         (AC_CHECK_FUNCS): Check for getdelim.
89557         Reported by Bob Proulx.
89558
89559 1999-08-02  Jim Meyering  <meyering@ascend.com>
89560
89561         * m4/jm-macros.m4: Add a comment.
89562
89563 1999-08-01  Paul Eggert  <eggert@twinsun.com>
89564
89565         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
89566         <inttypes.h> defines strtoumax as a macro (and not as a
89567         function).
89568
89569 1999-08-01  Paul Eggert  <eggert@twinsun.com>
89570
89571         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
89572         that we can shift, multiply and divide unsigned long long
89573         values; Ultrix cc can't do it.
89574
89575 1999-08-01  Paul Eggert  <eggert@twinsun.com>
89576
89577         * m4/mktime.m4: New file, which is a preview of what should appear
89578         in the next public autoconf release.
89579
89580 1999-08-01  Paul Eggert  <eggert@twinsun.com>
89581
89582         * m4/lfs.m4: Remove this file.
89583         * m4/largefile.m4: New file.  It contains the old contents of
89584         lfs.m4, except that all names with prefix AC_LFS have been
89585         changed to use the prefix AC_SYS_LARGEFILE instead, to be
89586         compatible with future autoconf versions.  Also, some minor m4
89587         quoting problems have been fixed.
89588
89589 1999-08-01  Paul Eggert  <eggert@twinsun.com>
89590
89591         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
89592         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
89593         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
89594         and simplify the shell code.
89595
89596 1999-08-01  Jim Meyering  <meyering@ascend.com>
89597
89598         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
89599         m4.
89600
89601 1999-07-20  Jim Meyering  <meyering@ascend.com>
89602
89603         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
89604
89605 1999-07-15  Jim Meyering  <meyering@ascend.com>
89606
89607         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
89608
89609 1999-05-22  Jim Meyering  <meyering@ascend.com>
89610
89611         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
89612
89613 1999-05-20  Jim Meyering  <meyering@ascend.com>
89614
89615         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
89616         Add a colon after each `then' in case $4 is empty.
89617
89618 1999-05-16  Jim Meyering  <meyering@ascend.com>
89619
89620         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
89621
89622 1999-05-10  Jim Meyering  <meyering@ascend.com>
89623
89624         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
89625
89626         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
89627         AC_FUNC_MKTIME.
89628
89629 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
89630
89631         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
89632
89633 1999-05-04  Paul Eggert  <eggert@twinsun.com>
89634
89635         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
89636         not CPPFLAGS, so that linking works correctly in IRIX.
89637
89638 1999-04-30  Paul Eggert  <eggert@twinsun.com>
89639
89640         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
89641
89642 1999-04-20  Paul Eggert  <eggert@twinsun.com>
89643
89644         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
89645         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
89646         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
89647         jm_AC_TYPE_UNSIGNED_LONG_LONG.
89648         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
89649
89650         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
89651
89652 1999-04-20  Jim Meyering  <meyering@ascend.com>
89653
89654         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
89655         AC_REPLACE xstroull if necessary.  From Paul Eggert.
89656         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
89657
89658 1999-04-18  Jim Meyering  <meyering@ascend.com>
89659
89660         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
89661         * m4/jm-macros.m4: Use it.
89662
89663 1999-04-06  Jim Meyering  <meyering@ascend.com>
89664
89665         * m4/strftime.m4: Remove test for %f.
89666
89667 1999-03-29  Jim Meyering  <meyering@ascend.com>
89668
89669         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
89670         superset of the AC_TYPE_* checks in the textutils, fileutils,
89671         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
89672         AC_TYPE_PID_T.
89673
89674 1999-03-28  Jim Meyering  <meyering@ascend.com>
89675
89676         * m4/jm-macros.m4: Define GNU_PACKAGE here.
89677         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
89678         replaced e.g., in the *.sh files of the sh-utils.
89679
89680 1999-03-20  Jim Meyering  <meyering@ascend.com>
89681
89682         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
89683         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
89684         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
89685
89686 1999-03-19  Jim Meyering  <meyering@ascend.com>
89687
89688         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
89689
89690 1999-03-12  Jim Meyering  <meyering@ascend.com>
89691
89692         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
89693
89694 1999-03-07  Jim Meyering  <meyering@ascend.com>
89695
89696         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
89697         declared.
89698
89699 1999-02-17  Jim Meyering  <meyering@ascend.com>
89700
89701         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
89702         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
89703
89704 1999-02-07  Jim Meyering  <meyering@ascend.com>
89705
89706         * m4/group-member.m4: New file -- extracted from sh-utils'
89707         configure.in.
89708
89709         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
89710         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
89711
89712 1999-02-06  Jim Meyering  <meyering@ascend.com>
89713
89714         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
89715         * m4/fnmatch.m4: Likewise.
89716         * m4/getgroups.m4: Likewise.
89717         * m4/lstat.m4: Likewise.
89718         * m4/malloc.m4: Likewise.
89719         * m4/putenv.m4: Likewise.
89720         * m4/realloc.m4: Likewise.
89721         * m4/regex.m4: Likewise.
89722         * m4/stat.m4: Likewise.
89723         * m4/strftime.m4: Likewise.
89724         Suggestion from Alain Magloire.
89725
89726         * m4/chown.m4: Use `.$ac_objext', not `.o'.
89727         * m4/fnmatch.m4: Likewise.
89728         * m4/getgroups.m4: Likewise.
89729         * m4/getline.m4: Likewise.
89730         * m4/lstat.m4: Likewise.
89731         * m4/malloc.m4: Likewise.
89732         * m4/memcmp.m4: Likewise.
89733         * m4/putenv.m4: Likewise.
89734         * m4/realloc.m4: Likewise.
89735         * m4/regex.m4: Likewise.
89736         * m4/stat.m4: Likewise.
89737         * m4/strftime.m4: Likewise.
89738         Suggestion from Alain Magloire.
89739
89740         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
89741         an argument.
89742
89743         * m4/regex.m4: Add a run-time Test for proper operation of
89744         re_compile_pattern.
89745
89746 1999-01-31  Jim Meyering  <meyering@ascend.com>
89747
89748         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
89749
89750 1999-01-30  Jim Meyering  <meyering@ascend.com>
89751
89752         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
89753
89754         * m4/jm-mktime.m4: Make this a wrapper around the official
89755         AM_FUNC_MKTIME rather than my private copy, now that the official one
89756         is up to date.
89757         * m4/mktime.m4: Remove file.
89758
89759         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
89760         * m4/uptime.m4: Likewise.
89761         * m4/uintmax_t.m4: Likewise.
89762
89763 1999-01-28  Jim Meyering  <meyering@ascend.com>
89764
89765         * m4/jm-macros.m4: Use jm_AFS.
89766         * m4/afs.m4: New file (from fileutils' configure.in).
89767
89768         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
89769         * m4/chown.m4: Likewise.
89770         * m4/d-ino.m4: Likewise.
89771         * m4/d-type.m4: Likewise.
89772         * m4/fnmatch.m4: Likewise.
89773         * m4/getgroups.m4: Likewise.
89774         * m4/gettext.m4: Likewise.
89775         * m4/jm-mktime.m4: Likewise.
89776         * m4/jm-winsz2.m4: Likewise.
89777         * m4/lcmessage.m4: Likewise.
89778         * m4/ls-mntd-fs.m4: Likewise.
89779         * m4/malloc.m4: Likewise.
89780         * m4/memcmp.m4: Likewise.
89781         * m4/putenv.m4: Likewise.
89782         * m4/realloc.m4: Likewise.
89783         * m4/st_mtim.m4: Likewise.
89784         * m4/strftime.m4: Likewise.
89785
89786 1999-01-16  Jim Meyering  <meyering@ascend.com>
89787
89788         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
89789         (ARGMATCH_DIE_DECL): Define.
89790
89791 1999-01-12  Jim Meyering  <meyering@ascend.com>
89792
89793         * m4/Makefile.am.in: Rewrite to avoid using fmt.
89794         Reported by Lars Hecking.
89795
89796 1999-01-10  Jim Meyering  <meyering@ascend.com>
89797
89798         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
89799         gross kludge.
89800         * m4/inttypes_h.m4: Likewise.
89801         * m4/lstat.m4: Likewise.
89802         * m4/malloc.m4: Likewise.
89803         * m4/readdir.m4: Likewise.
89804         * m4/realloc.m4: Likewise.
89805         * m4/st_dm_mode.m4: Likewise.
89806         * m4/stat.m4: Likewise.
89807         * m4/utimbuf.m4: Likewise.
89808         * m4/utimes.m4: Likewise.
89809
89810         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
89811         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
89812         comments in config.h.in are meaningful.
89813
89814         * m4/jm-macros.m4: Require autoconf-2.13 here.
89815
89816         * m4/regex.m4: By default, don't use the included regex.c on systems
89817         with glibc 2.  Suggestion from Uli Drepper.
89818
89819 1999-01-02  Jim Meyering  <meyering@ascend.com>
89820
89821         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
89822
89823 1998-12-18  Jim Meyering  <meyering@ascend.com>
89824
89825         * m4/Makefile.am.in (Makefile.am): Simplify rule.
89826         Based on a suggestion from Lars Hecking.
89827
89828 1998-11-16  Paul Eggert  <eggert@twinsun.com>
89829
89830         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
89831
89832 1998-11-16  Jim Meyering  <meyering@ascend.com>
89833
89834         * m4/lfs.m4: Double-quote the `uname...` expression.
89835
89836 1998-11-14  Jim Meyering  <meyering@ascend.com>
89837
89838         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
89839         * m4/stat.m4: Likewise.
89840
89841 1998-11-03  Jim Meyering  <meyering@ascend.com>
89842
89843         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
89844         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
89845
89846 1998-10-18  Jim Meyering  <meyering@ascend.com>
89847
89848         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
89849
89850 1998-10-17  Jim Meyering  <meyering@ascend.com>
89851
89852         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
89853         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
89854         calls for those previously hard-coded headers.  Instead, take a new
89855         parameter.
89856         (jm_CHECK_DECLARATIONS): Reflect interface change.
89857         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
89858         (jm_CHECK_DECL_LOCALTIME_R): New macro.
89859
89860         * m4/mktime.m4: Test for spring-forward gap before long-running test.
89861
89862 1998-10-14  Jim Meyering  <meyering@ascend.com>
89863
89864         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
89865         instead of "TZ=America/Vancouver".  From Paul Eggert.
89866
89867 1998-10-11  Jim Meyering  <meyering@ascend.com>
89868
89869         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
89870         This adds a test for a recently added compatibility fix for mktime.c.
89871         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
89872
89873 1998-09-27  Jim Meyering  <meyering@ascend.com>
89874
89875         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
89876
89877         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
89878         ../configure.in, including a change from Gordon Matzigkeit to allow
89879         cross-compiling for the Hurd.
89880
89881         * m4/glibc.m4: New file/macro to test for the GNU C Library
89882         versions 1 and 2.  From Gordon Matzigkeit.
89883         Indent.
89884
89885 1998-09-21  Jim Meyering  <meyering@ascend.com>
89886
89887         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
89888
89889 1998-08-18  Paul Eggert  <eggert@twinsun.com>
89890
89891         Port nanosecond-resolution times to UnixWare 2.1.2 and
89892         pedantic Solaris 2.6.
89893
89894         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
89895         AC_STRUCT_ST_MTIM.
89896         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
89897         Generate name of ns member, instead of just 1 or undef.
89898         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
89899
89900 1998-08-15  Jim Meyering  <meyering@ascend.com>
89901
89902         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
89903         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
89904         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
89905         instead of jm_TYPE_SSIZE_T.
89906
89907 1998-08-12  Jim Meyering  <meyering@ascend.com>
89908
89909         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
89910
89911 1998-08-02  Jim Meyering  <meyering@ascend.com>
89912
89913         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
89914         in acconfig.h manually.
89915
89916 1998-07-31  Paul Eggert  <eggert@twinsun.com>
89917
89918         * m4/st_mtim.m4: New file.
89919
89920 1998-07-28  Jim Meyering  <meyering@ascend.com>
89921
89922         * m4/utimes.m4: Undef stat.
89923
89924 1998-07-25  Jim Meyering  <meyering@ascend.com>
89925
89926         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
89927         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
89928
89929 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
89930
89931         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
89932         uid and gid actually remain unchanged.
89933
89934 1998-07-07  Jim Meyering  <meyering@ascend.com>
89935
89936         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
89937
89938 1998-07-04  Jim Meyering  <meyering@ascend.com>
89939
89940         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
89941         to prove that this macro can be used in packages without regex.c.
89942
89943 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
89944
89945         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
89946         is to be used.
89947
89948 1998-07-03  Jim Meyering  <meyering@ascend.com>
89949
89950         * m4/gettext.m4: Add -lintl if it's found to be necessary.
89951
89952         * m4/gettext.m4: New file -- from gettext-0.10.35.
89953         * m4/lcmessage.m4: Likewise.
89954         * m4/progtest.m4: Likewise.
89955
89956         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
89957         * m4/jm-macros.m4: Require the new macro.
89958
89959 1998-06-29  Jim Meyering  <meyering@ascend.com>
89960
89961         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
89962         for the definition of NGROUPS (used in a system header included
89963         by sys/mount.h).
89964
89965 1998-06-28  Jim Meyering  <meyering@ascend.com>
89966
89967         * m4/ls-mntd-fs.m4: New file.
89968         * m4/fstypename.m4: New file.
89969
89970         * m4/jm-macros.m4: Require the new macro.
89971         * m4/jm-glibc-io.m4: New file.
89972
89973 1998-05-19  Jim Meyering  <meyering@ascend.com>
89974
89975         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
89976         * m4/lchown.m4: New file.
89977
89978         * m4/Makefile.am.in: New file.
89979         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
89980
89981 1998-05-14  Jim Meyering  <meyering@ascend.com>
89982
89983         * m4/Makefile.am (EXTRA_DIST): Add them.
89984         * m4/jm-macros.m4: New file.
89985         * m4/utimbuf.m4: New file.
89986
89987 1998-05-12  Jim Meyering  <meyering@ascend.com>
89988
89989         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
89990
89991 1998-05-11  Jim Meyering  <meyering@ascend.com>
89992
89993         * m4/isc-posix.m4: New file.
89994
89995 1998-05-10  Jim Meyering  <meyering@ascend.com>
89996
89997         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
89998
89999 1998-05-09  Jim Meyering  <meyering@ascend.com>
90000
90001         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
90002         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
90003         with automake.
90004
90005         * m4/ssize_t.m4: New file.
90006         * m4/mktime.m4: Remove file -- the new automake has this now.
90007
90008 1998-04-26  Jim Meyering  <meyering@ascend.com>
90009
90010         * m4/assert.m4: New file.
90011         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
90012
90013 1998-04-05  Jim Meyering  <meyering@ascend.com>
90014
90015         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
90016         (jm_PREREQ): Use it here.
90017
90018 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
90019
90020         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
90021         in acconfig.h.
90022
90023 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
90024
90025         * m4/prereq.m4: New file.
90026         * m4/error.m4: New file.
90027         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
90028
90029 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
90030
90031         * m4/getline.m4: Don't set am_cv_func_working_getline before the
90032         cache-check for the same variable -- that defeated the purpose of
90033         the test; the test program was never run.  This was a problem only
90034         on systems with losing getline functions -- HP-UX 10.20 is one.
90035         Reported by Bjorn Helgaas.
90036
90037 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
90038
90039         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
90040
90041 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
90042
90043         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
90044
90045         * m4/const.m4: New file.  Use an initializer in this declaration
90046         typedef int charset[2]; const charset x;
90047         Reported by Bob Glickstein.
90048
90049 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
90050
90051         * m4/chown.m4: Fix reversed types on -1 args to chown.
90052         From Kaveh Ghazi.
90053
90054 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
90055
90056         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
90057         Add lseek and memchr.
90058
90059         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
90060         T.E.Dickey <dickey@clark.net> said that some older preprocessors
90061         have a 20-character limit on names.
90062
90063 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
90064
90065         * m4/inttypes_h.m4: New file.
90066         * m4/uintmax_t.m4: New file.
90067         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
90068
90069
90070         -----
90071
90072         Local Variables:
90073         coding: utf-8
90074         End:
90075
90076         Copyright (C) 1997-2011 Free Software Foundation, Inc.
90077
90078         Copying and distribution of this file, with or without
90079         modification, are permitted provided the copyright notice
90080         and this notice are preserved.